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