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
4
votes
1 answer
Custom fonts for TextView based on languages inside String
I have two font ttf files that must be applied on a TextView based on languages inside String. So e.g. consider this sample text:
hey what's up ضعيف
I can just apply a typeface span based on language but it requires custom markup in every string…

M-Wajeeh
- 17,204
- 10
- 66
- 103
4
votes
1 answer
Android Action Bar Title's font changed reverts to default on orientation change
Below code makes the Title bar to go red and Roboto-Regular font, code work properly but when orientation changes then Title will go to default properties, White color and default font.
if i remove config changes in "activity" of manifest then…

harshal
- 592
- 6
- 25
4
votes
1 answer
Gujarati Webpage not showing Perfectly in Webview
I am opening WebPage which contains Gujarati language but its showing just English words in Android WebView.
So how can i supports Gujarati words also.
You can see difference in following images:
String url =…

Pratik Butani
- 60,504
- 58
- 273
- 437
4
votes
4 answers
RuntimeException: native typeface cannot be made or memory leak for custom TextView loading font
There's a HUGE problem in my code wherein I am loading a font in my assets\fonts\ folder from a custom TextView class. The first problem is that it crashes on 4.0 devices with the exception Caused by: java.lang.RuntimeException: native typeface…

Compaq LE2202x
- 2,030
- 9
- 45
- 62
4
votes
1 answer
How can i use the Roboto Black font in a textview
I am trying to apply the Roboto Black font on a textview via XML, but it seems like it's not working. When i look at that site http://developer.android.com/design/style/typography.html it looks like it should be possible, to access the Roboto Black…

user3042217
- 41
- 2
4
votes
5 answers
Text with custom font and bold style
I am developing an application. I am using custom font. ".ttf" file to customize font of text view. I used the code as:
Typeface tfArchitectsDaughter = Typeface.createFromAsset(getAssets(),…

Manoj Fegde
- 4,786
- 15
- 50
- 95
4
votes
2 answers
Android applications font size changes according to the defined font size in settings
I have developed an android application to work with small, medium and large screen sized devices.
But recently I came across the following issue.
When I go to the settings and change the font size to Extra Large instead of default Medium size …

JibW
- 4,538
- 17
- 66
- 101
4
votes
2 answers
Change font of list fragment on Detail fragment
I am trying to implement fragment using android 4.0.
I have added the three items in list fragment in my DummyContent.java file
static {
// Add 3 sample items.
addItem(new DummyItem("1", "Videos"));
addItem(new DummyItem("2",…

Hemantwagh07
- 1,516
- 1
- 15
- 27
4
votes
1 answer
Make My Own font for android
Hi I want to make my own font for arabic text in android. I've googled and I found tools like font struct and others. the question is I think that those tools will make me generate ttf font that is not specific for android and it might not look good…

FAFI
- 379
- 2
- 6
- 21
3
votes
2 answers
Can i change the language of android app?
I am developing news application for Gujarati Language.
Now my problem is that its working well but it shows Squares([]) instead of fonts, so how can i make it visible in Gujarati language so it can display Gujarati fonts .
Thank you in advance.

js salat
- 53
- 1
- 5
3
votes
2 answers
android : i want use my custom font with WebViewb
i want use my custom font with WebViewb
my html file loaded in webView but still without font
my font has Unicode characters
i work on android 2.2
mWebView.loadUrl("file:///android_asset/P_007.html");
my css:
If I set it to TextView in xml via textAppearance like android:textAppearance="@style/Text.Italic" in design time it…

Axbor Axrorov
- 2,720
- 2
- 17
- 35
3
votes
2 answers
Font resources not working properly with font when using Html texts
I was using calligraphy before the Font resources, one we see this we moved to Font resources and all works well,only one problem i am getting if my text view content is html and bold attribute(),its not highlighting, but if i remove the Font…

Ramz
- 7,116
- 6
- 63
- 88
3
votes
1 answer
How to manage android text size?
Take this textview snippet for example:

Shikhar Mainalee
- 211
- 1
- 12
3
votes
3 answers
android.support.v7.widget.AppCompatCheckBox fontfamily not applied on runtime
I am updating font in my application by using the support library. Font is not getting updated on AppCompatCheckBox at runtime but in layout preview it is working fine. There are two styles.xml files in my application and I applied AppBaseTheme to…

Himanshu
- 454
- 6
- 14