Top "Android-fonts" questions

There are different fonts available to use programmatically and also using the device setting, Generally programmers do use fonts in a way that keeping the font file in assets folder and then passing the font as resource to textviews.

How to set font custom font to Spinner text programmatically?

I have a ttf font file in my assets folder. I know how to use it for textviews with: Typeface …

android fonts spinner android-spinner android-fonts
Android Typeface createFromAsset

I Have a Custom View which draws text onto the Canvas. I want to change the font to a font …

android android-fonts android-typeface
how to prevent system font-size changing effects to android application?

I recently finished developing my android application. I used sp (Scaled pixels) for all textSize. The problem is when i …

android android-fonts
How set Spannable object font with custom font

I have Spannable object which I want to set its font by a custom font I have loaded before. Typeface …

android android-fonts spannable
How to change the FontSize in an Android WebView?

How can you manually change the font size of a webview? e.g. When the page loads up in the …

android android-webview font-size android-fonts
Setting Button text font in android

I have a button created using android widgets. I want to set the font of the button text to Helv …

android android-layout android-button android-fonts
How do I specify eg. Roboto-Medium or Roboto-Black in styles.xml

Posts like this How to change fontFamily of TextView in Android suggests, that the variants of Roboto fonts you can …

android android-fonts android-typeface
How to use specified weights for fonts in XML

Using the Fonts in XML feature you can specify various font weights for a font family. For example: <?xml …

android android-xml android-styles android-fonts
Android Runtime Exception font asset not found

Here is my code and screenshot I'm trying to set custom font typeface but Runtime exception occurs font asset not …

java android android-fonts
Android sp vs dp texts - what would adjust the 'scale' and what is the philosophy of support

So we know from many other posts that we should use sp rather than dp for text in Android, and …

android textview android-fonts