Lines Matching refs:otm
195 OUTLINETEXTMETRIC otm; in calculateUPEM() local
196 unsigned int otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in calculateUPEM()
199 otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in calculateUPEM()
202 return (0 == otmRet) ? 0 : otm.otmEMSquare; in calculateUPEM()
707 OUTLINETEXTMETRIC otm; in SkScalerContext_GDI() local
708 UINT success = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm); in SkScalerContext_GDI()
711 success = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm); in SkScalerContext_GDI()
714 SkScalar upem = SkIntToScalar(otm.otmEMSquare); in SkScalerContext_GDI()
974 OUTLINETEXTMETRIC otm; in generateFontMetrics() local
976 uint32_t ret = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm); in generateFontMetrics()
979 ret = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm); in generateFontMetrics()
986 metrics->fTop = SkIntToScalar(-otm.otmrcFontBox.top); in generateFontMetrics()
987 metrics->fAscent = SkIntToScalar(-otm.otmAscent); in generateFontMetrics()
988 metrics->fDescent = SkIntToScalar(-otm.otmDescent); in generateFontMetrics()
989 metrics->fBottom = SkIntToScalar(-otm.otmrcFontBox.bottom); in generateFontMetrics()
990 metrics->fLeading = SkIntToScalar(otm.otmLineGap); in generateFontMetrics()
991 metrics->fAvgCharWidth = SkIntToScalar(otm.otmTextMetrics.tmAveCharWidth); in generateFontMetrics()
992 metrics->fMaxCharWidth = SkIntToScalar(otm.otmTextMetrics.tmMaxCharWidth); in generateFontMetrics()
993 metrics->fXMin = SkIntToScalar(otm.otmrcFontBox.left); in generateFontMetrics()
994 metrics->fXMax = SkIntToScalar(otm.otmrcFontBox.right); in generateFontMetrics()
996 metrics->fUnderlineThickness = SkIntToScalar(otm.otmsUnderscoreSize); in generateFontMetrics()
997 metrics->fUnderlinePosition = -SkIntToScalar(otm.otmsUnderscorePosition); in generateFontMetrics()
1002 metrics->fXHeight = SkIntToScalar(otm.otmsXHeight); in generateFontMetrics()
1751 OUTLINETEXTMETRIC otm; in onGetAdvancedTypefaceMetrics() local
1752 unsigned int otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in onGetAdvancedTypefaceMetrics()
1755 otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in onGetAdvancedTypefaceMetrics()
1760 lf.lfHeight = -SkToS32(otm.otmEMSquare); in onGetAdvancedTypefaceMetrics()
1763 if (!GetOutlineTextMetrics(hdc, sizeof(otm), &otm)) { in onGetAdvancedTypefaceMetrics()
1769 info->fEmSize = otm.otmEMSquare; in onGetAdvancedTypefaceMetrics()
1777 if (otm.otmfsType & 0x1) { in onGetAdvancedTypefaceMetrics()
1788 (otm.otmTextMetrics.tmPitchAndFamily & TMPF_TRUETYPE)) { in onGetAdvancedTypefaceMetrics()
1802 if (!(otm.otmTextMetrics.tmPitchAndFamily & TMPF_FIXED_PITCH)) { in onGetAdvancedTypefaceMetrics()
1805 if (otm.otmTextMetrics.tmItalic) { in onGetAdvancedTypefaceMetrics()
1808 if (otm.otmTextMetrics.tmPitchAndFamily & FF_ROMAN) { in onGetAdvancedTypefaceMetrics()
1810 } else if (otm.otmTextMetrics.tmPitchAndFamily & FF_SCRIPT) { in onGetAdvancedTypefaceMetrics()
1816 info->fItalicAngle = otm.otmItalicAngle / 10; in onGetAdvancedTypefaceMetrics()
1817 info->fAscent = SkToS16(otm.otmTextMetrics.tmAscent); in onGetAdvancedTypefaceMetrics()
1818 info->fDescent = SkToS16(-otm.otmTextMetrics.tmDescent); in onGetAdvancedTypefaceMetrics()
1822 info->fCapHeight = otm.otmsCapEmHeight; in onGetAdvancedTypefaceMetrics()
1824 SkIRect::MakeLTRB(otm.otmrcFontBox.left, otm.otmrcFontBox.top, in onGetAdvancedTypefaceMetrics()
1825 otm.otmrcFontBox.right, otm.otmrcFontBox.bottom); in onGetAdvancedTypefaceMetrics()