Home
last modified time | relevance | path

Searched refs:fontMetrics (Results 1 – 25 of 44) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
DSVGTextLayoutEngineBaseline.cpp53 return -m_font.fontMetrics().floatHeight() / 2; in calculateBaselineShift()
55 return m_font.fontMetrics().floatHeight() / 2; in calculateBaselineShift()
126 const FontMetrics& fontMetrics = m_font.fontMetrics(); in calculateAlignmentBaselineShift() local
134 return fontMetrics.floatAscent(); in calculateAlignmentBaselineShift()
136 return fontMetrics.xHeight() / 2; in calculateAlignmentBaselineShift()
138 return (fontMetrics.floatAscent() - fontMetrics.floatDescent()) / 2; in calculateAlignmentBaselineShift()
142 return fontMetrics.floatDescent(); in calculateAlignmentBaselineShift()
146 return fontMetrics.floatAscent() * 8 / 10.f; in calculateAlignmentBaselineShift()
148 return fontMetrics.floatAscent() / 2; in calculateAlignmentBaselineShift()
198 const FontMetrics& fontMetrics = m_font.fontMetrics(); in calculateGlyphAdvanceAndOrientation() local
[all …]
DSVGTextMetrics.cpp55 m_height = scaledFont.fontMetrics().floatHeight() / scalingFactor; in SVGTextMetrics()
113 m_height = text->scaledFont().fontMetrics().floatHeight() / scalingFactor; in SVGTextMetrics()
DSVGInlineTextBox.cpp129 const FontMetrics& scaledFontMetrics = scaledFont.fontMetrics(); in selectionRectForTextFragment()
507 …itionOffsetForDecoration(TextDecoration decoration, const FontMetrics& fontMetrics, float thicknes… in positionOffsetForDecoration() argument
512 return fontMetrics.floatAscent() + thickness * 1.5f; in positionOffsetForDecoration()
516 return fontMetrics.floatAscent() * 5 / 8.0f; in positionOffsetForDecoration()
597 const FontMetrics& scaledFontMetrics = scaledFont.fontMetrics(); in paintDecorationWithStyle()
714 float baseline = textRenderer->scaledFont().fontMetrics().floatAscent() / scalingFactor; in calculateBoundaries()
DSVGTextLayoutEngineSpacing.cpp75 kerning *= m_font.size() / m_font.fontMetrics().unitsPerEm(); in calculateSVGKerning()
/external/chromium_org/third_party/WebKit/Source/web/
DWebFontImpl.cpp67 return m_font.fontMetrics().ascent(); in ascent()
72 return m_font.fontMetrics().descent(); in descent()
77 return m_font.fontMetrics().height(); in height()
82 return m_font.fontMetrics().lineSpacing(); in lineSpacing()
87 return m_font.fontMetrics().xHeight(); in xHeight()
/external/chromium_org/third_party/WebKit/Source/core/svg/
DSVGFontData.cpp91 FontMetrics& fontMetrics = fontData->fontMetrics(); in initializeFontData() local
92 fontMetrics.setUnitsPerEm(unitsPerEm); in initializeFontData()
93 fontMetrics.setAscent(ascent); in initializeFontData()
94 fontMetrics.setDescent(descent); in initializeFontData()
95 fontMetrics.setLineGap(lineGap); in initializeFontData()
96 fontMetrics.setLineSpacing(roundf(ascent) + roundf(descent) + roundf(lineGap)); in initializeFontData()
97 fontMetrics.setXHeight(xHeight); in initializeFontData()
DSVGLengthContext.cpp258 float xHeight = ceilf(style->fontMetrics().xHeight()); in convertValueFromUserUnitsToEXS()
277 return value * ceilf(style->fontMetrics().xHeight()); in convertValueFromEXSToUserUnits()
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DRootInlineBox.cpp362 LayoutUnit lineGridFontAscent = lineGrid->style()->fontMetrics().ascent(baselineType()); in lineSnapAdjustment()
369 LayoutUnit currentFontAscent = block()->style()->fontMetrics().ascent(baselineType()); in lineSnapAdjustment()
767 const FontMetrics& fontMetrics = usedFonts->at(i)->fontMetrics(); in ascentAndDescentForBox() local
768 int usedFontAscent = fontMetrics.ascent(baselineType()); in ascentAndDescentForBox()
769 int usedFontDescent = fontMetrics.descent(baselineType()); in ascentAndDescentForBox()
770 int halfLeading = (fontMetrics.lineSpacing() - fontMetrics.height()) / 2; in ascentAndDescentForBox()
772 int usedFontDescentAndLeading = fontMetrics.lineSpacing() - usedFontAscentAndLeading; in ascentAndDescentForBox()
803 … int fontAscent = box->renderer()->style(isFirstLineStyle())->fontMetrics().ascent(baselineType()); in ascentAndDescentForBox()
804 …int fontDescent = box->renderer()->style(isFirstLineStyle())->fontMetrics().descent(baselineType()… in ascentAndDescentForBox()
814 …ax(0, glyphOverflow->top - box->renderer()->style(isFirstLineStyle())->fontMetrics().ascent(baseli… in ascentAndDescentForBox()
[all …]
DEllipsisBox.cpp51 FloatPoint textOrigin = FloatPoint(boxOrigin.x(), boxOrigin.y() + font.fontMetrics().ascent()); in paint()
126 …y() + style->fontMetrics().ascent() - (markupBox->y() + markupBox->renderer()->style(isFirstLineSt… in paintMarkupBox()
171 …edLocation.y() + style->fontMetrics().ascent() - (markupBox->y() + markupBox->renderer()->style(is… in nodeAtPoint()
DRenderEmbeddedObject.cpp154 const FontMetrics& fontMetrics = font.fontMetrics(); in paintReplaced() local
156 ….location().y() + (replacementTextRect.size().height() - fontMetrics.height()) / 2 + fontMetrics.a… in paintReplaced()
DRenderImage.cpp133 …ont, m_altText, style()))), maxAltTextWidth), paddingHeight + min(font.fontMetrics().height(), max… in setImageSizeForAltText()
355 const FontMetrics& fontMetrics = font.fontMetrics(); in paintReplaced() local
356 LayoutUnit ascent = fontMetrics.ascent(); in paintReplaced()
366 … textRunPaintInfo.bounds = FloatRect(textRectOrigin, FloatSize(textWidth, fontMetrics.height())); in paintReplaced()
369 if (usableWidth >= textWidth && fontMetrics.height() <= imageOffset.height()) in paintReplaced()
371 } else if (usableWidth >= textWidth && usableHeight >= fontMetrics.height()) in paintReplaced()
DRenderListMarker.cpp1284 IntPoint textOrigin = IntPoint(marker.x(), marker.y() + style()->fontMetrics().ascent()); in paint()
1335 setLogicalHeight(style()->fontMetrics().height()); in layout()
1381 int bulletWidth = style()->fontMetrics().ascent() / 2; in updateContent()
1504 logicalWidth = (font.fontMetrics().ascent() * 2 / 3 + 1) / 2 + 2; in computePreferredLogicalWidths()
1602 const FontMetrics& fontMetrics = style()->fontMetrics(); in updateMargins() local
1615 marginEnd = fontMetrics.ascent() - minPreferredLogicalWidth() + 1; in updateMargins()
1625 int offset = fontMetrics.ascent() * 2 / 3; in updateMargins()
1643 int offset = fontMetrics.ascent() * 2 / 3; in updateMargins()
1717 relativeRect = IntRect(0, 0, font.width(m_text), font.fontMetrics().height()); in getRelativeMarkerRect()
1724 const FontMetrics& fontMetrics = style()->fontMetrics(); in getRelativeMarkerRect() local
[all …]
DInlineBox.cpp125 … return m_bitfields.isText() ? renderer()->style(isFirstLineStyle())->fontMetrics().height() : 0; in logicalHeight()
131 const FontMetrics& fontMetrics = renderer()->style(isFirstLineStyle())->fontMetrics(); in logicalHeight() local
132 float result = fontMetrics.height(); in logicalHeight()
DRenderInline.cpp218 … (checkFonts && (!parentStyle->font().fontMetrics().hasIdenticalAscentDescentAndLineGap(style()->f… in updateAlwaysCreateLineBoxes()
226 …ateLineBoxes = !parentStyle->font().fontMetrics().hasIdenticalAscentDescentAndLineGap(childStyle->… in updateAlwaysCreateLineBoxes()
564 …x->isFirstLineStyle())->font().fontMetrics().ascent() - container->style(rootBox->isFirstLineStyle… in generateCulledLineBoxRects()
565 … int logicalHeight = container->style(rootBox->isFirstLineStyle())->font().fontMetrics().height(); in generateCulledLineBoxRects()
579 …x->isFirstLineStyle())->font().fontMetrics().ascent() - container->style(rootBox->isFirstLineStyle… in generateCulledLineBoxRects()
580 … int logicalHeight = container->style(rootBox->isFirstLineStyle())->font().fontMetrics().height(); in generateCulledLineBoxRects()
597 …x->isFirstLineStyle())->font().fontMetrics().ascent() - container->style(rootBox->isFirstLineStyle… in generateCulledLineBoxRects()
598 … int logicalHeight = container->style(rootBox->isFirstLineStyle())->font().fontMetrics().height(); in generateCulledLineBoxRects()
1302 const FontMetrics& fontMetrics = style(firstLine)->fontMetrics(); in baselinePosition() local
1303 …return fontMetrics.ascent(baselineType) + (lineHeight(firstLine, direction, linePositionMode) - fo… in baselinePosition()
DInlineTextBox.cpp631 FloatPoint textOrigin = FloatPoint(boxOrigin.x(), boxOrigin.y() + font.fontMetrics().ascent()); in paint()
687 …= TextEmphasisPositionOver ? -font.fontMetrics().ascent() - font.emphasisMarkDescent(emphasisMark)… in paint()
707 …? FloatPoint(boxOrigin.x() + boxRect.width() / 2, boxOrigin.y() + font.fontMetrics().ascent()) : t… in paint()
734 …? FloatPoint(boxOrigin.x() + boxRect.width() / 2, boxOrigin.y() + font.fontMetrics().ascent()) : t… in paint()
911 …fset(const TextUnderlinePosition underlinePosition, const FontMetrics& fontMetrics, const InlineTe… in computeUnderlineOffset() argument
920 return fontMetrics.ascent() + gap; // Position underline near the alphabetic baseline. in computeUnderlineOffset()
931 return fontMetrics.ascent() + gap; in computeUnderlineOffset()
1084 int baseline = styleToUse->fontMetrics().ascent(); in paintDecoration()
1129 …omputeUnderlineOffset(styleToUse->textUnderlinePosition(), styleToUse->fontMetrics(), this, textDe… in paintDecoration()
1245 int baseline = renderer()->style(isFirstLineStyle())->fontMetrics().ascent(); in paintDocumentMarker()
[all …]
DRenderFileUploadControl.cpp135 textY - style()->fontMetrics().ascent(), in paintObject()
137 style()->fontMetrics().height()); in paintObject()
/external/chromium_org/third_party/WebKit/Source/core/platform/
DDragImage.cpp141 …tSize labelSize(labelFont.width(labelRun), labelFont.fontMetrics().ascent() + labelFont.fontMetric… in create()
153 urlStringSize.setHeight(urlFont.fontMetrics().ascent() + urlFont.fontMetrics().descent()); in create()
181 …s(kDragLabelBorderX, imageSize.height() - (kLabelBorderYOffset + urlFont.fontMetrics().descent())); in create()
/external/chromium_org/third_party/WebKit/Source/platform/fonts/
DSimpleFontData.h107 FontMetrics& fontMetrics() { return m_fontMetrics; } in fontMetrics() function
108 const FontMetrics& fontMetrics() const { return m_fontMetrics; } in fontMetrics() function
109 …t sizePerUnit() const { return platformData().size() / (fontMetrics().unitsPerEm() ? fontMetrics()… in sizePerUnit()
DFontFastPath.cpp362 return markFontData->fontMetrics().ascent(); in emphasisMarkAscent()
378 return markFontData->fontMetrics().descent(); in emphasisMarkDescent()
394 return markFontData->fontMetrics().height(); in emphasisMarkHeight()
543 …, ceilf(-it.minGlyphBoundingBoxY()) - (glyphOverflow->computeBounds ? 0 : fontMetrics().ascent())); in floatWidthForSimpleText()
544 …, ceilf(it.maxGlyphBoundingBoxY()) - (glyphOverflow->computeBounds ? 0 : fontMetrics().descent())); in floatWidthForSimpleText()
/external/chromium_org/third_party/WebKit/Source/platform/fonts/win/
DUniscribeHelperTextRun.cpp62 setAscent(font.fontMetrics().ascent()); in UniscribeHelperTextRun()
134 m_ascents.append(simpleFontData->fontMetrics().ascent()); in nextWinFontData()
DFontWin.cpp90 const FontMetrics& metrics = font->fontMetrics(); in drawGlyphs()
191 …ryFont()->platformData(), hdc, lroundf(point.x()), lroundf(point.y() - fontMetrics().ascent()), ru… in drawComplexText()
/external/skia/src/pdf/
DSkPDFFont.cpp802 SkAutoTUnref<SkAdvancedTypefaceMetrics> fontMetrics; in GetFontResource() local
806 fontMetrics.reset(relatedFont->fontInfo()); in GetFontResource()
807 SkSafeRef(fontMetrics.get()); in GetFontResource()
814 fontMetrics.get() ? fontMetrics.get()->fType : in GetFontResource()
831 fontMetrics.reset( in GetFontResource()
834 if (fontMetrics.get() && in GetFontResource()
835 fontMetrics->fType != SkAdvancedTypefaceMetrics::kTrueType_Font) { in GetFontResource()
839 fontMetrics.reset( in GetFontResource()
845 SkPDFFont* font = Create(fontMetrics.get(), typeface, glyphID, in GetFontResource()
1173 SkAutoTUnref<SkAdvancedTypefaceMetrics> fontMetrics( in populate() local
[all …]
/external/chromium_org/third_party/skia/src/pdf/
DSkPDFFont.cpp802 SkAutoTUnref<SkAdvancedTypefaceMetrics> fontMetrics; in GetFontResource() local
806 fontMetrics.reset(relatedFont->fontInfo()); in GetFontResource()
807 SkSafeRef(fontMetrics.get()); in GetFontResource()
814 fontMetrics.get() ? fontMetrics.get()->fType : in GetFontResource()
831 fontMetrics.reset( in GetFontResource()
834 if (fontMetrics.get() && in GetFontResource()
835 fontMetrics->fType != SkAdvancedTypefaceMetrics::kTrueType_Font) { in GetFontResource()
839 fontMetrics.reset( in GetFontResource()
845 SkPDFFont* font = Create(fontMetrics.get(), typeface, glyphID, in GetFontResource()
1173 SkAutoTUnref<SkAdvancedTypefaceMetrics> fontMetrics( in populate() local
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/
DFontMac.cpp123 …y += SkFloatToScalar(font->fontMetrics().floatAscent(IdeographicBaseline) - font->fontMetrics().fl… in drawGlyphs()
DFontComplexTextMac.cpp139 …-controller.minGlyphBoundingBoxY()) - (glyphOverflow->computeBounds ? 0 : fontMetrics().ascent())); in floatWidthForComplexText()
140 …controller.maxGlyphBoundingBoxY()) - (glyphOverflow->computeBounds ? 0 : fontMetrics().descent())); in floatWidthForComplexText()

12