logo
logo
AI Products 

Calligraphy – Add custom font in Android

avatar
Geek On Java
Calligraphy – Add custom font in Android

Are you fed up of Custom Views to set fonts?

You might consider creating a fonts/ subdirectory in the assets directory (as in examples).

Custom font defined in Theme

The CalligraphyFactory looks for the font in a pretty specific order, for the most part it’s very similar to how the Android framework resolves attributes.

Style xml – attr defined here is checked next.

Default – if defined in the CalligraphyConfig this is used of none of the above are found OR if one of the above returns an invalid font.

collect
0
avatar
Geek On Java
guide
Zupyak is the world’s largest content marketing community, with over 400 000 members and 3 million articles. Explore and get your content discovered.
Read more