/frameworks/minikin/libs/minikin/ |
D | FontFamily.cpp | 99 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 …]
|
D | MinikinFontFreeType.cpp | 32 MinikinFontFreeType::MinikinFontFreeType(FT_Face typeface) : in MinikinFontFreeType() argument 33 mTypeface(typeface) { in MinikinFontFreeType()
|
D | FontCollection.cpp | 51 MinikinFont* typeface = family->getClosestMatch(defaultStyle).font; in FontCollection() local 52 if (typeface == NULL) { in FontCollection()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Typeface.java | 147 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 …]
|
D | Paint.java | 1071 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/ |
D | FontFamily.h | 131 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
|
D | MinikinFontFreeType.h | 41 explicit MinikinFontFreeType(FT_Face typeface);
|
D | LineBreaker.h | 161 float addStyleRun(MinikinPaint* paint, const FontCollection* typeface, FontStyle style,
|
/frameworks/base/core/jni/android/graphics/ |
D | Paint.cpp | 498 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 …]
|
D | MinikinUtils.cpp | 30 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()
|
D | TypefaceImpl.cpp | 42 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()
|
D | HarfBuzzNGFaceSkia.cpp | 142 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()
|
D | MinikinUtils.h | 37 const Paint* paint, TypefaceImpl* typeface); 40 TypefaceImpl* typeface, const uint16_t* buf, size_t start, size_t count,
|
D | MinikinSkia.cpp | 27 MinikinFontSkia::MinikinFontSkia(SkTypeface *typeface) : in MinikinFontSkia() argument 28 mTypeface(typeface) { in MinikinFontSkia()
|
D | MinikinSkia.h | 27 explicit MinikinFontSkia(SkTypeface *typeface);
|
/frameworks/minikin/sample/ |
D | MinikinSkia.cpp | 9 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()
|
D | MinikinSkia.h | 5 explicit MinikinFontSkia(SkTypeface *typeface);
|
/frameworks/base/libs/hwui/ |
D | TextDropShadowCache.cpp | 39 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()
|
D | TextDropShadowCache.h | 37 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/ |
D | android_graphics_Canvas.cpp | 500 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 …]
|
D | android_text_StaticLayout.cpp | 149 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/ |
D | SubtitleView.java | 195 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/ |
D | Canvas_Delegate.java | 852 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/ |
D | CollapsingTextHelper.java | 218 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/ |
D | RadialTextsView.java | 268 private void drawTexts(Canvas canvas, float textSize, Typeface typeface, String[] texts, in drawTexts() argument 271 mPaint.setTypeface(typeface); in drawTexts()
|