/frameworks/minikin/libs/minikin/ |
H A D | FontFamily.cpp | 99 mFonts[i].typeface->UnrefLocked(); 103 bool FontFamily::addFont(MinikinFont* typeface) { argument 107 bool ok = typeface->GetTable(os2Tag, NULL, &os2Size); 110 ok = typeface->GetTable(os2Tag, os2Data.get(), &os2Size); 117 addFontLocked(typeface, style); 125 void FontFamily::addFont(MinikinFont* typeface, FontStyle style) { argument 127 addFontLocked(typeface, style); 130 void FontFamily::addFontLocked(MinikinFont* typeface, FontStyle style) { typeface->RefLocked(); argument 131 mFonts.push_back(Font(typeface, styl 191 MinikinFont* typeface = getClosestMatch(defaultStyle).font; local [all...] |
H A D | MinikinFontFreeType.cpp | 32 MinikinFontFreeType::MinikinFontFreeType(FT_Face typeface) : argument 33 mTypeface(typeface) {
|
H A D | FontCollection.cpp | 51 MinikinFont* typeface = family->getClosestMatch(defaultStyle).font; local 52 if (typeface == NULL) { 67 "Font collection must have at least one valid typeface");
|
H A D | LineBreaker.cpp | 159 float LineBreaker::addStyleRun(MinikinPaint* paint, const FontCollection* typeface, argument 167 layout.setFontCollection(typeface);
|
/frameworks/minikin/include/minikin/ |
H A 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) : argument 153 typeface(typeface), style(style) { } 154 MinikinFont* typeface; member in class:android::FontFamily::Font
|
H A D | MinikinFontFreeType.h | 41 explicit MinikinFontFreeType(FT_Face typeface);
|
H A D | LineBreaker.h | 161 float addStyleRun(MinikinPaint* paint, const FontCollection* typeface, FontStyle style,
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Typeface.java | 37 * The Typeface class specifies the typeface and intrinsic style of a font. 46 /** The default NORMAL typeface object */ 49 * The default BOLD typeface object. Note: this may be not actually be 54 /** The NORMAL style of the default sans serif typeface. */ 56 /** The NORMAL style of the default serif typeface. */ 58 /** The NORMAL style of the default monospace typeface. */ 89 /** Returns the typeface's intrinsic style attributes */ 105 * Create a typeface object given a family name, and option style information. 107 * The resulting typeface object can be queried (getStyle()) to discover what 111 * @param style The style (normal, bold, italic) of the typeface [all...] |
H A D | Paint.java | 1051 * Get the paint's typeface object. 1053 * The typeface object identifies which font to use when drawing or 1056 * @return the paint's typeface (or null) 1063 * Set or clear the typeface object. 1065 * Pass null to clear any previous typeface. 1068 * @param typeface May be null. The typeface to be installed in the paint 1069 * @return typeface 1071 public Typeface setTypeface(Typeface typeface) { argument 1073 if (typeface ! 2465 native_setTypeface(long native_object, long typeface) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | MinikinUtils.cpp | 30 const Paint* paint, TypefaceImpl* typeface) { 31 const TypefaceImpl* resolvedFace = TypefaceImpl_resolveDefault(typeface); 57 TypefaceImpl* typeface, const uint16_t* buf, size_t start, size_t count, 61 FontStyle minikinStyle = prepareMinikinPaint(&minikinPaint, &font, paint, typeface); 29 prepareMinikinPaint(MinikinPaint* minikinPaint, FontCollection** pFont, const Paint* paint, TypefaceImpl* typeface) argument 56 doLayout(Layout* layout, const Paint* paint, int bidiFlags, TypefaceImpl* typeface, const uint16_t* buf, size_t start, size_t count, size_t bufSize) argument
|
H A D | MinikinUtils.h | 37 const Paint* paint, TypefaceImpl* typeface); 40 TypefaceImpl* typeface, const uint16_t* buf, size_t start, size_t count,
|
H A D | TypefaceImpl.cpp | 42 static void resolveStyle(TypefaceImpl* typeface) { argument 43 int weight = typeface->fBaseWeight / 100; 44 if (typeface->fSkiaStyle & SkTypeface::kBold) { 50 bool italic = (typeface->fSkiaStyle & SkTypeface::kItalic) != 0; 51 typeface->fStyle = FontStyle(weight, italic); 57 // This installs a default typeface (from a hardcoded path) that allows 59 // typeface is set. 91 // We expect the client to set a default typeface, but provide a
|
H A D | Paint.cpp | 345 // TODO: in Paint refactoring, set typeface on android Paint, not Paint 498 TypefaceImpl* typeface = getNativeTypeface(env, jpaint); local 499 typeface = TypefaceImpl_resolveDefault(typeface); 500 FakedFont baseFont = typeface->fFontCollection->baseFontFaked(typeface->fStyle); 591 TypefaceImpl* typeface = getNativeTypeface(env, jpaint); local 592 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, textArray + index, 0, count, 619 TypefaceImpl* typeface = getNativeTypeface(env, jpaint); local 622 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, textArra 643 TypefaceImpl* typeface = getNativeTypeface(env, jpaint); local 651 dotextwidths(JNIEnv* env, Paint* paint, TypefaceImpl* typeface, const jchar text[], int count, jfloatArray widths, jint bidiFlags) argument 682 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 693 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 700 doTextRunAdvances(JNIEnv *env, Paint *paint, TypefaceImpl* typeface, const jchar *text, jint start, jint count, jint contextCount, jboolean isRtl, jfloatArray advances, jint advancesIndex) argument 742 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 755 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 822 getTextPath(JNIEnv* env, Paint* paint, TypefaceImpl* typeface, const jchar* text, jint count, jint bidiFlags, jfloat x, jfloat y, SkPath* path) argument 845 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 856 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 880 breakText(JNIEnv* env, const Paint& paint, TypefaceImpl* typeface, const jchar text[], int count, float maxWidth, jint bidiFlags, jfloatArray jmeasured, const bool forwardScan) argument 919 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 948 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 957 doTextBounds(JNIEnv* env, const jchar* text, int count, jobject bounds, const Paint& paint, TypefaceImpl* typeface, jint bidiFlags) argument 977 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 986 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 1002 hasGlyphVariation(const Paint* paint, TypefaceImpl* typeface, jint bidiFlags, const jchar* chars, size_t size) argument 1012 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 1055 doRunAdvance(const Paint* paint, TypefaceImpl* typeface, const jchar buf[], jint start, jint count, jint bufSize, jboolean isRtl, jint offset) argument 1067 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 1076 doOffsetForAdvance(const Paint* paint, TypefaceImpl* typeface, const jchar buf[], jint start, jint count, jint bufSize, jboolean isRtl, jfloat advance) argument 1087 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local [all...] |
H A D | MinikinSkia.h | 27 explicit MinikinFontSkia(SkTypeface *typeface); 49 // set typeface and fake bold/italic parameters
|
H A D | HarfBuzzNGFaceSkia.cpp | 142 SkTypeface* typeface = reinterpret_cast<SkTypeface*>(userData); local 144 const size_t tableSize = typeface->getTableSize(tag); 151 size_t actualSize = typeface->getTableData(tag, 0, tableSize, buffer);
|
H A D | MinikinSkia.cpp | 27 MinikinFontSkia::MinikinFontSkia(SkTypeface *typeface) : argument 28 mTypeface(typeface) { 63 ALOGD("width for typeface %d glyph %d = %f", mTypeface->uniqueID(), glyph_id, skWidth);
|
/frameworks/minikin/sample/ |
H A D | MinikinSkia.cpp | 9 MinikinFontSkia::MinikinFontSkia(SkTypeface *typeface) : argument 10 mTypeface(typeface) { 28 static void MinikinFontSkia_SetSkiaPaint(SkTypeface* typeface, SkPaint* skPaint, const MinikinPaint& paint) { argument 29 skPaint->setTypeface(typeface); 43 ALOGD("width for typeface %d glyph %d = %f", mTypeface->uniqueID(), glyph_id
|
H A D | MinikinSkia.h | 5 explicit MinikinFontSkia(SkTypeface *typeface);
|
/frameworks/base/libs/hwui/ |
H A D | TextDropShadowCache.h | 37 ShadowText(): len(0), radius(0.0f), textSize(0.0f), typeface(nullptr), 49 typeface = paint->getTypeface(); 89 SkTypeface* typeface; member in struct:android::uirenderer::ShadowText
|
H A D | TextDropShadowCache.cpp | 39 hash = JenkinsHashMix(hash, android::hash_type(typeface)); 65 if (lhs.typeface < rhs.typeface) return -1; 66 if (lhs.typeface > rhs.typeface) return +1;
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | SubtitleView.java | 195 public void setTypeface(Typeface typeface) { argument 196 if (mTextPaint.getTypeface() != typeface) { 197 mTextPaint.setTypeface(typeface); 283 final Typeface typeface = style.getTypeface(); 284 setTypeface(typeface);
|
/frameworks/base/core/jni/ |
H A D | android_graphics_Canvas.cpp | 500 float x, float y, int bidiFlags, const Paint& origPaint, TypefaceImpl* typeface) { 505 MinikinUtils::doLayout(&layout, &paint, bidiFlags, typeface, text, start, count, contextCount); 532 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 535 bidiFlags, *paint, typeface); local 543 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 547 bidiFlags, *paint, typeface); local 555 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 560 contextCount, x, y, bidiFlags, *paint, typeface); local 569 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 576 contextCount, x, y, bidiFlags, *paint, typeface); local 499 drawText(Canvas* canvas, const uint16_t* text, int start, int count, int contextCount, float x, float y, int bidiFlags, const Paint& origPaint, TypefaceImpl* typeface) argument 605 drawTextOnPath(Canvas* canvas, const uint16_t* text, int count, int bidiFlags, const SkPath& path, float hOffset, float vOffset, const Paint& paint, TypefaceImpl* typeface) argument 628 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 633 hOffset, vOffset, *paint, typeface); local 643 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 649 hOffset, vOffset, *paint, typeface); local [all...] |
H A D | android_text_StaticLayout.cpp | 157 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(nativeTypeface); local 160 FontStyle style = MinikinUtils::prepareMinikinPaint(&minikinPaint, &font, paint, typeface);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Canvas_Delegate.java | 852 float startX, float startY, int flags, long paint, long typeface) { 854 paint, typeface); 860 long typeface) { 865 native_drawText(nativeCanvas, buffer, 0, count, x, y, flags, paint, typeface); 871 float x, float y, boolean isRtl, long paint, long typeface) { 876 drawText(nativeCanvas, buffer, 0, count, x, y, isRtl, paint, typeface); 882 float x, float y, boolean isRtl, long paint, long typeface) { 883 drawText(nativeCanvas, text, start, count, x, y, isRtl, paint, typeface); 892 long paint, long typeface) { 904 long typeface) { 851 native_drawText(long nativeCanvas, char[] text, int index, int count, float startX, float startY, int flags, long paint, long typeface) argument 858 native_drawText(long nativeCanvas, String text, int start, int end, float x, float y, final int flags, long paint, long typeface) argument 869 native_drawTextRun(long nativeCanvas, String text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, long paint, long typeface) argument 880 native_drawTextRun(long nativeCanvas, char[] text, int start, int count, int contextStart, int contextCount, float x, float y, boolean isRtl, long paint, long typeface) argument 887 native_drawTextOnPath(long nativeCanvas, char[] text, int index, int count, long path, float hOffset, float vOffset, int bidiFlags, long paint, long typeface) argument 899 native_drawTextOnPath(long nativeCanvas, String text, long path, float hOffset, float vOffset, int bidiFlags, long paint, long typeface) argument 962 drawText(long nativeCanvas, final char[] text, final int index, final int count, final float startX, final float startY, final boolean isRtl, long paint, final long typeface) argument [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
H A D | CollapsingTextHelper.java | 218 void setTypeface(Typeface typeface) { argument 219 if (typeface == null) { 220 typeface = Typeface.DEFAULT; 222 if (mTextPaint.getTypeface() != typeface) { 223 mTextPaint.setTypeface(typeface);
|