• Home
  • Raw
  • Download

Lines Matching refs:fm

44                               SkScalar y, const SkFont& origFont, SkFontMgr* fm,  in drawCharacter()  argument
51 sk_sp<SkTypeface> typeface(fm->matchFamilyStyleCharacter(fontName, fontStyle, in drawCharacter()
65 font.setTypeface(fm->legacyMakeTypeface(familyName.c_str(), typeface->fontStyle())); in drawCharacter()
91 SkFontMgr* fm = fFM.get(); in onDraw() local
92 int count = std::min(fm->countFamilies(), MAX_FAMILIES); in onDraw()
96 fm->getFamilyName(i, &familyName); in onDraw()
102 sk_sp<SkFontStyleSet> set(fm->createStyleSet(i)); in onDraw()
113 x = drawCharacter(canvas, 0x5203, x, y, font, fm, familyName.c_str(), &zh, 1, fs); in onDraw()
114 x = drawCharacter(canvas, 0x5203, x, y, font, fm, familyName.c_str(), &ja, 1, fs); in onDraw()
116 … x = drawCharacter(canvas, 0x1f601, x, y, font, fm, familyName.c_str(), nullptr,0, fs); in onDraw()
263 SkFontMetrics fm; in show_bounds() local
264 font.getMetrics(&fm); in show_bounds()
268 if ((fm.fFlags & SkFontMetrics::kUnderlinePositionIsValid_Flag) && in show_bounds()
269 (fm.fFlags & SkFontMetrics::kUnderlineThicknessIsValid_Flag)) in show_bounds()
271 SkRect underline{ min.fLeft, fm.fUnderlinePosition, in show_bounds()
272 min.fRight, fm.fUnderlinePosition + fm.fUnderlineThickness }; in show_bounds()
276 if ((fm.fFlags & SkFontMetrics::kStrikeoutPositionIsValid_Flag) && in show_bounds()
277 (fm.fFlags & SkFontMetrics::kStrikeoutThicknessIsValid_Flag)) in show_bounds()
279 SkRect strikeout{ min.fLeft, fm.fStrikeoutPosition - fm.fStrikeoutThickness, in show_bounds()
280 min.fRight, fm.fStrikeoutPosition }; in show_bounds()
338 SkFontMgr* fm = fFM.get(); in onDraw() local
339 int count = std::min(fm->countFamilies(), 32); in onDraw()
347 sk_sp<SkFontStyleSet> set(fm->createStyleSet(i)); in onDraw()