Searched refs:font_collection (Results 1 – 2 of 2) sorted by relevance
1302 static int stbtt_GetFontOffsetForIndex_internal(unsigned char *font_collection, int index) in stbtt_GetFontOffsetForIndex_internal() argument1305 if (stbtt__isfont(font_collection)) in stbtt_GetFontOffsetForIndex_internal()1309 if (stbtt_tag(font_collection, "ttcf")) { in stbtt_GetFontOffsetForIndex_internal()1311 if (ttULONG(font_collection+4) == 0x00010000 || ttULONG(font_collection+4) == 0x00020000) { in stbtt_GetFontOffsetForIndex_internal()1312 stbtt_int32 n = ttLONG(font_collection+8); in stbtt_GetFontOffsetForIndex_internal()1315 return ttULONG(font_collection+12+index*4); in stbtt_GetFontOffsetForIndex_internal()1321 static int stbtt_GetNumberOfFonts_internal(unsigned char *font_collection) in stbtt_GetNumberOfFonts_internal() argument1324 if (stbtt__isfont(font_collection)) in stbtt_GetNumberOfFonts_internal()1328 if (stbtt_tag(font_collection, "ttcf")) { in stbtt_GetNumberOfFonts_internal()1330 if (ttULONG(font_collection+4) == 0x00010000 || ttULONG(font_collection+4) == 0x00020000) { in stbtt_GetNumberOfFonts_internal()[all …]
2882 sk_sp<FontCollection> font_collection = sk_make_sp<FontCollection>(); in onDrawContent() local2883 font_collection->setAssetFontManager(std::move(font_provider)); in onDrawContent()2884 font_collection->getParagraphCache()->turnOn(false); in onDrawContent()2895 ParagraphBuilderImpl builder(paragraph_style, font_collection); in onDrawContent()