/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
|
/frameworks/base/core/jni/android/graphics/ |
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 | 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);
|
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 | 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 | 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...] |
/frameworks/minikin/libs/minikin/ |
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) { 63 "Font collection must have at least one valid typeface");
|
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...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | SubtitleView.java | 196 public void setTypeface(Typeface typeface) { argument 197 if (mTextPaint.getTypeface() != typeface) { 198 mTextPaint.setTypeface(typeface); 284 final Typeface typeface = style.getTypeface(); 285 setTypeface(typeface);
|
/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
|
/frameworks/minikin/include/minikin/ |
H A D | FontFamily.h | 131 bool addFont(MinikinFont* typeface); 133 void addFont(MinikinFont* typeface, FontStyle style); 147 void addFontLocked(MinikinFont* typeface, FontStyle style); 151 Font(MinikinFont* typeface, FontStyle style) : argument 152 typeface(typeface), style(style) { } 153 MinikinFont* typeface; member in class:android::FontFamily::Font
|
/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 | 883 float x, float y, int bidiFlags, long paint, long typeface); 916 float x, float y, int bidiFlags, long paint, long typeface); 937 long typeface); 949 long typeface); 882 nDrawText(long renderer, char[] text, int index, int count, float x, float y, int bidiFlags, long paint, long typeface) argument 915 nDrawText(long renderer, String text, int start, int end, float x, float y, int bidiFlags, long paint, long typeface) argument 935 nDrawTextOnPath(long renderer, char[] text, int index, int count, long path, float hOffset, float vOffset, int bidiFlags, long nativePaint, long typeface) argument 947 nDrawTextOnPath(long renderer, String text, int start, int end, long path, float hOffset, float vOffset, int bidiFlags, long nativePaint, long typeface) argument
|
/frameworks/base/core/java/android/widget/ |
H A D | RadialTimePickerView.java | 961 private void drawTextElements(Canvas canvas, float textSize, Typeface typeface, String[] texts, argument 964 paint.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 | 642 jfloat x, jfloat y, int bidiFlags, Paint* paint, TypefaceImpl* typeface) { 644 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, text, 0, count, count); 676 TypefaceImpl* typeface) { 678 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, text, 0, count, count); 690 int bidiFlags, Paint* paint, TypefaceImpl* typeface) { 692 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, text, start, count, contextCount); 703 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefacePtr); local 705 renderText(renderer, textArray + index, count, x, y, bidiFlags, paint, typeface); 715 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefacePtr); local 717 renderText(renderer, textArray + start, end - start, x, y, bidiFlags, paint, typeface); 641 renderText(DisplayListRenderer* renderer, const jchar* text, int count, jfloat x, jfloat y, int bidiFlags, Paint* paint, TypefaceImpl* typeface) argument 674 renderTextOnPath(DisplayListRenderer* renderer, const jchar* text, int count, SkPath* path, jfloat hOffset, jfloat vOffset, int bidiFlags, Paint* paint, TypefaceImpl* typeface) argument 688 renderTextRun(DisplayListRenderer* renderer, const jchar* text, jint start, jint count, jint contextCount, jfloat x, jfloat y, int bidiFlags, Paint* paint, TypefaceImpl* typeface) argument 729 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefacePtr); local 744 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefacePtr); local 758 TypefaceImpl* typeface = reinterpret_cast<TypefaceImpl*>(typefacePtr); local 775 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/base/graphics/java/android/graphics/ |
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...] |