• Home
  • Raw
  • Download

Lines Matching refs:otm

202     OUTLINETEXTMETRIC otm;  in calculateUPEM()  local
203 unsigned int otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in calculateUPEM()
206 otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in calculateUPEM()
209 return (0 == otmRet) ? 0 : otm.otmEMSquare; in calculateUPEM()
740 OUTLINETEXTMETRIC otm; in SkScalerContext_GDI() local
741 UINT success = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm); in SkScalerContext_GDI()
744 success = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm); in SkScalerContext_GDI()
747 SkScalar upem = SkIntToScalar(otm.otmEMSquare); in SkScalerContext_GDI()
941 OUTLINETEXTMETRIC otm; in generateFontMetrics() local
943 uint32_t ret = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm); in generateFontMetrics()
946 ret = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm); in generateFontMetrics()
953 metrics->fTop = SkIntToScalar(-otm.otmrcFontBox.top); in generateFontMetrics()
954 metrics->fAscent = SkIntToScalar(-otm.otmAscent); in generateFontMetrics()
955 metrics->fDescent = SkIntToScalar(-otm.otmDescent); in generateFontMetrics()
956 metrics->fBottom = SkIntToScalar(-otm.otmrcFontBox.bottom); in generateFontMetrics()
957 metrics->fLeading = SkIntToScalar(otm.otmLineGap); in generateFontMetrics()
958 metrics->fAvgCharWidth = SkIntToScalar(otm.otmTextMetrics.tmAveCharWidth); in generateFontMetrics()
959 metrics->fMaxCharWidth = SkIntToScalar(otm.otmTextMetrics.tmMaxCharWidth); in generateFontMetrics()
960 metrics->fXMin = SkIntToScalar(otm.otmrcFontBox.left); in generateFontMetrics()
961 metrics->fXMax = SkIntToScalar(otm.otmrcFontBox.right); in generateFontMetrics()
963 metrics->fUnderlineThickness = SkIntToScalar(otm.otmsUnderscoreSize); in generateFontMetrics()
964 metrics->fUnderlinePosition = -SkIntToScalar(otm.otmsUnderscorePosition); in generateFontMetrics()
969 metrics->fXHeight = SkIntToScalar(otm.otmsXHeight); in generateFontMetrics()
1641 OUTLINETEXTMETRIC otm; in onGetAdvancedMetrics() local
1642 unsigned int otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in onGetAdvancedMetrics()
1645 otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in onGetAdvancedMetrics()
1650 lf.lfHeight = -SkToS32(otm.otmEMSquare); in onGetAdvancedMetrics()
1653 if (!GetOutlineTextMetrics(hdc, sizeof(otm), &otm)) { in onGetAdvancedMetrics()
1671 if (otm.otmfsType & 0x1) { in onGetAdvancedMetrics()
1676 if (glyphCount == 0 || (otm.otmTextMetrics.tmPitchAndFamily & TMPF_TRUETYPE) == 0) { in onGetAdvancedMetrics()
1682 if (!(otm.otmTextMetrics.tmPitchAndFamily & TMPF_FIXED_PITCH)) { in onGetAdvancedMetrics()
1685 if (otm.otmTextMetrics.tmItalic) { in onGetAdvancedMetrics()
1688 if (otm.otmTextMetrics.tmPitchAndFamily & FF_ROMAN) { in onGetAdvancedMetrics()
1690 } else if (otm.otmTextMetrics.tmPitchAndFamily & FF_SCRIPT) { in onGetAdvancedMetrics()
1696 info->fItalicAngle = otm.otmItalicAngle / 10; in onGetAdvancedMetrics()
1697 info->fAscent = SkToS16(otm.otmTextMetrics.tmAscent); in onGetAdvancedMetrics()
1698 info->fDescent = SkToS16(-otm.otmTextMetrics.tmDescent); in onGetAdvancedMetrics()
1702 info->fCapHeight = otm.otmsCapEmHeight; in onGetAdvancedMetrics()
1704 SkIRect::MakeLTRB(otm.otmrcFontBox.left, otm.otmrcFontBox.top, in onGetAdvancedMetrics()
1705 otm.otmrcFontBox.right, otm.otmrcFontBox.bottom); in onGetAdvancedMetrics()