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

1 2 3 4

  /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 65 int WebFontImpl::ascent() const function in class:blink::WebFontImpl
67 return m_font.fontMetrics().ascent();
  /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/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/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);
  /external/chromium_org/third_party/WebKit/Source/platform/fonts/win/
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/core/svg/
SVGFontFaceElement.cpp 192 // were set to the position specified by the font's ascent attribute.
195 return ascent();
214 int SVGFontFaceElement::ascent() const function in class:WebCore::SVGFontFaceElement
216 // Spec: Same syntax and semantics as the 'ascent' descriptor within an @font-face rule. The maximum
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/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();
  /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;
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/icu4c/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/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/freetype/include/freetype/
ftwinfnt.h 192 FT_UShort ascent; member in struct:FT_WinFNT_HeaderRec_
  /external/freetype/include/freetype/
ftwinfnt.h 192 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 392 LayoutUnit ascent = child->firstLineBoxBaseline(); local
393 if (ascent == -1)
394 ascent = child->height() + child->marginBottom();
395 ascent += child->marginTop();
396 LayoutUnit descent = (child->height() + child->marginHeight()) - ascent;
398 // Update our maximum ascent.
399 maxAscent = max(maxAscent, ascent);
468 LayoutUnit ascent = child->firstLineBoxBaseline(); local
469 if (ascent == -1)
470 ascent = child->height() + child->marginBottom()
    [all...]
RenderImage.cpp 356 LayoutUnit ascent = fontMetrics.ascent(); local
359 LayoutPoint textOrigin(textRectOrigin.x(), textRectOrigin.y() + ascent);

Completed in 559 milliseconds

1 2 3 4