Home
last modified time | relevance | path

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

123

/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/libs/hwui/hwui/
DTypeface.cpp37 static void resolveStyle(Typeface* typeface) { in resolveStyle()
49 Typeface* gDefaultTypeface = NULL;
91 gDefaultTypeface = new Typeface; in getDefaultTypefaceOnce()
99 Typeface* Typeface::resolveDefault(Typeface* src) { in resolveDefault()
108 Typeface* Typeface::createFromTypeface(Typeface* src, SkTypeface::Style style) { in createFromTypeface()
109 Typeface* resolvedFace = Typeface::resolveDefault(src); in createFromTypeface()
110 Typeface* result = new Typeface; in createFromTypeface()
121 Typeface* Typeface::createWeightAlias(Typeface* src, int weight) { in createWeightAlias()
122 Typeface* resolvedFace = Typeface::resolveDefault(src); in createWeightAlias()
123 Typeface* result = new Typeface; in createWeightAlias()
[all …]
DTypeface.h29 struct ANDROID_API Typeface { struct
42 static Typeface* resolveDefault(Typeface* src); argument
44 static Typeface* createFromTypeface(Typeface* src, SkTypeface::Style style);
46 static Typeface* createWeightAlias(Typeface* src, int baseweight);
48 static Typeface* createFromFamilies(const std::vector<FontFamily*>& families);
50 static void setDefault(Typeface* face);
DMinikinUtils.cpp28 const Paint* paint, Typeface* typeface) { in prepareMinikinPaint()
29 const Typeface* resolvedFace = Typeface::resolveDefault(typeface); in prepareMinikinPaint()
54 Typeface* typeface, const uint16_t* buf, size_t start, size_t count, in doLayout()
63 float MinikinUtils::measureText(const Paint* paint, int bidiFlags, Typeface* typeface, in measureText()
72 bool MinikinUtils::hasVariationSelector(Typeface* typeface, uint32_t codepoint, uint32_t vs) { in hasVariationSelector()
73 const Typeface* resolvedFace = Typeface::resolveDefault(typeface); in hasVariationSelector()
DMinikinUtils.h38 const Paint* paint, Typeface* typeface);
41 Typeface* typeface, const uint16_t* buf, size_t start, size_t count,
44 ANDROID_API static float measureText(const Paint* paint, int bidiFlags, Typeface* typeface,
47 … ANDROID_API static bool hasVariationSelector(Typeface* typeface, uint32_t codepoint, uint32_t vs);
/frameworks/base/graphics/java/android/graphics/
DTypeface.java44 public class Typeface { class
49 public static final Typeface DEFAULT;
55 public static final Typeface DEFAULT_BOLD;
57 public static final Typeface SANS_SERIF;
59 public static final Typeface SERIF;
61 public static final Typeface MONOSPACE;
63 static Typeface[] sDefaults;
64 private static final LongSparseArray<SparseArray<Typeface>> sTypefaceCache =
65 new LongSparseArray<SparseArray<Typeface>>(3);
70 private static final LruCache<String, Typeface> sDynamicTypefaceCache = new LruCache<>(16);
[all …]
/frameworks/base/core/jni/android/graphics/
DTypeface.cpp30 Typeface* family = reinterpret_cast<Typeface*>(familyHandle); in Typeface_createFromTypeface()
31 Typeface* face = Typeface::createFromTypeface(family, (SkTypeface::Style)style); in Typeface_createFromTypeface()
35 … face = Typeface::createFromTypeface(family, (SkTypeface::Style)(style ^ SkTypeface::kItalic)); in Typeface_createFromTypeface()
38 face = Typeface::createFromTypeface(family, (SkTypeface::Style)i); in Typeface_createFromTypeface()
44 Typeface* family = reinterpret_cast<Typeface*>(familyHandle); in Typeface_createWeightAlias()
45 Typeface* face = Typeface::createWeightAlias(family, weight); in Typeface_createWeightAlias()
50 Typeface* face = reinterpret_cast<Typeface*>(faceHandle); in Typeface_unref()
57 Typeface* face = reinterpret_cast<Typeface*>(faceHandle); in Typeface_getStyle()
68 return reinterpret_cast<jlong>(Typeface::createFromFamilies(familyVec)); in Typeface_createFromArray()
72 Typeface* face = reinterpret_cast<Typeface*>(faceHandle); in Typeface_setDefault()
[all …]
DPaint.cpp405 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in getMetricsInternal()
406 typeface = Typeface::resolveDefault(typeface); in getMetricsInternal()
477 static jfloat doTextAdvances(JNIEnv *env, Paint *paint, Typeface* typeface, in doTextAdvances()
513 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in getTextAdvances___CIIIII_FI()
526 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in getTextAdvances__StringIIIII_FI()
593 static void getTextPath(JNIEnv* env, Paint* paint, Typeface* typeface, const jchar* text, in getTextPath()
616 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in getTextPath___C()
627 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in getTextPath__String()
651 static int breakText(JNIEnv* env, const Paint& paint, Typeface* typeface, const jchar text[], in breakText()
688 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in breakTextC()
[all …]
/frameworks/base/core/java/android/text/style/
DStyleSpan.java20 import android.graphics.Typeface;
94 Typeface old = paint.getTypeface(); in apply()
103 Typeface tf; in apply()
105 tf = Typeface.defaultFromStyle(want); in apply()
107 tf = Typeface.create(old, want); in apply()
112 if ((fake & Typeface.BOLD) != 0) { in apply()
116 if ((fake & Typeface.ITALIC) != 0) { in apply()
DTypefaceSpan.java20 import android.graphics.Typeface;
86 Typeface old = paint.getTypeface(); in apply()
93 Typeface tf = Typeface.create(family, oldStyle); in apply()
96 if ((fake & Typeface.BOLD) != 0) { in apply()
100 if ((fake & Typeface.ITALIC) != 0) { in apply()
DTextAppearanceSpan.java22 import android.graphics.Typeface;
230 Typeface tf = ds.getTypeface(); in updateMeasureState()
240 tf = Typeface.create(mTypeface, style); in updateMeasureState()
242 tf = Typeface.defaultFromStyle(style); in updateMeasureState()
244 tf = Typeface.create(tf, style); in updateMeasureState()
249 if ((fake & Typeface.BOLD) != 0) { in updateMeasureState()
253 if ((fake & Typeface.ITALIC) != 0) { in updateMeasureState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DSegmentedButtons.java20 import android.graphics.Typeface;
34 private static final Typeface REGULAR = Typeface.create("sans-serif", Typeface.NORMAL);
35 private static final Typeface MEDIUM = Typeface.create("sans-serif-medium", Typeface.NORMAL);
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/span/
DLinkSpan.java20 import android.graphics.Typeface;
49 private static final Typeface TYPEFACE_MEDIUM =
50 Typeface.create("sans-serif-medium", Typeface.NORMAL);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUserDetailItemView.java23 import android.graphics.Typeface;
45 private Typeface mRegularTypeface;
46 private Typeface mActivatedTypeface;
72 mRegularTypeface = Typeface.create(a.getString(attr), 0 /* style */); in UserDetailItemView()
75 mActivatedTypeface = Typeface.create(a.getString(attr), 0 /* style */); in UserDetailItemView()
/frameworks/support/design/src/android/support/design/widget/
DCollapsingTextHelper.java27 import android.graphics.Typeface;
78 private Typeface mCollapsedTypeface;
79 private Typeface mExpandedTypeface;
80 private Typeface mCurrentTypeface;
259 private Typeface readFontFamilyTypeface(int resId) { in readFontFamilyTypeface()
265 return Typeface.create(family, Typeface.NORMAL); in readFontFamilyTypeface()
273 void setCollapsedTypeface(Typeface typeface) { in setCollapsedTypeface()
280 void setExpandedTypeface(Typeface typeface) { in setExpandedTypeface()
287 void setTypefaces(Typeface typeface) { in setTypefaces()
292 Typeface getCollapsedTypeface() { in getCollapsedTypeface()
[all …]
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
DRadialTextsView.java28 import android.graphics.Typeface;
46 private Typeface mTypefaceLight;
47 private Typeface mTypefaceRegular;
93 mTypefaceLight = Typeface.create(typefaceFamily, Typeface.NORMAL); in initialize()
95 mTypefaceRegular = Typeface.create(typefaceFamilyRegular, Typeface.NORMAL); in initialize()
268 private void drawTexts(Canvas canvas, float textSize, Typeface typeface, String[] texts, in drawTexts()
DAmPmCirclesView.java23 import android.graphics.Typeface;
82 Typeface tf = Typeface.create(typefaceFamily, Typeface.NORMAL); in initialize()
/frameworks/base/core/tests/coretests/src/android/graphics/
DPaintTest.java77 final Typeface fontTypeface = Typeface.createFromAsset( in testHintingWidth()
120 final Typeface fontTypeface = Typeface.createFromAsset( in testHasGlyph_variationSelectors()
/frameworks/base/services/core/java/com/android/server/wm/
DWatermark.java26 import android.graphics.Typeface;
91 mTextPaint.setTypeface(Typeface.create(Typeface.SANS_SERIF, Typeface.BOLD)); in Watermark()
/frameworks/base/core/java/android/view/accessibility/
DCaptioningManager.java25 import android.graphics.Typeface;
357 private Typeface mParsedTypeface;
468 public Typeface getTypeface() { in getTypeface()
470 mParsedTypeface = Typeface.create(mRawTypeface, Typeface.NORMAL); in getTypeface()
/frameworks/base/core/jni/
Dandroid_graphics_Canvas.cpp481 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in drawTextChars()
492 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in drawTextString()
504 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in drawTextRunChars()
518 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in drawTextRunString()
535 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in drawTextOnPathChars()
550 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in drawTextOnPathString()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSwitchCompat.java28 import android.graphics.Typeface;
323 Typeface tf = null; in setSwitchTypefaceByIndex()
326 tf = Typeface.SANS_SERIF; in setSwitchTypefaceByIndex()
330 tf = Typeface.SERIF; in setSwitchTypefaceByIndex()
334 tf = Typeface.MONOSPACE; in setSwitchTypefaceByIndex()
347 public void setSwitchTypeface(Typeface tf, int style) { in setSwitchTypeface()
350 tf = Typeface.defaultFromStyle(style); in setSwitchTypeface()
352 tf = Typeface.create(tf, style); in setSwitchTypeface()
359 mTextPaint.setFakeBoldText((need & Typeface.BOLD) != 0); in setSwitchTypeface()
360 mTextPaint.setTextSkewX((need & Typeface.ITALIC) != 0 ? -0.25f : 0); in setSwitchTypeface()
[all …]
/frameworks/base/core/java/android/widget/
DSwitch.java33 import android.graphics.Typeface;
348 Typeface tf = null; in setSwitchTypefaceByIndex()
351 tf = Typeface.SANS_SERIF; in setSwitchTypefaceByIndex()
355 tf = Typeface.SERIF; in setSwitchTypefaceByIndex()
359 tf = Typeface.MONOSPACE; in setSwitchTypefaceByIndex()
372 public void setSwitchTypeface(Typeface tf, int style) { in setSwitchTypeface()
375 tf = Typeface.defaultFromStyle(style); in setSwitchTypeface()
377 tf = Typeface.create(tf, style); in setSwitchTypeface()
384 mTextPaint.setFakeBoldText((need & Typeface.BOLD) != 0); in setSwitchTypeface()
385 mTextPaint.setTextSkewX((need & Typeface.ITALIC) != 0 ? -0.25f : 0); in setSwitchTypeface()
[all …]
/frameworks/base/core/java/android/text/
DHtml.java34 import android.graphics.Typeface;
527 if ((s & Typeface.BOLD) != 0) { in withinParagraph()
530 if ((s & Typeface.ITALIC) != 0) { in withinParagraph()
632 if ((s & Typeface.BOLD) != 0) { in withinParagraph()
635 if ((s & Typeface.ITALIC) != 0) { in withinParagraph()
868 end(mSpannableStringBuilder, Bold.class, new StyleSpan(Typeface.BOLD)); in handleEndTag()
870 end(mSpannableStringBuilder, Bold.class, new StyleSpan(Typeface.BOLD)); in handleEndTag()
872 end(mSpannableStringBuilder, Italic.class, new StyleSpan(Typeface.ITALIC)); in handleEndTag()
874 end(mSpannableStringBuilder, Italic.class, new StyleSpan(Typeface.ITALIC)); in handleEndTag()
876 end(mSpannableStringBuilder, Italic.class, new StyleSpan(Typeface.ITALIC)); in handleEndTag()
[all …]
/frameworks/base/telephony/java/android/telephony/
DSubscriptionInfo.java27 import android.graphics.Typeface;
219 paint.setTypeface(Typeface.create("sans-serif", Typeface.NORMAL)); in createIconBitmap()

123