Lines Matching refs:otm
201 OUTLINETEXTMETRIC otm; in calculateUPEM() local
202 unsigned int otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in calculateUPEM()
205 otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in calculateUPEM()
208 return (0 == otmRet) ? 0 : otm.otmEMSquare; in calculateUPEM()
728 OUTLINETEXTMETRIC otm; in SkScalerContext_GDI() local
729 UINT success = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm); in SkScalerContext_GDI()
732 success = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm); in SkScalerContext_GDI()
735 SkScalar upem = SkIntToScalar(otm.otmEMSquare); in SkScalerContext_GDI()
1004 OUTLINETEXTMETRIC otm; in generateFontMetrics() local
1006 uint32_t ret = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm); in generateFontMetrics()
1009 ret = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm); in generateFontMetrics()
1016 metrics->fTop = SkIntToScalar(-otm.otmrcFontBox.top); in generateFontMetrics()
1017 metrics->fAscent = SkIntToScalar(-otm.otmAscent); in generateFontMetrics()
1018 metrics->fDescent = SkIntToScalar(-otm.otmDescent); in generateFontMetrics()
1019 metrics->fBottom = SkIntToScalar(-otm.otmrcFontBox.bottom); in generateFontMetrics()
1020 metrics->fLeading = SkIntToScalar(otm.otmLineGap); in generateFontMetrics()
1021 metrics->fAvgCharWidth = SkIntToScalar(otm.otmTextMetrics.tmAveCharWidth); in generateFontMetrics()
1022 metrics->fMaxCharWidth = SkIntToScalar(otm.otmTextMetrics.tmMaxCharWidth); in generateFontMetrics()
1023 metrics->fXMin = SkIntToScalar(otm.otmrcFontBox.left); in generateFontMetrics()
1024 metrics->fXMax = SkIntToScalar(otm.otmrcFontBox.right); in generateFontMetrics()
1026 metrics->fUnderlineThickness = SkIntToScalar(otm.otmsUnderscoreSize); in generateFontMetrics()
1027 metrics->fUnderlinePosition = -SkIntToScalar(otm.otmsUnderscorePosition); in generateFontMetrics()
1032 metrics->fXHeight = SkIntToScalar(otm.otmsXHeight); in generateFontMetrics()
1669 OUTLINETEXTMETRIC otm; in onGetAdvancedMetrics() local
1670 unsigned int otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in onGetAdvancedMetrics()
1673 otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in onGetAdvancedMetrics()
1678 lf.lfHeight = -SkToS32(otm.otmEMSquare); in onGetAdvancedMetrics()
1681 if (!GetOutlineTextMetrics(hdc, sizeof(otm), &otm)) { in onGetAdvancedMetrics()
1699 if (otm.otmfsType & 0x1) { in onGetAdvancedMetrics()
1705 (otm.otmTextMetrics.tmPitchAndFamily & TMPF_TRUETYPE)) { in onGetAdvancedMetrics()
1712 if (!(otm.otmTextMetrics.tmPitchAndFamily & TMPF_FIXED_PITCH)) { in onGetAdvancedMetrics()
1715 if (otm.otmTextMetrics.tmItalic) { in onGetAdvancedMetrics()
1718 if (otm.otmTextMetrics.tmPitchAndFamily & FF_ROMAN) { in onGetAdvancedMetrics()
1720 } else if (otm.otmTextMetrics.tmPitchAndFamily & FF_SCRIPT) { in onGetAdvancedMetrics()
1726 info->fItalicAngle = otm.otmItalicAngle / 10; in onGetAdvancedMetrics()
1727 info->fAscent = SkToS16(otm.otmTextMetrics.tmAscent); in onGetAdvancedMetrics()
1728 info->fDescent = SkToS16(-otm.otmTextMetrics.tmDescent); in onGetAdvancedMetrics()
1732 info->fCapHeight = otm.otmsCapEmHeight; in onGetAdvancedMetrics()
1734 SkIRect::MakeLTRB(otm.otmrcFontBox.left, otm.otmrcFontBox.top, in onGetAdvancedMetrics()
1735 otm.otmrcFontBox.right, otm.otmrcFontBox.bottom); in onGetAdvancedMetrics()