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

1 2

  /external/chromium_org/third_party/WebKit/Source/platform/fonts/
FontMetrics.h 47 unsigned unitsPerEm() const { return m_unitsPerEm; }
48 void setUnitsPerEm(unsigned unitsPerEm) { m_unitsPerEm = unitsPerEm; }
162 inline float scaleEmToUnits(float x, unsigned unitsPerEm)
164 return unitsPerEm ? x / unitsPerEm : x;
SimpleFontData.h 105 float sizePerUnit() const { return platformData().size() / (fontMetrics().unitsPerEm() ? fontMetrics().unitsPerEm() : 1); }
  /external/chromium_org/third_party/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/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/chromium_org/third_party/WebKit/Source/core/svg/
SVGFontFaceElement.h 40 unsigned unitsPerEm() const;
SVGFontData.cpp 80 unsigned unitsPerEm = svgFontFaceElement->unitsPerEm();
81 float scale = scaleEmToUnits(fontSize, unitsPerEm);
96 fontMetrics.setUnitsPerEm(unitsPerEm);
140 return m_horizontalAdvanceX * scaleEmToUnits(fontSize, svgFontFaceElement->unitsPerEm());
147 return svgGlyph.horizontalAdvanceX * scaleEmToUnits(fontSize, svgFontFaceElement->unitsPerEm());
SVGFontFaceElement.cpp 121 unsigned SVGFontFaceElement::unitsPerEm() const
225 return static_cast<int>(unitsPerEm()) - static_cast<int>(ceilf(vertOriginY.toFloat()));
229 return static_cast<int>(ceilf(unitsPerEm() * 0.8f));
253 return static_cast<int>(ceilf(unitsPerEm() * 0.2f));
  /external/chromium_org/third_party/freetype/src/cff/
cf2font.h 71 CF2_Int unitsPerEm;
cf2font.c 228 CF2_Int unitsPerEm = font->unitsPerEm;
231 if ( unitsPerEm == 0 )
232 unitsPerEm = 1000;
244 /* unitsPerEm instead. */
246 emRatio = cf2_intToFixed( 1000 ) / unitsPerEm;
257 FT_DivFix( cf2_intToFixed( unitsPerEm ), ppem ) );
cf2blues.c 89 CF2_Int unitsPerEm = font->unitsPerEm;
92 if ( unitsPerEm == 0 )
93 unitsPerEm = 1000;
127 if ( ascender - descender == unitsPerEm )
cf2ft.c 57 CF2_Int unitsPerEm )
62 FT_ASSERT( unitsPerEm > 0 );
68 if ( unitsPerEm > 0x7FFF )
71 maxScale = FT_DivFix( CF2_MAX_SIZE, cf2_intToFixed( unitsPerEm ) );
349 font->unitsPerEm = (CF2_Int)cf2_getUnitsPerEm( decoder );
351 error2 = cf2_checkTransform( &transform, font->unitsPerEm );
  /external/freetype/src/cff/
cf2font.h 71 CF2_Int unitsPerEm;
cf2font.c 325 CF2_Int unitsPerEm = font->unitsPerEm;
328 if ( unitsPerEm == 0 )
329 unitsPerEm = 1000;
341 /* unitsPerEm instead. */
343 emRatio = cf2_intToFixed( 1000 ) / unitsPerEm;
354 FT_DivFix( cf2_intToFixed( unitsPerEm ), ppem ) );
cf2blues.c 90 CF2_Int unitsPerEm = font->unitsPerEm;
93 if ( unitsPerEm == 0 )
94 unitsPerEm = 1000;
129 if ( ascender - descender == unitsPerEm )
cf2ft.c 57 CF2_Int unitsPerEm )
62 FT_ASSERT( unitsPerEm > 0 );
70 if ( unitsPerEm > 0x7FFF )
73 maxScale = FT_DivFix( CF2_MAX_SIZE, cf2_intToFixed( unitsPerEm ) );
358 font->unitsPerEm = (CF2_Int)cf2_getUnitsPerEm( decoder );
362 error2 = cf2_checkTransform( &transform, font->unitsPerEm );
  /external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/cff/
cf2font.h 71 CF2_Int unitsPerEm;
cf2font.c 230 CF2_Int unitsPerEm = font->unitsPerEm;
233 if ( unitsPerEm == 0 )
234 unitsPerEm = 1000;
246 /* unitsPerEm instead. */
248 emRatio = cf2_intToFixed( 1000 ) / unitsPerEm;
259 FT_DivFix( cf2_intToFixed( unitsPerEm ), ppem ) );
cf2blues.c 89 CF2_Int unitsPerEm = font->unitsPerEm;
92 if ( unitsPerEm == 0 )
93 unitsPerEm = 1000;
127 if ( ascender - descender == unitsPerEm )
cf2ft.c 57 CF2_Int unitsPerEm )
62 FT_ASSERT( unitsPerEm > 0 );
68 if ( unitsPerEm > 0x7FFF )
71 maxScale = FT_DivFix( CF2_MAX_SIZE, cf2_intToFixed( unitsPerEm ) );
349 font->unitsPerEm = (CF2_Int)cf2_getUnitsPerEm( decoder );
351 error2 = cf2_checkTransform( &transform, font->unitsPerEm );
  /external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/
SimpleFontDataMac.mm 209 unsigned unitsPerEm;
216 unitsPerEm = CGFontGetUnitsPerEm(m_platformData.cgFont());
219 float ascent = scaleEmToUnits(iAscent, unitsPerEm) * pointSize;
220 float descent = -scaleEmToUnits(iDescent, unitsPerEm) * pointSize;
221 float lineGap = scaleEmToUnits(iLineGap, unitsPerEm) * pointSize;
257 xHeight = scaleEmToUnits(CGFontGetXHeight(m_platformData.cgFont()), unitsPerEm) * pointSize;
261 m_fontMetrics.setUnitsPerEm(unitsPerEm);
284 m_avgCharWidth = scaleEmToUnits(os2AvgCharWidth, m_fontMetrics.unitsPerEm()) * m_platformData.m_textSize;
295 m_maxCharWidth = scaleEmToUnits(diff, m_fontMetrics.unitsPerEm()) * m_platformData.m_textSize;
  /external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
SVGTextLayoutEngineSpacing.cpp 76 kerning *= m_font.fontDescription().computedSize() / m_font.fontMetrics().unitsPerEm();
  /external/chromium_org/third_party/skia/src/sfnt/
SkOTTable_head.h 75 SK_OT_USHORT unitsPerEm;
  /external/skia/src/sfnt/
SkOTTable_head.h 75 SK_OT_USHORT unitsPerEm;
  /external/chromium_org/third_party/WebKit/Source/core/rendering/
RenderTextControl.cpp 239 // This matches the unitsPerEm value for MS Shell Dlg and Courier New from the "head" font table.
240 float unitsPerEm = 2048.0f;
241 return roundf(style()->font().fontDescription().computedSize() * x / unitsPerEm);
  /external/chromium_org/third_party/WebKit/Source/platform/fonts/skia/
SimpleFontDataSkia.cpp 183 if (int unitsPerEm = face->getUnitsPerEm())
184 m_fontMetrics.setUnitsPerEm(unitsPerEm);

Completed in 319 milliseconds

1 2