Searched refs:fTestFont (Results 1 – 5 of 5) 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()119 sk_sp<SkTestFont> fTestFont;
100 , fTestFont(std::move(testFont)) { in SkTestTypeface()105 glyphID = glyphID < fTestFont->fCharCodesCount ? glyphID : 0; in getAdvance()108 glyph->fAdvanceX = SkFixedToFloat(fTestFont->fWidths[glyphID]); in getAdvance()113 *metrics = fTestFont->fMetrics; in getFontMetrics()117 glyphID = glyphID < fTestFont->fCharCodesCount ? glyphID : 0; in getPath()118 *path = *fTestFont->fPaths[glyphID]; in getPath()126 unsigned glyphCount = fTestFont->fCharCodesCount; in getGlyphToUnicodeMap()128 glyphToUnicode[gid] = SkTo<SkUnichar>(fTestFont->fCharCodes[gid]); in getGlyphToUnicodeMap()134 info->fFontName.set(fTestFont->fName); in onGetAdvancedMetrics()139 desc->setFamilyName(fTestFont->fName); in onGetFontDescriptor()[all …]
91 return (int) fTestFont->fCharCodesCount; in onCountGlyphs()122 sk_sp<SkTestFont> fTestFont;
208 DummyFontMgr(sk_sp<SkTypeface> test_font) : fTestFont(test_font) {} in DEF_TEST()224 return fTestFont; in DEF_TEST()228 return fTestFont; in DEF_TEST()232 return fTestFont; in DEF_TEST()235 return fTestFont; in DEF_TEST()238 return fTestFont; in DEF_TEST()241 return fTestFont; in DEF_TEST()244 sk_sp<SkTypeface> fTestFont; in DEF_TEST() member in DEF_TEST::DummyFontMgr