Lines Matching defs:typeface

298         // TODO: in Paint refactoring, set typeface on android Paint, not Paint
405 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle);
406 typeface = Typeface::resolveDefault(typeface);
407 FakedFont baseFont = typeface->fFontCollection->baseFontFaked(typeface->fStyle);
477 static jfloat doTextAdvances(JNIEnv *env, Paint *paint, Typeface* typeface,
500 const float advance = MinikinUtils::measureText(paint, bidiFlags, typeface, text,
513 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle);
515 jfloat result = doTextAdvances(env, paint, typeface, textArray + contextIndex,
526 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle);
528 jfloat result = doTextAdvances(env, paint, typeface, textArray + contextStart,
593 static void getTextPath(JNIEnv* env, Paint* paint, Typeface* typeface, const jchar* text,
596 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, text, 0, count, count);
616 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle);
619 getTextPath(env, paint, typeface, textArray + index, count, bidiFlags, x, y, path);
627 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle);
630 getTextPath(env, paint, typeface, textArray + start, end - start, bidiFlags, x, y, path);
651 static int breakText(JNIEnv* env, const Paint& paint, Typeface* typeface, const jchar text[],
658 MinikinUtils::measureText(&paint, bidiFlags, typeface, text, 0, count, count,
688 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle);
705 count = breakText(env, *paint, typeface, text + index, count, maxWidth,
717 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle);
721 count = breakText(env, *paint, typeface, text, count, maxWidth, bidiFlags, jmeasuredWidth, forwards);
727 const Paint& paint, Typeface* typeface, jint bidiFlags) {
732 MinikinUtils::doLayout(&layout, &paint, bidiFlags, typeface, text, 0, count, count);
746 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle);
748 doTextBounds(env, textArray + start, end - start, bounds, *paint, typeface, bidiFlags);
755 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle);
757 doTextBounds(env, textArray + index, count, bounds, *paint, typeface, bidiFlags);
790 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle);
819 bool hasVS = MinikinUtils::hasVariationSelector(typeface, prevCp, cp);
832 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, str.get(), 0, str.size(),
853 MinikinUtils::doLayout(&zzLayout, paint, bidiFlags, typeface, ZZ_FLAG_STR, 0, 4, 4);
863 static jfloat doRunAdvance(const Paint* paint, Typeface* typeface, const jchar buf[],
867 return MinikinUtils::measureText(paint, bidiFlags, typeface, buf, start, count,
871 MinikinUtils::measureText(paint, bidiFlags, typeface, buf, start, count, bufSize,
880 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle);
882 jfloat result = doRunAdvance(paint, typeface, textArray + contextStart,
889 static jint doOffsetForAdvance(const Paint* paint, Typeface* typeface, const jchar buf[],
893 MinikinUtils::measureText(paint, bidiFlags, typeface, buf, start, count, bufSize,
902 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle);
904 jint result = doOffsetForAdvance(paint, typeface, textArray + contextStart,