Searched refs:descent (Results 1 - 25 of 63) sorted by relevance

123

/external/webkit/Source/WebCore/platform/graphics/qt/
H A DSimpleFontDataQt.cpp52 // Qt subtracts 1 from the descent to account for the baseline,
54 float descent = fm.descent() + 1; local
59 // The line spacing should always be >= (ascent + descent), but this
62 if (lineSpacing < ascent + descent)
63 lineSpacing = ascent + descent;
67 float lineGap = lineSpacing - ascent - descent;
70 m_fontMetrics.setDescent(descent);
/external/webkit/Source/WebCore/platform/graphics/
H A DFontMetrics.h60 void setDescent(float descent) { m_descent = descent; } argument
84 int descent(FontBaseline baselineType = AlphabeticBaseline) const function in class:WebCore::FontMetrics
93 return ascent(baselineType) + descent(baselineType);
101 return ascent() == other.ascent() && descent() == other.descent() && lineGap() == other.lineGap();
H A DSimpleFontData.cpp86 float descent = svgFontFaceElement->descent() * scale; local
99 m_fontMetrics.setDescent(descent);
101 m_fontMetrics.setLineSpacing(roundf(ascent) + roundf(descent) + roundf(lineGap));
/external/webkit/Source/WebCore/platform/wx/wxcode/mac/carbon/
H A Dfontprops.mm102 wxCoord *descent, wxCoord *externalLeading )
109 wxDouble width, height, descent, externalLeading;
111 gc->GetTextExtent(str, &e.width, &e.height, &e.descent, &e.externalLeading);
116 if ( descent )
117 *descent = wxCoord(e.descent + .5);
/external/webkit/Source/WebCore/platform/wx/wxcode/gtk/
H A Dfontprops.cpp55 m_descent = static_cast<int>(font_extents.descent);
103 wxCoord *descent, wxCoord *externalLeading )
109 if ( descent )
110 *descent = 0;
117 // FIXME: Doesn't support height, descent or external leading, though we don't need this for WebKit
160 if (descent)
165 *descent = h - PANGO_PIXELS(baseline);
102 GetTextExtent( const wxFont& font, const wxString& str, wxCoord *width, wxCoord *height, wxCoord *descent, wxCoord *externalLeading ) argument
/external/chromium/chrome/browser/ui/views/bookmarks/
H A Dbookmark_bar_instructions_view.cc40 int ascent = 0, descent = 0, height = 0, width = 0; local
47 descent = std::max(descent, pref.height() - baseline);
55 height = std::max(ascent + descent, height);
/external/webkit/Source/WebCore/platform/graphics/freetype/
H A DSimpleFontDataFreeType.cpp55 m_fontMetrics.setDescent(font_extents.descent);
59 // cairo report a height smaller than ascent + descent, which is
63 if (lineSpacing < font_extents.ascent + font_extents.descent)
64 lineSpacing = font_extents.ascent + font_extents.descent;
67 m_fontMetrics.setLineGap(lineSpacing - font_extents.ascent - font_extents.descent);
/external/webkit/Source/WebCore/platform/graphics/pango/
H A DSimpleFontDataPango.cpp54 m_fontMetrics.setDescent(font_extents.descent);
58 // cairo report a height smaller than ascent + descent, which is
62 if (lineSpacing < font_extents.ascent + font_extents.descent)
63 lineSpacing = font_extents.ascent + font_extents.descent;
65 m_fontMetrics.setLineGap(lineSpacing - font_extents.ascent - font_extents.descent);
/external/webkit/Source/WebCore/platform/wx/wxcode/
H A Dfontprops.h30 wxCoord *descent = NULL, wxCoord *externalLeading = NULL );
/external/webkit/Source/WebCore/platform/graphics/chromium/
H A DSimpleFontDataLinux.cpp87 float descent; local
93 descent = -vdmxDescent;
97 descent = SkScalarRound(height) - ascent;
101 m_fontMetrics.setDescent(descent);
114 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap));
H A DSimpleFontDataChromiumWin.cpp80 // FIXME: Access ascent/descent/lineGap with floating point precision.
82 float descent = textMetric.tmDescent; local
97 m_fontMetrics.setDescent(descent);
100 m_fontMetrics.setLineSpacing(ascent + descent + lineGap);
/external/webkit/Source/WebKit/win/
H A DWebKitGraphics.cpp128 void FontMetrics(const WebFontDescription& description, int* ascent, int* descent, int* lineSpacing) argument
130 if (!ascent && !descent && !lineSpacing)
139 if (descent)
140 *descent = fontMetrics.descent();
H A DWebKitGraphics.h68 void FontMetrics(const WebFontDescription&, int* ascent, int* descent, int* lineSpacing);
/external/webkit/Source/WebCore/platform/graphics/win/
H A DSimpleFontDataCairoWin.cpp66 float descent = textMetrics.tmDescent * metricsMultiplier; local
70 m_fontMetrics.setDescent(descent);
72 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap));
/external/webkit/Source/WebCore/svg/
H A DSVGFontFaceElement.h47 int descent() const;
H A DSVGFontFaceElement.cpp235 int SVGFontFaceElement::descent() const function in class:WebCore::SVGFontFaceElement
237 // Spec: Same syntax and semantics as the 'descent' descriptor within an @font-face rule. The maximum
242 // 14 different W3C SVG 1.1 testcases use a negative descent value,
245 int descent = static_cast<int>(ceilf(descentValue.toFloat())); local
246 return descent < 0 ? -descent : descent;
/external/webkit/Source/WebKit/chromium/public/
H A DWebFont.h56 virtual int descent() const = 0;
/external/webkit/Source/WebKit/chromium/src/
H A DWebFontImpl.h48 virtual int descent() const;
H A DWebFontImpl.cpp70 int WebFontImpl::descent() const function in class:WebKit::WebFontImpl
72 return m_font.fontMetrics().descent();
/external/webkit/Source/WebCore/platform/graphics/haiku/
H A DSimpleFontDataHaiku.cpp52 m_fontMetrics.setDescent(height.descent);
55 m_fontMetrics.setLineSpacing(lroundf(height.ascent) + lroundf(height.descent) + lroundf(height.leading));
/external/webkit/Source/WebCore/platform/graphics/wince/
H A DSimpleFontDataWinCE.cpp53 float descent = (tm.tmDescent * m_platformData.size() + 36) / 72.0f; local
56 m_fontMetrics.setDescent(descent);
58 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap));
/external/webkit/Source/WebCore/platform/wx/wxcode/win/
H A Dfontprops.cpp110 wxCoord *descent, wxCoord *externalLeading )
170 if (descent)
171 *descent = tm.tmDescent;
109 GetTextExtent( const wxFont& font, const wxString& str, wxCoord *width, wxCoord *height, wxCoord *descent, wxCoord *externalLeading ) argument
/external/webkit/Source/WebCore/rendering/
H A DRootInlineBox.cpp551 static void setAscentAndDescent(int& ascent, int& descent, int newAscent, int newDescent, bool& ascentDescentSet) argument
556 descent = newDescent;
559 descent = max(descent, newDescent);
563 void RootInlineBox::ascentAndDescentForBox(InlineBox* box, GlyphOverflowAndFallbackFontsMap& textBoxDataMap, int& ascent, int& descent, argument
573 descent = box->lineHeight() - ascent;
575 // Replaced elements always affect both the ascent and descent.
601 int usedFontDescent = fontMetrics.descent(baselineType());
606 setAscentAndDescent(ascent, descent, usedFontAscent, usedFontDescent, ascentDescentSet);
610 setAscentAndDescent(ascent, descent, usedFontAscentAndLeadin
[all...]
/external/icu4c/samples/layout/
H A DFontMap.cpp260 le_int32 ascent, descent, leading; local
271 descent = fFontInstances[i]->getDescent();
278 if (descent > fDescent) {
279 fDescent = descent;
H A Dparagraph.cpp88 le_int32 descent = 0; local
133 if (pDescent > descent) {
134 descent = pDescent;
156 fLineHeight = ascent + descent + leading;

Completed in 431 milliseconds

123