Home
last modified time | relevance | path

Searched refs:Typeface (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DTypefaceTest.java20 import android.graphics.Typeface;
29 private final Typeface[] mFaces = new Typeface[] {
30 Typeface.create(Typeface.SANS_SERIF, 0),
31 Typeface.create(Typeface.SANS_SERIF, 1),
32 Typeface.create(Typeface.SERIF, 0),
33 Typeface.create(Typeface.SERIF, 1),
34 Typeface.create(Typeface.SERIF, 2),
35 Typeface.create(Typeface.SERIF, 3),
36 Typeface.create(Typeface.MONOSPACE, 0)
41 assertTrue("basic", Typeface.DEFAULT != null); in testBasic()
[all …]
/frameworks/base/graphics/java/android/graphics/
DTypeface.java29 public class Typeface { class
32 public static final Typeface DEFAULT;
38 public static final Typeface DEFAULT_BOLD;
40 public static final Typeface SANS_SERIF;
42 public static final Typeface SERIF;
44 public static final Typeface MONOSPACE;
46 /* package */ static Typeface[] sDefaults;
82 public static Typeface create(String familyName, int style) { in create()
83 return new Typeface(nativeCreate(familyName, style)); in create()
97 public static Typeface create(Typeface family, int style) { in create()
[all …]
DPaint.java40 private Typeface mTypeface;
943 public Typeface getTypeface() { in getTypeface()
956 public Typeface setTypeface(Typeface typeface) { in setTypeface()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DFontLoader.java23 import android.graphics.Typeface;
70 Typeface.ITALIC, Typeface.BOLD, Typeface.NORMAL
72 private static int[] DERIVE_ITALIC = new int[] { Typeface.NORMAL };
73 private static int[] DERIVE_BOLD = new int[] { Typeface.NORMAL };
237 if (mFontInfo.font[Typeface.NORMAL] != null) { in endElement()
241 if (mFontInfo.font[Typeface.BOLD_ITALIC] == null) { in endElement()
242 computeDerivedFont(Typeface.BOLD_ITALIC, DERIVE_BOLD_ITALIC); in endElement()
244 if (mFontInfo.font[Typeface.ITALIC] == null) { in endElement()
245 computeDerivedFont(Typeface.ITALIC, DERIVE_ITALIC); in endElement()
247 if (mFontInfo.font[Typeface.BOLD] == null) { in endElement()
[all …]
/frameworks/base/core/java/android/text/style/
DStyleSpan.java20 import android.graphics.Typeface;
84 Typeface old = paint.getTypeface(); in apply()
93 Typeface tf; in apply()
95 tf = Typeface.defaultFromStyle(want); in apply()
97 tf = Typeface.create(old, want); in apply()
102 if ((fake & Typeface.BOLD) != 0) { in apply()
106 if ((fake & Typeface.ITALIC) != 0) { in apply()
DTypefaceSpan.java20 import android.graphics.Typeface;
76 Typeface old = paint.getTypeface(); in apply()
83 Typeface tf = Typeface.create(family, oldStyle); in apply()
86 if ((fake & Typeface.BOLD) != 0) { in apply()
90 if ((fake & Typeface.ITALIC) != 0) { in apply()
DTextAppearanceSpan.java22 import android.graphics.Typeface;
215 Typeface tf = ds.getTypeface(); in updateMeasureState()
225 tf = Typeface.create(mTypeface, style); in updateMeasureState()
227 tf = Typeface.defaultFromStyle(style); in updateMeasureState()
229 tf = Typeface.create(tf, style); in updateMeasureState()
234 if ((fake & Typeface.BOLD) != 0) { in updateMeasureState()
238 if ((fake & Typeface.ITALIC) != 0) { in updateMeasureState()
/frameworks/base/core/java/com/android/internal/widget/
DDigitalClock.java26 import android.graphics.Typeface;
62 private static final Typeface sBackgroundFont;
63 private static final Typeface sForegroundFont;
66 sBackgroundFont = Typeface.createFromFile(SYSTEM_FONT_TIME_BACKGROUND);
67 sForegroundFont = Typeface.createFromFile(SYSTEM_FONT_TIME_FOREGROUND);
108 AmPm(View parent, Typeface tf) { in AmPm()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/
DHoloClock.java27 import android.graphics.Typeface;
60 private static Typeface sBackgroundType, sForegroundType, sSolidType;
80 sSolidType = Typeface.createFromFile(CLOCK_FONT); in onFinishInflate()
81 sBackgroundType = Typeface.createFromFile(CLOCK_BG_FONT); in onFinishInflate()
82 sForegroundType = Typeface.createFromFile(CLOCK_FG_FONT); in onFinishInflate()
/frameworks/base/core/java/android/widget/
DSwitch.java26 import android.graphics.Typeface;
211 Typeface tf = null; in setSwitchTypefaceByIndex()
214 tf = Typeface.SANS_SERIF; in setSwitchTypefaceByIndex()
218 tf = Typeface.SERIF; in setSwitchTypefaceByIndex()
222 tf = Typeface.MONOSPACE; in setSwitchTypefaceByIndex()
235 public void setSwitchTypeface(Typeface tf, int style) { in setSwitchTypeface()
238 tf = Typeface.defaultFromStyle(style); in setSwitchTypeface()
240 tf = Typeface.create(tf, style); in setSwitchTypeface()
247 mTextPaint.setFakeBoldText((need & Typeface.BOLD) != 0); in setSwitchTypeface()
248 mTextPaint.setTextSkewX((need & Typeface.ITALIC) != 0 ? -0.25f : 0); in setSwitchTypeface()
[all …]
DTextView.java36 import android.graphics.Typeface;
1127 Typeface tf = null; in setTypefaceByIndex()
1130 tf = Typeface.SANS_SERIF; in setTypefaceByIndex()
1134 tf = Typeface.SERIF; in setTypefaceByIndex()
1138 tf = Typeface.MONOSPACE; in setTypefaceByIndex()
1212 public void setTypeface(Typeface tf, int style) { in setTypeface()
1215 tf = Typeface.defaultFromStyle(style); in setTypeface()
1217 tf = Typeface.create(tf, style); in setTypeface()
1224 mTextPaint.setFakeBoldText((need & Typeface.BOLD) != 0); in setTypeface()
1225 mTextPaint.setTextSkewX((need & Typeface.ITALIC) != 0 ? -0.25f : 0); in setTypeface()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DHtmlTest.java21 import android.graphics.Typeface;
60 assertEquals(Typeface.ITALIC, ((StyleSpan) spans[0]).getStyle()); in testBadHtml()
63 assertEquals(Typeface.BOLD, ((StyleSpan) spans[1]).getStyle()); in testBadHtml()
66 assertEquals(Typeface.ITALIC, ((StyleSpan) spans[2]).getStyle()); in testBadHtml()
188 s.setSpan(new StyleSpan(Typeface.BOLD), 6, s.length() - 6, in testMarkup()
193 s.setSpan(new StyleSpan(Typeface.ITALIC), 6, s.length() - 6, in testMarkup()
DSpannedTest.java19 import android.graphics.Typeface;
66 CharacterStyle mark = new StyleSpan(Typeface.BOLD); in testWrapParcel()
/frameworks/base/services/java/com/android/server/wm/
DWatermark.java24 import android.graphics.Typeface;
87 mTextPaint.setTypeface(Typeface.create(Typeface.SANS_SERIF, Typeface.BOLD)); in Watermark()
/frameworks/base/core/java/android/text/
DHtml.java30 import android.graphics.Typeface;
243 if ((s & Typeface.BOLD) != 0) { in withinParagraph()
246 if ((s & Typeface.ITALIC) != 0) { in withinParagraph()
333 if ((s & Typeface.BOLD) != 0) { in withinParagraph()
336 if ((s & Typeface.ITALIC) != 0) { in withinParagraph()
503 end(mSpannableStringBuilder, Bold.class, new StyleSpan(Typeface.BOLD)); in handleEndTag()
505 end(mSpannableStringBuilder, Bold.class, new StyleSpan(Typeface.BOLD)); in handleEndTag()
507 end(mSpannableStringBuilder, Italic.class, new StyleSpan(Typeface.ITALIC)); in handleEndTag()
509 end(mSpannableStringBuilder, Italic.class, new StyleSpan(Typeface.ITALIC)); in handleEndTag()
511 end(mSpannableStringBuilder, Italic.class, new StyleSpan(Typeface.ITALIC)); in handleEndTag()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DTypeface_Accessor.java25 Typeface.sDefaults = null; in resetDefaults()
DTypeface_Delegate.java82 public static List<Font> getFonts(Typeface typeface) { in getFonts()
205 mStyle = Typeface.NORMAL; in Typeface_Delegate()
DPaint_Delegate.java1135 mTypeface = Typeface_Delegate.getDelegate(Typeface.sDefaults[0].native_instance); in reset()
/frameworks/base/core/java/android/content/res/
DStringBlock.java25 import android.graphics.Typeface;
174 buffer.setSpan(new StyleSpan(Typeface.BOLD), in applyStyles()
178 buffer.setSpan(new StyleSpan(Typeface.ITALIC), in applyStyles()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DClock.java26 import android.graphics.Typeface;
/frameworks/base/policy/src/com/android/internal/policy/impl/
DIconUtilities.java35 import android.graphics.Typeface;
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java26 import android.graphics.Typeface;
700 paint.setTypeface(Typeface.DEFAULT_BOLD); in onBufferDraw()
703 paint.setTypeface(Typeface.DEFAULT); in onBufferDraw()
905 mPreviewText.setTypeface(Typeface.DEFAULT_BOLD); in showKey()
908 mPreviewText.setTypeface(Typeface.DEFAULT); in showKey()
/frameworks/base/core/java/android/app/
DProgressDialog.java148 tmp.setSpan(new StyleSpan(android.graphics.Typeface.BOLD), in onCreate()
/frameworks/base/core/jni/
DAndroid.mk120 android/graphics/Typeface.cpp \
/frameworks/base/docs/html/sdk/api_diff/4/
DmissingSinces.txt36 NO DOC BLOCK: android.graphics.Typeface Method createFromFile(java.io.File)
37 NO DOC BLOCK: android.graphics.Typeface Method createFromFile(java.lang.String)

12