Lines Matching refs:otm

197     OUTLINETEXTMETRIC otm;  in calculateUPEM()  local
198 unsigned int otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in calculateUPEM()
201 otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in calculateUPEM()
204 return (0 == otmRet) ? 0 : otm.otmEMSquare; in calculateUPEM()
709 OUTLINETEXTMETRIC otm; in SkScalerContext_GDI() local
710 UINT success = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm); in SkScalerContext_GDI()
713 success = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm); in SkScalerContext_GDI()
716 SkScalar upem = SkIntToScalar(otm.otmEMSquare); in SkScalerContext_GDI()
976 OUTLINETEXTMETRIC otm; in generateFontMetrics() local
978 uint32_t ret = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm); in generateFontMetrics()
981 ret = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm); in generateFontMetrics()
988 metrics->fTop = SkIntToScalar(-otm.otmrcFontBox.top); in generateFontMetrics()
989 metrics->fAscent = SkIntToScalar(-otm.otmAscent); in generateFontMetrics()
990 metrics->fDescent = SkIntToScalar(-otm.otmDescent); in generateFontMetrics()
991 metrics->fBottom = SkIntToScalar(-otm.otmrcFontBox.bottom); in generateFontMetrics()
992 metrics->fLeading = SkIntToScalar(otm.otmLineGap); in generateFontMetrics()
993 metrics->fAvgCharWidth = SkIntToScalar(otm.otmTextMetrics.tmAveCharWidth); in generateFontMetrics()
994 metrics->fMaxCharWidth = SkIntToScalar(otm.otmTextMetrics.tmMaxCharWidth); in generateFontMetrics()
995 metrics->fXMin = SkIntToScalar(otm.otmrcFontBox.left); in generateFontMetrics()
996 metrics->fXMax = SkIntToScalar(otm.otmrcFontBox.right); in generateFontMetrics()
998 metrics->fUnderlineThickness = SkIntToScalar(otm.otmsUnderscoreSize); in generateFontMetrics()
999 metrics->fUnderlinePosition = -SkIntToScalar(otm.otmsUnderscorePosition); in generateFontMetrics()
1004 metrics->fXHeight = SkIntToScalar(otm.otmsXHeight); in generateFontMetrics()
1748 OUTLINETEXTMETRIC otm; in onGetAdvancedTypefaceMetrics() local
1749 unsigned int otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in onGetAdvancedTypefaceMetrics()
1752 otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in onGetAdvancedTypefaceMetrics()
1757 lf.lfHeight = -SkToS32(otm.otmEMSquare); in onGetAdvancedTypefaceMetrics()
1760 if (!GetOutlineTextMetrics(hdc, sizeof(otm), &otm)) { in onGetAdvancedTypefaceMetrics()
1766 info->fEmSize = otm.otmEMSquare; in onGetAdvancedTypefaceMetrics()
1772 if (otm.otmfsType & 0x1) { in onGetAdvancedTypefaceMetrics()
1783 (otm.otmTextMetrics.tmPitchAndFamily & TMPF_TRUETYPE)) { in onGetAdvancedTypefaceMetrics()
1790 if (!(otm.otmTextMetrics.tmPitchAndFamily & TMPF_FIXED_PITCH)) { in onGetAdvancedTypefaceMetrics()
1793 if (otm.otmTextMetrics.tmItalic) { in onGetAdvancedTypefaceMetrics()
1796 if (otm.otmTextMetrics.tmPitchAndFamily & FF_ROMAN) { in onGetAdvancedTypefaceMetrics()
1798 } else if (otm.otmTextMetrics.tmPitchAndFamily & FF_SCRIPT) { in onGetAdvancedTypefaceMetrics()
1804 info->fItalicAngle = otm.otmItalicAngle / 10; in onGetAdvancedTypefaceMetrics()
1805 info->fAscent = SkToS16(otm.otmTextMetrics.tmAscent); in onGetAdvancedTypefaceMetrics()
1806 info->fDescent = SkToS16(-otm.otmTextMetrics.tmDescent); in onGetAdvancedTypefaceMetrics()
1810 info->fCapHeight = otm.otmsCapEmHeight; in onGetAdvancedTypefaceMetrics()
1812 SkIRect::MakeLTRB(otm.otmrcFontBox.left, otm.otmrcFontBox.top, in onGetAdvancedTypefaceMetrics()
1813 otm.otmrcFontBox.right, otm.otmrcFontBox.bottom); in onGetAdvancedTypefaceMetrics()