Home
last modified time | relevance | path

Searched refs:typeface (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/minikin/libs/minikin/
DFontFamily.cpp99 mFonts[i].typeface->UnrefLocked(); in ~FontFamily()
103 bool FontFamily::addFont(MinikinFont* typeface) { in addFont() argument
107 bool ok = typeface->GetTable(os2Tag, NULL, &os2Size); in addFont()
110 ok = typeface->GetTable(os2Tag, os2Data.get(), &os2Size); in addFont()
117 addFontLocked(typeface, style); in addFont()
125 void FontFamily::addFont(MinikinFont* typeface, FontStyle style) { in addFont() argument
127 addFontLocked(typeface, style); in addFont()
130 void FontFamily::addFontLocked(MinikinFont* typeface, FontStyle style) { typeface->RefLocked(); in addFontLocked() argument
131 mFonts.push_back(Font(typeface, style)); in addFontLocked()
170 result.font = bestFont->typeface; in getClosestMatch()
[all …]
DMinikinFontFreeType.cpp32 MinikinFontFreeType::MinikinFontFreeType(FT_Face typeface) : in MinikinFontFreeType() argument
33 mTypeface(typeface) { in MinikinFontFreeType()
DFontCollection.cpp51 MinikinFont* typeface = family->getClosestMatch(defaultStyle).font; in FontCollection() local
52 if (typeface == NULL) { in FontCollection()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java147 Typeface typeface; in create() local
151 typeface = styles.get(style); in create()
152 if (typeface != null) { in create()
153 return typeface; in create()
157 typeface = new Typeface(nativeCreateFromTypeface(ni, style)); in create()
162 styles.put(style, typeface); in create()
164 return typeface; in create()
297 Typeface typeface; in init() local
303 typeface = sDefaultTypeface; in init()
307 typeface = Typeface.createFromFamiliesWithDefault(families); in init()
[all …]
DPaint.java1071 public Typeface setTypeface(Typeface typeface) { in setTypeface() argument
1073 if (typeface != null) { in setTypeface()
1074 typefaceNative = typeface.native_instance; in setTypeface()
1077 mTypeface = typeface; in setTypeface()
1079 return typeface; in setTypeface()
2466 long typeface); in native_setTypeface() argument
/frameworks/minikin/include/minikin/
DFontFamily.h131 bool addFont(MinikinFont* typeface);
133 void addFont(MinikinFont* typeface, FontStyle style);
148 void addFontLocked(MinikinFont* typeface, FontStyle style);
152 Font(MinikinFont* typeface, FontStyle style) : in Font() argument
153 typeface(typeface), style(style) { } in Font()
154 MinikinFont* typeface; variable
DMinikinFontFreeType.h41 explicit MinikinFontFreeType(FT_Face typeface);
DLineBreaker.h161 float addStyleRun(MinikinPaint* paint, const FontCollection* typeface, FontStyle style,
/frameworks/base/core/jni/android/graphics/
DPaint.cpp498 TypefaceImpl* typeface = getNativeTypeface(env, jpaint); in getMetricsInternal() local
499 typeface = TypefaceImpl_resolveDefault(typeface); in getMetricsInternal()
500 FakedFont baseFont = typeface->fFontCollection->baseFontFaked(typeface->fStyle); in getMetricsInternal()
591 TypefaceImpl* typeface = getNativeTypeface(env, jpaint); in measureText_CIII() local
592 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, textArray + index, 0, count, in measureText_CIII()
619 TypefaceImpl* typeface = getNativeTypeface(env, jpaint); in measureText_StringIII() local
622 … MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, textArray + start, 0, count, count); in measureText_StringIII()
643 TypefaceImpl* typeface = getNativeTypeface(env, jpaint); in measureText_StringI() local
644 … MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, textArray, 0, textLength, textLength); in measureText_StringI()
651 …static int dotextwidths(JNIEnv* env, Paint* paint, TypefaceImpl* typeface, const jchar text[], int… in dotextwidths() argument
[all …]
DMinikinUtils.cpp30 const Paint* paint, TypefaceImpl* typeface) { in prepareMinikinPaint() argument
31 const TypefaceImpl* resolvedFace = TypefaceImpl_resolveDefault(typeface); in prepareMinikinPaint()
57 TypefaceImpl* typeface, const uint16_t* buf, size_t start, size_t count, in doLayout() argument
61 FontStyle minikinStyle = prepareMinikinPaint(&minikinPaint, &font, paint, typeface); in doLayout()
DTypefaceImpl.cpp42 static void resolveStyle(TypefaceImpl* typeface) { in resolveStyle() argument
43 int weight = typeface->fBaseWeight / 100; in resolveStyle()
44 if (typeface->fSkiaStyle & SkTypeface::kBold) { in resolveStyle()
50 bool italic = (typeface->fSkiaStyle & SkTypeface::kItalic) != 0; in resolveStyle()
51 typeface->fStyle = FontStyle(weight, italic); in resolveStyle()
DHarfBuzzNGFaceSkia.cpp142 SkTypeface* typeface = reinterpret_cast<SkTypeface*>(userData); in harfbuzzSkiaReferenceTable() local
144 const size_t tableSize = typeface->getTableSize(tag); in harfbuzzSkiaReferenceTable()
151 size_t actualSize = typeface->getTableData(tag, 0, tableSize, buffer); in harfbuzzSkiaReferenceTable()
DMinikinUtils.h37 const Paint* paint, TypefaceImpl* typeface);
40 TypefaceImpl* typeface, const uint16_t* buf, size_t start, size_t count,
DMinikinSkia.cpp27 MinikinFontSkia::MinikinFontSkia(SkTypeface *typeface) : in MinikinFontSkia() argument
28 mTypeface(typeface) { in MinikinFontSkia()
DMinikinSkia.h27 explicit MinikinFontSkia(SkTypeface *typeface);
/frameworks/minikin/sample/
DMinikinSkia.cpp9 MinikinFontSkia::MinikinFontSkia(SkTypeface *typeface) : in MinikinFontSkia() argument
10 mTypeface(typeface) { in MinikinFontSkia()
28 static void MinikinFontSkia_SetSkiaPaint(SkTypeface* typeface, SkPaint* skPaint, const MinikinPaint… in MinikinFontSkia_SetSkiaPaint() argument
29 skPaint->setTypeface(typeface); in MinikinFontSkia_SetSkiaPaint()
DMinikinSkia.h5 explicit MinikinFontSkia(SkTypeface *typeface);
/frameworks/base/libs/hwui/
DTextDropShadowCache.cpp39 hash = JenkinsHashMix(hash, android::hash_type(typeface)); in hash()
65 if (lhs.typeface < rhs.typeface) return -1; in compare()
66 if (lhs.typeface > rhs.typeface) return +1; in compare()
DTextDropShadowCache.h37 ShadowText(): len(0), radius(0.0f), textSize(0.0f), typeface(nullptr), in ShadowText()
49 typeface = paint->getTypeface(); in ShadowText()
89 SkTypeface* typeface; member
/frameworks/base/core/jni/
Dandroid_graphics_Canvas.cpp500 float x, float y, int bidiFlags, const Paint& origPaint, TypefaceImpl* typeface) { in drawText() argument
505 MinikinUtils::doLayout(&layout, &paint, bidiFlags, typeface, text, start, count, contextCount); in drawText()
532 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); in drawTextChars() local
535 bidiFlags, *paint, typeface); in drawTextChars()
543 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); in drawTextString() local
547 bidiFlags, *paint, typeface); in drawTextString()
555 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); in drawTextRunChars() local
560 contextCount, x, y, bidiFlags, *paint, typeface); in drawTextRunChars()
569 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); in drawTextRunString() local
576 contextCount, x, y, bidiFlags, *paint, typeface); in drawTextRunString()
[all …]
Dandroid_text_StaticLayout.cpp149 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(nativeTypeface); in nAddStyleRun() local
152 FontStyle style = MinikinUtils::prepareMinikinPaint(&minikinPaint, &font, paint, typeface); in nAddStyleRun()
/frameworks/base/core/java/com/android/internal/widget/
DSubtitleView.java195 public void setTypeface(Typeface typeface) { in setTypeface() argument
196 if (mTextPaint.getTypeface() != typeface) { in setTypeface()
197 mTextPaint.setTypeface(typeface); in setTypeface()
283 final Typeface typeface = style.getTypeface(); in setStyle() local
284 setTypeface(typeface); in setStyle()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DCanvas_Delegate.java852 float startX, float startY, int flags, long paint, long typeface) { in native_drawText() argument
854 paint, typeface); in native_drawText()
860 long typeface) { in native_drawText() argument
865 native_drawText(nativeCanvas, buffer, 0, count, x, y, flags, paint, typeface); in native_drawText()
871 float x, float y, boolean isRtl, long paint, long typeface) { in native_drawTextRun() argument
876 drawText(nativeCanvas, buffer, 0, count, x, y, isRtl, paint, typeface); in native_drawTextRun()
882 float x, float y, boolean isRtl, long paint, long typeface) { in native_drawTextRun() argument
883 drawText(nativeCanvas, text, start, count, x, y, isRtl, paint, typeface); in native_drawTextRun()
892 long paint, long typeface) { in native_drawTextOnPath() argument
904 long typeface) { in native_drawTextOnPath() argument
[all …]
/frameworks/support/design/src/android/support/design/widget/
DCollapsingTextHelper.java218 void setTypeface(Typeface typeface) { in setTypeface() argument
219 if (typeface == null) { in setTypeface()
220 typeface = Typeface.DEFAULT; in setTypeface()
222 if (mTextPaint.getTypeface() != typeface) { in setTypeface()
223 mTextPaint.setTypeface(typeface); in setTypeface()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
DRadialTextsView.java268 private void drawTexts(Canvas canvas, float textSize, Typeface typeface, String[] texts, in drawTexts() argument
271 mPaint.setTypeface(typeface); in drawTexts()

12