/cts/tests/tests/graphics/src/android/graphics/cts/ |
Paint_FontMetricsIntTest.java | 33 int ascent = 2; local 40 fontMetricsInt.ascent = ascent;
|
/cts/tests/tests/text/src/android/text/style/cts/ |
SubscriptSpanTest.java | 41 // the expected result is: tp.baselineShift -= (int) (tp.ascent() / 2) 45 float ascent = tp.ascent(); local 50 assertEquals(baselineShift - (int) (ascent / 2), tp.baselineShift); 61 // the expected result is: tp.baselineShift -= (int) (tp.ascent() / 2) 65 float ascent = tp.ascent(); local 70 assertEquals(baselineShift - (int) (ascent / 2), tp.baselineShift);
|
SuperscriptSpanTest.java | 41 // the expected result is: tp.baselineShift += (int) (tp.ascent() / 2) 45 float ascent = tp.ascent(); local 50 assertEquals(baselineShift + (int) (ascent / 2), tp.baselineShift); 61 // the expected result is: tp.baselineShift += (int) (tp.ascent() / 2) 65 float ascent = tp.ascent(); local 70 assertEquals(baselineShift + (int) (ascent / 2), tp.baselineShift);
|
DynamicDrawableSpanTest.java | 45 assertEquals(0, fm.ascent); 54 assertEquals(-rect.bottom, fm.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...] |
/external/chromium_org/third_party/WebKit/Source/platform/fonts/ |
FontMetrics.h | 55 void setAscent(float ascent) { m_ascent = ascent; } 88 int ascent(FontBaseline baselineType = AlphabeticBaseline) const function in class:WebCore::FontMetrics 104 return ascent(baselineType) + descent(baselineType); 112 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);
|
DynamicDrawableSpan.java | 84 fm.ascent = -rect.bottom; 87 fm.top = fm.ascent;
|
/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);
|
/external/chromium_org/chrome/browser/ui/views/bookmarks/ |
bookmark_bar_instructions_view.cc | 52 int ascent = 0, descent = 0, height = 0, width = 0; local 58 ascent = std::max(ascent, baseline); 66 if (ascent != 0) 67 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/chromium_org/third_party/WebKit/Source/platform/fonts/win/ |
UniscribeHelperTextRun.cpp | 62 setAscent(font.fontMetrics().ascent()); 99 int& ascent, 134 m_ascents.append(simpleFontData->fontMetrics().ascent()); 141 ascent = m_ascents[m_fontIndex - 1];
|
UniscribeHelperTextRun.h | 70 virtual bool nextWinFontData(HFONT&, SCRIPT_CACHE*&, SCRIPT_FONTPROPERTIES*&, int& ascent, WORD& spaceGlyph);
|
SimpleFontDataWin.cpp | 75 // FIXME: Access ascent/descent/lineGap with floating point precision. 76 float ascent = textMetric.tmAscent; local 79 float xHeight = ascent * 0.56f; // Best guess for xHeight for non-Truetype fonts. 93 m_fontMetrics.setAscent(ascent); 97 m_fontMetrics.setLineSpacing(ascent + descent + lineGap);
|
/external/chromium_org/third_party/WebKit/Source/web/ |
WebFontImpl.h | 47 virtual int ascent() const;
|
WebFontImpl.cpp | 65 int WebFontImpl::ascent() const function in class:blink::WebFontImpl 67 return m_font.fontMetrics().ascent();
|
/external/chromium_org/third_party/WebKit/public/web/ |
WebFont.h | 55 virtual int ascent() const = 0;
|
/external/chromium_org/third_party/WebKit/Source/platform/fonts/skia/ |
SimpleFontDataSkia.cpp | 85 float ascent; local 89 // metrics *exactly* (except the adjustment of ascent/descent on Linux/Android). 91 ascent = vdmxAscent; 94 ascent = SkScalarRound(-metrics.fAscent); 99 // To avoid that, borrow 1 unit from the ascent when possible. 100 // FIXME: This can be removed if sub-pixel ascent/descent is supported. 101 if (platformData().fontRenderStyle().useSubpixelPositioning && descent < SkScalarToFloat(metrics.fDescent) && ascent >= 1) { 103 --ascent; 108 m_fontMetrics.setAscent(ascent); 116 xHeight = ascent * 0.56; // Best guess from Windows font metrics [all...] |
/external/chromium_org/third_party/ots/src/ |
metrics.cc | 18 if (!table->ReadS16(&header->ascent) || 31 if (header->ascent < 0) { 32 OTS_WARNING("bad ascent: %d", header->ascent); 33 header->ascent = 0; 82 !out->WriteS16(header->ascent) ||
|
metrics.h | 17 int16_t ascent; member in struct:ots::OpenTypeMetricsHeader
|
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
SVGFontFaceElement.h | 46 int ascent() const;
|
SVGFontData.cpp | 79 float ascent = svgFontFaceElement->ascent() * scale; local 88 xHeight = letterXGlyph ? fontData->widthForGlyph(letterXGlyph) : 2 * ascent / 3; 93 fontMetrics.setAscent(ascent); 96 fontMetrics.setLineSpacing(roundf(ascent) + roundf(descent) + roundf(lineGap)); 103 fontData->setMaxCharWidth(ascent); 118 fontData->setMaxCharWidth(letterWGlyph ? fontData->widthForGlyph(letterWGlyph) : ascent);
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
EllipsisBox.cpp | 51 FloatPoint textOrigin = FloatPoint(boxOrigin.x(), boxOrigin.y() + font.fontMetrics().ascent()); 126 y() + style->fontMetrics().ascent() - (markupBox->y() + markupBox->renderer()->style(isFirstLineStyle())->fontMetrics().ascent())); 171 LayoutUnit mty = adjustedLocation.y() + style->fontMetrics().ascent() - (markupBox->y() + markupBox->renderer()->style(isFirstLineStyle())->fontMetrics().ascent());
|
/external/chromium_org/ui/gfx/ |
font_list.cc | 277 int ascent = 0; local 282 ascent = std::max(ascent, i->GetBaseline()); 285 common_height_ = ascent + descent; 286 common_baseline_ = ascent;
|