Lines Matching refs:fm
29 SkScalar y, const SkFont& origFont, SkFontMgr* fm, in drawCharacter() argument
36 sk_sp<SkTypeface> typeface(fm->matchFamilyStyleCharacter(fontName, fontStyle, in drawCharacter()
50 font.setTypeface(fm->legacyMakeTypeface(familyName.c_str(), typeface->fontStyle())); in drawCharacter()
83 SkFontMgr* fm = fFM.get(); in onDraw() local
84 int count = SkMin32(fm->countFamilies(), MAX_FAMILIES); in onDraw()
88 fm->getFamilyName(i, &familyName); in onDraw()
94 sk_sp<SkFontStyleSet> set(fm->createStyleSet(i)); in onDraw()
105 x = drawCharacter(canvas, 0x5203, x, y, font, fm, familyName.c_str(), &zh, 1, fs); in onDraw()
106 x = drawCharacter(canvas, 0x5203, x, y, font, fm, familyName.c_str(), &ja, 1, fs); in onDraw()
108 … x = drawCharacter(canvas, 0x1f601, x, y, font, fm, familyName.c_str(), nullptr,0, fs); in onDraw()
231 SkFontMetrics fm; in show_bounds() local
232 font.getMetrics(&fm); in show_bounds()
236 if ((fm.fFlags & SkFontMetrics::kUnderlinePositionIsValid_Flag) && in show_bounds()
237 (fm.fFlags & SkFontMetrics::kUnderlinePositionIsValid_Flag)) in show_bounds()
239 SkRect underline{ fontBounds.fLeft, fm.fUnderlinePosition+y, in show_bounds()
240 fontBounds.fRight, fm.fUnderlinePosition+y + fm.fUnderlineThickness }; in show_bounds()
244 if ((fm.fFlags & SkFontMetrics::kStrikeoutPositionIsValid_Flag) && in show_bounds()
245 (fm.fFlags & SkFontMetrics::kStrikeoutPositionIsValid_Flag)) in show_bounds()
247 SkRect strikeout{ fontBounds.fLeft, fm.fStrikeoutPosition+y - fm.fStrikeoutThickness, in show_bounds()
248 fontBounds.fRight, fm.fStrikeoutPosition+y }; in show_bounds()
321 SkFontMgr* fm = fFM.get(); in onDraw() local
322 int count = SkMin32(fm->countFamilies(), 32); in onDraw()
330 sk_sp<SkFontStyleSet> set(fm->createStyleSet(i)); in onDraw()