/external/webkit/Source/WebCore/rendering/svg/ |
H A D | SVGTextLayoutEngineBaseline.cpp | 52 return -m_font.fontMetrics().floatHeight() / 2; 54 return m_font.fontMetrics().floatHeight() / 2; 125 const FontMetrics& fontMetrics = m_font.fontMetrics(); local 133 return fontMetrics.floatAscent(); 135 return fontMetrics.xHeight() / 2; 137 return (fontMetrics.floatAscent() - fontMetrics.floatDescent()) / 2; 141 return fontMetrics.floatDescent(); 145 return fontMetrics 197 const FontMetrics& fontMetrics = m_font.fontMetrics(); local [all...] |
H A D | SVGTextLayoutEngineSpacing.cpp | 61 kerning *= m_font.size() / m_font.fontMetrics().unitsPerEm();
|
H A D | SVGTextMetrics.cpp | 51 m_height = scaledFont.fontMetrics().floatHeight() / scalingFactor;
|
H A D | SVGInlineTextBox.cpp | 100 const FontMetrics& scaledFontMetrics = scaledFont.fontMetrics(); 456 static inline float positionOffsetForDecoration(ETextDecoration decoration, const FontMetrics& fontMetrics, float thickness) 461 return fontMetrics.floatAscent() + thickness * 1.5f; 465 return fontMetrics.floatAscent() * 5 / 8.0f; 569 const FontMetrics& scaledFontMetrics = scaledFont.fontMetrics(); 620 FloatRect shadowRect(FloatPoint(textOrigin.x(), textOrigin.y() - scaledFont.fontMetrics().floatAscent()), textSize); 721 float baseline = textRenderer->scaledFont().fontMetrics().floatAscent() / scalingFactor;
|
/external/webkit/Source/WebKit/chromium/src/ |
H A D | WebFontImpl.cpp | 67 return m_font.fontMetrics().ascent(); 72 return m_font.fontMetrics().descent(); 77 return m_font.fontMetrics().height(); 82 return m_font.fontMetrics().lineSpacing(); 87 return m_font.fontMetrics().xHeight();
|
H A D | ExternalPopupMenu.cpp | 151 info->itemHeight = m_popupMenuClient->menuStyle().font().fontMetrics().height();
|
/external/webkit/Source/WebCore/platform/graphics/chromium/ |
H A D | FontChromiumWin.cpp | 249 const FontMetrics& fontMetrics = m_font->fontMetrics(); local 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(), 253 fontMetrics.lineSpacing()); 274 int y = lroundf(m_point.y() - m_font->fontMetrics() 358 const FontMetrics& fontMetrics = m_font->fontMetrics(); local [all...] |
H A D | UniscribeHelperTextRun.cpp | 55 setAscent(font.fontMetrics().ascent()); 125 m_ascents.append(simpleFontData->fontMetrics().ascent());
|
/external/webkit/Source/WebKit/win/ |
H A D | WebKitGraphics.cpp | 134 const WebCore::FontMetrics& fontMetrics(font.fontMetrics()); 137 *ascent = fontMetrics.ascent(); 140 *descent = fontMetrics.descent(); 143 *lineSpacing = fontMetrics.lineSpacing();
|
/external/webkit/Source/WebCore/platform/win/ |
H A D | DragImageWin.cpp | 160 IntSize labelSize(labelFont->width(labelRun), labelFont->fontMetrics().ascent() + labelFont->fontMetrics().descent()); 172 urlStringSize.setHeight(urlFont->fontMetrics().ascent() + urlFont->fontMetrics().descent()); 214 IntPoint textPos(DragLabelBorderX, imageSize.height() - (LabelBorderYOffset + urlFont->fontMetrics().descent()));
|
/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());
|
H A D | RenderInline.cpp | 179 || (checkFonts && (!parentStyle->font().fontMetrics().hasIdenticalAscentDescentAndLineGap(style()->font().fontMetrics()) 186 alwaysCreateLineBoxes = !parentStyle->font().fontMetrics().hasIdenticalAscentDescentAndLineGap(childStyle->font().fontMetrics()) 502 int logicalTop = rootBox->logicalTop() + (rootBox->renderer()->style(rootBox->isFirstLineStyle())->font().fontMetrics().ascent() - container->style(rootBox->isFirstLineStyle())->font().fontMetrics().ascent()); 503 int logicalHeight = container->style(rootBox->isFirstLineStyle())->font().fontMetrics().height(); 519 int logicalTop = rootBox->logicalTop() + (rootBox->renderer()->style(rootBox->isFirstLineStyle())->font().fontMetrics().ascent() - container->style(rootBox->isFirstLineStyle())->font().fontMetrics().ascent()); 520 int logicalHeight = container->style(rootBox->isFirstLineStyle())->font().fontMetrics() 1291 const FontMetrics& fontMetrics = style(firstLine)->fontMetrics(); local [all...] |
H A D | RootInlineBox.cpp | 599 const FontMetrics& fontMetrics = usedFonts->at(i)->fontMetrics(); local 600 int usedFontAscent = fontMetrics.ascent(baselineType()); 601 int usedFontDescent = fontMetrics.descent(baselineType()); 602 int halfLeading = (fontMetrics.lineSpacing() - fontMetrics.height()) / 2; 604 int usedFontDescentAndLeading = fontMetrics.lineSpacing() - usedFontAscentAndLeading; 635 int fontAscent = box->renderer()->style(m_firstLine)->fontMetrics().ascent(); 636 int fontDescent = box->renderer()->style(m_firstLine)->fontMetrics().descent(); 646 glyphOverflow->top = min(glyphOverflow->top, max(0, glyphOverflow->top - box->renderer()->style(m_firstLine)->fontMetrics() 699 const FontMetrics& fontMetrics = font.fontMetrics(); local [all...] |
H A D | InlineBox.cpp | 97 return m_isText ? renderer()->style(m_firstLine)->fontMetrics().height() : 0; 103 const FontMetrics& fontMetrics = renderer()->style(m_firstLine)->fontMetrics(); local 104 int result = fontMetrics.height();
|
H A D | RenderEmbeddedObject.cpp | 175 const FontMetrics& fontMetrics = font.fontMetrics(); local 177 float labelY = roundf(replacementTextRect.location().y() + (replacementTextRect.size().height() - fontMetrics.height()) / 2 + fontMetrics.ascent());
|
H A D | RenderImage.cpp | 116 IntSize textSize(min(font.width(TextRun(m_altText.characters(), m_altText.length())), maxAltTextWidth), min(font.fontMetrics().height(), maxAltTextHeight)); 299 const FontMetrics& fontMetrics = font.fontMetrics(); local 300 int ascent = fontMetrics.ascent(); 307 if (usableWidth >= textWidth && fontMetrics.height() <= imageY) 309 } else if (usableWidth >= textWidth && cHeight >= fontMetrics.height())
|
H A D | RenderListMarker.cpp | 1268 IntPoint textOrigin = IntPoint(marker.x(), marker.y() + style()->fontMetrics().ascent()); 1314 setLogicalHeight(style()->fontMetrics().height()); 1349 const FontMetrics& fontMetrics = font.fontMetrics(); local 1354 int bulletWidth = fontMetrics.ascent() / 2; 1377 logicalWidth = (fontMetrics.ascent() * 2 / 3 + 1) / 2 + 2; 1476 const FontMetrics& fontMetrics = style()->fontMetrics(); local 1489 marginEnd = fontMetrics.ascent() - minPreferredLogicalWidth() + 1; 1499 int offset = fontMetrics 1595 const FontMetrics& fontMetrics = style()->fontMetrics(); local [all...] |
/external/webkit/Source/WebCore/platform/graphics/win/ |
H A D | FontCGWin.cpp | 170 const FontMetrics& fontMetrics = font->fontMetrics(); local 171 int lineGap = fontMetrics.lineGap(); 172 textRect = IntRect(point.x() - (fontMetrics.ascent() + fontMetrics.descent()) / 2, 173 point.y() - fontMetrics.ascent() - lineGap, 174 totalWidth + fontMetrics.ascent() + fontMetrics.descent(), 175 fontMetrics.lineSpacing());
|
H A D | FontWin.cpp | 130 glyphOverflow->top = max<int>(glyphOverflow->top, ceilf(-controller.minGlyphBoundingBoxY()) - (glyphOverflow->computeBounds ? 0 : fontMetrics().ascent())); 131 glyphOverflow->bottom = max<int>(glyphOverflow->bottom, ceilf(controller.maxGlyphBoundingBoxY()) - (glyphOverflow->computeBounds ? 0 : fontMetrics().descent()));
|
/external/webkit/Source/WebCore/platform/graphics/mac/ |
H A D | FontComplexTextMac.cpp | 114 glyphOverflow->top = max<int>(glyphOverflow->top, ceilf(-controller.minGlyphBoundingBoxY()) - (glyphOverflow->computeBounds ? 0 : fontMetrics().ascent())); 115 glyphOverflow->bottom = max<int>(glyphOverflow->bottom, ceilf(controller.maxGlyphBoundingBoxY()) - (glyphOverflow->computeBounds ? 0 : fontMetrics().descent()));
|
/external/webkit/Source/WebKit2/WebProcess/WebCoreSupport/win/ |
H A D | WebPopupMenuWin.cpp | 53 data.m_itemHeight = m_popupClient->menuStyle().font().fontMetrics().height() + 1; 137 int textY = itemRect.y() + itemFont.fontMetrics().ascent() + (itemRect.height() - itemFont.fontMetrics().height()) / 2;
|
/external/skia/src/pdf/ |
H A D | SkPDFFont.cpp | 749 SkRefPtr<SkAdvancedTypefaceMetrics> fontMetrics; 753 fontMetrics = relatedFont->fontInfo(); 764 fontMetrics = 767 SkASSERT(fontMetrics); 768 SkSafeUnref(fontMetrics.get()); // SkRefPtr and Get both took a ref. 769 if (fontMetrics && 770 fontMetrics->fType != SkAdvancedTypefaceMetrics::kTrueType_Font) { 774 fontMetrics = 776 SkSafeUnref(fontMetrics.get()); // SkRefPtr and Get both took a ref 781 SkPDFFont* font = Create(fontMetrics [all...] |
/external/webkit/Source/WebCore/platform/wx/wxcode/win/ |
H A D | non-kerned-drawing.cpp | 82 float y = point.y() - font->fontMetrics().ascent();
|
/external/webkit/Source/WebCore/platform/graphics/ |
H A D | Font.h | 133 const FontMetrics& fontMetrics() const { return primaryFont()->fontMetrics(); } function in class:WebCore::Font
|
/external/webkit/Source/WebCore/platform/graphics/chromium/cc/ |
H A D | CCHeadsUpDisplay.cpp | 135 int fpsCounterHeight = m_mediumFont->fontMetrics().floatHeight() + 2; 208 float smallFontHeight = m_smallFont->fontMetrics().floatHeight();
|