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
7
votes
1 answer
How to use new Google's Sans font in my Android App?
How can I use the font seen in fresh Google's apps like Phone, Contact and Google Fit in my Android App? Is there some new textAppearance value for this? Here's the preview of desired font (titles):
As I could find out, this font is called…

oleynikd
- 896
- 13
- 33
7
votes
3 answers
How to remove excessive line spacing of downloadable fonts?
I am investigating downloadable fonts (and fonts as resources) within my current Android application.
When I place fonts within the values/font folder they display as desired.
When I employ downloadable fonts they always have additional spacing…

Hector
- 4,016
- 21
- 112
- 211
7
votes
7 answers
How to set custom font for android listview?
I am new to android and using custom font for listview.I did not know how to use the typeface in a list view .I also tried with different examples but cant solve my problem .Here is my code
public class HomeScreen extends ListActivity {
private…

Deepak
- 192
- 1
- 2
- 18
7
votes
4 answers
Changing Font restarts activity
Activity is getting restarted when system font is changed while app is running.
Is there any way I can avoid restarting of my Activity?
I tested it with basic "Hello World" application.
I am using Android 4.1 as target
PS: I have tried using…

sachy
- 739
- 7
- 13
6
votes
1 answer
When exactly are "preloaded fonts" loaded on Android?
When I use the Downloadable Fonts feature on Android, I can add a preloading strategy by adding this code to AndroidManifest.xml:
When exactly is…

Florian Walther
- 6,237
- 5
- 46
- 104
6
votes
4 answers
How to use custom fonts in DrawerLayout and NavigationView
I want to use Android's DrawerLayout and NavigationView for menus, but I don't know how to have the menu items use a custom font. Does anyone have a successful implementation?

ydstsh
- 183
- 2
- 11
6
votes
2 answers
What kind of font I should use for TextView that can support all languages?
I have a textView that can display a Text in any languages ( End-users input the text).
I am wondering that what font I should use?
In this article: http://www.google.com/design/spec/style/typography.html#typography-roboto-noto
Google says:
To…

LHA
- 9,398
- 8
- 46
- 85
6
votes
1 answer
Fontfamily doesn't work on Android Lollipop
I want to set sans-serif light as default font in my application. I'm working on Android Lollipop device. So, this is my styles.xml:
…

Kurtis92
- 710
- 1
- 12
- 34
6
votes
1 answer
nokiax reports java.lang.RuntimeException: native typeface cannot be made
NokiaX reports this exception on fonts used.
I have a library project under which I have assets/fonts/Roboto-*.ttf files. I have gone through the other questions on this topic, all of them hint at spelling check, or folder check (should be under…

Siddharth
- 9,349
- 16
- 86
- 148
6
votes
3 answers
Urdu font in textview
i have set urdu in textview and apply urdu typeface but is only showing word by word like ب ہ ن
here is code :
Typeface tf1 = Typeface.createFromAsset(this.getAssets(), "Urdu.ttf");
TextView textView =…

Bibi Tahira
- 1,082
- 5
- 15
- 39
6
votes
1 answer
slow listview when set custom font
I have some data in an xml file put it in /res/values/mydata.xml. I want to show data in a listview with a custom font. Everything is great in emulator but in real device (using samsung galaxy tab 10.1 2 with android 4.0.3) is too slow when scroll…

IndieBoy
- 1,102
- 3
- 14
- 25
5
votes
2 answers
how to add font in Android Application
i am making one application in Android 2.2 in that application
i want to show hindi text in TextView in Android application. (how to add "मैं छात्र हूँ" word in Text view)
Please help me..

Prashant Kadam
- 551
- 1
- 12
- 25
5
votes
1 answer
Font resources for different Languages
I'm trying to use font resource directory and use different fonts in xml files in order to use them in preference. I read this thread but I couldn't solve the problem. I'm using support library v27 and I know it supports font in res instead of asset…

Mohsen Hatami
- 317
- 3
- 14
5
votes
4 answers
Android downloadable fonts using semi bold style
I am using google downloadable fonts as given in below link
https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts.html
I want to use Montserrat font style semi bold but that option is not there in android
Also in below link…

amodkanthe
- 4,345
- 6
- 36
- 77
5
votes
1 answer
Android version and font support (sans-serif/Roboto)?
I need to know from with version of Android these fonts are supported :
sans-serif (Roboto-Regular)
sans-serif-light (Roboto-Light)
sans-serif-thin (Roboto-Thin)
sans-serif-medium (Roboto-Medium)
also it's look like that on android 4.4.2 i can't…

zeus
- 12,173
- 9
- 63
- 184