/external/webkit/Source/WebCore/rendering/svg/ |
SVGTextLayoutEngineBaseline.cpp | 52 return -m_font.fontMetrics().floatHeight() / 2; 54 return m_font.fontMetrics().floatHeight() / 2; 125 const FontMetrics& fontMetrics = m_font.fontMetrics(); 133 return fontMetrics.floatAscent(); 135 return fontMetrics.xHeight() / 2; 137 return (fontMetrics.floatAscent() - fontMetrics.floatDescent()) / 2; 141 return fontMetrics.floatDescent() [all...] |
/cts/tests/tests/webkitsecurity/assets/ |
fontMetric-border-radius-null-crash.html | 7 document.body.innerHTML = "<a href='https://bugs.webkit.org/show_bug.cgi?id=57756'>chrome.dll!WebCore::RenderStyle::fontMetrics ReadAV@NULL (two crashes)<br>PASSED: This test did not crash!";
|
fontMetric-webkit-border-end-width-null-crash.html | 7 document.body.innerHTML = "<a href='https://bugs.webkit.org/show_bug.cgi?id=57756'>chrome.dll!WebCore::RenderStyle::fontMetrics ReadAV@NULL (two crashes)<br>PASSED: This test did not crash!";
|
crash-set-font.html | 15 <p>Test for bug <a href="https://bugs.webkit.org/show_bug.cgi?id=66291">66291</a>: Crash because CSSPrimitiveValue::computeLengthDouble assumes fontMetrics are available</p>
|
/external/webkit/Source/WebKit/chromium/src/ |
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();
|
/external/webkit/Source/WebKit/win/ |
WebKitGraphics.cpp | 128 void FontMetrics(const WebFontDescription& description, int* ascent, int* descent, int* lineSpacing) 134 const WebCore::FontMetrics& fontMetrics(font.fontMetrics()); 137 *ascent = fontMetrics.ascent(); 140 *descent = fontMetrics.descent(); 143 *lineSpacing = fontMetrics.lineSpacing();
|
/external/webkit/Source/WebCore/platform/graphics/ |
FontMetrics.h | 29 class FontMetrics { 31 FontMetrics() 99 bool hasIdenticalAscentDescentAndLineGap(const FontMetrics& other) const
|
SimpleFontData.h | 29 #include "FontMetrics.h" 107 const FontMetrics& fontMetrics() const { return m_fontMetrics; } 206 FontMetrics m_fontMetrics;
|
Font.h | 47 class FontMetrics; 133 const FontMetrics& fontMetrics() const { return primaryFont()->fontMetrics(); }
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/ui/ |
PixelConverter.java | 14 import org.eclipse.swt.graphics.FontMetrics; 26 private final FontMetrics fFontMetrics;
|
/external/webkit/Source/WebCore/platform/graphics/chromium/ |
FontChromiumWin.cpp | 249 const FontMetrics& fontMetrics = m_font->fontMetrics(); 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()); [all...] |
/external/webkit/Source/WebCore/platform/win/ |
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/ |
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());
|
InlineBox.cpp | 97 return m_isText ? renderer()->style(m_firstLine)->fontMetrics().height() : 0; 103 const FontMetrics& fontMetrics = renderer()->style(m_firstLine)->fontMetrics(); 104 int result = fontMetrics.height();
|
RenderEmbeddedObject.cpp | 175 const FontMetrics& fontMetrics = font.fontMetrics(); 177 float labelY = roundf(replacementTextRect.location().y() + (replacementTextRect.size().height() - fontMetrics.height()) / 2 + fontMetrics.ascent());
|
RootInlineBox.cpp | 599 const FontMetrics& fontMetrics = usedFonts->at(i)->fontMetrics(); 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() [all...] |
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().height() [all...] |
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
TypefaceTest.java | 79 Paint.FontMetrics fm = p.getFontMetrics(); 84 assertTrue("fontMetrics", fm.ascent == ascent); 85 assertTrue("fontMetrics", fm.descent == descent);
|
/external/skia/src/ports/ |
SkFontHost_ascender.cpp | 37 virtual void generateFontMetrics(SkPaint::FontMetrics* mx, SkPaint::FontMetrics* my); 188 void SkScalerContext_Ascender::generateFontMetrics(SkPaint::FontMetrics* mx, SkPaint::FontMetrics* my)
|
/development/samples/BrowserPlugin/jni/form/ |
FormPlugin.cpp | 170 ANPFontMetrics fontMetrics; 171 gPaintI.getFontMetrics(m_paintText, &fontMetrics); 175 textInput.rect.bottom - fontMetrics.fBottom, m_paintText); 181 ANPFontMetrics fontMetrics; 182 gPaintI.getFontMetrics(m_paintText, &fontMetrics); 187 float ovalTop = ovalBottom - (fontMetrics.fBottom - fontMetrics.fTop);
|
/external/webkit/Source/WebCore/platform/graphics/win/ |
FontCGWin.cpp | 170 const FontMetrics& fontMetrics = font->fontMetrics(); 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()) [all...] |
/external/skia/samplecode/ |
SampleFontCache.cpp | 27 SkPaint::FontMetrics m; 51 SkPaint::FontMetrics m;
|
/external/skia/include/core/ |
SkScalerContext.h | 298 void getFontMetrics(SkPaint::FontMetrics* mX, 299 SkPaint::FontMetrics* mY); 320 virtual void generateFontMetrics(SkPaint::FontMetrics* mX, 321 SkPaint::FontMetrics* mY) = 0;
|
/external/webkit/Source/WebKit2/WebProcess/WebCoreSupport/win/ |
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;
|
/development/samples/BrowserPlugin/jni/audio/ |
AudioPlugin.cpp | 221 ANPFontMetrics fontMetrics; 222 gPaintI.getFontMetrics(m_paintText, &fontMetrics); 246 m_playRect.top - fontMetrics.fTop, m_paintText); 257 m_pauseRect.top - fontMetrics.fTop, m_paintText); 268 m_stopRect.top - fontMetrics.fTop, m_paintText);
|