Searched refs:unitsPerEm (Results 1 - 23 of 23) 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/wx/wxcode/mac/carbon/
H A Dfontprops.mm41 static inline float scaleEmToUnits(float x, unsigned unitsPerEm) { return x * (contextDPI / (contextDPI * unitsPerEm)); }
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/
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/svg/
H A DSVGFontFaceElement.h38 unsigned unitsPerEm() const;
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/webkit/Source/WebCore/platform/graphics/mac/
H A 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);
[all...]
H A DFontMac.mm56 // without unitsPerEm applied. We have to apply a transform that scales up to the point size and that also
57 // divides by unitsPerEm.
99 CGFloat unitsPerEm = CGFontGetUnitsPerEm(platformData.cgFont());
100 translationsTransform = CGAffineTransformConcat(translationsTransform, CGAffineTransformMakeScale(1 / unitsPerEm, 1 / 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/rendering/svg/
H A DSVGTextLayoutEngineSpacing.cpp61 kerning *= m_font.size() / m_font.fontMetrics().unitsPerEm();
/external/icu4c/samples/layout/
H A Dsfnt.h153 le_uint16 unitsPerEm; member in struct:HEADTable
H A DGDIFontInstance.cpp262 // read unitsPerEm from 'head' table
270 fUnitsPerEM = SWAPW(headTable->unitsPerEm);
/external/icu4c/test/letest/
H A DFontObject.h116 le_uint16 unitsPerEm; member in struct:HEADTable
H A DFontObject.cpp204 return SWAPW(headTable->unitsPerEm);
H A Dsfnt.h282 le_uint16 unitsPerEm; member in struct:HEADTable
H A DPortableFontInstance.cpp114 // read unitsPerEm from 'head' table
122 fUnitsPerEM = SWAPW(headTable->unitsPerEm);
/external/webkit/Source/WebCore/platform/mac/
H A DWebCoreSystemInterface.mm109 void (*wkGetFontMetrics)(CGFontRef, int* ascent, int* descent, int* lineGap, unsigned* unitsPerEm);
H A DWebCoreSystemInterface.h175 extern void (*wkGetFontMetrics)(CGFontRef, int* ascent, int* descent, int* lineGap, unsigned* unitsPerEm);
/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.cpp613 uint16_t unitsPerEm = 0; local
616 unitsPerEm = rec->fFace->units_per_EM;
620 return (uint32_t)unitsPerEm;
/external/webkit/Source/WebCore/platform/graphics/opentype/
H A DOpenTypeUtilities.cpp133 BigEndianUShort unitsPerEm; member in struct:WebCore::headTable
/external/webkit/WebKitLibraries/
H A DWebKitSystemInterface.h146 void WKGetFontMetrics(CGFontRef font, int *ascent, int *descent, int *lineGap, unsigned *unitsPerEm);

Completed in 286 milliseconds