How to choose a droid without a compressed font?

I see that the Driod Sans Condensed font is available on android, but from what I see, the android:typeface attribute can only have the following values ​​- normal , sans , serif and monospace .

Question: how to choose this "compressed" font? In addition, the page does not show which version is available for this font.

EDIT:

I conducted a test with two TextView objects having fonts set to normal and mono respectively, and as far as I can tell about the differences between them.

enter image description here

+4
source share
1 answer

It seems that Droid Sans Condensed is not included in the SDK, but is available for purchase:

If you decide to buy it, you can use it in your application as follows:

 Typeface font = Typeface.createFromAsset(getAssets(), "yourfont.ttf"); textView.setTypeface(font); 
+2
source

Source: https://habr.com/ru/post/1389814/


All Articles