Searched refs:ascent (Results 1 - 25 of 102) sorted by relevance

12345

/external/chromium_org/third_party/WebKit/Source/platform/fonts/
H A DFontMetrics.h57 void setAscent(float ascent) { m_ascent = ascent; } argument
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/chrome/browser/ui/views/bookmarks/
H A Dbookmark_bar_instructions_view.cc52 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/skia/
H A DSimpleFontDataSkia.cpp94 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.5
[all...]
/external/chromium_org/third_party/ots/src/
H A Dmetrics.cc18 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) ||
H A Dmetrics.h17 int16_t ascent; member in struct:ots::OpenTypeMetricsHeader
/external/chromium_org/third_party/WebKit/Source/web/
H A DWebFontImpl.h47 virtual int ascent() const OVERRIDE;
H A DWebFontImpl.cpp63 int WebFontImpl::ascent() const function in class:blink::WebFontImpl
65 return m_font.fontMetrics().ascent();
/external/chromium_org/third_party/WebKit/public/web/
H A DWebFont.h55 virtual int ascent() const = 0;
/external/chromium_org/third_party/WebKit/Source/core/svg/
H A DSVGFontData.cpp83 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);
H A DSVGFontFaceElement.h48 int ascent() const;
/external/chromium_org/third_party/WebKit/Source/core/rendering/
H A DEllipsisBox.cpp50 FloatPoint textOrigin(boxOrigin.x(), boxOrigin.y() + font.fontMetrics().ascent());
98 y() + style->fontMetrics().ascent() - (markupBox->y() + markupBox->renderer().style(isFirstLineStyle())->fontMetrics().ascent()));
140 LayoutUnit mty = adjustedLocation.y() + style->fontMetrics().ascent() - (markupBox->y() + markupBox->renderer().style(isFirstLineStyle())->fontMetrics().ascent());
H A DRootInlineBox.cpp595 static void setAscentAndDescent(int& ascent, int& descent, int newAscent, int newDescent, bool& ascentDescentSet) argument
599 ascent = newAscent;
602 ascent = std::max(ascent, newAscent);
607 void RootInlineBox::ascentAndDescentForBox(InlineBox* box, GlyphOverflowAndFallbackFontsMap& textBoxDataMap, int& ascent, int& descent, argument
616 ascent = box->baselinePosition(baselineType());
617 descent = box->lineHeight() - ascent;
619 // Replaced elements always affect both the ascent and descent.
644 int usedFontAscent = fontMetrics.ascent(baselineType());
650 setAscentAndDescent(ascent, descen
[all...]
/external/chromium_org/third_party/icu/source/samples/layout/
H A Dparagraph.cpp87 le_int32 ascent = 0; local
129 if (pAscent > ascent) {
130 ascent = pAscent;
156 fLineHeight = ascent + descent + leading;
157 fAscent = ascent;
H A DFontMap.cpp260 le_int32 ascent, descent, leading; local
270 ascent = fFontInstances[i]->getAscent();
274 if (ascent > fAscent) {
275 fAscent = ascent;
H A Dpflow.c111 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/
H A Dfont_list_impl.cc225 int ascent = 0; local
230 ascent = std::max(ascent, i->GetBaseline());
233 common_height_ = ascent + descent;
234 common_baseline_ = ascent;
/external/icu/icu4c/source/samples/layout/
H A Dparagraph.cpp87 le_int32 ascent = 0; local
129 if (pAscent > ascent) {
130 ascent = pAscent;
156 fLineHeight = ascent + descent + leading;
157 fAscent = ascent;
H A DFontMap.cpp260 le_int32 ascent, descent, leading; local
270 ascent = fFontInstances[i]->getAscent();
274 if (ascent > fAscent) {
275 fAscent = ascent;
/external/chromium_org/third_party/freetype/include/freetype/
H A Dftwinfnt.h192 FT_UShort ascent; member in struct:FT_WinFNT_HeaderRec_
/external/freetype/include/
H A Dftwinfnt.h193 FT_UShort ascent; member in struct:FT_WinFNT_HeaderRec_
/external/pdfium/core/include/thirdparties/freetype/freetype/
H A Dftwinfnt.h192 FT_UShort ascent; member in struct:FT_WinFNT_HeaderRec_
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/include/freetype/
H A Dftwinfnt.h192 FT_UShort ascent; member in struct:FT_WinFNT_HeaderRec_
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/glx/xlib/
H A Dglx_usefont.c50 prefix, ch->ascent, ch->descent, (unsigned int) ch->attributes);
56 printf("ascent = %d, descent = %d\n", font->ascent, font->descent);
240 max_height = fs->max_bounds.ascent + fs->max_bounds.descent;
322 height = ch->ascent + ch->descent;
331 y = ch->ascent;
/external/chromium_org/third_party/mesa/src/src/glx/
H A Dxfont.c56 prefix, ch->ascent, ch->descent, (unsigned int) ch->attributes);
62 printf("ascent = %d, descent = %d\n", font->ascent, font->descent);
244 max_height = fs->max_bounds.ascent + fs->max_bounds.descent;
325 height = ch->ascent + ch->descent;
333 y = ch->ascent;
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/x11/
H A Dxfonts.c57 prefix, ch->ascent, ch->descent, (unsigned int) ch->attributes);
63 printf("ascent = %d, descent = %d\n", font->ascent, font->descent);
246 max_height = fs->max_bounds.ascent + fs->max_bounds.descent;
328 height = ch->ascent + ch->descent;
337 y = ch->ascent;

Completed in 1858 milliseconds

12345