Searched refs:fTestFont (Results 1 – 3 of 3) sorted by relevance
91 : SkTypeface(style, false), fTestFont(std::move(testFont)) {} in TestTypeface()95 glyphID = glyphID < fTestFont->fCharCodesCount ? glyphID : 0; in getAdvance()98 glyph->fAdvanceX = SkFixedToFloat(fTestFont->fWidths[glyphID]); in getAdvance()102 void TestTypeface::getFontMetrics(SkFontMetrics* metrics) { *metrics = fTestFont->fMetrics; } in getFontMetrics()105 glyphID = glyphID < fTestFont->fCharCodesCount ? glyphID : 0; in getPath()106 return fTestFont->fPaths[glyphID]; in getPath()114 unsigned glyphCount = fTestFont->fCharCodesCount; in getGlyphToUnicodeMap()116 glyphToUnicode[gid] = SkTo<SkUnichar>(fTestFont->fCharCodes[gid]); in getGlyphToUnicodeMap()122 info->fFontName.set(fTestFont->fName); in onGetAdvancedMetrics()127 desc->setFamilyName(fTestFont->fName); in onGetFontDescriptor()[all …]
89 int onCountGlyphs() const override { return (int)fTestFont->fCharCodesCount; } in onCountGlyphs()121 sk_sp<SkTestFont> fTestFont;
214 FakeFontMgr(sk_sp<SkTypeface> test_font) : fTestFont(test_font) {} in DEF_TEST()230 return fTestFont; in DEF_TEST()234 return fTestFont; in DEF_TEST()238 return fTestFont; in DEF_TEST()241 return fTestFont; in DEF_TEST()244 return fTestFont; in DEF_TEST()247 sk_sp<SkTypeface> fTestFont; in DEF_TEST() member in DEF_TEST::FakeFontMgr