HomeSort by relevance Sort by last modified time
    Searched refs:fontMetrics (Results 1 - 25 of 58) sorted by null

1 2 3

  /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...]
SVGTextLayoutEngineSpacing.cpp 61 kerning *= m_font.size() / m_font.fontMetrics().unitsPerEm();
SVGTextMetrics.cpp 51 m_height = scaledFont.fontMetrics().floatHeight() / scalingFactor;
  /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();
ExternalPopupMenu.cpp 151 info->itemHeight = m_popupMenuClient->menuStyle().font().fontMetrics().height();
  /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...]
UniscribeHelperTextRun.cpp 55 setAscent(font.fontMetrics().ascent());
125 m_ascents.append(simpleFontData->fontMetrics().ascent());
  /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/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());
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...]
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...]
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());
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();
300 int ascent = fontMetrics.ascent();
307 if (usableWidth >= textWidth && fontMetrics.height() <= imageY)
309 } else if (usableWidth >= textWidth && cHeight >= fontMetrics.height())
RenderListMarker.cpp     [all...]
  /external/webkit/Source/WebKit/android/nav/
FindCanvas.cpp 179 SkPaint::FontMetrics fontMetrics;
180 paint.getFontMetrics(&fontMetrics);
182 rect.fTop = baseline + fontMetrics.fAscent;
183 rect.fBottom = baseline + fontMetrics.fDescent;
203 SkPaint::FontMetrics fontMetrics;
204 paint.getFontMetrics(&fontMetrics);
213 bounds.fTop = baseline + fontMetrics.fAscent;
214 bounds.fBottom = baseline + fontMetrics.fDescent
    [all...]
  /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...]
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/
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/
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);
  /development/samples/BrowserPlugin/jni/paint/
PaintPlugin.cpp 161 ANPFontMetrics fontMetrics;
162 gPaintI.getFontMetrics(m_paintSurface, &fontMetrics);
172 m_inputToggle.top - fontMetrics.fTop, m_paintSurface);
182 m_colorToggle.top - fontMetrics.fTop, m_paintSurface);
193 m_fullScreenToggle.top - fontMetrics.fTop, m_paintSurface);
203 m_clearSurface.top - fontMetrics.fTop, m_paintSurface);
  /external/webkit/Source/WebCore/platform/wx/wxcode/win/
non-kerned-drawing.cpp 82 float y = point.y() - font->fontMetrics().ascent();

Completed in 604 milliseconds

1 2 3