Searched defs:xHeight (Results 1 - 11 of 11) sorted by relevance

/external/webkit/Source/WebCore/platform/graphics/win/
H A DSimpleFontDataCairoWin.cpp67 float xHeight = ascent * 0.56f; // Best guess for xHeight for non-Truetype fonts. local
78 // This is a TrueType font. We might be able to get an accurate xHeight
83 xHeight = gm.gmptGlyphOrigin.y * metricsMultiplier;
86 m_fontMetrics.setXHeight(xHeight);
H A DSimpleFontDataWin.cpp88 float xHeight = ascent * 0.56f; // Best guess for xHeight if no x glyph is present. local
94 xHeight = gm.gmptGlyphOrigin.y;
96 m_fontMetrics.setXHeight(xHeight);
/external/webkit/Source/WebKit/chromium/src/
H A DWebFontImpl.cpp85 float WebFontImpl::xHeight() const function in class:WebKit::WebFontImpl
87 return m_font.fontMetrics().xHeight();
/external/webkit/Source/WebCore/platform/graphics/
H A DFontMetrics.h73 float xHeight() const { return m_xHeight; } function in class:WebCore::FontMetrics
74 void setXHeight(float xHeight) { m_xHeight = xHeight; } argument
H A DSimpleFontData.cpp84 float xHeight = svgFontFaceElement->xHeight() * scale; local
90 if (!xHeight) {
94 xHeight = letterXGlyphs.isEmpty() ? 2 * ascent / 3 : letterXGlyphs.first().horizontalAdvanceX * scale;
102 m_fontMetrics.setXHeight(xHeight);
106 m_spaceWidth = spaceGlyphs.isEmpty() ? xHeight : spaceGlyphs.first().horizontalAdvanceX * scale;
141 m_avgCharWidth = m_fontMetrics.xHeight();
/external/webkit/Source/WebCore/platform/graphics/chromium/
H A DSimpleFontDataChromiumWin.cpp84 float xHeight = ascent * 0.56f; // Best guess for xHeight for non-Truetype fonts. local
88 // This is a TrueType font. We might be able to get an accurate xHeight.
93 xHeight = static_cast<float>(glyphMetrics.gmBlackBoxY);
99 m_fontMetrics.setXHeight(xHeight);
H A DSimpleFontDataLinux.cpp103 float xHeight; local
105 xHeight = metrics.fXHeight;
108 xHeight = ascent * 0.56f;
113 m_fontMetrics.setXHeight(xHeight);
135 m_avgCharWidth = xHeight;
/external/webkit/Source/WebCore/svg/
H A DSVGFontFaceElement.cpp133 int SVGFontFaceElement::xHeight() const function in class:WebCore::SVGFontFaceElement
H A DSVGLength.cpp441 float xHeight = ceilf(style->fontMetrics().xHeight()); local
442 if (!xHeight) {
447 return value / xHeight;
460 return value * ceilf(style->fontMetrics().xHeight());
/external/freetype/include/freetype/
H A Dtttables.h446 FT_UShort xHeight; member in struct:TT_PCLT_
/external/webkit/Source/WebCore/platform/graphics/opentype/
H A DOpenTypeUtilities.cpp120 BigEndianUShort xHeight; member in struct:WebCore::OS2Table

Completed in 372 milliseconds