Home
last modified time | relevance | path

Searched refs:m_fontMetrics (Results 1 – 15 of 15) sorted by relevance

/external/webkit/Source/WebCore/platform/graphics/qt/
DSimpleFontDataQt.cpp44 m_fontMetrics.reset(); in platformInit()
69 m_fontMetrics.setAscent(ascent); in platformInit()
70 m_fontMetrics.setDescent(descent); in platformInit()
71 m_fontMetrics.setLineSpacing(lineSpacing); in platformInit()
72 m_fontMetrics.setXHeight(fm.xHeight()); in platformInit()
73 m_fontMetrics.setLineGap(lineGap); in platformInit()
/external/webkit/Source/WebCore/platform/graphics/win/
DSimpleFontDataCGWin.cpp95 m_fontMetrics.setAscent(fAscent); in platformInit()
96 m_fontMetrics.setDescent(fDescent); in platformInit()
97 m_fontMetrics.setLineGap(fLineGap); in platformInit()
98 m_fontMetrics.setLineSpacing(lroundf(fAscent) + lroundf(fDescent) + lroundf(fLineGap)); in platformInit()
107 m_fontMetrics.setXHeight(scaleEmToUnits(CGRectGetMaxY(xBox), unitsPerEm) * pointSize); in platformInit()
110 m_fontMetrics.setXHeight(scaleEmToUnits(iXHeight, unitsPerEm) * pointSize); in platformInit()
113 m_fontMetrics.setUnitsPerEm(unitsPerEm); in platformInit()
DSimpleFontDataCairoWin.cpp69 m_fontMetrics.setAscent(ascent); in platformInit()
70 m_fontMetrics.setDescent(descent); in platformInit()
71 m_fontMetrics.setLineGap(lineGap); in platformInit()
72 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap)); in platformInit()
86 m_fontMetrics.setXHeight(xHeight); in platformInit()
DSimpleFontDataWin.cpp68 m_fontMetrics.reset(); in initGDIFont()
82 m_fontMetrics.setAscent(ascent); in initGDIFont()
83 m_fontMetrics.setDescent(descent); in initGDIFont()
84 m_fontMetrics.setLineGap(lineGap); in initGDIFont()
85 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap)); in initGDIFont()
96 m_fontMetrics.setXHeight(xHeight); in initGDIFont()
97 m_fontMetrics.setUnitsPerEm(metrics.otmEMSquare); in initGDIFont()
/external/webkit/Source/WebCore/platform/graphics/
DSimpleFontData.cpp97 m_fontMetrics.setUnitsPerEm(unitsPerEm); in SimpleFontData()
98 m_fontMetrics.setAscent(ascent); in SimpleFontData()
99 m_fontMetrics.setDescent(descent); in SimpleFontData()
100 m_fontMetrics.setLineGap(lineGap); in SimpleFontData()
101 m_fontMetrics.setLineSpacing(roundf(ascent) + roundf(descent) + roundf(lineGap)); in SimpleFontData()
102 m_fontMetrics.setXHeight(xHeight); in SimpleFontData()
141 m_avgCharWidth = m_fontMetrics.xHeight(); in initCharWidths()
144 m_maxCharWidth = max(m_avgCharWidth, m_fontMetrics.floatAscent()); in initCharWidths()
DSimpleFontData.h107 const FontMetrics& fontMetrics() const { return m_fontMetrics; } in fontMetrics()
206 FontMetrics m_fontMetrics; variable
/external/webkit/Source/WebCore/platform/graphics/haiku/
DSimpleFontDataHaiku.cpp51 m_fontMetrics.setAscent(height.ascent); in platformInit()
52 m_fontMetrics.setDescent(height.descent); in platformInit()
53 m_fontMetrics.setXHeight(height.ascent * 0.56f); // Hack taken from the win port. in platformInit()
54 m_fontMetrics.setLineGap(height.leading); in platformInit()
55m_fontMetrics.setLineSpacing(lroundf(height.ascent) + lroundf(height.descent) + lroundf(height.lea… in platformInit()
/external/webkit/Source/WebCore/platform/graphics/wx/
DSimpleFontDataWx.cpp56 m_fontMetrics.setAscent(props.GetAscent()); in platformInit()
57 m_fontMetrics.setDescent(props.GetDescent()); in platformInit()
58 m_fontMetrics.setXHeight(props.GetXHeight()); in platformInit()
59 m_fontMetrics.setUnitsPerEm(1); // FIXME! in platformInit()
60 m_fontMetrics.setLineGap(props.GetLineGap()); in platformInit()
61 m_fontMetrics.setLineSpacing(props.GetLineSpacing()); in platformInit()
/external/webkit/Source/WebCore/platform/graphics/chromium/
DSimpleFontDataChromiumWin.cpp57 m_fontMetrics.reset(); in platformInit()
96 m_fontMetrics.setAscent(ascent); in platformInit()
97 m_fontMetrics.setDescent(descent); in platformInit()
98 m_fontMetrics.setLineGap(lineGap); in platformInit()
99 m_fontMetrics.setXHeight(xHeight); in platformInit()
100 m_fontMetrics.setLineSpacing(ascent + descent + lineGap); in platformInit()
DSimpleFontDataLinux.cpp58 m_fontMetrics.reset(); in platformInit()
100 m_fontMetrics.setAscent(ascent); in platformInit()
101 m_fontMetrics.setDescent(descent); in platformInit()
112 m_fontMetrics.setLineGap(lineGap); in platformInit()
113 m_fontMetrics.setXHeight(xHeight); in platformInit()
114 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap)); in platformInit()
/external/webkit/Source/WebCore/platform/graphics/freetype/
DSimpleFontDataFreeType.cpp54 m_fontMetrics.setAscent(font_extents.ascent); in platformInit()
55 m_fontMetrics.setDescent(font_extents.descent); in platformInit()
66 m_fontMetrics.setLineSpacing(lroundf(lineSpacing)); in platformInit()
67 m_fontMetrics.setLineGap(lineSpacing - font_extents.ascent - font_extents.descent); in platformInit()
70 m_fontMetrics.setXHeight(text_extents.height); in platformInit()
/external/webkit/Source/WebCore/platform/graphics/pango/
DSimpleFontDataPango.cpp53 m_fontMetrics.setAscent(font_extents.ascent); in platformInit()
54 m_fontMetrics.setDescent(font_extents.descent); in platformInit()
64 m_fontMetrics.setLineSpacing(lroundf(lineSpacing)); in platformInit()
65 m_fontMetrics.setLineGap(lineSpacing - font_extents.ascent - font_extents.descent); in platformInit()
68 m_fontMetrics.setXHeight(text_extents.height); in platformInit()
/external/webkit/Source/WebCore/platform/graphics/android/fonts/
DFontDataAndroid.cpp56 m_fontMetrics.setAscent(a); in platformInit()
57 m_fontMetrics.setDescent(d); in platformInit()
58m_fontMetrics.setXHeight(SkScalarToFloat(-skiaFontMetrics.fAscent) * 0.56f); // hack I stole fro… in platformInit()
63 m_fontMetrics.setLineGap(lineGap); in platformInit()
64 m_fontMetrics.setLineSpacing(a + d + lineGap); in platformInit()
/external/webkit/Source/WebCore/platform/graphics/wince/
DSimpleFontDataWinCE.cpp55 m_fontMetrics.setAscent(ascent); in platformInit()
56 m_fontMetrics.setDescent(descent); in platformInit()
57 m_fontMetrics.setLineGap(lineGap); in platformInit()
58 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap)); in platformInit()
59 m_fontMetrics.setXHeight(ascent * 0.56f); in platformInit()
/external/webkit/Source/WebCore/platform/graphics/mac/
DSimpleFontDataMac.mm255 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap));
291 m_fontMetrics.setUnitsPerEm(unitsPerEm);
292 m_fontMetrics.setAscent(ascent);
293 m_fontMetrics.setDescent(descent);
294 m_fontMetrics.setLineGap(lineGap);
295 m_fontMetrics.setXHeight(xHeight);
332 …m_avgCharWidth = scaleEmToUnits(os2AvgCharWidth, m_fontMetrics.unitsPerEm()) * m_platformData.m_si…
343 m_maxCharWidth = scaleEmToUnits(diff, m_fontMetrics.unitsPerEm()) * m_platformData.m_size;