This library allows to set a custom font on a TextView.
This library is compatible from API 8 (Android 2.2), but it should work on previous versions.
Add your font file in /assets/fonts
directory.
Add the View to the layout:
<org.pierrre.customfont.CustomFontTextView xmlns:customfont="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="My Text with custom font"
customfont:font="MyFont.ttf" >
<!-- Your views here, it's a FrameLayout -->
</org.pierrre.fixedratio.FixedRatioView>
- Email: [email protected]
- Twitter: @pierredurand87
- Google+: Pierre Durand
- GitHub: pierrre