HomeSort by relevance Sort by last modified time
    Searched refs:unitsPerEm (Results 1 - 25 of 29) sorted by null

1 2

  /external/webkit/Source/WebCore/platform/graphics/win/
SimpleFontDataCGWin.cpp 50 static inline float scaleEmToUnits(float x, unsigned unitsPerEm) { return unitsPerEm ? x / static_cast<float>(unitsPerEm) : x; }
66 unsigned unitsPerEm = CGFontGetUnitsPerEm(font);
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/
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/harfbuzz_ng/src/
hb-ot-head-table.hh 49 unsigned int upem = unitsPerEm;
113 USHORT unitsPerEm; /* Valid range is from 16 to 16384. This value
  /external/webkit/Source/WebCore/platform/graphics/
FontMetrics.h 41 unsigned unitsPerEm() const { return m_unitsPerEm; }
42 void setUnitsPerEm(unsigned unitsPerEm) { m_unitsPerEm = unitsPerEm; }
SimpleFontData.cpp 78 unsigned unitsPerEm = svgFontFaceElement->unitsPerEm();
81 if (unitsPerEm)
82 scale /= unitsPerEm;
97 m_fontMetrics.setUnitsPerEm(unitsPerEm);
  /external/webkit/Source/WebCore/svg/
SVGFontFaceElement.h 38 unsigned unitsPerEm() const;
SVGFontFaceElement.cpp 124 unsigned SVGFontFaceElement::unitsPerEm() const
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));
SVGFont.cpp 47 static inline float convertEmUnitToPixel(float fontSize, float unitsPerEm, float value)
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/
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...]
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/
SimpleFontDataChromiumWin.cpp 49 static inline float scaleEmToUnits(float x, int unitsPerEm)
51 return unitsPerEm ? x / static_cast<float>(unitsPerEm) : x;
  /external/webkit/Source/WebCore/rendering/svg/
SVGTextLayoutEngineSpacing.cpp 61 kerning *= m_font.size() / m_font.fontMetrics().unitsPerEm();
  /external/skia/src/sfnt/
SkOTTable_head.h 75 SK_OT_USHORT unitsPerEm;
  /external/icu4c/samples/layout/
sfnt.h 153 le_uint16 unitsPerEm;
GDIFontInstance.cpp 262 // read unitsPerEm from 'head' table
270 fUnitsPerEM = SWAPW(headTable->unitsPerEm);
  /external/icu4c/test/letest/
FontObject.h 116 le_uint16 unitsPerEm;
FontObject.cpp 204 return SWAPW(headTable->unitsPerEm);
sfnt.h 282 le_uint16 unitsPerEm;
PortableFontInstance.cpp 114 // read unitsPerEm from 'head' table
122 fUnitsPerEM = SWAPW(headTable->unitsPerEm);
  /external/harfbuzz_ng/src/hb-icu-le/
sfnt.h 285 le_uint16 unitsPerEm;
  /external/webkit/Source/WebCore/platform/mac/
WebCoreSystemInterface.mm 109 void (*wkGetFontMetrics)(CGFontRef, int* ascent, int* descent, int* lineGap, unsigned* unitsPerEm);
WebCoreSystemInterface.h 175 extern void (*wkGetFontMetrics)(CGFontRef, int* ascent, int* descent, int* lineGap, unsigned* unitsPerEm);
  /external/webkit/Source/WebCore/rendering/
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;
562 return roundf(style()->font().size() * x / unitsPerEm);
  /external/skia/src/ports/
SkFontHost_FreeType.cpp 705 uint16_t unitsPerEm = 0;
708 unitsPerEm = rec->fFace->units_per_EM;
712 return (uint32_t)unitsPerEm;
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/opentype/
OpenTypeUtilities.cpp 133 BigEndianUShort unitsPerEm;

Completed in 597 milliseconds

1 2