/frameworks/minikin/libs/minikin/ |
H A D | FontFamily.cpp | 98 mFonts[i].typeface->UnrefLocked(); 102 bool FontFamily::addFont(MinikinFont* typeface) { argument 106 bool ok = typeface->GetTable(os2Tag, NULL, &os2Size); 109 ok = typeface->GetTable(os2Tag, os2Data.get(), &os2Size); 116 addFontLocked(typeface, style); 124 void FontFamily::addFont(MinikinFont* typeface, FontStyle style) { argument 126 addFontLocked(typeface, style); 129 void FontFamily::addFontLocked(MinikinFont* typeface, FontStyle style) { typeface->RefLocked(); argument 130 mFonts.push_back(Font(typeface, styl [all...] |
H A D | MinikinFontFreeType.cpp | 32 MinikinFontFreeType::MinikinFontFreeType(FT_Face typeface) : argument 33 mTypeface(typeface) {
|
H A D | FontCollection.cpp | 52 MinikinFont* typeface = family->getClosestMatch(defaultStyle).font; local 53 if (typeface == NULL) { 63 ALOGD("closest match = %p, family size = %d\n", typeface, family->getNumFonts()); 67 bool ok = typeface->GetTable(cmapTag, NULL, &cmapSize); 69 ok = typeface->GetTable(cmapTag, cmapData.get(), &cmapSize); 80 "Font collection must have at least one valid typeface");
|
/frameworks/minikin/include/minikin/ |
H A 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) : argument 148 typeface(typeface), style(style) { } 149 MinikinFont* typeface; member in class:android::FontFamily::Font
|
H A D | MinikinFontFreeType.h | 41 explicit MinikinFontFreeType(FT_Face typeface);
|
/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 | 1040 * Get the paint's typeface object. 1042 * The typeface object identifies which font to use when drawing or 1045 * @return the paint's typeface (or null) 1052 * Set or clear the typeface object. 1054 * Pass null to clear any previous typeface. 1057 * @param typeface May be null. The typeface to be installed in the paint 1058 * @return typeface 1060 public Typeface setTypeface(Typeface typeface) { argument 1062 if (typeface ! 2249 native_setTypeface(long native_object, long typeface) argument [all...] |
/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/core/jni/android/graphics/ |
H A D | TypefaceImpl.cpp | 43 static void resolveStyle(TypefaceImpl* typeface) { argument 44 int weight = typeface->fBaseWeight / 100; 45 if (typeface->fSkiaStyle & SkTypeface::kBold) { 51 bool italic = (typeface->fSkiaStyle & SkTypeface::kItalic) != 0; 52 typeface->fStyle = FontStyle(weight, italic); 58 // This installs a default typeface (from a hardcoded path) that allows 60 // typeface is set. 92 // We expect the client to set a default typeface, but provide a
|
H A D | MinikinSkia.h | 27 explicit MinikinFontSkia(SkTypeface *typeface); 49 // set typeface and fake bold/italic parameters
|
H A D | Paint.cpp | 301 // TODO: in Paint refactoring, set typeface on android Paint, not Paint 440 TypefaceImpl* typeface = GraphicsJNI::getNativeTypeface(env, jpaint); local 441 typeface = TypefaceImpl_resolveDefault(typeface); 442 FakedFont baseFont = typeface->fFontCollection->baseFontFaked(typeface->fStyle); 533 TypefaceImpl* typeface = GraphicsJNI::getNativeTypeface(env, jpaint); local 534 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, textArray, index, count, textLength); 560 TypefaceImpl* typeface = GraphicsJNI::getNativeTypeface(env, jpaint); local 561 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, textArra 582 TypefaceImpl* typeface = GraphicsJNI::getNativeTypeface(env, jpaint); local 590 dotextwidths(JNIEnv* env, Paint* paint, TypefaceImpl* typeface, const jchar text[], int count, jfloatArray widths, jint bidiFlags) argument 621 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 632 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 639 doTextRunAdvances(JNIEnv *env, Paint *paint, TypefaceImpl* typeface, const jchar *text, jint start, jint count, jint contextCount, jboolean isRtl, jfloatArray advances, jint advancesIndex) argument 681 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 694 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 761 getTextPath(JNIEnv* env, Paint* paint, TypefaceImpl* typeface, const jchar* text, jint count, jint bidiFlags, jfloat x, jfloat y, SkPath* path) argument 784 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 795 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 819 breakText(JNIEnv* env, const Paint& paint, TypefaceImpl* typeface, const jchar text[], int count, float maxWidth, jint bidiFlags, jfloatArray jmeasured, Paint::TextBufferDirection textBufferDirection) argument 858 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 887 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 900 doTextBounds(JNIEnv* env, const jchar* text, int count, jobject bounds, const Paint& paint, TypefaceImpl* typeface, jint bidiFlags) argument 920 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 929 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local [all...] |
H A D | HarfBuzzNGFaceSkia.cpp | 140 SkTypeface* typeface = reinterpret_cast<SkTypeface*>(userData); local 142 const size_t tableSize = typeface->getTableSize(tag); 149 size_t actualSize = typeface->getTableData(tag, 0, tableSize, buffer);
|
H A D | MinikinUtils.cpp | 41 void MinikinUtils::doLayout(Layout* layout, const Paint* paint, int bidiFlags, TypefaceImpl* typeface, argument 43 TypefaceImpl* resolvedFace = TypefaceImpl_resolveDefault(typeface);
|
H A D | MinikinUtils.h | 48 static void doLayout(Layout* layout, const Paint* paint, int bidiFlags, TypefaceImpl* typeface,
|
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/base/libs/hwui/ |
H A D | TextDropShadowCache.h | 36 ShadowText(): len(0), radius(0.0f), textSize(0.0f), typeface(NULL), 48 typeface = paint->getTypeface(); 88 SkTypeface* typeface; member in struct:android::uirenderer::ShadowText
|
H A D | TextDropShadowCache.cpp | 38 hash = JenkinsHashMix(hash, android::hash_type(typeface)); 63 if (lhs.typeface < rhs.typeface) return -1; 64 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 | 482 float x, float y, int bidiFlags, const Paint& origPaint, TypefaceImpl* typeface) { 487 MinikinUtils::doLayout(&layout, &paint, bidiFlags, typeface, text, start, count, contextCount); 511 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 514 bidiFlags, *paint, typeface); local 522 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 526 bidiFlags, *paint, typeface); local 534 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 539 contextCount, x, y, bidiFlags, *paint, typeface); local 548 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 555 contextCount, x, y, bidiFlags, *paint, typeface); local 481 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 620 drawTextOnPath(Canvas* canvas, const uint16_t* text, int count, int bidiFlags, const SkPath& path, float hOffset, float vOffset, const Paint& paint, TypefaceImpl* typeface) argument 643 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 648 hOffset, vOffset, *paint, typeface); local 658 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefaceHandle); local 664 hOffset, vOffset, *paint, typeface); local [all...] |
H A D | android_view_GLES20Canvas.cpp | 654 jfloat x, jfloat y, int bidiFlags, Paint* paint, TypefaceImpl* typeface) { 656 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, text, 0, count, count); 688 TypefaceImpl* typeface) { 690 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, text, 0, count, count); 702 int bidiFlags, Paint* paint, TypefaceImpl* typeface) { 704 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, text, start, count, contextCount); 715 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefacePtr); local 717 renderText(renderer, textArray + index, count, x, y, bidiFlags, paint, typeface); 727 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefacePtr); local 729 renderText(renderer, textArray + start, end - start, x, y, bidiFlags, paint, typeface); 653 renderText(DisplayListRenderer* renderer, const jchar* text, int count, jfloat x, jfloat y, int bidiFlags, Paint* paint, TypefaceImpl* typeface) argument 686 renderTextOnPath(DisplayListRenderer* renderer, const jchar* text, int count, SkPath* path, jfloat hOffset, jfloat vOffset, int bidiFlags, Paint* paint, TypefaceImpl* typeface) argument 700 renderTextRun(DisplayListRenderer* renderer, const jchar* text, jint start, jint count, jint contextCount, jfloat x, jfloat y, int bidiFlags, Paint* paint, TypefaceImpl* typeface) argument 741 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefacePtr); local 756 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefacePtr); local 770 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefacePtr); local 787 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefacePtr); local [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Canvas_Delegate.java | 846 float startX, float startY, int flags, long paint, long typeface) { 848 paint, typeface); 854 long typeface) { 859 native_drawText(nativeCanvas, buffer, 0, count, x, y, flags, paint, typeface); 865 float x, float y, boolean isRtl, long paint, long typeface) { 870 drawText(nativeCanvas, buffer, 0, count, x, y, isRtl, paint, typeface); 876 float x, float y, boolean isRtl, long paint, long typeface) { 877 drawText(nativeCanvas, text, start, count, x, y, isRtl, paint, typeface); 886 long paint, long typeface) { 898 long typeface) { 845 native_drawText(long nativeCanvas, char[] text, int index, int count, float startX, float startY, int flags, long paint, long typeface) argument 852 native_drawText(long nativeCanvas, String text, int start, int end, float x, float y, final int flags, long paint, long typeface) argument 863 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 874 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 881 native_drawTextOnPath(long nativeCanvas, char[] text, int index, int count, long path, float hOffset, float vOffset, int bidiFlags, long paint, long typeface) argument 893 native_drawTextOnPath(long nativeCanvas, String text, long path, float hOffset, float vOffset, int bidiFlags, long paint, long typeface) argument 956 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...] |
H A D | Paint_Delegate.java | 888 /*package*/ static long native_setTypeface(long native_object, long typeface) { argument 895 delegate.mTypeface = Typeface_Delegate.getDelegate(typeface); 896 delegate.mNativeTypeface = typeface; 898 return typeface; 969 // typeface object associated with the Paint. Since, we follow the new framework way, 970 // we store the typeface with the paint and use it directly. 1006 // typeface object associated with the Paint. Since, we follow the new framework way, 1007 // we store the typeface with the paint and use it directly. 1078 // assert that the typeface passed is actually the one that we had stored. 1164 * Update the {@link Font} object from the typeface, tex [all...] |
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
H A D | RadialTextsView.java | 268 private void drawTexts(Canvas canvas, float textSize, Typeface typeface, String[] texts, argument 271 mPaint.setTypeface(typeface);
|
/frameworks/base/core/java/android/view/ |
H A D | GLES20Canvas.java | 884 float x, float y, int bidiFlags, long paint, long typeface); 914 float x, float y, int bidiFlags, long paint, long typeface); 935 long typeface); 947 long typeface); 883 nDrawText(long renderer, char[] text, int index, int count, float x, float y, int bidiFlags, long paint, long typeface) argument 913 nDrawText(long renderer, String text, int start, int end, float x, float y, int bidiFlags, long paint, long typeface) argument 933 nDrawTextOnPath(long renderer, char[] text, int index, int count, long path, float hOffset, float vOffset, int bidiFlags, long nativePaint, long typeface) argument 945 nDrawTextOnPath(long renderer, String text, int start, int end, long path, float hOffset, float vOffset, int bidiFlags, long nativePaint, long typeface) argument
|