/frameworks/minikin/libs/minikin/ |
D | FontFamily.cpp | 98 mFonts[i].typeface->UnrefLocked(); in ~FontFamily() 102 bool FontFamily::addFont(MinikinFont* typeface) { in addFont() argument 106 bool ok = typeface->GetTable(os2Tag, NULL, &os2Size); in addFont() 109 ok = typeface->GetTable(os2Tag, os2Data.get(), &os2Size); in addFont() 116 addFontLocked(typeface, style); in addFont() 124 void FontFamily::addFont(MinikinFont* typeface, FontStyle style) { in addFont() argument 126 addFontLocked(typeface, style); in addFont() 129 void FontFamily::addFontLocked(MinikinFont* typeface, FontStyle style) { typeface->RefLocked(); in addFontLocked() argument 130 mFonts.push_back(Font(typeface, style)); in addFontLocked() 168 result.font = bestFont->typeface; in getClosestMatch() [all …]
|
D | FontCollection.cpp | 52 MinikinFont* typeface = family->getClosestMatch(defaultStyle).font; in FontCollection() local 53 if (typeface == NULL) { in FontCollection() 63 ALOGD("closest match = %p, family size = %d\n", typeface, family->getNumFonts()); in FontCollection() 67 bool ok = typeface->GetTable(cmapTag, NULL, &cmapSize); in FontCollection() 69 ok = typeface->GetTable(cmapTag, cmapData.get(), &cmapSize); in FontCollection()
|
D | MinikinFontFreeType.cpp | 32 MinikinFontFreeType::MinikinFontFreeType(FT_Face typeface) : in MinikinFontFreeType() argument 33 mTypeface(typeface) { in MinikinFontFreeType()
|
/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 | 1060 public Typeface setTypeface(Typeface typeface) { in setTypeface() argument 1062 if (typeface != null) { in setTypeface() 1063 typefaceNative = typeface.native_instance; in setTypeface() 1066 mTypeface = typeface; in setTypeface() 1068 return typeface; in setTypeface() 2250 long typeface); in native_setTypeface() argument
|
/frameworks/minikin/include/minikin/ |
D | FontFamily.h | 130 bool addFont(MinikinFont* typeface); 132 void addFont(MinikinFont* typeface, FontStyle style); 143 void addFontLocked(MinikinFont* typeface, FontStyle style); 147 Font(MinikinFont* typeface, FontStyle style) : in Font() argument 148 typeface(typeface), style(style) { } in Font() 149 MinikinFont* typeface; variable
|
D | MinikinFontFreeType.h | 41 explicit MinikinFontFreeType(FT_Face typeface);
|
/frameworks/base/core/jni/android/graphics/ |
D | Paint.cpp | 440 TypefaceImpl* typeface = GraphicsJNI::getNativeTypeface(env, jpaint); in getMetricsInternal() local 441 typeface = TypefaceImpl_resolveDefault(typeface); in getMetricsInternal() 442 FakedFont baseFont = typeface->fFontCollection->baseFontFaked(typeface->fStyle); in getMetricsInternal() 533 TypefaceImpl* typeface = GraphicsJNI::getNativeTypeface(env, jpaint); in measureText_CIII() local 534 … MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, textArray, index, count, textLength); in measureText_CIII() 560 TypefaceImpl* typeface = GraphicsJNI::getNativeTypeface(env, jpaint); in measureText_StringIII() local 561 … MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, textArray, start, count, textLength); in measureText_StringIII() 582 TypefaceImpl* typeface = GraphicsJNI::getNativeTypeface(env, jpaint); in measureText_StringI() local 583 … MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, textArray, 0, textLength, textLength); in measureText_StringI() 590 …static int dotextwidths(JNIEnv* env, Paint* paint, TypefaceImpl* typeface, const jchar text[], int… in dotextwidths() argument [all …]
|
D | TypefaceImpl.cpp | 43 static void resolveStyle(TypefaceImpl* typeface) { in resolveStyle() argument 44 int weight = typeface->fBaseWeight / 100; in resolveStyle() 45 if (typeface->fSkiaStyle & SkTypeface::kBold) { in resolveStyle() 51 bool italic = (typeface->fSkiaStyle & SkTypeface::kItalic) != 0; in resolveStyle() 52 typeface->fStyle = FontStyle(weight, italic); in resolveStyle()
|
D | HarfBuzzNGFaceSkia.cpp | 140 SkTypeface* typeface = reinterpret_cast<SkTypeface*>(userData); in harfbuzzSkiaReferenceTable() local 142 const size_t tableSize = typeface->getTableSize(tag); in harfbuzzSkiaReferenceTable() 149 size_t actualSize = typeface->getTableData(tag, 0, tableSize, buffer); in harfbuzzSkiaReferenceTable()
|
D | MinikinUtils.cpp | 41 …d MinikinUtils::doLayout(Layout* layout, const Paint* paint, int bidiFlags, TypefaceImpl* typeface, in doLayout() argument 43 TypefaceImpl* resolvedFace = TypefaceImpl_resolveDefault(typeface); in doLayout()
|
D | MinikinSkia.cpp | 27 MinikinFontSkia::MinikinFontSkia(SkTypeface *typeface) : in MinikinFontSkia() argument 28 mTypeface(typeface) { in MinikinFontSkia()
|
D | MinikinSkia.h | 27 explicit MinikinFontSkia(SkTypeface *typeface);
|
D | MinikinUtils.h | 48 static void doLayout(Layout* layout, const Paint* paint, int bidiFlags, TypefaceImpl* 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 | 38 hash = JenkinsHashMix(hash, android::hash_type(typeface)); in hash() 63 if (lhs.typeface < rhs.typeface) return -1; in compare() 64 if (lhs.typeface > rhs.typeface) return +1; in compare()
|
D | TextDropShadowCache.h | 36 ShadowText(): len(0), radius(0.0f), textSize(0.0f), typeface(NULL), in ShadowText() 48 typeface = paint->getTypeface(); in ShadowText() 88 SkTypeface* typeface; member
|
/frameworks/base/core/jni/ |
D | android_graphics_Canvas.cpp | 482 float x, float y, int bidiFlags, const Paint& origPaint, TypefaceImpl* typeface) { in drawText() argument 487 MinikinUtils::doLayout(&layout, &paint, bidiFlags, typeface, text, start, count, contextCount); in drawText() 511 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); in drawTextChars() local 514 bidiFlags, *paint, typeface); in drawTextChars() 522 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); in drawTextString() local 526 bidiFlags, *paint, typeface); in drawTextString() 534 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); in drawTextRunChars() local 539 contextCount, x, y, bidiFlags, *paint, typeface); in drawTextRunChars() 548 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); in drawTextRunString() local 555 contextCount, x, y, bidiFlags, *paint, typeface); in drawTextRunString() [all …]
|
D | android_view_GLES20Canvas.cpp | 654 jfloat x, jfloat y, int bidiFlags, Paint* paint, TypefaceImpl* typeface) { in renderText() argument 656 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, text, 0, count, count); in renderText() 688 TypefaceImpl* typeface) { in renderTextOnPath() argument 690 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, text, 0, count, count); in renderTextOnPath() 702 int bidiFlags, Paint* paint, TypefaceImpl* typeface) { in renderTextRun() argument 704 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, text, start, count, contextCount); in renderTextRun() 715 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefacePtr); in android_view_GLES20Canvas_drawTextArray() local 717 renderText(renderer, textArray + index, count, x, y, bidiFlags, paint, typeface); in android_view_GLES20Canvas_drawTextArray() 727 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefacePtr); in android_view_GLES20Canvas_drawText() local 729 renderText(renderer, textArray + start, end - start, x, y, bidiFlags, paint, typeface); in android_view_GLES20Canvas_drawText() [all …]
|
/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 | 846 float startX, float startY, int flags, long paint, long typeface) { in native_drawText() argument 848 paint, typeface); in native_drawText() 854 long typeface) { in native_drawText() argument 859 native_drawText(nativeCanvas, buffer, 0, count, x, y, flags, paint, typeface); in native_drawText() 865 float x, float y, boolean isRtl, long paint, long typeface) { in native_drawTextRun() argument 870 drawText(nativeCanvas, buffer, 0, count, x, y, isRtl, paint, typeface); in native_drawTextRun() 876 float x, float y, boolean isRtl, long paint, long typeface) { in native_drawTextRun() argument 877 drawText(nativeCanvas, text, start, count, x, y, isRtl, paint, typeface); in native_drawTextRun() 886 long paint, long typeface) { in native_drawTextOnPath() argument 898 long typeface) { in native_drawTextOnPath() argument [all …]
|
D | Paint_Delegate.java | 888 /*package*/ static long native_setTypeface(long native_object, long typeface) { in native_setTypeface() argument 895 delegate.mTypeface = Typeface_Delegate.getDelegate(typeface); in native_setTypeface() 896 delegate.mNativeTypeface = typeface; in native_setTypeface() 898 return typeface; in native_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()
|
/frameworks/base/core/java/android/view/ |
D | GLES20Canvas.java | 884 float x, float y, int bidiFlags, long paint, long typeface); in nDrawText() argument 914 float x, float y, int bidiFlags, long paint, long typeface); in nDrawText() argument 935 long typeface); in nDrawTextOnPath() argument 947 long typeface); in nDrawTextOnPath() argument
|