/external/webkit/Source/WebCore/platform/graphics/qt/ |
H A D | SimpleFontDataQt.cpp | 52 // 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 D | FontMetrics.h | 60 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 D | SimpleFontData.cpp | 86 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 D | fontprops.mm | 102 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 D | fontprops.cpp | 55 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 D | bookmark_bar_instructions_view.cc | 40 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 D | SimpleFontDataFreeType.cpp | 55 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 D | SimpleFontDataPango.cpp | 54 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 D | fontprops.h | 30 wxCoord *descent = NULL, wxCoord *externalLeading = NULL );
|
/external/webkit/Source/WebCore/platform/graphics/chromium/ |
H A D | SimpleFontDataLinux.cpp | 87 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 D | SimpleFontDataChromiumWin.cpp | 80 // 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 D | WebKitGraphics.cpp | 128 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 D | WebKitGraphics.h | 68 void FontMetrics(const WebFontDescription&, int* ascent, int* descent, int* lineSpacing);
|
/external/webkit/Source/WebCore/platform/graphics/win/ |
H A D | SimpleFontDataCairoWin.cpp | 66 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 D | SVGFontFaceElement.h | 47 int descent() const;
|
H A D | SVGFontFaceElement.cpp | 235 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 D | WebFont.h | 56 virtual int descent() const = 0;
|
/external/webkit/Source/WebKit/chromium/src/ |
H A D | WebFontImpl.h | 48 virtual int descent() const;
|
H A D | WebFontImpl.cpp | 70 int WebFontImpl::descent() const function in class:WebKit::WebFontImpl 72 return m_font.fontMetrics().descent();
|
/external/webkit/Source/WebCore/platform/graphics/haiku/ |
H A D | SimpleFontDataHaiku.cpp | 52 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 D | SimpleFontDataWinCE.cpp | 53 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 D | fontprops.cpp | 110 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 D | RootInlineBox.cpp | 551 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 D | FontMap.cpp | 260 le_int32 ascent, descent, leading; local 271 descent = fFontInstances[i]->getDescent(); 278 if (descent > fDescent) { 279 fDescent = descent;
|
H A D | paragraph.cpp | 88 le_int32 descent = 0; local 133 if (pDescent > descent) { 134 descent = pDescent; 156 fLineHeight = ascent + descent + leading;
|