/external/webkit/Source/WebCore/platform/graphics/win/ |
D | SimpleFontDataCGWin.cpp | 50 …ine float scaleEmToUnits(float x, unsigned unitsPerEm) { return unitsPerEm ? x / static_cast<float… in scaleEmToUnits() argument 66 unsigned unitsPerEm = CGFontGetUnitsPerEm(font); in platformInit() local 68 float fAscent = scaleEmToUnits(iAscent, unitsPerEm) * pointSize; in platformInit() 69 float fDescent = -scaleEmToUnits(iDescent, unitsPerEm) * pointSize; in platformInit() 70 float fLineGap = scaleEmToUnits(iLineGap, unitsPerEm) * pointSize; in platformInit() 107 m_fontMetrics.setXHeight(scaleEmToUnits(CGRectGetMaxY(xBox), unitsPerEm) * pointSize); in platformInit() 110 m_fontMetrics.setXHeight(scaleEmToUnits(iXHeight, unitsPerEm) * pointSize); in platformInit() 113 m_fontMetrics.setUnitsPerEm(unitsPerEm); in platformInit() 133 CGFloat scale = pointSize / fontMetrics().unitsPerEm(); in platformBoundsForGlyph()
|
/external/webkit/Source/WebCore/platform/wx/wxcode/mac/carbon/ |
D | fontprops.mm | 41 …nline float scaleEmToUnits(float x, unsigned unitsPerEm) { return x * (contextDPI / (contextDPI * … 63 unsigned unitsPerEm; 65 wkGetFontMetrics(cgFont, &iAscent, &iDescent, &iLineGap, &unitsPerEm); 70 unitsPerEm = CGFontGetUnitsPerEm(cgFont); 73 float fAscent = scaleEmToUnits(iAscent, unitsPerEm) * pointSize; 74 float fDescent = -scaleEmToUnits(iDescent, unitsPerEm) * pointSize; 75 float fLineGap = scaleEmToUnits(iLineGap, unitsPerEm) * pointSize;
|
/external/webkit/Source/WebCore/platform/graphics/ |
D | SimpleFontData.cpp | 78 unsigned unitsPerEm = svgFontFaceElement->unitsPerEm(); in SimpleFontData() local 81 if (unitsPerEm) in SimpleFontData() 82 scale /= unitsPerEm; in SimpleFontData() 97 m_fontMetrics.setUnitsPerEm(unitsPerEm); in SimpleFontData()
|
D | FontMetrics.h | 41 unsigned unitsPerEm() const { return m_unitsPerEm; } in unitsPerEm() function 42 void setUnitsPerEm(unsigned unitsPerEm) { m_unitsPerEm = unitsPerEm; } in setUnitsPerEm() argument
|
/external/harfbuzz_ng/src/ |
D | hb-ot-head-table.hh | 49 unsigned int upem = unitsPerEm; in get_upem() 113 USHORT unitsPerEm; /* Valid range is from 16 to 16384. This value member
|
/external/webkit/Source/WebCore/svg/ |
D | SVGFontFaceElement.cpp | 124 unsigned SVGFontFaceElement::unitsPerEm() const in unitsPerEm() function in WebCore::SVGFontFaceElement 228 return static_cast<int>(unitsPerEm()) - static_cast<int>(ceilf(vertOriginY.toFloat())); in ascent() 232 return static_cast<int>(ceilf(unitsPerEm() * 0.8f)); in ascent() 256 return static_cast<int>(ceilf(unitsPerEm() * 0.2f)); in descent()
|
D | SVGFont.cpp | 47 static inline float convertEmUnitToPixel(float fontSize, float unitsPerEm, float value) in convertEmUnitToPixel() argument 49 if (!unitsPerEm) in convertEmUnitToPixel() 52 return value * fontSize / unitsPerEm; in convertEmUnitToPixel() 405 data.scale = convertEmUnitToPixel(font->size(), fontFaceElement->unitsPerEm(), 1.0f); in floatWidthOfSubStringUsingSVGFont() 477 float scale = convertEmUnitToPixel(size(), fontFaceElement->unitsPerEm(), 1.0f); in drawTextUsingSVGFont()
|
D | SVGFontFaceElement.h | 38 unsigned unitsPerEm() const;
|
/external/webkit/Source/WebCore/platform/graphics/chromium/ |
D | SimpleFontDataChromiumWin.cpp | 49 static inline float scaleEmToUnits(float x, int unitsPerEm) in scaleEmToUnits() argument 51 return unitsPerEm ? x / static_cast<float>(unitsPerEm) : x; in scaleEmToUnits()
|
/external/webkit/Source/WebCore/platform/graphics/mac/ |
D | SimpleFontDataMac.mm | 59 static inline float scaleEmToUnits(float x, unsigned unitsPerEm) { return x / unitsPerEm; } 221 unsigned unitsPerEm; 223 wkGetFontMetrics(m_platformData.cgFont(), &iAscent, &iDescent, &iLineGap, &unitsPerEm); 228 unitsPerEm = CGFontGetUnitsPerEm(m_platformData.cgFont()); 232 float ascent = scaleEmToUnits(iAscent, unitsPerEm) * pointSize; 233 float descent = -scaleEmToUnits(iDescent, unitsPerEm) * pointSize; 234 float lineGap = scaleEmToUnits(iLineGap, unitsPerEm) * pointSize; 287 … xHeight = scaleEmToUnits(CGFontGetXHeight(m_platformData.cgFont()), unitsPerEm) * pointSize; 291 m_fontMetrics.setUnitsPerEm(unitsPerEm); 332 …m_avgCharWidth = scaleEmToUnits(os2AvgCharWidth, m_fontMetrics.unitsPerEm()) * m_platformData.m_si… [all …]
|
D | FontMac.mm | 56 // without unitsPerEm applied. We have to apply a transform that scales up to the point size and t… 57 // divides by unitsPerEm. 99 CGFloat unitsPerEm = CGFontGetUnitsPerEm(platformData.cgFont()); 100 …TransformConcat(translationsTransform, CGAffineTransformMakeScale(1 / unitsPerEm, 1 / unitsPerEm));
|
/external/webkit/Source/WebCore/rendering/svg/ |
D | SVGTextLayoutEngineSpacing.cpp | 61 kerning *= m_font.size() / m_font.fontMetrics().unitsPerEm(); in calculateSVGKerning()
|
/external/skia/src/sfnt/ |
D | SkOTTable_head.h | 75 SK_OT_USHORT unitsPerEm; member
|
/external/icu4c/samples/layout/ |
D | sfnt.h | 153 le_uint16 unitsPerEm; member
|
D | GDIFontInstance.cpp | 270 fUnitsPerEM = SWAPW(headTable->unitsPerEm); in GDIFontInstance()
|
/external/icu4c/test/letest/ |
D | FontObject.h | 116 le_uint16 unitsPerEm; member
|
D | FontObject.cpp | 204 return SWAPW(headTable->unitsPerEm); in getUnitsPerEM()
|
D | sfnt.h | 282 le_uint16 unitsPerEm; member
|
D | PortableFontInstance.cpp | 122 fUnitsPerEM = SWAPW(headTable->unitsPerEm); in PortableFontInstance()
|
/external/harfbuzz_ng/src/hb-icu-le/ |
D | sfnt.h | 285 le_uint16 unitsPerEm; member
|
/external/webkit/Source/WebCore/rendering/ |
D | RenderTextControl.cpp | 561 float unitsPerEm = 2048.0f; in scaleEmToUnits() local 562 return roundf(style()->font().size() * x / unitsPerEm); in scaleEmToUnits()
|
/external/webkit/Source/WebCore/platform/mac/ |
D | WebCoreSystemInterface.h | 175 …void (*wkGetFontMetrics)(CGFontRef, int* ascent, int* descent, int* lineGap, unsigned* unitsPerEm);
|
D | WebCoreSystemInterface.mm | 109 void (*wkGetFontMetrics)(CGFontRef, int* ascent, int* descent, int* lineGap, unsigned* unitsPerEm);
|
/external/skia/src/ports/ |
D | SkFontHost_FreeType.cpp | 705 uint16_t unitsPerEm = 0; in GetUnitsPerEm() local 708 unitsPerEm = rec->fFace->units_per_EM; in GetUnitsPerEm() 712 return (uint32_t)unitsPerEm; in GetUnitsPerEm()
|
/external/webkit/Source/WebCore/platform/graphics/opentype/ |
D | OpenTypeUtilities.cpp | 133 BigEndianUShort unitsPerEm; member
|