Home
last modified time | relevance | path

Searched refs:ascent (Results 1 – 25 of 103) sorted by relevance

12345

/external/webkit/Source/WebCore/platform/graphics/qt/
DSimpleFontDataQt.cpp55 float ascent = fm.ascent(); in platformInit() local
62 if (lineSpacing < ascent + descent) in platformInit()
63 lineSpacing = ascent + descent; in platformInit()
67 float lineGap = lineSpacing - ascent - descent; in platformInit()
69 m_fontMetrics.setAscent(ascent); in platformInit()
DFontQt.cpp124 int ascent = fm.ascent(); in drawTextCommon() local
125 QRectF boundingRect(point.x() + x1, point.y() - ascent, x2 - x1, fm.height()); in drawTextCommon()
146 pt.setY(pt.y() - ascent); in drawTextCommon()
198 … QRectF boundingRect(pt.x(), point.y() - fm.ascent(), fm.width(string, -1, flags), fm.height()); in drawTextCommon()
215 … QRectF boundingRect(pt.x(), point.y() - fm.ascent(), fm.width(string, -1, flags), fm.height()); in drawTextCommon()
/external/webkit/Source/WebCore/platform/graphics/
DFontMetrics.h51 void setAscent(float ascent) { m_ascent = ascent; } in setAscent() argument
77 int ascent(FontBaseline baselineType = AlphabeticBaseline) const
93 return ascent(baselineType) + descent(baselineType);
101 … return ascent() == other.ascent() && descent() == other.descent() && lineGap() == other.lineGap(); in hasIdenticalAscentDescentAndLineGap()
DSimpleFontData.cpp85 float ascent = svgFontFaceElement->ascent() * scale; in SimpleFontData() local
94 …xHeight = letterXGlyphs.isEmpty() ? 2 * ascent / 3 : letterXGlyphs.first().horizontalAdvanceX * sc… in SimpleFontData()
98 m_fontMetrics.setAscent(ascent); in SimpleFontData()
101 m_fontMetrics.setLineSpacing(roundf(ascent) + roundf(descent) + roundf(lineGap)); in SimpleFontData()
114 …m_maxCharWidth = letterWGlyphs.isEmpty() ? ascent : letterWGlyphs.first().horizontalAdvanceX * sca… in SimpleFontData()
/external/webkit/Source/WebCore/platform/graphics/chromium/
DSimpleFontDataLinux.cpp86 float ascent; in platformInit() local
92 ascent = vdmxAscent; in platformInit()
96 ascent = SkScalarRound(-metrics.fAscent); in platformInit()
97 descent = SkScalarRound(height) - ascent; in platformInit()
100 m_fontMetrics.setAscent(ascent); in platformInit()
108 xHeight = ascent * 0.56f; in platformInit()
114 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap)); in platformInit()
DFontUtilsChromiumWin.cpp268 , ascent(kUndefinedAscent) in FontData()
275 int ascent; member
394 int* ascent, in getDerivedFontData() argument
425 derived->ascent = getAscent(derived->hfont); in getDerivedFontData()
432 if (kUndefinedAscent == derived->ascent) in getDerivedFontData()
433 derived->ascent = getAscent(derived->hfont); in getDerivedFontData()
436 *ascent = derived->ascent; in getDerivedFontData()
439 return *ascent != kUndefinedAscent; in getDerivedFontData()
DUniscribeHelperTextRun.cpp55 setAscent(font.fontMetrics().ascent()); in UniscribeHelperTextRun()
91 int* ascent) in nextWinFontData() argument
125 m_ascents.append(simpleFontData->fontMetrics().ascent()); in nextWinFontData()
131 *ascent = m_ascents[m_fontIndex - 1]; in nextWinFontData()
DFontChromiumWin.cpp250 return IntRect(m_point.x() - (fontMetrics.ascent() + fontMetrics.descent()) / 2, in estimateTextBounds()
251 m_point.y() - fontMetrics.ascent() - fontMetrics.lineGap(), in estimateTextBounds()
252 totalWidth + fontMetrics.ascent() + fontMetrics.descent(), in estimateTextBounds()
274 int y = lroundf(m_point.y() - m_font->fontMetrics().ascent()); in drawGlyphs()
359 return IntRect(left - (fontMetrics.ascent() + fontMetrics.descent()) / 2, in estimateTextBounds()
360 m_point.y() - fontMetrics.ascent() - fontMetrics.lineGap(), in estimateTextBounds()
361 (right - left) + fontMetrics.ascent() + fontMetrics.descent(), in estimateTextBounds()
520 … static_cast<int>(point.y() - fontMetrics().ascent()) + shadowOffset.height(), from, to); in drawComplexText()
526 …state.draw(graphicsContext, hdc, lroundf(point.x()), lroundf(point.y() - fontMetrics().ascent()), … in drawComplexText()
DSimpleFontDataChromiumWin.cpp81 float ascent = textMetric.tmAscent; in platformInit() local
84 float xHeight = ascent * 0.56f; // Best guess for xHeight for non-Truetype fonts. in platformInit()
96 m_fontMetrics.setAscent(ascent); in platformInit()
100 m_fontMetrics.setLineSpacing(ascent + descent + lineGap); in platformInit()
DUniscribeHelper.h146 void setAscent(int ascent) in setAscent() argument
148 m_ascent = ascent; in setAscent()
367 virtual bool nextWinFontData(HFONT*, SCRIPT_CACHE**, SCRIPT_FONTPROPERTIES**, int* ascent) in nextWinFontData() argument
/external/chromium/chrome/browser/ui/views/bookmarks/
Dbookmark_bar_instructions_view.cc40 int ascent = 0, descent = 0, height = 0, width = 0; in GetPreferredSize() local
46 ascent = std::max(ascent, baseline); in GetPreferredSize()
54 if (ascent != 0) in GetPreferredSize()
55 height = std::max(ascent + descent, height); in GetPreferredSize()
/external/webkit/Source/WebCore/platform/graphics/win/
DSimpleFontDataCairoWin.cpp65 float ascent = textMetrics.tmAscent * metricsMultiplier; in platformInit() local
67 float xHeight = ascent * 0.56f; // Best guess for xHeight for non-Truetype fonts. in platformInit()
69 m_fontMetrics.setAscent(ascent); in platformInit()
72 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap)); in platformInit()
DSimpleFontDataWin.cpp79 float ascent = textMetrics.tmAscent; in initGDIFont() local
82 m_fontMetrics.setAscent(ascent); in initGDIFont()
85 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap)); in initGDIFont()
88 float xHeight = ascent * 0.56f; // Best guess for xHeight if no x glyph is present. in initGDIFont()
/external/webkit/Source/WebKit/win/
DWebKitGraphics.cpp128 void FontMetrics(const WebFontDescription& description, int* ascent, int* descent, int* lineSpacing) in FontMetrics() argument
130 if (!ascent && !descent && !lineSpacing) in FontMetrics()
136 if (ascent) in FontMetrics()
137 *ascent = fontMetrics.ascent(); in FontMetrics()
/external/webkit/Source/WebCore/platform/graphics/pango/
DSimpleFontDataPango.cpp53 m_fontMetrics.setAscent(font_extents.ascent); in platformInit()
62 if (lineSpacing < font_extents.ascent + font_extents.descent) in platformInit()
63 lineSpacing = font_extents.ascent + font_extents.descent; in platformInit()
65 m_fontMetrics.setLineGap(lineSpacing - font_extents.ascent - font_extents.descent); in platformInit()
/external/webkit/Source/WebCore/platform/graphics/freetype/
DSimpleFontDataFreeType.cpp54 m_fontMetrics.setAscent(font_extents.ascent); in platformInit()
63 if (lineSpacing < font_extents.ascent + font_extents.descent) in platformInit()
64 lineSpacing = font_extents.ascent + font_extents.descent; in platformInit()
67 m_fontMetrics.setLineGap(lineSpacing - font_extents.ascent - font_extents.descent); in platformInit()
/external/webkit/Source/WebCore/rendering/
DEllipsisBox.cpp56 …n, false, style->visuallyOrdered()), IntPoint(m_x + tx, m_y + ty + style->fontMetrics().ascent())); in paint()
68 … m_y + style->fontMetrics().ascent() - (m_markupBox->y() + m_markupBox->renderer()->style(m_firstL… in paint()
111 …= ty + style->fontMetrics().ascent() - (m_markupBox->y() + m_markupBox->renderer()->style(m_firstL… in nodeAtPoint()
DRootInlineBox.cpp551 static void setAscentAndDescent(int& ascent, int& descent, int newAscent, int newDescent, bool& asc… in setAscentAndDescent() argument
555 ascent = newAscent; in setAscentAndDescent()
558 ascent = max(ascent, newAscent); in setAscentAndDescent()
563 …ForBox(InlineBox* box, GlyphOverflowAndFallbackFontsMap& textBoxDataMap, int& ascent, int& descent, in ascentAndDescentForBox() argument
572 ascent = box->baselinePosition(baselineType()); in ascentAndDescentForBox()
573 descent = box->lineHeight() - ascent; in ascentAndDescentForBox()
600 int usedFontAscent = fontMetrics.ascent(baselineType()); in ascentAndDescentForBox()
606 … setAscentAndDescent(ascent, descent, usedFontAscent, usedFontDescent, ascentDescentSet); in ascentAndDescentForBox()
610 …setAscentAndDescent(ascent, descent, usedFontAscentAndLeading, usedFontDescentAndLeading, ascentDe… in ascentAndDescentForBox()
624 … setAscentAndDescent(ascent, descent, ascentWithLeading, descentWithLeading, ascentDescentSet); in ascentAndDescentForBox()
[all …]
DRenderFlexibleBox.cpp371 int ascent = child->firstLineBoxBaseline(); in layoutHorizontalBox() local
372 if (ascent == -1) in layoutHorizontalBox()
373 ascent = child->height() + child->marginBottom(); in layoutHorizontalBox()
374 ascent += child->marginTop(); in layoutHorizontalBox()
375 … int descent = (child->marginTop() + child->height() + child->marginBottom()) - ascent; in layoutHorizontalBox()
378 maxAscent = max(maxAscent, ascent); in layoutHorizontalBox()
438 int ascent = child->firstLineBoxBaseline(); in layoutHorizontalBox() local
439 if (ascent == -1) in layoutHorizontalBox()
440 ascent = child->height() + child->marginBottom(); in layoutHorizontalBox()
441 ascent += child->marginTop(); in layoutHorizontalBox()
[all …]
/external/webkit/Source/WebCore/platform/graphics/wince/
DSimpleFontDataWinCE.cpp52 float ascent = (tm.tmAscent * m_platformData.size() + 36) / 72.0f; in platformInit() local
55 m_fontMetrics.setAscent(ascent); in platformInit()
58 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap)); in platformInit()
59 m_fontMetrics.setXHeight(ascent * 0.56f); in platformInit()
/external/webkit/Source/WebCore/platform/graphics/haiku/
DSimpleFontDataHaiku.cpp51 m_fontMetrics.setAscent(height.ascent); in platformInit()
53 m_fontMetrics.setXHeight(height.ascent * 0.56f); // Hack taken from the win port. in platformInit()
55 …m_fontMetrics.setLineSpacing(lroundf(height.ascent) + lroundf(height.descent) + lroundf(height.lea… in platformInit()
/external/icu4c/samples/layout/
Dparagraph.cpp87 le_int32 ascent = 0; in Paragraph() local
129 if (pAscent > ascent) { in Paragraph()
130 ascent = pAscent; in Paragraph()
156 fLineHeight = ascent + descent + leading; in Paragraph()
157 fAscent = ascent; in Paragraph()
DFontMap.cpp260 le_int32 ascent, descent, leading; in getMaxMetrics() local
270 ascent = fFontInstances[i]->getAscent(); in getMaxMetrics()
274 if (ascent > fAscent) { in getMaxMetrics()
275 fAscent = ascent; in getMaxMetrics()
Dpflow.c111 le_int32 ascent = 0; in pf_create() local
186 if (pAscent > ascent) { in pf_create()
187 ascent = pAscent; in pf_create()
213 flow->fLineHeight = ascent + descent + leading; in pf_create()
214 flow->fAscent = ascent; in pf_create()
/external/webkit/Source/WebKit/chromium/src/
DWebFontImpl.cpp65 int WebFontImpl::ascent() const in ascent() function in WebKit::WebFontImpl
67 return m_font.fontMetrics().ascent(); in ascent()

12345