HomeSort by relevance Sort by last modified time
    Searched defs:ascent (Results 1 - 25 of 47) sorted by null

1 2

  /cts/tests/tests/graphics/src/android/graphics/cts/
Paint_FontMetricsIntTest.java 33 int ascent = 2; local
40 fontMetricsInt.ascent = ascent;
  /external/chromium_org/third_party/WebKit/Source/web/
WebFontImpl.cpp 63 int WebFontImpl::ascent() const function in class:blink::WebFontImpl
65 return m_font.fontMetrics().ascent();
  /external/chromium_org/third_party/ots/src/
metrics.h 17 int16_t ascent; member in struct:ots::OpenTypeMetricsHeader
  /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);
  /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);
  /external/chromium_org/third_party/WebKit/Source/core/paint/
ImagePainter.cpp 127 LayoutUnit ascent = fontMetrics.ascent(); local
130 LayoutPoint textOrigin(textRectOrigin.x(), textRectOrigin.y() + ascent);
  /external/chromium_org/third_party/WebKit/Source/core/svg/
SVGFontFaceElement.cpp 190 // were set to the position specified by the font's ascent attribute.
193 return ascent();
212 int SVGFontFaceElement::ascent() const function in class:blink::SVGFontFaceElement
214 // Spec: Same syntax and semantics as the 'ascent' descriptor within an @font-face rule. The maximum
SVGFontData.cpp 83 float ascent = svgFontFaceElement->ascent() * scale; local
92 xHeight = letterXGlyph ? fontData->widthForGlyph(letterXGlyph) : 2 * ascent / 3;
97 fontMetrics.setAscent(ascent);
100 fontMetrics.setLineSpacing(roundf(ascent) + roundf(descent) + roundf(lineGap));
107 fontData->setMaxCharWidth(ascent);
122 fontData->setMaxCharWidth(letterWGlyph ? fontData->widthForGlyph(letterWGlyph) : ascent);
  /external/chromium_org/third_party/icu/source/samples/layout/
FontMap.cpp 260 le_int32 ascent, descent, leading; local
270 ascent = fFontInstances[i]->getAscent();
274 if (ascent > fAscent) {
275 fAscent = ascent;
paragraph.cpp 87 le_int32 ascent = 0; local
129 if (pAscent > ascent) {
130 ascent = pAscent;
156 fLineHeight = ascent + descent + leading;
157 fAscent = ascent;
pflow.c 111 le_int32 ascent = 0; local
186 if (pAscent > ascent) {
187 ascent = pAscent;
213 flow->fLineHeight = ascent + descent + leading;
214 flow->fAscent = ascent;
  /external/chromium_org/ui/gfx/
font_list_impl.cc 225 int ascent = 0; local
230 ascent = std::max(ascent, i->GetBaseline());
233 common_height_ = ascent + descent;
234 common_baseline_ = ascent;
render_text_mac.cc 140 CGFloat ascent = 0; local
144 double width = CTLineGetTypographicBounds(line_, &ascent, &descent, &leading);
145 // Ensure ascent and descent are not smaller than ones of the font list.
152 ascent = std::max(ascent, font_list_baseline);
154 string_size_ = SizeF(width, ascent + descent + leading);
155 common_baseline_ = ascent;
  /external/icu/icu4c/source/samples/layout/
FontMap.cpp 260 le_int32 ascent, descent, leading; local
270 ascent = fFontInstances[i]->getAscent();
274 if (ascent > fAscent) {
275 fAscent = ascent;
paragraph.cpp 87 le_int32 ascent = 0; local
129 if (pAscent > ascent) {
130 ascent = pAscent;
156 fLineHeight = ascent + descent + leading;
157 fAscent = ascent;
pflow.c 111 le_int32 ascent = 0; local
186 if (pAscent > ascent) {
187 ascent = pAscent;
213 flow->fLineHeight = ascent + descent + leading;
214 flow->fAscent = ascent;
  /external/chromium_org/ppapi/c/dev/
ppb_font_dev.h 129 int32_t ascent; member in struct:PP_FontMetrics_Dev
  /external/chromium_org/ppapi/c/trusted/
ppb_browser_font_trusted.h 131 int32_t ascent; member in struct:PP_BrowserFont_Trusted_Metrics
  /external/chromium_org/third_party/WebKit/Source/platform/fonts/
FontMetrics.h 57 void setAscent(float ascent) { m_ascent = ascent; }
90 int ascent(FontBaseline baselineType = AlphabeticBaseline) const function in class:blink::FontMetrics
106 return ascent(baselineType) + descent(baselineType);
114 return ascent() == other.ascent() && descent() == other.descent() && lineGap() == other.lineGap();
  /external/chromium_org/third_party/WebKit/Source/platform/fonts/skia/
SimpleFontDataSkia.cpp 94 float ascent; local
98 // metrics *exactly* (except the adjustment of ascent/descent on Linux/Android).
100 ascent = vdmxAscent;
103 ascent = SkScalarRoundToInt(-metrics.fAscent);
108 // To avoid that, borrow 1 unit from the ascent when possible.
109 // FIXME: This can be removed if sub-pixel ascent/descent is supported.
110 if (platformData().fontRenderStyle().useSubpixelPositioning && descent < SkScalarToFloat(metrics.fDescent) && ascent >= 1) {
112 --ascent;
117 m_fontMetrics.setAscent(ascent);
125 xHeight = ascent * 0.56; // Best guess from Windows font metrics
    [all...]
  /external/chromium_org/third_party/freetype/include/freetype/
ftwinfnt.h 192 FT_UShort ascent; member in struct:FT_WinFNT_HeaderRec_
  /external/freetype/include/
ftwinfnt.h 193 FT_UShort ascent; member in struct:FT_WinFNT_HeaderRec_
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
LabelMaker.java 187 int ascent = 0; local
191 // Paint.ascent is negative, so negate it.
192 ascent = (int) Math.ceil(-textPaint.ascent());
196 int textHeight = ascent + descent;
234 int vBase = v + ascent;
253 mLabels.add(new Label(width, height, ascent,
296 * the label's paint's ascent.)
  /external/chromium_org/third_party/WebKit/Source/core/rendering/
RenderDeprecatedFlexibleBox.cpp 376 LayoutUnit ascent = child->firstLineBoxBaseline(); local
377 if (ascent == -1)
378 ascent = child->height() + child->marginBottom();
379 ascent += child->marginTop();
380 LayoutUnit descent = (child->height() + child->marginHeight()) - ascent;
382 // Update our maximum ascent.
383 maxAscent = std::max(maxAscent, ascent);
452 LayoutUnit ascent = child->firstLineBoxBaseline(); local
453 if (ascent == -1)
454 ascent = child->height() + child->marginBottom()
    [all...]

Completed in 750 milliseconds

1 2