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.
Questions tagged [android-fonts]
362 questions
43
votes
7 answers
Android Typeface createFromAsset
I Have a Custom View which draws text onto the Canvas.
I want to change the font to a font stored in the assets folder.
I am using Android Studio so I created a folder src/main/assets and placed my ttf files in there.
Paint txt = new…

Caleb Bramwell
- 1,332
- 2
- 12
- 24
41
votes
5 answers
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 webview the font size is like 24pt. and way too large for my android's screen. I've looked into the "websettings" but it seems that the two are not…

Scott
- 1,491
- 2
- 10
- 9
38
votes
14 answers
Accessing a font under assets folder from XML file in Android
I am trying to do a application-wide font change and creating a style file to do so. In this file (below) I just want to change typeface value of TextAppearance style of Android.