I am developing an application. I am using custom font. ".ttf" file to customize font of text view. I used the code as:
Typeface tfArchitectsDaughter = Typeface.createFromAsset(getAssets(), "fonts/ArchitectsDaughter.ttf");
textview.setTypeface(tfArchitectsDaughter);
Now the need is: I want to make the text customize as I done above as well as the style as BOLD in .java file.
How to do this please suggest. And what other styles or customization can be done on font please suggest.
You can achieve it with
textview.setTypeface(tfArchitectsDaughter, Typeface.BOLD);
Note: For sure you can use also ITALIC
and BOLD_ITALIC
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With