Home
last modified time | relevance | path

Searched refs:xHeight (Results 1 – 23 of 23) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/platform/fonts/skia/
DSimpleFontDataSkia.cpp111 float xHeight; in platformInit() local
113 xHeight = metrics.fXHeight; in platformInit()
114 m_fontMetrics.setXHeight(xHeight); in platformInit()
116 xHeight = ascent * 0.56; // Best guess from Windows font metrics. in platformInit()
117 m_fontMetrics.setXHeight(xHeight); in platformInit()
149 m_avgCharWidth = xHeight; in platformInit()
/external/chromium_org/third_party/WebKit/Source/core/svg/
DSVGLengthContext.cpp258 float xHeight = ceilf(style->fontMetrics().xHeight()); in convertValueFromUserUnitsToEXS() local
259 if (!xHeight) { in convertValueFromUserUnitsToEXS()
264 return value / xHeight; in convertValueFromUserUnitsToEXS()
277 return value * ceilf(style->fontMetrics().xHeight()); in convertValueFromEXSToUserUnits()
DSVGFontData.cpp78 float xHeight = svgFontFaceElement->xHeight() * scale; in initializeFontData() local
85 if (!xHeight && glyphPageZero) { in initializeFontData()
88 xHeight = letterXGlyph ? fontData->widthForGlyph(letterXGlyph) : 2 * ascent / 3; in initializeFontData()
97 fontMetrics.setXHeight(xHeight); in initializeFontData()
DSVGFontFaceElement.h39 int xHeight() const;
DSVGFontFaceElement.cpp132 int SVGFontFaceElement::xHeight() const in xHeight() function in WebCore::SVGFontFaceElement
/external/chromium_org/third_party/WebKit/Source/platform/fonts/
DFontMetrics.h77 float xHeight() const { return m_xHeight; } in xHeight() function
78 void setXHeight(float xHeight) in setXHeight() argument
80 m_xHeight = xHeight; in setXHeight()
DSimpleFontData.cpp96 m_avgCharWidth = m_fontMetrics.xHeight(); in initCharWidths()
/external/chromium_org/third_party/WebKit/Source/platform/fonts/win/
DSimpleFontDataWin.cpp79 float xHeight = ascent * 0.56f; // Best guess for xHeight for non-Truetype fonts. in platformInit() local
90 xHeight = static_cast<float>(glyphMetrics.gmBlackBoxY); in platformInit()
96 m_fontMetrics.setXHeight(xHeight); in platformInit()
/external/chromium_org/third_party/WebKit/Source/web/
DWebFontImpl.cpp85 float WebFontImpl::xHeight() const in xHeight() function in blink::WebFontImpl
87 return m_font.fontMetrics().xHeight(); in xHeight()
DWebFontImpl.h51 virtual float xHeight() const;
/external/chromium_org/third_party/WebKit/public/web/
DWebFont.h59 virtual float xHeight() const = 0;
/external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/
DSimpleFontDataMac.mm237 float xHeight;
245 xHeight = -CGRectGetMinY(platformBoundsForGlyph(xGlyph));
247xHeight = scaleEmToUnits(CGFontGetXHeight(m_platformData.cgFont()), unitsPerEm) * pointSize;
249 xHeight = verticalRightOrientationFontData()->fontMetrics().xHeight();
255 m_fontMetrics.setXHeight(xHeight);
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
DSVGTextLayoutEngineBaseline.cpp136 return fontMetrics.xHeight() / 2; in calculateAlignmentBaselineShift()
/external/chromium_org/third_party/freetype/include/freetype/
Dtttables.h446 FT_UShort xHeight; member
/external/freetype/include/freetype/
Dtttables.h446 FT_UShort xHeight; member
/external/chromium_org/third_party/WebKit/Source/platform/fonts/opentype/
DOpenTypeUtilities.cpp100 BigEndianUShort xHeight; member
/external/chromium_org/content/child/
Dbrowser_font_resource_trusted.cc291 metrics->x_height = static_cast<int32_t>(font_->xHeight()); in Describe()
/external/chromium_org/third_party/freetype/src/sfnt/
Dttload.c1163 FT_FRAME_USHORT( xHeight ), in tt_face_load_pclt()
/external/freetype/src/sfnt/
Dttload.c1163 FT_FRAME_USHORT( xHeight ), in tt_face_load_pclt()
/external/skia/src/ports/
DSkFontHost_win_dw.cpp867 mx->fXHeight = fRec.fTextSize * SkIntToScalar(dwfm.xHeight) / upem; in generateFontMetrics()
876 my->fXHeight = fRec.fTextSize * SkIntToScalar(dwfm.xHeight) / upem; in generateFontMetrics()
/external/chromium_org/third_party/skia/src/ports/
DSkFontHost_win_dw.cpp867 mx->fXHeight = fRec.fTextSize * SkIntToScalar(dwfm.xHeight) / upem; in generateFontMetrics()
876 my->fXHeight = fRec.fTextSize * SkIntToScalar(dwfm.xHeight) / upem; in generateFontMetrics()
/external/chromium_org/third_party/WebKit/Source/core/css/
DCSSPrimitiveValue.cpp575 factor = style.fontMetrics().xHeight(); in computeLengthDouble()
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DRootInlineBox.cpp879 …verticalPosition = (verticalPosition - static_cast<LayoutUnit>(fontMetrics.xHeight() / 2) - render… in verticalPositionForBox()