OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:unitsPerEm
(Results
1 - 25
of
31
) sorted by null
1
2
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/
FontMetrics.h
45
unsigned
unitsPerEm
() const { return m_unitsPerEm; }
46
void setUnitsPerEm(unsigned
unitsPerEm
) { m_unitsPerEm =
unitsPerEm
; }
150
static inline float scaleEmToUnits(float x, unsigned
unitsPerEm
)
152
return
unitsPerEm
? x /
unitsPerEm
: x;
SimpleFontData.h
120
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
38
unsigned
unitsPerEm
() const;
SVGFontFaceElement.cpp
125
unsigned SVGFontFaceElement::
unitsPerEm
() const
229
return static_cast<int>(
unitsPerEm
()) - static_cast<int>(ceilf(vertOriginY.toFloat()));
233
return static_cast<int>(ceilf(
unitsPerEm
() * 0.8f));
257
return static_cast<int>(ceilf(
unitsPerEm
() * 0.2f));
SVGFontData.cpp
74
unsigned
unitsPerEm
= svgFontFaceElement->
unitsPerEm
();
75
float scale = scaleEmToUnits(fontSize,
unitsPerEm
);
90
fontMetrics.setUnitsPerEm(
unitsPerEm
);
129
return svgGlyph.horizontalAdvanceX * scaleEmToUnits(fontSize, svgFontFaceElement->
unitsPerEm
());
/external/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/chromium_org/third_party/WebKit/Source/core/platform/graphics/mac/
SimpleFontDataMac.mm
203
unsigned
unitsPerEm
;
209
unitsPerEm
= CGFontGetUnitsPerEm(m_platformData.cgFont());
212
float ascent = scaleEmToUnits(iAscent,
unitsPerEm
) * pointSize;
213
float descent = -scaleEmToUnits(iDescent,
unitsPerEm
) * pointSize;
214
float lineGap = scaleEmToUnits(iLineGap,
unitsPerEm
) * pointSize;
248
xHeight = scaleEmToUnits(CGFontGetXHeight(m_platformData.cgFont()),
unitsPerEm
) * pointSize;
252
m_fontMetrics.setUnitsPerEm(
unitsPerEm
);
273
m_avgCharWidth = scaleEmToUnits(os2AvgCharWidth, m_fontMetrics.
unitsPerEm
()) * m_platformData.m_size;
284
m_maxCharWidth = scaleEmToUnits(diff, m_fontMetrics.
unitsPerEm
()) * m_platformData.m_size;
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
SVGTextLayoutEngineSpacing.cpp
76
kerning *= m_font.size() / m_font.fontMetrics().
unitsPerEm
();
SVGTextRunRenderingContext.cpp
115
float scale = scaleEmToUnits(fontData->platformData().size(), fontFaceElement->
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/platform/graphics/skia/
SimpleFontDataSkia.cpp
167
if (int
unitsPerEm
= face->getUnitsPerEm())
168
m_fontMetrics.setUnitsPerEm(
unitsPerEm
);
/external/chromium_org/third_party/WebKit/Source/core/rendering/
RenderTextControl.cpp
224
// This matches the
unitsPerEm
value for MS Shell Dlg and Courier New from the "head" font table.
225
float
unitsPerEm
= 2048.0f;
226
return roundf(style()->font().size() * x /
unitsPerEm
);
/external/chromium_org/third_party/icu/source/test/letest/
FontObject.h
116
le_uint16
unitsPerEm
;
FontObject.cpp
204
return SWAPW(headTable->
unitsPerEm
);
sfnt.h
282
le_uint16
unitsPerEm
;
/external/icu4c/samples/layout/
sfnt.h
153
le_uint16
unitsPerEm
;
/external/icu4c/test/letest/
FontObject.h
116
le_uint16
unitsPerEm
;
FontObject.cpp
204
return SWAPW(headTable->
unitsPerEm
);
/external/harfbuzz_ng/src/hb-icu-le/
sfnt.h
285
le_uint16
unitsPerEm
;
Completed in 2859 milliseconds
1
2