/external/chromium_org/third_party/WebKit/Source/platform/fonts/ |
H A D | FontMetrics.h | 47 unsigned unitsPerEm() const { return m_unitsPerEm; } function in class:blink::FontMetrics 48 void setUnitsPerEm(unsigned unitsPerEm) { m_unitsPerEm = unitsPerEm; } argument 162 inline float scaleEmToUnits(float x, unsigned unitsPerEm) argument 164 return unitsPerEm ? x / unitsPerEm : x;
|
H A D | SimpleFontData.h | 105 float sizePerUnit() const { return platformData().size() / (fontMetrics().unitsPerEm() ? fontMetrics().unitsPerEm() : 1); }
|
/external/chromium_org/third_party/harfbuzz-ng/src/ |
H A D | hb-ot-head-table.hh | 49 unsigned int upem = unitsPerEm; 113 USHORT unitsPerEm; /* Valid range is from 16 to 16384. This value member in struct:OT::head
|
/external/harfbuzz_ng/src/ |
H A D | hb-ot-head-table.hh | 49 unsigned int upem = unitsPerEm; 113 USHORT unitsPerEm; /* Valid range is from 16 to 16384. This value member in struct:OT::head
|
/external/chromium_org/third_party/freetype/src/cff/ |
H A D | cf2font.h | 71 CF2_Int unitsPerEm; member in struct:CF2_FontRec_
|
H A D | cf2font.c | 228 CF2_Int unitsPerEm = font->unitsPerEm; local 231 if ( unitsPerEm == 0 ) 232 unitsPerEm = 1000; 244 /* unitsPerEm instead. */ 246 emRatio = cf2_intToFixed( 1000 ) / unitsPerEm; 257 FT_DivFix( cf2_intToFixed( unitsPerEm ), ppem ) );
|
H A D | cf2blues.c | 89 CF2_Int unitsPerEm = font->unitsPerEm; local 92 if ( unitsPerEm == 0 ) 93 unitsPerEm = 1000; 127 if ( ascender - descender == unitsPerEm )
|
H A D | 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/ |
H A D | cf2font.h | 71 CF2_Int unitsPerEm; member in struct:CF2_FontRec_
|
H A D | cf2font.c | 325 CF2_Int unitsPerEm = font->unitsPerEm; local 328 if ( unitsPerEm == 0 ) 329 unitsPerEm = 1000; 341 /* unitsPerEm instead. */ 343 emRatio = cf2_intToFixed( 1000 ) / unitsPerEm; 354 FT_DivFix( cf2_intToFixed( unitsPerEm ), ppem ) );
|
H A D | cf2blues.c | 90 CF2_Int unitsPerEm = font->unitsPerEm; 93 if ( unitsPerEm == 0 ) 94 unitsPerEm = 1000; 129 if ( ascender - descender == unitsPerEm )
|
H A D | 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/ |
H A D | cf2font.h | 71 CF2_Int unitsPerEm; member in struct:CF2_FontRec_
|
H A D | cf2font.c | 230 CF2_Int unitsPerEm = font->unitsPerEm; local 233 if ( unitsPerEm == 0 ) 234 unitsPerEm = 1000; 246 /* unitsPerEm instead. */ 248 emRatio = cf2_intToFixed( 1000 ) / unitsPerEm; 259 FT_DivFix( cf2_intToFixed( unitsPerEm ), ppem ) );
|
H A D | cf2blues.c | 89 CF2_Int unitsPerEm = font->unitsPerEm; local 92 if ( unitsPerEm == 0 ) 93 unitsPerEm = 1000; 127 if ( ascender - descender == unitsPerEm )
|
H A D | 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/core/svg/ |
H A D | SVGFontData.cpp | 80 unsigned unitsPerEm = svgFontFaceElement->unitsPerEm(); local 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());
|
H A D | SVGFontFaceElement.cpp | 121 unsigned SVGFontFaceElement::unitsPerEm() const function in class:blink::SVGFontFaceElement 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));
|
H A D | SVGFontFaceElement.h | 40 unsigned unitsPerEm() const;
|
/external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/ |
H A D | 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/ |
H A D | SVGTextLayoutEngineSpacing.cpp | 76 kerning *= m_font.fontDescription().computedSize() / m_font.fontMetrics().unitsPerEm();
|
/external/chromium_org/third_party/skia/src/sfnt/ |
H A D | SkOTTable_head.h | 75 SK_OT_USHORT unitsPerEm; member in struct:SkOTTableHead
|
/external/skia/src/sfnt/ |
H A D | SkOTTable_head.h | 75 SK_OT_USHORT unitsPerEm; member in struct:SkOTTableHead
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
H A D | 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; local 241 return roundf(style()->font().fontDescription().computedSize() * x / unitsPerEm);
|
/external/chromium_org/third_party/WebKit/Source/platform/fonts/skia/ |
H A D | SimpleFontDataSkia.cpp | 183 if (int unitsPerEm = face->getUnitsPerEm()) 184 m_fontMetrics.setUnitsPerEm(unitsPerEm);
|