Searched defs:fontMetrics (Results 1 - 22 of 22) sorted by relevance

/external/webkit/Source/WebCore/rendering/svg/
H A DSVGTextLayoutEngineBaseline.cpp52 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...]
/external/webkit/Source/WebCore/platform/graphics/
H A DFont.h133 const FontMetrics& fontMetrics() const { return primaryFont()->fontMetrics(); } function in class:WebCore::Font
H A DSimpleFontData.h107 const FontMetrics& fontMetrics() const { return m_fontMetrics; } function in class:WebCore::SimpleFontData
/external/webkit/Source/WebCore/platform/graphics/win/
H A DFontCGWin.cpp170 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());
/external/webkit/Source/WebCore/rendering/
H A DInlineBox.cpp97 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 DRenderEmbeddedObject.cpp175 const FontMetrics& fontMetrics = font.fontMetrics(); local
177 float labelY = roundf(replacementTextRect.location().y() + (replacementTextRect.size().height() - fontMetrics.height()) / 2 + fontMetrics.ascent());
H A DRenderImage.cpp116 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 DRootInlineBox.cpp599 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 DInlineFlowBox.cpp116 if (!parentStyle->font().fontMetrics().hasIdenticalAscentDescentAndLineGap(childStyle->font().fontMetrics())
133 || !parentStyle->font().fontMetrics().hasIdenticalAscentDescentAndLineGap(childStyle->font().fontMetrics())
580 const FontMetrics& fontMetrics = renderer()->style(m_firstLine)->fontMetrics(); local
581 setLogicalTop(top + maxAscent - fontMetrics.ascent(baselineType));
620 const FontMetrics& fontMetrics = curr->renderer()->style(m_firstLine)->fontMetrics(); local
621 newLogicalTop += curr->baselinePosition(baselineType) - fontMetrics
[all...]
H A DRenderInline.cpp179 || (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 DRenderListMarker.cpp1268 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...]
H A DRenderBlock.cpp5225 const FontMetrics& fontMetrics = style(firstLine)->fontMetrics(); local
5226 return fontMetrics.ascent(baselineType) + (lineHeight(firstLine, direction, linePositionMode) - fontMetrics.height()) / 2;
5236 return firstLineBox()->logicalTop() + style(true)->fontMetrics().ascent(firstRootBox()->baselineType());
5262 const FontMetrics& fontMetrics = firstLineStyle()->fontMetrics(); local
5263 return fontMetrics.ascent()
5264 + (lineHeight(true, lineDirection, PositionOfInteriorLineBoxes) - fontMetrics.height()) / 2
5268 return lastLineBox()->logicalTop() + style(lastLineBox() == firstLineBox())->fontMetrics()
5281 const FontMetrics& fontMetrics = firstLineStyle()->fontMetrics(); local
[all...]
/external/webkit/Source/WebCore/platform/graphics/chromium/
H A DFontChromiumWin.cpp249 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...]
/external/webkit/Source/WebCore/html/canvas/
H A DCanvasRenderingContext2D.cpp1845 const FontMetrics& fontMetrics = font.fontMetrics(); local
1863 location.setY(y + fontMetrics.ascent());
1867 location.setY(y - fontMetrics.descent());
1870 location.setY(y - fontMetrics.descent() + fontMetrics.height() / 2);
1898 FloatRect textRect = FloatRect(location.x() - fontMetrics.height() / 2, location.y() - fontMetrics.ascent() - fontMetrics.lineGap(),
1899 width + fontMetrics
[all...]
/external/webkit/Source/WebCore/accessibility/gtk/
H A DAccessibilityObjectWrapperAtk.cpp1263 const FontMetrics& fontMetrics = renderObject->firstLineStyle()->fontMetrics(); local
1264 return fontMetrics.ascent() + (renderObject->firstLineStyle()->computedLineHeight() - fontMetrics.height()) / 2;
/external/webkit/Source/WebCore/rendering/style/
H A DRenderStyle.h478 const FontMetrics& fontMetrics() const { return inherited->font.fontMetrics(); } function in class:WebCore::RenderStyle
503 return fontMetrics().lineSpacing();
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
H A Dorg.eclipse.jface_3.6.1.M20100825-0800.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...
H A Dorg.eclipse.jface.text_3.6.1.r361_v20100825-0800.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...
H A Dorg.eclipse.ui.ide_3.6.2.M20101117-0800.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...
H A Dorg.eclipse.ui.workbench_3.6.1.M20101117-0800.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...
H A Dorg.eclipse.swt.gtk.linux.x86_3.6.1.v3657a.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...
H A Dorg.eclipse.swt.win32.win32.x86_3.6.1.v3657a.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...

Completed in 2848 milliseconds