Searched defs:unitsPerEm (Results 1 - 13 of 13) sorted by relevance

/external/webkit/Source/WebCore/platform/graphics/win/
H A DSimpleFontDataCGWin.cpp50 static inline float scaleEmToUnits(float x, unsigned unitsPerEm) { return unitsPerEm ? x / static_cast<float>(unitsPerEm) : x; } argument
66 unsigned unitsPerEm = CGFontGetUnitsPerEm(font); local
68 float fAscent = scaleEmToUnits(iAscent, unitsPerEm) * pointSize;
69 float fDescent = -scaleEmToUnits(iDescent, unitsPerEm) * pointSize;
70 float fLineGap = scaleEmToUnits(iLineGap, unitsPerEm) * pointSize;
107 m_fontMetrics.setXHeight(scaleEmToUnits(CGRectGetMaxY(xBox), unitsPerEm) * pointSize);
110 m_fontMetrics.setXHeight(scaleEmToUnits(iXHeight, unitsPerEm) * pointSize);
113 m_fontMetrics.setUnitsPerEm(unitsPerEm);
[all...]
/external/webkit/Source/WebCore/platform/graphics/
H A DFontMetrics.h41 unsigned unitsPerEm() const { return m_unitsPerEm; } function in class:WebCore::FontMetrics
42 void setUnitsPerEm(unsigned unitsPerEm) { m_unitsPerEm = unitsPerEm; } argument
H A DSimpleFontData.cpp78 unsigned unitsPerEm = svgFontFaceElement->unitsPerEm(); local
81 if (unitsPerEm)
82 scale /= unitsPerEm;
97 m_fontMetrics.setUnitsPerEm(unitsPerEm);
/external/webkit/Source/WebCore/platform/graphics/chromium/
H A DSimpleFontDataChromiumWin.cpp49 static inline float scaleEmToUnits(float x, int unitsPerEm) argument
51 return unitsPerEm ? x / static_cast<float>(unitsPerEm) : x;
/external/webkit/Source/WebCore/svg/
H A DSVGFontFaceElement.cpp124 unsigned SVGFontFaceElement::unitsPerEm() const function in class:WebCore::SVGFontFaceElement
228 return static_cast<int>(unitsPerEm()) - static_cast<int>(ceilf(vertOriginY.toFloat()));
232 return static_cast<int>(ceilf(unitsPerEm() * 0.8f));
256 return static_cast<int>(ceilf(unitsPerEm() * 0.2f));
H A DSVGFont.cpp47 static inline float convertEmUnitToPixel(float fontSize, float unitsPerEm, float value) argument
49 if (!unitsPerEm)
52 return value * fontSize / unitsPerEm;
405 data.scale = convertEmUnitToPixel(font->size(), fontFaceElement->unitsPerEm(), 1.0f);
477 float scale = convertEmUnitToPixel(size(), fontFaceElement->unitsPerEm(), 1.0f);
/external/icu4c/samples/layout/
H A Dsfnt.h153 le_uint16 unitsPerEm; member in struct:HEADTable
/external/icu4c/test/letest/
H A DFontObject.h116 le_uint16 unitsPerEm; member in struct:HEADTable
H A Dsfnt.h282 le_uint16 unitsPerEm; member in struct:HEADTable
/external/webkit/Source/WebCore/platform/graphics/opentype/
H A DOpenTypeUtilities.cpp133 BigEndianUShort unitsPerEm; member in struct:WebCore::headTable
/external/webkit/Source/WebCore/rendering/
H A DRenderTextControl.cpp560 // This matches the unitsPerEm value for MS Shell Dlg and Courier New from the "head" font table.
561 float unitsPerEm = 2048.0f; local
562 return roundf(style()->font().size() * x / unitsPerEm);
/external/skia/src/ports/
H A DSkFontHost_FreeType.cpp707 uint16_t unitsPerEm = 0; local
710 unitsPerEm = rec->fFace->units_per_EM;
714 return (uint32_t)unitsPerEm;
H A DSkFontHost_mac_coretext.cpp262 int unitsPerEm = CGFontGetUnitsPerEm(cgFont); local
263 return SkScalarInvert(SkIntToScalar(unitsPerEm));

Completed in 1166 milliseconds