Home
last modified time | relevance | path

Searched defs:typeface (Results 1 – 25 of 109) sorted by relevance

12345

/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowTypefaceTest.java44 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
169 Typeface typeface = in typeface_customFallbackBuilder_afterReset() local
179 Typeface typeface = in createTypeface_withCustomFallbackBuilder() local
/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/shadows/
DShadowNativeTypefaceTest.java39 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 …]
/external/skia/tests/
DTypefaceTest.cpp123 void TestSkTypefaceGlyphToUnicodeMap(SkTypeface& typeface, SkUnichar* codepoints) { in TestSkTypefaceGlyphToUnicodeMap()
133 sk_sp<SkTypeface> typeface(ToolUtils::TestFontMgr()->makeFromStream(stream->duplicate())); in DEF_TEST() local
166 sk_sp<SkTypeface> typeface(ToolUtils::TestFontMgr()->makeFromStream(stream->duplicate())); in DEF_TEST() local
247 sk_sp<SkTypeface> typeface(ToolUtils::CreateTypefaceFromResource("fonts/Em.ttf")); in DEF_TEST() local
263 sk_sp<SkTypeface> typeface(ToolUtils::CreateTypefaceFromResource("fonts/7630.otf")); in DEF_TEST() local
309 auto test = [&](SkTypeface* typeface, const Variation& expected, int alsoAcceptedAxisTagCount) { in DEF_TEST()
380 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(variable), 0); in DEF_TEST() local
401 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(dupTags), params); in DEF_TEST() local
421 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(distortable), params); in DEF_TEST() local
443 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(distortable), params); in DEF_TEST() local
[all …]
DFCITest.cpp55 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(distortable), params); in fontmgr_understands_ft_named_instance_bits() local
111 sk_sp<SkTypeface> typeface(fciDirect->makeTypeface(resultIdentity, mgr)); in DEF_TEST() local
DFontTest.cpp39 SkTypeface* typeface; in serialize_deserialize() local
105 for (const sk_sp<SkTypeface>& typeface : typefaces) { in DEF_TEST() local
DSerializationTest.cpp381 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()
DSkStrikeCacheTest.cpp26 sk_sp<SkTypeface> typeface = in DEF_TEST() local
DSkFontMetricsPrivTest.cpp23 auto typeface = ToolUtils::CreateTestTypeface("monospace", SkFontStyle()); in DEF_TEST() local
/external/robolectric/integration_tests/androidx/src/test/java/org/robolectric/integrationtests/androidx/
DResourcesCompatTest.java19 Typeface typeface = ResourcesCompat.getFont(getApplicationContext(), R.font.vt323_regular); in getFont() local
25 Typeface typeface = ResourcesCompat.getFont(getApplicationContext(), R.font.vt323); in getFontFamily() local
/external/lottie/lottie/src/main/java/com/airbnb/lottie/manager/
DFontAssetManager.java61 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()
/external/skia/modules/skparagraph/src/
DTypefaceFontProvider.cpp39 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()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/
DFont.java19 private Typeface typeface; field in Font
49 public void setTypeface(@Nullable Typeface typeface) { in setTypeface()
/external/lottie/sample-compose/src/main/java/com/airbnb/lottie/sample/compose/examples/
DTextExamplesPage.kt61 val typeface = rememberTypeface("fonts/Roboto.ttf") in Example2() constant
75 var typeface: Typeface? by remember { mutableStateOf(null) } in rememberTypeface() variable
/external/skia/gm/
Dfontations.cpp38 sk_sp<SkTypeface> typeface, in dumpLocalizedStrings()
53 sk_sp<SkTypeface> typeface, in dumpGlyphCount()
61 sk_sp<SkTypeface> typeface, in dumpFamilyAndPostscriptName()
Dbigtext.cpp67 auto typeface = ToolUtils::CreateTypefaceFromResource("fonts/SpiderSymbol.ttf"); variable
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DCaptionStyleCompat.java98 @Nullable public final Typeface typeface; field in CaptionStyleCompat
132 @Nullable Typeface typeface) { in CaptionStyleCompat()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DCaptionStyleCompat.java102 @Nullable public final Typeface typeface; field in CaptionStyleCompat
136 @Nullable Typeface typeface) { in CaptionStyleCompat()
/external/skia/src/pdf/
DSkPDFType1Font.cpp262 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
DSkPDFSubsetFont.cpp73 sk_sp<SkData> subset_harfbuzz(const SkTypeface& typeface, const SkPDFGlyphUse& glyphUsage) { in subset_harfbuzz()
108 sk_sp<SkData> SkPDFSubsetFont(const SkTypeface& typeface, const SkPDFGlyphUse& glyphUsage) { in SkPDFSubsetFont()
DSkPDFFont.cpp256 const SkAdvancedTypefaceMetrics* SkPDFFont::GetMetrics(const SkTypeface& typeface, in GetMetrics()
308 const std::vector<SkUnichar>& SkPDFFont::GetUnicodeMap(const SkTypeface& typeface, in GetUnicodeMap()
320 THashMap<SkGlyphID, SkString>& SkPDFFont::GetUnicodeMapEx(const SkTypeface& typeface, in GetUnicodeMapEx()
359 const SkTypeface& typeface = fPath.fStrikeSpec.typeface(); in getFontResource() local
446 const SkTypeface& typeface = font.strike().fPath.fStrikeSpec.typeface(); in emit_subset_type0() local
640 const SkTypeface& typeface, in type3_descriptor()
943 bool SkPDFFont::CanEmbedTypeface(const SkTypeface& typeface, SkPDFDocument* doc) { in CanEmbedTypeface()
/external/skia/modules/canvaskit/tests/
Dfont_test.js257 const typeface = CanvasKit.Typeface.MakeTypefaceFromData(fontType.buffer); constant
273 const typeface = CanvasKit.Typeface.MakeTypefaceFromData(fetchedByteBuffers[3]); constant
287 const typeface = CanvasKit.Typeface.MakeTypefaceFromData(notoSerifFontBuffer); constant
/external/skia/src/ports/
DSkScalerContext_win_dw.cpp61 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 …]
/external/skia/src/sfnt/
DSkOTUtils.cpp170 SkOTUtils::LocalizedStrings_NameTable::Make(const SkTypeface& typeface, in Make()
191 SkOTUtils::LocalizedStrings_NameTable::MakeForFamilyNames(const SkTypeface& typeface) { in MakeForFamilyNames()
/external/skia/docs/examples/
Dtext_rendering.cpp9 sk_sp<SkTypeface> typeface = fontMgr->legacyMakeTypeface(fontFamily, fontStyle); in draw() local
/external/skia/modules/skottie/src/text/
DFont.h69 const sk_sp<SkTypeface>& typeface() const { return fTypeface; } in typeface() function

12345