/aosp_15_r20/cts/tests/tests/graphics/src/android/graphics/cts/ |
H A D | TypefaceTest.java | 83 private static float measureText(String text, Typeface typeface) { in measureText() 127 Typeface typeface = createTypeface(Typeface.BOLD); in testIsBold() local 194 Typeface typeface = Typeface.create(DEFAULT, Typeface.NORMAL); in testCreate() local 209 Typeface typeface = Typeface.defaultFromStyle(Typeface.NORMAL); in testDefaultFromStyle() local 248 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), in testCreateFromAsset() local 262 Typeface typeface = Typeface.createFromFile(file); in testCreateFromFileByFileReference() local 286 Typeface typeface = Typeface.createFromFile(obtainPath()); in testCreateFromFileByFileName() local 313 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), in testInvalidCmapFont() local 324 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), in testInvalidCmapFont2() local 344 final Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), file); in testInvalidCmapFont_tooLargeCodePoints() local [all …]
|
H A D | TypefaceCustomFallbackBuilderTest.java | 115 final Typeface typeface = createFullFamilyTypeface(); in testFamily_defaultStyle() local 123 final Typeface typeface = createFullFamilyTypeface(); in testFamily_selectStyle() local 149 final Typeface typeface = new Typeface.CustomFallbackBuilder(b.build()) in testFamily_selectStyleByBuilder() local 166 final Typeface typeface = new Typeface.CustomFallbackBuilder(b.build()).build(); in testFamily_closestDefault() local 187 final Typeface typeface = new Typeface.CustomFallbackBuilder(baseFamily) in testUserFallback() local 244 final Typeface typeface = new Typeface.CustomFallbackBuilder(baseFamily) in testUserFallbackOverLocaleFallback() local
|
/aosp_15_r20/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/shadows/ |
H A D | ShadowNativeTypefaceTest.java | 39 private static float measureText(String text, Typeface typeface) { in measureText() 79 Typeface typeface = createTypeface(Typeface.BOLD); in testIsBold() local 110 Typeface typeface = Typeface.create(DEFAULT, Typeface.NORMAL); in testCreate() local 125 Typeface typeface = Typeface.defaultFromStyle(Typeface.NORMAL); in testDefaultFromStyle() local 167 Typeface typeface = in testCreateFromAsset() local 181 Typeface typeface = Typeface.createFromFile(file); in testCreateFromFileByFileReference() local 205 Typeface typeface = Typeface.createFromFile(obtainPath()); in testCreateFromFileByFileName() local 229 Typeface typeface = in testInvalidCmapFont() local 241 Typeface typeface = in testInvalidCmapFont2() local 253 Typeface typeface = in testInvalidCmapFont_o_omr1() local [all …]
|
/aosp_15_r20/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/ |
H A D | ShadowTypefaceTest.java | 44 Typeface typeface = Typeface.create("roboto", Typeface.BOLD); in create_withFamilyName_shouldCreateTypeface() local 52 Typeface typeface = Typeface.create(Typeface.create("roboto", Typeface.BOLD), Typeface.ITALIC); in create_withFamily_shouldCreateTypeface() local 61 Typeface typeface = Typeface.create((Typeface) null, Typeface.ITALIC); in create_withoutFamily_shouldCreateTypeface() local 70 Typeface typeface = in create_withFamily_customWeight_shouldCreateTypeface() local 81 Typeface typeface = Typeface.create(null, /* weight= */ 500, /* italic= */ false); in create_withoutFamily_customWeight_shouldCreateTypeface() local 89 Typeface typeface = Typeface.createFromFile(fontFile); in createFromFile_withFile_shouldCreateTypeface() local 97 Typeface typeface = Typeface.createFromFile(fontFile.getPath()); in createFromFile_withPath_shouldCreateTypeface() local 106 Typeface typeface = in createFromAsset_shouldCreateTypeface() local 171 Typeface typeface = in typeface_customFallbackBuilder_afterReset() local 181 Typeface typeface = in createTypeface_withCustomFallbackBuilder() local
|
/aosp_15_r20/external/skia/tests/ |
H A D | TypefaceTest.cpp | 131 sk_sp<SkTypeface> typeface(ToolUtils::TestFontMgr()->makeFromStream(stream->duplicate())); in DEF_TEST() local 212 sk_sp<SkTypeface> typeface(ToolUtils::CreateTypefaceFromResource("fonts/Em.ttf")); in DEF_TEST() local 228 sk_sp<SkTypeface> typeface(ToolUtils::CreateTypefaceFromResource("fonts/7630.otf")); in DEF_TEST() local 274 auto test = [&](SkTypeface* typeface, const Variation& expected, int alsoAcceptedAxisTagCount) { in DEF_TEST() 345 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(variable), 0); in DEF_TEST() local 366 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(dupTags), params); in DEF_TEST() local 386 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(distortable), params); in DEF_TEST() local 408 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(distortable), params); in DEF_TEST() local 460 { in DEF_TEST() 551 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(variable), 0); in DEF_TEST() local [all …]
|
H A D | SerializationTest.cpp | 381 static sk_sp<SkData> serialize_typeface_proc(SkTypeface* typeface, void* ctx) { in serialize_typeface_proc() 403 sk_sp<SkTypeface> typeface = SkTypeface::MakeDeserialize(stream, ToolUtils::TestFontMgr()); in deserialize_typeface_proc() local 407 static void serialize_and_compare_typeface(sk_sp<SkTypeface> typeface, in serialize_and_compare_typeface() 453 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(distortable), params); in makeDistortableWithNonDefaultAxes() local 481 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(colr), params); in makeColrWithNonDefaultPalette() local 494 auto typeface = ToolUtils::CreateTypefaceFromResource("fonts/test.ttc", 1); in TestPictureTypefaceSerialization() local 505 auto typeface = makeDistortableWithNonDefaultAxes(reporter); in TestPictureTypefaceSerialization() local 516 auto typeface = makeColrWithNonDefaultPalette(reporter); in TestPictureTypefaceSerialization() local 526 SkString DumpTypeface(const SkTypeface& typeface) { in DumpTypeface() 580 const sk_sp<SkTypeface>& typeface) { in TestTypefaceSerialization()
|
/aosp_15_r20/frameworks/base/libs/hwui/jni/ |
H A D | Paint.cpp | 109 static int breakText(JNIEnv* env, const Paint& paint, const Typeface* typeface, in breakText() 146 const Typeface* typeface = paint->getAndroidTypeface(); in breakTextC() local 175 const Typeface* typeface = paint->getAndroidTypeface(); in breakTextS() local 184 static jfloat doTextAdvances(JNIEnv *env, Paint *paint, const Typeface* typeface, in doTextAdvances() 220 const Typeface* typeface = paint->getAndroidTypeface(); in getTextAdvances___CIIIII_FI() local 232 const Typeface* typeface = paint->getAndroidTypeface(); in getTextAdvances__StringIIIII_FI() local 241 static jint doTextRunCursor(JNIEnv *env, Paint* paint, const Typeface* typeface, in doTextRunCursor() 256 const Typeface* typeface = paint->getAndroidTypeface(); in getTextRunCursor___C() local 268 const Typeface* typeface = paint->getAndroidTypeface(); in getTextRunCursor__String() local 308 static void getTextPath(JNIEnv* env, Paint* paint, const Typeface* typeface, const jchar* text, in getTextPath() [all …]
|
/aosp_15_r20/frameworks/base/libs/hwui/hwui/ |
H A D | MinikinUtils.cpp | 35 const Typeface* typeface) { in prepareMinikinPaint() 71 const Typeface* typeface, const uint16_t* buf, in doLayout() 94 void MinikinUtils::getBounds(const Paint* paint, minikin::Bidi bidiFlags, const Typeface* typeface, in getBounds() 107 const Typeface* typeface, const uint16_t* buf, size_t start, in measureText() 124 const Typeface* typeface, const uint16_t* buf, in getFontExtent() 133 bool MinikinUtils::hasVariationSelector(const Typeface* typeface, uint32_t codepoint, uint32_t vs) { in hasVariationSelector()
|
/aosp_15_r20/cts/tests/tests/graphics/src/android/graphics/fonts/ |
H A D | FontTestUtil.java | 223 private static float measureChar(Typeface typeface, char c) { in measureChar() 299 private static int getSelectedFontStyle(Typeface typeface) { in getSelectedFontStyle() 316 public static Pair<Integer, Boolean> getSelectedStyle(Typeface typeface) { in getSelectedStyle() 326 public static String getSelectedFontPathInAsset(Typeface typeface) { in getSelectedFontPathInAsset() 336 public static int getSelectedTtcIndex(Typeface typeface) { in getSelectedTtcIndex() 346 public static String getSelectedVariationSettings(Typeface typeface) { in getSelectedVariationSettings()
|
/aosp_15_r20/frameworks/base/core/tests/coretests/src/android/graphics/ |
H A D | TypefaceSystemFallbackTest.java | 887 private static void assertA3emFontIsUsed(Typeface typeface) { in assertA3emFontIsUsed() 896 private static void assertB3emFontIsUsed(Typeface typeface) { in assertB3emFontIsUsed() 940 Typeface typeface = fontMap.get("named-family"); in testBuildSystemFallback__Customization_locale_prepend() local 955 Typeface typeface = fontMap.get("named-family"); in testBuildSystemFallback__Customization_locale_replace() local 970 Typeface typeface = fontMap.get("named-family"); in testBuildSystemFallback__Customization_locale_append() local 985 Typeface typeface = fontMap.get("named-family"); in testBuildSystemFallback__Customization_locale_ScriptMismatch() local 1000 Typeface typeface = fontMap.get("named-family"); in testBuildSystemFallback__Customization_locale_SubscriptMatch() local
|
/aosp_15_r20/external/skia/src/ports/ |
H A D | SkScalerContext_win_dw.cpp | 61 static SkSharedMutex* maybe_dw_mutex(DWriteFontTypeface& typeface) { in maybe_dw_mutex() 109 static bool is_hinted(DWriteFontTypeface* typeface) { in is_hinted() 135 bool get_gasp_range(DWriteFontTypeface* typeface, int size, GaspRange* range) { in get_gasp_range() 180 static bool has_bitmap_strike(DWriteFontTypeface* typeface, GaspRange range) { in has_bitmap_strike() 273 DWriteFontTypeface* typeface = this->getDWriteTypeface(); in SkScalerContext_DW() local 1203 DWriteFontTypeface* typeface = this->getDWriteTypeface(); in drawColorV1Image() local 1414 DWriteFontTypeface* typeface = this->getDWriteTypeface(); in generateColorV1Metrics() local 1480 DWriteFontTypeface* typeface = this->getDWriteTypeface(); in setAdvance() local 1534 DWriteFontTypeface* typeface = this->getDWriteTypeface(); in generateDWMetrics() local 1770 DWriteFontTypeface* typeface = this->getDWriteTypeface(); in generateMetrics() local [all …]
|
/aosp_15_r20/frameworks/minikin/libs/minikin/ |
H A D | Font.cpp | 116 std::shared_ptr<MinikinFont> typeface = in Font() local 123 std::shared_ptr<MinikinFont> typeface = in Font() local 203 std::shared_ptr<MinikinFont> typeface = in getExternalRefs() local 241 HbFontUniquePtr Font::prepareFont(const std::shared_ptr<MinikinFont>& typeface) { in prepareFont() 447 std::shared_ptr<MinikinFont> FakedFont::typeface() const { in typeface() function in minikin::FakedFont
|
/aosp_15_r20/external/skia/src/pdf/ |
H A D | SkPDFFont.cpp | 255 const SkAdvancedTypefaceMetrics* SkPDFFont::GetMetrics(const SkTypeface& typeface, in GetMetrics() 307 const std::vector<SkUnichar>& SkPDFFont::GetUnicodeMap(const SkTypeface& typeface, in GetUnicodeMap() 319 THashMap<SkGlyphID, SkString>& SkPDFFont::GetUnicodeMapEx(const SkTypeface& typeface, in GetUnicodeMapEx() 358 const SkTypeface& typeface = fPath.fStrikeSpec.typeface(); in getFontResource() local 445 const SkTypeface& typeface = font.strike().fPath.fStrikeSpec.typeface(); in emit_subset_type0() local 639 const SkTypeface& typeface, in type3_descriptor() 935 bool SkPDFFont::CanEmbedTypeface(const SkTypeface& typeface, SkPDFDocument* doc) { in CanEmbedTypeface()
|
H A D | SkPDFType1Font.cpp | 262 const SkTypeface& typeface = pdfStrikeSpec.fStrikeSpec.typeface(); in make_type1_font_descriptor() local 283 const SkTypeface& typeface) { in type_1_glyphnames() 297 const SkTypeface& typeface = pdfStrikeSpec.fStrikeSpec.typeface(); in type1_font_descriptor() local 310 const SkTypeface& typeface = pdfFont.strike().fPath.fStrikeSpec.typeface(); in SkPDFEmitType1Font() local
|
/aosp_15_r20/frameworks/base/graphics/java/android/graphics/ |
H A D | Typeface.java | 363 Typeface typeface = FontsContract.getFontSync(request); in createFromResources() local 367 Typeface typeface = findFromCache(mgr, path); in createFromResources() local 438 Typeface typeface = sDynamicTypefaceCache.get(key); in findFromCache() local 728 final Typeface typeface = sDynamicTypefaceCache.get(key); in build() local 744 final Typeface typeface = builder.build(); in build() local
|
/aosp_15_r20/external/lottie/lottie/src/main/java/com/airbnb/lottie/manager/ |
H A D | FontAssetManager.java | 61 Typeface typeface = fontMap.get(tempPair); in getTypeface() local 78 Typeface typeface = null; in getFontFamily() local 111 private Typeface typefaceForStyle(Typeface typeface, String style) { in typefaceForStyle()
|
/aosp_15_r20/external/skia/modules/skparagraph/src/ |
H A D | TypefaceFontProvider.cpp | 39 size_t TypefaceFontProvider::registerTypeface(sk_sp<SkTypeface> typeface) { in registerTypeface() 50 size_t TypefaceFontProvider::registerTypeface(sk_sp<SkTypeface> typeface, const SkString& familyNam… in registerTypeface() 108 void TypefaceFontStyleSet::appendTypeface(sk_sp<SkTypeface> typeface) { in appendTypeface()
|
H A D | OneLineShaper.cpp | 426 for (const auto& typeface : typefaces) { in matchResolvedFonts() local 476 sk_sp<SkTypeface> typeface = nullptr; in matchResolvedFonts() local 585 sk_sp<SkTypeface> typeface = typefaces.empty() ? nullptr : typefaces.front(); in iterateThroughShapingRegions() local 648 this->matchResolvedFonts(block.fStyle, [&](sk_sp<SkTypeface> typeface) { in shape()
|
/aosp_15_r20/frameworks/minikin/include/minikin/ |
H A D | Font.h | 47 Builder(const std::shared_ptr<MinikinFont>& typeface) : mTypeface(typeface) {} in Builder() 126 ExternalRefs(std::shared_ptr<MinikinFont>&& typeface, HbFontUniquePtr&& baseFont) in ExternalRefs() 155 Font(std::shared_ptr<MinikinFont>&& typeface, FontStyle style, HbFontUniquePtr&& baseFont, in Font()
|
/aosp_15_r20/external/lottie/sample-compose/src/main/java/com/airbnb/lottie/sample/compose/examples/ |
H A D | TextExamplesPage.kt | 61 val typeface = rememberTypeface("fonts/Roboto.ttf") in Example2() constant 75 var typeface: Typeface? by remember { mutableStateOf(null) } in rememberTypeface() variable
|
/aosp_15_r20/frameworks/base/libs/hwui/tests/unit/ |
H A D | UnderlineTest.cpp | 71 sk_sp<SkTypeface> typeface(fm->makeFromStream(std::move(fontData))); in buildFamily() local 90 minikin::Layout doLayout(const std::vector<uint16_t> text, Paint paint, Typeface* typeface) { in doLayout() 104 std::unique_ptr<Typeface> typeface(makeTypeface()); in processFunctor() local
|
/aosp_15_r20/frameworks/minikin/tests/unittest/ |
H A D | FontTest.cpp | 55 const auto& typeface = font.baseTypeface(); in TEST() local 81 std::shared_ptr<MinikinFont> typeface = moveFrom.baseTypeface(); in TEST() local 112 std::shared_ptr<MinikinFont> typeface = moveFrom.baseTypeface(); in TEST() local 136 std::shared_ptr<MinikinFont> typeface = moveFrom.baseTypeface(); in TEST() local
|
/aosp_15_r20/external/skia/gm/ |
H A D | fontations.cpp | 38 sk_sp<SkTypeface> typeface, in dumpLocalizedStrings() 53 sk_sp<SkTypeface> typeface, in dumpGlyphCount() 61 sk_sp<SkTypeface> typeface, in dumpFamilyAndPostscriptName()
|
/aosp_15_r20/external/robolectric/integration_tests/androidx/src/test/java/org/robolectric/integrationtests/androidx/ |
H A D | ResourcesCompatTest.java | 19 Typeface typeface = ResourcesCompat.getFont(getApplicationContext(), R.font.vt323_regular); in getFont() local 25 Typeface typeface = ResourcesCompat.getFont(getApplicationContext(), R.font.vt323); in getFontFamily() local
|
/aosp_15_r20/frameworks/base/core/java/android/provider/ |
H A D | FontsContract.java | 383 Typeface typeface = buildTypeface(sContext, null, result.getFonts()); in getFontSync() local 490 public void onTypefaceRetrieved(Typeface typeface) {} in onTypefaceRetrieved() 594 final Typeface typeface = buildTypeface(context, cancellationSignal, fonts); in requestFonts() local 603 sTypefaceCache.put(request.getIdentifier(), typeface); in requestFonts() local
|