Home
last modified time | relevance | path

Searched refs:mTypeface (Results 1 – 12 of 12) sorted by relevance

/frameworks/minikin/libs/minikin/
DMinikinFontFreeType.cpp34 mTypeface(typeface) { in MinikinFontFreeType()
38 FT_Done_Face(mTypeface); in ~MinikinFontFreeType()
43 FT_Set_Pixel_Sizes(mTypeface, 0, paint.size); in GetHorizontalAdvance()
46 FT_Get_Advance(mTypeface, glyph_id, flags, &advance); in GetHorizontalAdvance()
57 FT_Error error = FT_Load_Sfnt_Table(mTypeface, tag, 0, nullptr, &ftsize); in GetTable()
65 error = FT_Load_Sfnt_Table(mTypeface, tag, 0, buf, &ftsize); in GetTable()
79 error = FT_Load_Glyph(mTypeface, glyph_id, load_flags); in Render()
83 error = FT_Render_Glyph(mTypeface->glyph, FT_RENDER_MODE_NORMAL); in Render()
87 FT_Bitmap &bitmap = mTypeface->glyph->bitmap; in Render()
91 result->left = mTypeface->glyph->bitmap_left; in Render()
[all …]
/frameworks/base/core/java/android/text/style/
DTextAppearanceSpan.java33 private final String mTypeface; field in TextAppearanceSpan
73 mTypeface = family; in TextAppearanceSpan()
79 mTypeface = "sans"; in TextAppearanceSpan()
83 mTypeface = "serif"; in TextAppearanceSpan()
87 mTypeface = "monospace"; in TextAppearanceSpan()
91 mTypeface = null; in TextAppearanceSpan()
115 mTypeface = family; in TextAppearanceSpan()
123 mTypeface = src.readString(); in TextAppearanceSpan()
157 dest.writeString(mTypeface); in writeToParcelInternal()
179 return mTypeface; in getFamily()
[all …]
/frameworks/minikin/sample/
DMinikinSkia.cpp11 mTypeface(typeface) { in MinikinFontSkia()
15 SkSafeUnref(mTypeface); in ~MinikinFontSkia()
30 MinikinFontSkia_SetSkiaPaint(mTypeface, &skPaint, paint); in GetHorizontalAdvance()
33 ALOGD("width for typeface %d glyph %d = %f", mTypeface->uniqueID(), glyph_id in GetHorizontalAdvance()
43 MinikinFontSkia_SetSkiaPaint(mTypeface, &skPaint, paint);
53 const size_t tableSize = mTypeface->getTableSize(tag);
62 mTypeface->getTableData(tag, 0, tableSize, buf);
68 return mTypeface;
DMinikinSkia.h20 SkTypeface *mTypeface;
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.cpp27 MinikinFont(typeface->uniqueID()), mTypeface(typeface), mFontData(fontData), in MinikinFontSkia()
32 SkSafeUnref(mTypeface); in ~MinikinFontSkia()
53 ALOGD("width for typeface %d glyph %d = %f", mTypeface->uniqueID(), glyph_id, skWidth); in GetHorizontalAdvance()
73 const size_t tableSize = mTypeface->getTableSize(tag); in GetTable()
82 mTypeface->getTableData(tag, 0, tableSize, buf); in GetTable()
88 return mTypeface; in GetSkTypeface()
DMinikinSkia.h57 SkTypeface* mTypeface;
/frameworks/minikin/tests/
DMinikinFontForTest.cpp31 mTypeface(typeface), in MinikinFontForTest()
51 const size_t tableSize = mTypeface->getTableSize(tag); in GetTable()
60 mTypeface->getTableData(tag, 0, tableSize, buf); in GetTable()
DMinikinFontForTest.h38 SkTypeface *mTypeface;
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPaint_Delegate.java84 private Typeface_Delegate mTypeface; field in Paint_Delegate
897 if (delegate.mTypeface != typefaceDelegate || delegate.mNativeTypeface != typeface) { in nSetTypeface()
898 delegate.mTypeface = Typeface_Delegate.getDelegate(typeface); in nSetTypeface()
1195 if (mTypeface != paint.mTypeface || mNativeTypeface != paint.mNativeTypeface) { in set()
1196 mTypeface = paint.mTypeface; in set()
1238 mTypeface = Typeface_Delegate.getDelegate(Typeface.sDefaults[0].native_instance); in reset()
1260 if (mTypeface != null) { in updateFontObject()
1262 List<Font> fonts = mTypeface.getFonts(mFontVariant); in updateFontObject()
/frameworks/minikin/include/minikin/
DMinikinFontFreeType.h64 FT_Face mTypeface;
/frameworks/base/graphics/java/android/graphics/
DPaint.java63 private Typeface mTypeface; field in Paint
497 mTypeface = null; in reset()
535 mTypeface = paint.mTypeface; in setClassVariablesFrom()
1173 return mTypeface; in getTypeface()
1191 mTypeface = typeface; in setTypeface()
/frameworks/base/core/java/android/widget/
DRadialTimePickerView.java138 private final Typeface mTypeface; field in RadialTimePickerView
337 mTypeface = Typeface.create("sans-serif", Typeface.NORMAL); in RadialTimePickerView()
743 drawTextElements(canvas, mTextSize[HOURS], mTypeface, mTextColor[HOURS], mOuterTextHours, in drawHoursClipped()
749 drawTextElements(canvas, mTextSize[HOURS_INNER], mTypeface, mTextColor[HOURS_INNER], in drawHoursClipped()
775 drawTextElements(canvas, mTextSize[MINUTES], mTypeface, mTextColor[MINUTES], mMinutesText, in drawMinutesClipped()