Home
last modified time | relevance | path

Searched refs:unitsPerEm (Results 1 – 25 of 34) sorted by relevance

12

/external/webkit/Source/WebCore/platform/graphics/win/
DSimpleFontDataCGWin.cpp50 …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/
Dfontprops.mm41 …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/
DSimpleFontData.cpp78 unsigned unitsPerEm = svgFontFaceElement->unitsPerEm(); in SimpleFontData() local
81 if (unitsPerEm) in SimpleFontData()
82 scale /= unitsPerEm; in SimpleFontData()
97 m_fontMetrics.setUnitsPerEm(unitsPerEm); in SimpleFontData()
DFontMetrics.h41 unsigned unitsPerEm() const { return m_unitsPerEm; } in unitsPerEm() function
42 void setUnitsPerEm(unsigned unitsPerEm) { m_unitsPerEm = unitsPerEm; } in setUnitsPerEm() argument
/external/harfbuzz_ng/src/
Dhb-ot-head-table.hh49 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/
DSVGFontFaceElement.cpp124 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()
DSVGFont.cpp47 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()
DSVGFontFaceElement.h38 unsigned unitsPerEm() const;
/external/webkit/Source/WebCore/platform/graphics/chromium/
DSimpleFontDataChromiumWin.cpp49 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/
DSimpleFontDataMac.mm59 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 …]
DFontMac.mm56 // 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/
DSVGTextLayoutEngineSpacing.cpp61 kerning *= m_font.size() / m_font.fontMetrics().unitsPerEm(); in calculateSVGKerning()
/external/skia/src/sfnt/
DSkOTTable_head.h75 SK_OT_USHORT unitsPerEm; member
/external/icu4c/samples/layout/
Dsfnt.h153 le_uint16 unitsPerEm; member
DGDIFontInstance.cpp270 fUnitsPerEM = SWAPW(headTable->unitsPerEm); in GDIFontInstance()
/external/icu4c/test/letest/
DFontObject.h116 le_uint16 unitsPerEm; member
DFontObject.cpp204 return SWAPW(headTable->unitsPerEm); in getUnitsPerEM()
Dsfnt.h282 le_uint16 unitsPerEm; member
DPortableFontInstance.cpp122 fUnitsPerEM = SWAPW(headTable->unitsPerEm); in PortableFontInstance()
/external/harfbuzz_ng/src/hb-icu-le/
Dsfnt.h285 le_uint16 unitsPerEm; member
/external/webkit/Source/WebCore/rendering/
DRenderTextControl.cpp561 float unitsPerEm = 2048.0f; in scaleEmToUnits() local
562 return roundf(style()->font().size() * x / unitsPerEm); in scaleEmToUnits()
/external/webkit/Source/WebCore/platform/mac/
DWebCoreSystemInterface.h175 …void (*wkGetFontMetrics)(CGFontRef, int* ascent, int* descent, int* lineGap, unsigned* unitsPerEm);
DWebCoreSystemInterface.mm109 void (*wkGetFontMetrics)(CGFontRef, int* ascent, int* descent, int* lineGap, unsigned* unitsPerEm);
/external/skia/src/ports/
DSkFontHost_FreeType.cpp705 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/
DOpenTypeUtilities.cpp133 BigEndianUShort unitsPerEm; member

12