/external/webkit/Source/WebCore/platform/graphics/qt/ |
H A D | SimpleFontDataQt.cpp | 55 float ascent = fm.ascent(); 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; 69 m_fontMetrics.setAscent(ascent);
|
/external/webkit/Source/WebCore/platform/graphics/ |
H A D | FontMetrics.h | 51 void setAscent(float ascent) { m_ascent = ascent; } argument 77 int ascent(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 | 85 float ascent = svgFontFaceElement->ascent() * scale; local 94 xHeight = letterXGlyphs.isEmpty() ? 2 * ascent / 3 : letterXGlyphs.first().horizontalAdvanceX * scale; 98 m_fontMetrics.setAscent(ascent); 101 m_fontMetrics.setLineSpacing(roundf(ascent) + roundf(descent) + roundf(lineGap)); 114 m_maxCharWidth = letterWGlyphs.isEmpty() ? ascent : letterWGlyphs.first().horizontalAdvanceX * scale;
|
/external/webkit/Source/WebCore/platform/graphics/chromium/ |
H A D | UniscribeHelperTextRun.cpp | 55 setAscent(font.fontMetrics().ascent()); 91 int* ascent) 125 m_ascents.append(simpleFontData->fontMetrics().ascent()); 131 *ascent = m_ascents[m_fontIndex - 1]; 87 nextWinFontData( HFONT* hfont, SCRIPT_CACHE** scriptCache, SCRIPT_FONTPROPERTIES** fontProperties, int* ascent) argument
|
H A D | SimpleFontDataLinux.cpp | 86 float ascent; local 92 ascent = vdmxAscent; 96 ascent = SkScalarRound(-metrics.fAscent); 97 descent = SkScalarRound(height) - ascent; 100 m_fontMetrics.setAscent(ascent); 108 xHeight = ascent * 0.56f; 114 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap));
|
H A D | FontUtilsChromiumWin.h | 64 // calculate the ascent for the derived HFONT, and initialize SCRIPT_CACHE 70 // Returns false if the font is not accessible, in which case |ascent| field 81 bool getDerivedFontData(const UChar* family, int style, LOGFONT*, int* ascent, HFONT*, SCRIPT_CACHE**, WORD* spaceGlyph);
|
H A D | FontUtilsChromiumWin.cpp | 240 // Given an HFONT, return the ascent. If GetTextMetrics fails, 268 , ascent(kUndefinedAscent) 275 int ascent; member in struct:WebCore::__anon14665::FontData 394 int* ascent, 425 derived->ascent = getAscent(derived->hfont); 432 if (kUndefinedAscent == derived->ascent) 433 derived->ascent = getAscent(derived->hfont); 436 *ascent = derived->ascent; 439 return *ascent ! 391 getDerivedFontData(const UChar* family, int style, LOGFONT* logfont, int* ascent, HFONT* hfont, SCRIPT_CACHE** scriptCache, WORD* spaceGlyph) argument [all...] |
H A D | UniscribeHelper.h | 146 void setAscent(int ascent) argument 148 m_ascent = ascent; 320 // Ascent offset between the ascent of the primary font 367 virtual bool nextWinFontData(HFONT*, SCRIPT_CACHE**, SCRIPT_FONTPROPERTIES**, int* ascent) argument
|
H A D | SimpleFontDataChromiumWin.cpp | 80 // FIXME: Access ascent/descent/lineGap with floating point precision. 81 float ascent = textMetric.tmAscent; local 84 float xHeight = ascent * 0.56f; // Best guess for xHeight for non-Truetype fonts. 96 m_fontMetrics.setAscent(ascent); 100 m_fontMetrics.setLineSpacing(ascent + descent + lineGap);
|
H A D | UniscribeHelperTextRun.h | 69 virtual bool nextWinFontData(HFONT*, SCRIPT_CACHE**, SCRIPT_FONTPROPERTIES**, int* ascent);
|
H A D | FontChromiumWin.cpp | 250 return IntRect(m_point.x() - (fontMetrics.ascent() + fontMetrics.descent()) / 2, 251 m_point.y() - fontMetrics.ascent() - fontMetrics.lineGap(), 252 totalWidth + fontMetrics.ascent() + fontMetrics.descent(), 272 // to subtract off the font ascent to get it. 274 int y = lroundf(m_point.y() - m_font->fontMetrics().ascent()); 359 return IntRect(left - (fontMetrics.ascent() + fontMetrics.descent()) / 2, 360 m_point.y() - fontMetrics.ascent() - fontMetrics.lineGap(), 361 (right - left) + fontMetrics.ascent() + fontMetrics.descent(), 520 static_cast<int>(point.y() - fontMetrics().ascent()) + shadowOffset.height(), from, to); 525 // the baseline, so we have to subtract off the ascent [all...] |
/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 46 ascent = std::max(ascent, baseline); 54 if (ascent != 0) 55 height = std::max(ascent + descent, height);
|
/external/webkit/Source/WebCore/platform/graphics/haiku/ |
H A D | SimpleFontDataHaiku.cpp | 51 m_fontMetrics.setAscent(height.ascent); 53 m_fontMetrics.setXHeight(height.ascent * 0.56f); // Hack taken from the win port. 55 m_fontMetrics.setLineSpacing(lroundf(height.ascent) + lroundf(height.descent) + lroundf(height.leading));
|
/external/webkit/Source/WebCore/platform/graphics/freetype/ |
H A D | SimpleFontDataFreeType.cpp | 54 m_fontMetrics.setAscent(font_extents.ascent); 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 | 53 m_fontMetrics.setAscent(font_extents.ascent); 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/graphics/win/ |
H A D | SimpleFontDataCairoWin.cpp | 65 float ascent = textMetrics.tmAscent * metricsMultiplier; local 67 float xHeight = ascent * 0.56f; // Best guess for xHeight for non-Truetype fonts. 69 m_fontMetrics.setAscent(ascent); 72 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(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) 136 if (ascent) 137 *ascent = fontMetrics.ascent();
|
H A D | WebKitGraphics.h | 68 void FontMetrics(const WebFontDescription&, int* ascent, int* descent, int* lineSpacing);
|
/external/webkit/Source/WebCore/platform/graphics/wince/ |
H A D | SimpleFontDataWinCE.cpp | 52 float ascent = (tm.tmAscent * m_platformData.size() + 36) / 72.0f; local 55 m_fontMetrics.setAscent(ascent); 58 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap)); 59 m_fontMetrics.setXHeight(ascent * 0.56f);
|
/external/webkit/Source/WebCore/svg/ |
H A D | SVGFontFaceElement.h | 46 int ascent() const;
|
/external/webkit/Source/WebKit/chromium/public/ |
H A D | WebFont.h | 55 virtual int ascent() const = 0;
|
/external/webkit/Source/WebKit/chromium/src/ |
H A D | WebFontImpl.h | 47 virtual int ascent() const;
|
H A D | WebFontImpl.cpp | 65 int WebFontImpl::ascent() const function in class:WebKit::WebFontImpl 67 return m_font.fontMetrics().ascent();
|
/external/icu4c/samples/layout/ |
H A D | paragraph.cpp | 87 le_int32 ascent = 0; local 129 if (pAscent > ascent) { 130 ascent = pAscent; 156 fLineHeight = ascent + descent + leading; 157 fAscent = ascent;
|
/external/webkit/Source/WebCore/rendering/ |
H A D | EllipsisBox.cpp | 56 context->drawText(style->font(), TextRun(str.characters(), str.length(), false, 0, 0, TextRun::AllowTrailingExpansion, false, style->visuallyOrdered()), IntPoint(m_x + tx, m_y + ty + style->fontMetrics().ascent())); 68 ty += m_y + style->fontMetrics().ascent() - (m_markupBox->y() + m_markupBox->renderer()->style(m_firstLine)->fontMetrics().ascent()); 111 int mty = ty + style->fontMetrics().ascent() - (m_markupBox->y() + m_markupBox->renderer()->style(m_firstLine)->fontMetrics().ascent());
|