Home
last modified time | relevance | path

Searched refs:fTestFont (Results 1 – 5 of 5) sorted by relevance

/external/skia/tools/fonts/
DTestTypeface.cpp91 : 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 …]
DTestTypeface.h89 int onCountGlyphs() const override { return (int)fTestFont->fCharCodesCount; } in onCountGlyphs()
119 sk_sp<SkTestFont> fTestFont;
/external/skqp/tools/fonts/
DSkTestTypeface.cpp100 , 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 …]
DSkTestTypeface.h91 return (int) fTestFont->fCharCodesCount; in onCountGlyphs()
122 sk_sp<SkTestFont> fTestFont;
/external/skia/modules/skottie/src/
DSkottieTest.cpp208 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