Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get my current system font name?

Tags:

android

I'm using "cool jazz" font on my android device and i want to get this name on my application there is a option to get the font name?

like image 666
matt matt Avatar asked Dec 03 '25 14:12

matt matt


1 Answers

There is no way to get the name of the font.

The TypeFace class has no method to tell the its name(even it doesn' t override toString() to provide more info).

When you use your own font, you just provide the font file or font-family name, the TypeFace itself has no idea what' s name of it. Maybe the caller like you knows.

like image 133
longkai Avatar answered Dec 05 '25 06:12

longkai



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!