/external/webkit/Source/WebCore/platform/graphics/win/ |
H A D | SimpleFontDataCGWin.cpp | 50 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 D | fontprops.mm | 41 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 D | FontMetrics.h | 41 unsigned unitsPerEm() const { return m_unitsPerEm; } function in class:WebCore::FontMetrics 42 void setUnitsPerEm(unsigned unitsPerEm) { m_unitsPerEm = unitsPerEm; } argument
|
H A D | SimpleFontData.cpp | 78 unsigned unitsPerEm = svgFontFaceElement->unitsPerEm(); local 81 if (unitsPerEm) 82 scale /= unitsPerEm; 97 m_fontMetrics.setUnitsPerEm(unitsPerEm);
|
/external/webkit/Source/WebCore/svg/ |
H A D | SVGFontFaceElement.h | 38 unsigned unitsPerEm() const;
|
H A D | SVGFontFaceElement.cpp | 124 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 D | SVGFont.cpp | 47 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 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); [all...] |
H A D | FontMac.mm | 56 // 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 D | SimpleFontDataChromiumWin.cpp | 49 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 D | SVGTextLayoutEngineSpacing.cpp | 61 kerning *= m_font.size() / m_font.fontMetrics().unitsPerEm();
|
/external/icu4c/samples/layout/ |
H A D | sfnt.h | 153 le_uint16 unitsPerEm; member in struct:HEADTable
|
H A D | GDIFontInstance.cpp | 262 // read unitsPerEm from 'head' table 270 fUnitsPerEM = SWAPW(headTable->unitsPerEm);
|
/external/icu4c/test/letest/ |
H A D | FontObject.h | 116 le_uint16 unitsPerEm; member in struct:HEADTable
|
H A D | FontObject.cpp | 204 return SWAPW(headTable->unitsPerEm);
|
H A D | sfnt.h | 282 le_uint16 unitsPerEm; member in struct:HEADTable
|
H A D | PortableFontInstance.cpp | 114 // read unitsPerEm from 'head' table 122 fUnitsPerEM = SWAPW(headTable->unitsPerEm);
|
/external/webkit/Source/WebCore/platform/mac/ |
H A D | WebCoreSystemInterface.mm | 109 void (*wkGetFontMetrics)(CGFontRef, int* ascent, int* descent, int* lineGap, unsigned* unitsPerEm);
|
H A D | WebCoreSystemInterface.h | 175 extern void (*wkGetFontMetrics)(CGFontRef, int* ascent, int* descent, int* lineGap, unsigned* unitsPerEm);
|
/external/webkit/Source/WebCore/rendering/ |
H A D | RenderTextControl.cpp | 560 // 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 D | SkFontHost_FreeType.cpp | 613 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 D | OpenTypeUtilities.cpp | 133 BigEndianUShort unitsPerEm; member in struct:WebCore::headTable
|
/external/webkit/WebKitLibraries/ |
H A D | WebKitSystemInterface.h | 146 void WKGetFontMetrics(CGFontRef font, int *ascent, int *descent, int *lineGap, unsigned *unitsPerEm);
|