logo
logo
AI Products 
Leaderboard Community🔥 Earn points

Calligraphy – Add custom font in Android

avatar
Geek On Java
collect
0
collect
0
collect
0
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
collect
0
collect
0
avatar
Geek On Java