Best code examples for Android Typeface class (android.graphics.Typeface)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android Typeface class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android Typeface examples from Open Source projects
Examples using Android Typeface create method:
This code example shows how to use the following methods: create, getStyle
88:	oldStyle = old.getStyle(); 
-
97:	tf = Typeface.create(old, want); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: create
32:	Typeface.create(Typeface.SERIF, 0), 
33:	Typeface.create(Typeface.SERIF, 1), 
34:	Typeface.create(Typeface.SERIF, 2), 
35:	Typeface.create(Typeface.SERIF, 3), 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: create, getStyle
220:	style = tf.getStyle(); 
-
230:	tf = Typeface.create(tf, style); 
Full Snippet Info
6
CodeRank
Examples using Android Typeface getStyle method:
This code example shows how to use the following methods: getStyle
77:	int fake = oldStyle & ~aType.getStyle(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getStyle
80:	oldStyle = old.getStyle(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getStyle
237:	final int typefaceStyle = tf != null ? tf.getStyle() : 0; 
Full Snippet Info
5
CodeRank
Related Android Typeface Questions & Answers:
Other Android Typeface Examples
18:	        // Loading Font Face
19:	        Typeface tf = Typeface.createFromAsset(getAssets(), fontPath);
20:	
21:	        // Applying font
22:	        txtGhost.setTypeface(tf);

Read More

Typeface Class Overview
The Typeface class specifies the typeface and intrinsic style of a font. This is used in the paint, along with optionally Paint settings like textSize, textSkewX, textSca...
Methods
  • create
    Create a typeface object given a family name, and option style information.
  • getStyle
    Returns the typeface's intrinsic style attributes