/external/webkit/Source/WebCore/platform/graphics/qt/ |
SimpleFontDataQt.cpp | 55 float ascent = fm.ascent(); local 59 // The line spacing should always be >= (ascent + descent), but this 62 if (lineSpacing < ascent + descent) 63 lineSpacing = ascent + descent; 67 float lineGap = lineSpacing - ascent - descent; 69 m_fontMetrics.setAscent(ascent);
|
/frameworks/base/core/tests/coretests/src/android/text/ |
StaticLayoutTest.java | 51 fmi.ascent, fmi.descent); 74 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 80 * Ascent of top line and descent of bottom line are affected. 90 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 92 fmi.ascent, fmi.bottom); 97 * First line ascent is top, bottom line descent is bottom. 108 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 110 fmi.ascent, fmi.descent, 111 fmi.ascent, fmi.bottom); 136 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
Paint_FontMetricsIntTest.java | 47 int ascent = 2; local 54 fontMetricsInt.ascent = ascent;
|
/external/webkit/Source/WebCore/platform/graphics/ |
FontMetrics.h | 51 void setAscent(float ascent) { m_ascent = ascent; } 77 int ascent(FontBaseline baselineType = AlphabeticBaseline) const function in class:WebCore::FontMetrics 93 return ascent(baselineType) + descent(baselineType); 101 return ascent() == other.ascent() && descent() == other.descent() && lineGap() == other.lineGap();
|
/frameworks/base/core/java/android/text/style/ |
SubscriptSpan.java | 44 tp.baselineShift -= (int) (tp.ascent() / 2); 49 tp.baselineShift -= (int) (tp.ascent() / 2);
|
SuperscriptSpan.java | 44 tp.baselineShift += (int) (tp.ascent() / 2); 49 tp.baselineShift += (int) (tp.ascent() / 2);
|
/cts/tests/tests/text/src/android/text/style/cts/ |
SubscriptSpanTest.java | 65 // the expected result is: tp.baselineShift -= (int) (tp.ascent() / 2) 69 float ascent = tp.ascent(); local 74 assertEquals(baselineShift - (int) (ascent / 2), tp.baselineShift); 91 // the expected result is: tp.baselineShift -= (int) (tp.ascent() / 2) 95 float ascent = tp.ascent(); local 100 assertEquals(baselineShift - (int) (ascent / 2), tp.baselineShift);
|
SuperscriptSpanTest.java | 65 // the expected result is: tp.baselineShift += (int) (tp.ascent() / 2) 69 float ascent = tp.ascent(); local 74 assertEquals(baselineShift + (int) (ascent / 2), tp.baselineShift); 91 // the expected result is: tp.baselineShift += (int) (tp.ascent() / 2) 95 float ascent = tp.ascent(); local 100 assertEquals(baselineShift + (int) (ascent / 2), tp.baselineShift);
|
/external/webkit/Source/WebCore/platform/graphics/chromium/ |
UniscribeHelperTextRun.cpp | 55 setAscent(font.fontMetrics().ascent()); 91 int* ascent) 125 m_ascents.append(simpleFontData->fontMetrics().ascent()); 131 *ascent = m_ascents[m_fontIndex - 1];
|
SimpleFontDataLinux.cpp | 86 float ascent; local 92 ascent = vdmxAscent; 96 ascent = SkScalarRound(-metrics.fAscent); 97 descent = SkScalarRound(height) - ascent; 100 m_fontMetrics.setAscent(ascent); 108 xHeight = ascent * 0.56f; 114 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap));
|
FontUtilsChromiumWin.h | 64 // calculate the ascent for the derived HFONT, and initialize SCRIPT_CACHE 70 // Returns false if the font is not accessible, in which case |ascent| field 81 bool getDerivedFontData(const UChar* family, int style, LOGFONT*, int* ascent, HFONT*, SCRIPT_CACHE**, WORD* spaceGlyph);
|
UniscribeHelperTextRun.h | 69 virtual bool nextWinFontData(HFONT*, SCRIPT_CACHE**, SCRIPT_FONTPROPERTIES**, int* ascent);
|
FontUtilsChromiumWin.cpp | 240 // Given an HFONT, return the ascent. If GetTextMetrics fails, 268 , ascent(kUndefinedAscent) 275 int ascent; member in struct:WebCore::__anon13384::FontData 394 int* ascent, 425 derived->ascent = getAscent(derived->hfont); 432 if (kUndefinedAscent == derived->ascent) 433 derived->ascent = getAscent(derived->hfont); 436 *ascent = derived->ascent; 439 return *ascent != kUndefinedAscent [all...] |
UniscribeHelper.h | 146 void setAscent(int ascent) 148 m_ascent = ascent; 320 // Ascent offset between the ascent of the primary font 367 virtual bool nextWinFontData(HFONT*, SCRIPT_CACHE**, SCRIPT_FONTPROPERTIES**, int* ascent)
|
SimpleFontDataChromiumWin.cpp | 80 // FIXME: Access ascent/descent/lineGap with floating point precision. 81 float ascent = textMetric.tmAscent; local 84 float xHeight = ascent * 0.56f; // Best guess for xHeight for non-Truetype fonts. 96 m_fontMetrics.setAscent(ascent); 100 m_fontMetrics.setLineSpacing(ascent + descent + lineGap);
|
/external/chromium/chrome/browser/ui/views/bookmarks/ |
bookmark_bar_instructions_view.cc | 40 int ascent = 0, descent = 0, height = 0, width = 0; local 46 ascent = std::max(ascent, baseline); 54 if (ascent != 0) 55 height = std::max(ascent + descent, height);
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
TypefaceTest.java | 75 float ascent = 0; local 81 ascent = fm.ascent; 84 assertTrue("fontMetrics", fm.ascent == ascent);
|
/external/webkit/Source/WebCore/platform/graphics/haiku/ |
SimpleFontDataHaiku.cpp | 51 m_fontMetrics.setAscent(height.ascent); 53 m_fontMetrics.setXHeight(height.ascent * 0.56f); // Hack taken from the win port. 55 m_fontMetrics.setLineSpacing(lroundf(height.ascent) + lroundf(height.descent) + lroundf(height.leading));
|
/external/webkit/Source/WebCore/platform/graphics/freetype/ |
SimpleFontDataFreeType.cpp | 54 m_fontMetrics.setAscent(font_extents.ascent); 59 // cairo report a height smaller than ascent + descent, which is 63 if (lineSpacing < font_extents.ascent + font_extents.descent) 64 lineSpacing = font_extents.ascent + font_extents.descent; 67 m_fontMetrics.setLineGap(lineSpacing - font_extents.ascent - font_extents.descent);
|
/external/webkit/Source/WebCore/platform/graphics/pango/ |
SimpleFontDataPango.cpp | 53 m_fontMetrics.setAscent(font_extents.ascent); 58 // cairo report a height smaller than ascent + descent, which is 62 if (lineSpacing < font_extents.ascent + font_extents.descent) 63 lineSpacing = font_extents.ascent + font_extents.descent; 65 m_fontMetrics.setLineGap(lineSpacing - font_extents.ascent - font_extents.descent);
|
/external/webkit/Source/WebCore/platform/graphics/win/ |
SimpleFontDataCairoWin.cpp | 65 float ascent = textMetrics.tmAscent * metricsMultiplier; local 67 float xHeight = ascent * 0.56f; // Best guess for xHeight for non-Truetype fonts. 69 m_fontMetrics.setAscent(ascent); 72 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap));
|
/external/webkit/Source/WebCore/svg/ |
SVGFontFaceElement.h | 46 int ascent() const;
|
/external/webkit/Source/WebKit/chromium/public/ |
WebFont.h | 55 virtual int ascent() const = 0;
|
/external/webkit/Source/WebKit/chromium/src/ |
WebFontImpl.h | 47 virtual int ascent() const;
|
/external/webkit/Source/WebKit/win/ |
WebKitGraphics.cpp | 128 void FontMetrics(const WebFontDescription& description, int* ascent, int* descent, int* lineSpacing) 130 if (!ascent && !descent && !lineSpacing) 136 if (ascent) 137 *ascent = fontMetrics.ascent();
|