/external/webkit/Source/WebCore/platform/graphics/qt/ |
D | SimpleFontDataQt.cpp | 55 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()
|
D | FontQt.cpp | 124 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/ |
D | FontMetrics.h | 51 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()
|
D | SimpleFontData.cpp | 85 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/ |
D | SimpleFontDataLinux.cpp | 86 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()
|
D | FontUtilsChromiumWin.cpp | 268 , 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()
|
D | UniscribeHelperTextRun.cpp | 55 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()
|
D | FontChromiumWin.cpp | 250 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()
|
D | SimpleFontDataChromiumWin.cpp | 81 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()
|
D | UniscribeHelper.h | 146 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/ |
D | bookmark_bar_instructions_view.cc | 40 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/ |
D | SimpleFontDataCairoWin.cpp | 65 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()
|
D | SimpleFontDataWin.cpp | 79 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/ |
D | WebKitGraphics.cpp | 128 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/ |
D | SimpleFontDataPango.cpp | 53 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/ |
D | SimpleFontDataFreeType.cpp | 54 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/ |
D | EllipsisBox.cpp | 56 …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()
|
D | RootInlineBox.cpp | 551 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 …]
|
D | RenderFlexibleBox.cpp | 371 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/ |
D | SimpleFontDataWinCE.cpp | 52 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/ |
D | SimpleFontDataHaiku.cpp | 51 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/ |
D | paragraph.cpp | 87 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()
|
D | FontMap.cpp | 260 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()
|
D | pflow.c | 111 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/ |
D | WebFontImpl.cpp | 65 int WebFontImpl::ascent() const in ascent() function in WebKit::WebFontImpl 67 return m_font.fontMetrics().ascent(); in ascent()
|