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
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
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: create
52:	setTypeface(Typeface.SERIF); 
-
55:	setTypeface(Typeface.create(Typeface.SERIF, Typeface.BOLD)); 
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: setTypeface
55:	typefaceMap.put(typeface, font); 
-
125:	view.setTypeface(typeface); 
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
This code example shows how to use the following methods: getStyle
125:	+ " " + sStyleName[tf.getStyle()] 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getStyle
267:	int typefaceStyle = tf != null ? tf.getStyle() : 0; 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getStyle
176:	int typefaceStyle = tf != null ? tf.getStyle() : 0; 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getStyle
38:	int fake = oldStyle & ~tf.getStyle(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getStyle
32:	oldStyle = old.getStyle(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: equals
58:	if (getTypeface().equals(SAN_SERIF_BOLD)) { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getStyle
30:	return typeFace.getStyle(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getStyle
97:	int fake = oldStyle & ~tf.getStyle(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getStyle
133:	int fake = oldStyle & ~tf.getStyle(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getStyle
32:	oldStyle = old.getStyle(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getStyle
293:	int typefaceStyle = tf != null ? tf.getStyle() : 0; 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getStyle
448:	int typefaceStyle = tf != null ? tf.getStyle() : 0; 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: create
78:	setTypeface(Typeface.SERIF); 
-
80:	setTypeface(Typeface.create(Typeface.SERIF, Typeface.BOLD)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: create
77:	setTypeface(Typeface.SERIF); 
-
79:	setTypeface(Typeface.create(Typeface.SERIF, Typeface.BOLD)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: create
34:	type = Typeface.create(Typeface.MONOSPACE, Typeface.NORMAL); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: create
49:	Typeface tf=Typeface.create(Typeface.SERIF, Typeface.ITALIC); 
-
52:	tf=Typeface.create(Typeface.SERIF, Typeface.ITALIC | Typeface.BOLD); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: create
197:	this.typeface = Typeface.create(family, androidStyle); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: create
77:	setTypeface(Typeface.SERIF); 
-
79:	setTypeface(Typeface.create(Typeface.SERIF, Typeface.BOLD)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: create
725:	Typeface.create(Typeface.SERIF, Typeface.NORMAL)); 
-
727:	Typeface.create(Typeface.SERIF, Typeface.BOLD)); 
-
729:	Typeface.create(Typeface.SERIF, Typeface.ITALIC)); 
-
731:	Typeface.create(Typeface.SERIF, Typeface.BOLD_ITALIC)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: create
24:	Font font = FontFactory.create(fontManager, textureManager, 256, 256, Typeface.create(Typeface.DEFAULT, Typeface.NORMAL), 18); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: create
47:	textView5.setTypeface(Typeface.create(Typeface.SERIF, Typeface.BOLD)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: create
173:	Typeface font = Typeface.create(Typeface.DEFAULT_BOLD, Typeface.BOLD);//黑体,加粗 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: create
190:	paint.setTypeface(Typeface.create(Typeface.SANS_SERIF, Typeface.NORMAL)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: create
45:	Typeface.create(Typeface.DEFAULT, Typeface.BOLD), 32); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: create
41:	.create(Typeface.SERIF, Typeface.NORMAL); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: create
17:	mTypeface = Typeface.create(Typeface.DEFAULT, Typeface.NORMAL); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: create
121:	paint.setTypeface( Typeface.create( Typeface.SANS_SERIF, Typeface.BOLD ) ); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: create
54:	Typeface font2 = Typeface.create(Typeface.SANS_SERIF, Typeface.BOLD); 
-
60:	Typeface font3 = Typeface.create(Typeface.SANS_SERIF, Typeface.BOLD); 
-
66:	Typeface font4 = Typeface.create(Typeface.SANS_SERIF, Typeface.BOLD); 
-
72:	Typeface font5 = Typeface.create(Typeface.SANS_SERIF, Typeface.BOLD); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: create
41:	.create(Typeface.SERIF, Typeface.NORMAL); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: create
74:	Typeface font2 = Typeface.create(Typeface.SANS_SERIF, Typeface.BOLD); 
-
80:	Typeface font3 = Typeface.create(Typeface.SANS_SERIF, Typeface.BOLD); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: create
67:	mTextPaint.setTypeface(Typeface.create(Typeface.SERIF, Typeface.BOLD)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: create
27:	private final static Typeface tfMono = Typeface.create(Typeface.MONOSPACE, Typeface.NORMAL); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: create
114:	pnt.setTypeface(Typeface.create(Typeface.SANS_SERIF, Typeface.BOLD)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: isBold
195:	return typeface != null && typeface.isBold(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: isBold
146:	return typeface != null && typeface.isBold(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: create
26:	font = Typeface.create(Typeface.DEFAULT, format); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: create
57:	Typeface font = Typeface.create(Typeface.SANS_SERIF, Typeface.BOLD); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: isBold
115:	return typeface != null && typeface.isBold(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: equals
57:	if (getTypeface().equals(SAN_SERIF_BOLD)) { 
Full Snippet Info
4
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

See Code Examples for Android Typeface Methods: