Linked Questions

276 votes
25 answers
163k views

I need to use certain font for my entire application. I have .ttf file for the same. Is it possible to set this as default font, at application start up and then use it elsewhere in the application? ...
Samuh's user avatar
  • 36.5k
349 votes
16 answers
372k views

I'm using the Roboto light font in my app. To set the font I've to add the android:fontFamily="sans-serif-light" to every view. Is there any way to declare the Roboto font as default font family to ...
tomrozb's user avatar
  • 26.3k
269 votes
21 answers
257k views

I applied a custom font to a TextView, but it doesn't seems to change the typeface. Here is my code: Typeface myTypeface = Typeface.createFromAsset(getAssets(), "fonts/myFont.ttf"); TextView ...
RATTLESNAKE's user avatar
  • 3,228
155 votes
15 answers
122k views

I'm trying to use Font Awesome on my application, I was able to integrate the font using Typeface.createFromAsset(), but I also want to use the icons provided by this font, but so far I haven't been ...
Julian Suarez's user avatar
97 votes
15 answers
116k views

Is it possible to set a custom font in an Android application? I tried what is posted here, but I don't know where my extends Application class is... Any help? EDIT: I tried the following: Add an ...
Sonhja's user avatar
  • 8,510
101 votes
12 answers
83k views

Is it possible to set any custom font in every control of the application? And not necessarily runtime ? (i.e. from xml if possible or only once for whole application in JAVA file) I can set the font ...
Prasham's user avatar
  • 6,696
39 votes
7 answers
54k views

I have already read some articles and searched on Google, but I failed to do it. My problem is regarding the font-face. In Android, there are only 4 attributes in "android:typeface": Normal, Sans, ...
Paresh Mayani's user avatar
45 votes
6 answers
38k views

Is there any way to add custom fonts in Themes in Android? I have read Quick Tip: Customize Android Fonts, but here we have to programmetrically add custom font to text. TextView txt = (TextView) ...
Gaurav Vashisth's user avatar
9 votes
8 answers
23k views

I'm using a custom font throughout my application (which, incidentally, I've frustratingly found out that you have to apply programmatically by hand to EVERY control!), and I need to apply it to a ...
tiswas's user avatar
  • 2,111
8 votes
7 answers
30k views

I have developed an Andriod RSS reader app.I have used custom listview to list RSS titles and its images.Now I want to change the font of RSS titles.How can I set typeface to my title textview? Here ...
Basim Sherif's user avatar
  • 5,438
6 votes
3 answers
9k views

I'm trying to Customize button with two TextView with different typeface within a single button. For that I just extended Button and with have written the following code inside the constructor, ...
Vignesh's user avatar
  • 3,611
4 votes
3 answers
6k views

Okay, I know how to change what font is used on individual textboxes in my app, but I want ALL the text in my app to use this custom font and color, and currently the only way I can think of to do his ...
Kit Ramos's user avatar
  • 1,929
5 votes
3 answers
5k views

<?xml version="1.0" encoding="utf-8"?> <resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="TextViewAppearance" parent="@android:style/TextAppearance....
Ali's user avatar
  • 3,665
3 votes
3 answers
7k views

I want to force Android's default font (Roboto in ICS and something else in older ones) to all the TextViews in my android app. It should not change when user changes it from the System preferences. ...
Sudarshan Bhat's user avatar
2 votes
1 answer
3k views

I wanna use custom font file. For that below is my code XML file: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" ...
Jyosna's user avatar
  • 4,432

15 30 50 per page