font 214 Source/core/css/CSSFontSelector.cpp void CSSFontSelector::beginLoadingFontSoon(FontResource* font) font 216 Source/core/css/CSSFontSelector.cpp m_fontLoader.addFontToBeginLoading(font); font 442 Source/core/css/FontFaceSet.cpp Font font; font 443 Source/core/css/FontFaceSet.cpp if (!resolveFontStyle(fontString, font)) { font 452 Source/core/css/FontFaceSet.cpp for (const FontFamily* f = &font.fontDescription().family(); f; f = f->next()) { font 453 Source/core/css/FontFaceSet.cpp CSSSegmentedFontFace* segmentedFontFace = fontFaceCache->get(font.fontDescription(), f->family()); font 469 Source/core/css/FontFaceSet.cpp Font font; font 470 Source/core/css/FontFaceSet.cpp if (!resolveFontStyle(fontString, font)) { font 476 Source/core/css/FontFaceSet.cpp for (const FontFamily* f = &font.fontDescription().family(); f; f = f->next()) { font 477 Source/core/css/FontFaceSet.cpp CSSSegmentedFontFace* face = fontFaceCache->get(font.fontDescription(), f->family()); font 484 Source/core/css/FontFaceSet.cpp bool FontFaceSet::resolveFontStyle(const String& fontString, Font& font) font 511 Source/core/css/FontFaceSet.cpp style->font().update(style->font().fontSelector()); font 525 Source/core/css/FontFaceSet.cpp font = style->font(); font 526 Source/core/css/FontFaceSet.cpp font.update(document()->styleEngine()->fontSelector()); font 69 Source/core/css/FontFaceSet.h bool check(const String& font, const String& text, ExceptionState&); font 70 Source/core/css/FontFaceSet.h ScriptPromise load(const String& font, const String& text); font 18 Source/core/css/RemoteFontFaceSource.cpp RemoteFontFaceSource::RemoteFontFaceSource(FontResource* font) font 19 Source/core/css/RemoteFontFaceSource.cpp : m_font(font) font 138 Source/core/css/RemoteFontFaceSource.cpp void RemoteFontFaceSource::FontLoadHistograms::recordFallbackTime(const FontResource* font) font 147 Source/core/css/RemoteFontFaceSource.cpp void RemoteFontFaceSource::FontLoadHistograms::recordRemoteFont(const FontResource* font) font 149 Source/core/css/RemoteFontFaceSource.cpp if (m_loadStartTime > 0 && font && !font->isLoading()) { font 151 Source/core/css/RemoteFontFaceSource.cpp blink::Platform::current()->histogramCustomCounts(histogramName(font), duration, 0, 10000, 50); font 155 Source/core/css/RemoteFontFaceSource.cpp int histogramValue = font->url().protocolIsData() ? DataUrl font 156 Source/core/css/RemoteFontFaceSource.cpp : font->response().wasCached() ? Hit font 162 Source/core/css/RemoteFontFaceSource.cpp const char* RemoteFontFaceSource::FontLoadHistograms::histogramName(const FontResource* font) font 164 Source/core/css/RemoteFontFaceSource.cpp if (font->errorOccurred()) font 167 Source/core/css/RemoteFontFaceSource.cpp unsigned size = font->encodedSize(); font 653 Source/core/css/resolver/FontBuilder.cpp style->font().update(fontSelector); font 675 Source/core/css/resolver/FontBuilder.cpp documentStyle->font().update(fontSelector); font 234 Source/core/css/resolver/StyleResolver.cpp document().renderer()->style()->font().update(document().styleEngine()->fontSelector()); font 639 Source/core/css/resolver/StyleResolver.cpp s_styleNotYetAvailable->font().update(document().styleEngine()->fontSelector()); font 993 Source/core/css/resolver/StyleResolver.cpp state.style()->font().update(document().styleEngine()->fontSelector()); font 2051 Source/core/html/canvas/CanvasRenderingContext2D.cpp newStyle->font().update(newStyle->font().fontSelector()); font 2070 Source/core/html/canvas/CanvasRenderingContext2D.cpp modifiableState().m_font = newStyle->font(); font 2138 Source/core/html/canvas/CanvasRenderingContext2D.cpp const Font& font = accessFont(); font 2140 Source/core/html/canvas/CanvasRenderingContext2D.cpp FloatRect textBounds = font.selectionRectForText(textRun, FloatPoint(), font.fontDescription().computedSize(), 0, -1, true); font 2143 Source/core/html/canvas/CanvasRenderingContext2D.cpp metrics->setWidth(font.width(textRun)); font 2148 Source/core/html/canvas/CanvasRenderingContext2D.cpp const FontMetrics& fontMetrics = font.fontMetrics(); font 2211 Source/core/html/canvas/CanvasRenderingContext2D.cpp const Font& font = accessFont(); font 2212 Source/core/html/canvas/CanvasRenderingContext2D.cpp const FontMetrics& fontMetrics = font.fontMetrics(); font 2228 Source/core/html/canvas/CanvasRenderingContext2D.cpp float fontWidth = font.width(TextRun(normalizedText, 0, 0, TextRun::AllowTrailingExpansion, direction, override)); font 2269 Source/core/html/canvas/CanvasRenderingContext2D.cpp c->drawBidiText(font, textRunPaintInfo, FloatPoint(0, 0), Font::UseFallbackIfFontNotReady); font 2271 Source/core/html/canvas/CanvasRenderingContext2D.cpp c->drawBidiText(font, textRunPaintInfo, location, Font::UseFallbackIfFontNotReady); font 209 Source/core/html/canvas/CanvasRenderingContext2D.h String font() const; font 506 Source/core/html/shadow/DateTimeEditElement.cpp width += static_cast<DateTimeFieldElement*>(childElement)->maximumWidth(style->font()); font 510 Source/core/html/shadow/DateTimeEditElement.cpp width += style->font().width(childElement->textContent()); font 76 Source/core/html/shadow/DateTimeNumericFieldElement.cpp float DateTimeNumericFieldElement::maximumWidth(const Font& font) font 78 Source/core/html/shadow/DateTimeNumericFieldElement.cpp float maximumWidth = font.width(m_placeholder); font 79 Source/core/html/shadow/DateTimeNumericFieldElement.cpp maximumWidth = std::max(maximumWidth, font.width(formatValue(maximum()))); font 80 Source/core/html/shadow/DateTimeNumericFieldElement.cpp maximumWidth = std::max(maximumWidth, font.width(value())); font 81 Source/core/html/shadow/DateTimeNumericFieldElement.cpp return maximumWidth + DateTimeFieldElement::maximumWidth(font); font 65 Source/core/html/shadow/DateTimeSymbolicFieldElement.cpp float DateTimeSymbolicFieldElement::maximumWidth(const Font& font) font 67 Source/core/html/shadow/DateTimeSymbolicFieldElement.cpp float maximumWidth = font.width(visibleEmptyValue()); font 69 Source/core/html/shadow/DateTimeSymbolicFieldElement.cpp maximumWidth = std::max(maximumWidth, font.width(m_symbols[index])); font 70 Source/core/html/shadow/DateTimeSymbolicFieldElement.cpp return maximumWidth + DateTimeFieldElement::maximumWidth(font); font 760 Source/core/inspector/InspectorCSSAgent.cpp const Font& font = style->font(); font 761 Source/core/inspector/InspectorCSSAgent.cpp TextRun run = box->constructTextRunForInspector(style, font); font 762 Source/core/inspector/InspectorCSSAgent.cpp WidthIterator it(&font, run, 0, false); font 328 Source/core/page/PageSerializer.cpp void PageSerializer::addFontToResources(FontResource* font) font 330 Source/core/page/PageSerializer.cpp if (!font || !shouldAddURL(font->url()) || !font->isLoaded() || !font->resourceBuffer()) { font 333 Source/core/page/PageSerializer.cpp RefPtr<SharedBuffer> data(font->resourceBuffer()); font 335 Source/core/page/PageSerializer.cpp addToResources(font, data, font->url()); font 41 Source/core/rendering/EllipsisBox.cpp const Font& font = style->font(); font 50 Source/core/rendering/EllipsisBox.cpp FloatPoint textOrigin = FloatPoint(boxOrigin.x(), boxOrigin.y() + font.fontMetrics().ascent()); font 57 Source/core/rendering/EllipsisBox.cpp paintSelection(context, boxOrigin, style, font); font 82 Source/core/rendering/EllipsisBox.cpp TextRun textRun = RenderBlockFlow::constructTextRun(&renderer(), font, m_str, style, TextRun::AllowTrailingExpansion); font 85 Source/core/rendering/EllipsisBox.cpp context->drawText(font, textRunPaintInfo, textOrigin); font 131 Source/core/rendering/EllipsisBox.cpp const Font& font = style->font(); font 132 Source/core/rendering/EllipsisBox.cpp return enclosingIntRect(font.selectionRectForText(RenderBlockFlow::constructTextRun(&renderer(), font, m_str, style, TextRun::AllowTrailingExpansion), IntPoint(logicalLeft(), logicalTop() + root().selectionTopAdjustedForPrecedingBlock()), root().selectionHeightAdjustedForPrecedingBlock())); font 135 Source/core/rendering/EllipsisBox.cpp void EllipsisBox::paintSelection(GraphicsContext* context, const FloatPoint& boxOrigin, RenderStyle* style, const Font& font) font 156 Source/core/rendering/EllipsisBox.cpp context->drawHighlightForText(font, RenderBlockFlow::constructTextRun(&renderer(), font, m_str, style, TextRun::AllowTrailingExpansion), localOrigin, h, c); font 128 Source/core/rendering/InlineFlowBox.cpp if (!parentStyle->font().fontMetrics().hasIdenticalAscentDescentAndLineGap(childStyle->font().fontMetrics()) font 145 Source/core/rendering/InlineFlowBox.cpp || !parentStyle->font().fontMetrics().hasIdenticalAscentDescentAndLineGap(childStyle->font().fontMetrics()) font 387 Source/core/rendering/InlineFlowBox.cpp logicalLeft += rt.style(isFirstLineStyle())->font().fontDescription().wordSpacing(); font 445 Source/core/rendering/InlineFlowBox.cpp || renderer().style(isFirstLineStyle())->font().primaryFont()->hasVerticalGlyphs()) font 456 Source/core/rendering/InlineFlowBox.cpp if (curr->renderer().style(isFirstLineStyle())->font().primaryFont()->hasVerticalGlyphs()) font 872 Source/core/rendering/InlineFlowBox.cpp int emphasisMarkHeight = style->font().emphasisMarkHeight(style->textEmphasisMarkString()); font 881 Source/core/rendering/InlineFlowBox.cpp rightGlyphOverflow -= min(0, (int)style->font().fontDescription().letterSpacing()); font 1523 Source/core/rendering/InlineFlowBox.cpp int topOfEmphasisMark = curr->logicalTop() - style->font().emphasisMarkHeight(style->textEmphasisMarkString()); font 1526 Source/core/rendering/InlineFlowBox.cpp int bottomOfEmphasisMark = curr->logicalBottom() + style->font().emphasisMarkHeight(style->textEmphasisMarkString()); font 1570 Source/core/rendering/InlineFlowBox.cpp LayoutUnit bottomOfEmphasisMark = curr->logicalBottom() + style->font().emphasisMarkHeight(style->textEmphasisMarkString()); font 1573 Source/core/rendering/InlineFlowBox.cpp LayoutUnit topOfEmphasisMark = curr->logicalTop() - style->font().emphasisMarkHeight(style->textEmphasisMarkString()); font 208 Source/core/rendering/InlineTextBox.cpp const Font& font = styleToUse->font(); font 212 Source/core/rendering/InlineTextBox.cpp TextRun textRun = constructTextRun(styleToUse, font, respectHyphen ? &charactersWithHyphen : 0); font 217 Source/core/rendering/InlineTextBox.cpp r = enclosingIntRect(font.selectionRectForText(textRun, startingPoint, selHeight, sPos, ePos)); font 389 Source/core/rendering/InlineTextBox.cpp const RenderObject& renderer, const Font& font, const TextRun& textRun, font 418 Source/core/rendering/InlineTextBox.cpp context->drawText(font, textRunPaintInfo, textOrigin); font 420 Source/core/rendering/InlineTextBox.cpp context->drawEmphasisMarks(font, textRunPaintInfo, emphasisMark, textOrigin + IntSize(0, emphasisMarkOffset)); font 426 Source/core/rendering/InlineTextBox.cpp context->drawText(font, textRunPaintInfo, textOrigin); font 428 Source/core/rendering/InlineTextBox.cpp context->drawEmphasisMarks(font, textRunPaintInfo, emphasisMark, textOrigin + IntSize(0, emphasisMarkOffset)); font 434 Source/core/rendering/InlineTextBox.cpp context->drawText(font, textRunPaintInfo, textOrigin); font 436 Source/core/rendering/InlineTextBox.cpp context->drawEmphasisMarks(font, textRunPaintInfo, emphasisMark, textOrigin + IntSize(0, emphasisMarkOffset)); font 627 Source/core/rendering/InlineTextBox.cpp const Font& font = styleToUse->font(); font 629 Source/core/rendering/InlineTextBox.cpp FloatPoint textOrigin = FloatPoint(boxOrigin.x(), boxOrigin.y() + font.fontMetrics().ascent()); font 639 Source/core/rendering/InlineTextBox.cpp paintCompositionBackground(context, boxOrigin, styleToUse, font, font 644 Source/core/rendering/InlineTextBox.cpp paintDocumentMarkers(context, boxOrigin, styleToUse, font, true); font 647 Source/core/rendering/InlineTextBox.cpp paintSelection(context, boxOrigin, styleToUse, font, selectionFillColor); font 665 Source/core/rendering/InlineTextBox.cpp TextRun textRun = constructTextRun(styleToUse, font, string, maximumLength, hasHyphen() ? &charactersWithHyphen : 0); font 685 Source/core/rendering/InlineTextBox.cpp emphasisMarkOffset = emphasisMarkPosition == TextEmphasisPositionOver ? -font.fontMetrics().ascent() - font.emphasisMarkDescent(emphasisMark) : font.fontMetrics().descent() + font.emphasisMarkAscent(emphasisMark); font 695 Source/core/rendering/InlineTextBox.cpp paintTextWithShadows(context, rendererToUse, font, textRun, nullAtom, 0, 0, length, length, textOrigin, boxRect, textShadow, textStrokeWidth > 0, isHorizontal()); font 697 Source/core/rendering/InlineTextBox.cpp paintTextWithShadows(context, rendererToUse, font, textRun, nullAtom, 0, ePos, sPos, length, textOrigin, boxRect, textShadow, textStrokeWidth > 0, isHorizontal()); font 705 Source/core/rendering/InlineTextBox.cpp FloatPoint emphasisMarkTextOrigin = combinedText ? FloatPoint(boxOrigin.x() + boxRect.width() / 2, boxOrigin.y() + font.fontMetrics().ascent()) : textOrigin; font 721 Source/core/rendering/InlineTextBox.cpp paintTextWithShadows(context, rendererToUse, combinedText ? combinedText->originalFont() : font, emphasisMarkTextRun, emphasisMark, emphasisMarkOffset, startOffset, endOffset, paintRunLength, emphasisMarkTextOrigin, boxRect, textShadow, textStrokeWidth > 0, isHorizontal()); font 733 Source/core/rendering/InlineTextBox.cpp paintTextWithShadows(context, rendererToUse, font, textRun, nullAtom, 0, sPos, ePos, length, textOrigin, boxRect, selectionShadow, selectionStrokeWidth > 0, isHorizontal()); font 739 Source/core/rendering/InlineTextBox.cpp FloatPoint emphasisMarkTextOrigin = combinedText ? FloatPoint(boxOrigin.x() + boxRect.width() / 2, boxOrigin.y() + font.fontMetrics().ascent()) : textOrigin; font 746 Source/core/rendering/InlineTextBox.cpp paintTextWithShadows(context, rendererToUse, combinedText ? combinedText->originalFont() : font, emphasisMarkTextRun, emphasisMark, emphasisMarkOffset, startOffset, endOffset, paintRunLength, emphasisMarkTextOrigin, boxRect, selectionShadow, selectionStrokeWidth > 0, isHorizontal()); font 765 Source/core/rendering/InlineTextBox.cpp paintDocumentMarkers(context, boxOrigin, styleToUse, font, false); font 822 Source/core/rendering/InlineTextBox.cpp void InlineTextBox::paintSelection(GraphicsContext* context, const FloatPoint& boxOrigin, RenderStyle* style, const Font& font, Color textColor) font 855 Source/core/rendering/InlineTextBox.cpp TextRun textRun = constructTextRun(style, font, string, textRenderer().textLength() - m_start, respectHyphen ? &charactersWithHyphen : 0); font 871 Source/core/rendering/InlineTextBox.cpp context->drawHighlightForText(font, textRun, localOrigin, selHeight, c, sPos, ePos); font 874 Source/core/rendering/InlineTextBox.cpp void InlineTextBox::paintCompositionBackground(GraphicsContext* context, const FloatPoint& boxOrigin, RenderStyle* style, const Font& font, int startPos, int endPos) font 892 Source/core/rendering/InlineTextBox.cpp context->drawHighlightForText(font, constructTextRun(style, font), localOrigin, selHeight, c, sPos, ePos); font 1204 Source/core/rendering/InlineTextBox.cpp void InlineTextBox::paintDocumentMarker(GraphicsContext* pt, const FloatPoint& boxOrigin, DocumentMarker* marker, RenderStyle* style, const Font& font, bool grammar) font 1236 Source/core/rendering/InlineTextBox.cpp TextRun run = constructTextRun(style, font); font 1239 Source/core/rendering/InlineTextBox.cpp IntRect markerRect = enclosingIntRect(font.selectionRectForText(run, startPoint, selHeight, startPosition, endPosition)); font 1272 Source/core/rendering/InlineTextBox.cpp void InlineTextBox::paintTextMatchMarker(GraphicsContext* pt, const FloatPoint& boxOrigin, DocumentMarker* marker, RenderStyle* style, const Font& font) font 1281 Source/core/rendering/InlineTextBox.cpp TextRun run = constructTextRun(style, font); font 1284 Source/core/rendering/InlineTextBox.cpp IntRect markerRect = enclosingIntRect(font.selectionRectForText(run, IntPoint(x(), selectionTop()), selHeight, sPos, ePos)); font 1296 Source/core/rendering/InlineTextBox.cpp pt->drawHighlightForText(font, run, FloatPoint(boxOrigin.x(), boxOrigin.y() - deltaY), selHeight, color, sPos, ePos); font 1300 Source/core/rendering/InlineTextBox.cpp void InlineTextBox::paintDocumentMarkers(GraphicsContext* pt, const FloatPoint& boxOrigin, RenderStyle* style, const Font& font, bool background) font 1340 Source/core/rendering/InlineTextBox.cpp paintDocumentMarker(pt, boxOrigin, marker, style, font, false); font 1343 Source/core/rendering/InlineTextBox.cpp paintDocumentMarker(pt, boxOrigin, marker, style, font, true); font 1346 Source/core/rendering/InlineTextBox.cpp paintTextMatchMarker(pt, boxOrigin, marker, style, font); font 1433 Source/core/rendering/InlineTextBox.cpp const Font& font = style->font(); font 1434 Source/core/rendering/InlineTextBox.cpp return font.offsetForPosition(constructTextRun(style, font), lineOffset - logicalLeft(), includePartialGlyphs); font 1450 Source/core/rendering/InlineTextBox.cpp const Font& font = styleToUse->font(); font 1454 Source/core/rendering/InlineTextBox.cpp return font.selectionRectForText(constructTextRun(styleToUse, font), IntPoint(logicalLeft(), 0), 0, from, to).maxX(); font 1486 Source/core/rendering/InlineTextBox.cpp const Font& font = styleToUse->font(); font 1488 Source/core/rendering/InlineTextBox.cpp TextRun textRun = constructTextRun(styleToUse, font); font 1491 Source/core/rendering/InlineTextBox.cpp WidthIterator it(&font, textRun); font 1501 Source/core/rendering/InlineTextBox.cpp TextRun InlineTextBox::constructTextRun(RenderStyle* style, const Font& font, StringBuilder* charactersWithHyphen) const font 1513 Source/core/rendering/InlineTextBox.cpp return constructTextRun(style, font, string, textRenderer().textLength() - startPos, charactersWithHyphen); font 1516 Source/core/rendering/InlineTextBox.cpp TextRun InlineTextBox::constructTextRun(RenderStyle* style, const Font& font, StringView string, int maximumLength, StringBuilder* charactersWithHyphen) const font 1534 Source/core/rendering/InlineTextBox.cpp if (textRunNeedsRenderingContext(font)) font 1543 Source/core/rendering/InlineTextBox.cpp TextRun InlineTextBox::constructTextRunForInspector(RenderStyle* style, const Font& font) const font 1545 Source/core/rendering/InlineTextBox.cpp return InlineTextBox::constructTextRun(style, font); font 2687 Source/core/rendering/RenderBlockFlow.cpp static inline TextRun constructTextRunInternal(RenderObject* context, const Font& font, const CharacterType* characters, int length, RenderStyle* style, TextDirection direction, TextRun::ExpansionBehavior expansion) font 2695 Source/core/rendering/RenderBlockFlow.cpp if (textRunNeedsRenderingContext(font)) font 2702 Source/core/rendering/RenderBlockFlow.cpp static inline TextRun constructTextRunInternal(RenderObject* context, const Font& font, const CharacterType* characters, int length, RenderStyle* style, TextDirection direction, TextRun::ExpansionBehavior expansion, TextRunFlags flags) font 2716 Source/core/rendering/RenderBlockFlow.cpp if (textRunNeedsRenderingContext(font)) font 2722 Source/core/rendering/RenderBlockFlow.cpp TextRun RenderBlockFlow::constructTextRun(RenderObject* context, const Font& font, const LChar* characters, int length, RenderStyle* style, TextDirection direction, TextRun::ExpansionBehavior expansion) font 2724 Source/core/rendering/RenderBlockFlow.cpp return constructTextRunInternal(context, font, characters, length, style, direction, expansion); font 2727 Source/core/rendering/RenderBlockFlow.cpp TextRun RenderBlockFlow::constructTextRun(RenderObject* context, const Font& font, const UChar* characters, int length, RenderStyle* style, TextDirection direction, TextRun::ExpansionBehavior expansion) font 2729 Source/core/rendering/RenderBlockFlow.cpp return constructTextRunInternal(context, font, characters, length, style, direction, expansion); font 2732 Source/core/rendering/RenderBlockFlow.cpp TextRun RenderBlockFlow::constructTextRun(RenderObject* context, const Font& font, const RenderText* text, RenderStyle* style, TextDirection direction, TextRun::ExpansionBehavior expansion) font 2735 Source/core/rendering/RenderBlockFlow.cpp return constructTextRunInternal(context, font, text->characters8(), text->textLength(), style, direction, expansion); font 2736 Source/core/rendering/RenderBlockFlow.cpp return constructTextRunInternal(context, font, text->characters16(), text->textLength(), style, direction, expansion); font 2739 Source/core/rendering/RenderBlockFlow.cpp TextRun RenderBlockFlow::constructTextRun(RenderObject* context, const Font& font, const RenderText* text, unsigned offset, unsigned length, RenderStyle* style, TextDirection direction, TextRun::ExpansionBehavior expansion) font 2743 Source/core/rendering/RenderBlockFlow.cpp return constructTextRunInternal(context, font, text->characters8() + offset, length, style, direction, expansion); font 2744 Source/core/rendering/RenderBlockFlow.cpp return constructTextRunInternal(context, font, text->characters16() + offset, length, style, direction, expansion); font 2747 Source/core/rendering/RenderBlockFlow.cpp TextRun RenderBlockFlow::constructTextRun(RenderObject* context, const Font& font, const String& string, RenderStyle* style, TextDirection direction, TextRun::ExpansionBehavior expansion, TextRunFlags flags) font 2751 Source/core/rendering/RenderBlockFlow.cpp return constructTextRunInternal(context, font, static_cast<const LChar*>(0), length, style, direction, expansion, flags); font 2753 Source/core/rendering/RenderBlockFlow.cpp return constructTextRunInternal(context, font, string.characters8(), length, style, direction, expansion, flags); font 2754 Source/core/rendering/RenderBlockFlow.cpp return constructTextRunInternal(context, font, string.characters16(), length, style, direction, expansion, flags); font 2757 Source/core/rendering/RenderBlockFlow.cpp TextRun RenderBlockFlow::constructTextRun(RenderObject* context, const Font& font, const String& string, RenderStyle* style, TextRun::ExpansionBehavior expansion, TextRunFlags flags) font 2760 Source/core/rendering/RenderBlockFlow.cpp return constructTextRun(context, font, string, style, font 2765 Source/core/rendering/RenderBlockFlow.cpp TextRun RenderBlockFlow::constructTextRun(RenderObject* context, const Font& font, const RenderText* text, unsigned offset, unsigned length, RenderStyle* style, TextRun::ExpansionBehavior expansion) font 2769 Source/core/rendering/RenderBlockFlow.cpp ? constructTextRunInternal(context, font, text->characters8() + offset, length, style, LTR, expansion) font 2770 Source/core/rendering/RenderBlockFlow.cpp : constructTextRunInternal(context, font, text->characters16() + offset, length, style, LTR, expansion); font 424 Source/core/rendering/RenderBlockLineLayout.cpp const Font& font = renderer->style(lineInfo.isFirstLine())->font(); font 431 Source/core/rendering/RenderBlockLineLayout.cpp int rootDescent = includeRootLine ? font.fontMetrics().descent() : 0; font 432 Source/core/rendering/RenderBlockLineLayout.cpp int rootAscent = includeRootLine ? font.fontMetrics().ascent() : 0; font 433 Source/core/rendering/RenderBlockLineLayout.cpp int boxAscent = font.fontMetrics().ascent() - baselineShift; font 434 Source/core/rendering/RenderBlockLineLayout.cpp int boxDescent = font.fontMetrics().descent() + baselineShift; font 441 Source/core/rendering/RenderBlockLineLayout.cpp const Font& font = renderer->style(lineInfo.isFirstLine())->font(); font 442 Source/core/rendering/RenderBlockLineLayout.cpp hyphenWidth = measureHyphenWidth(renderer, font, run->direction()); font 446 Source/core/rendering/RenderBlockLineLayout.cpp bool kerningIsEnabled = font.fontDescription().typesettingFeatures() & Kerning; font 451 Source/core/rendering/RenderBlockLineLayout.cpp bool canUseSimpleFontCodePath = renderer->canUseSimpleFontCodePath() && !font.fontDescription().featureSettings(); font 668 Source/core/rendering/RenderBlockLineLayout.cpp totalLogicalWidth += rt->style(lineInfo.isFirstLine())->font().fontDescription().wordSpacing(); font 1342 Source/core/rendering/RenderBlockLineLayout.cpp const Font& font = t->style()->font(); // FIXME: This ignores first-line. font 1343 Source/core/rendering/RenderBlockLineLayout.cpp float spaceWidth = font.width(RenderBlockFlow::constructTextRun(t, font, &space, 1, t->style(), LTR)); font 1344 Source/core/rendering/RenderBlockLineLayout.cpp inlineMax -= spaceWidth + font.fontDescription().wordSpacing(); font 2100 Source/core/rendering/RenderBlockLineLayout.cpp const Font& font = style()->font(); font 2102 Source/core/rendering/RenderBlockLineLayout.cpp const Font& firstLineFont = firstLineStyle()->font(); font 2106 Source/core/rendering/RenderBlockLineLayout.cpp int ellipsisWidth = (font == firstLineFont) ? firstLineEllipsisWidth : font.width(constructTextRun(this, font, &horizontalEllipsis, 1, style(), ellipsisDirection)); font 58 Source/core/rendering/RenderCombineText.cpp float RenderCombineText::width(unsigned from, unsigned length, const Font& font, float xPosition, TextDirection direction, HashSet<const SimpleFontData*>* fallbackFonts, GlyphOverflow* glyphOverflow) const font 64 Source/core/rendering/RenderCombineText.cpp return font.fontDescription().computedSize(); font 66 Source/core/rendering/RenderCombineText.cpp return RenderText::width(from, length, font, xPosition, direction, fallbackFonts, glyphOverflow); font 72 Source/core/rendering/RenderCombineText.cpp textOrigin.move(boxRect.height() / 2 - ceilf(m_combinedTextWidth) / 2, style()->font().fontDescription().computedPixelSize()); font 108 Source/core/rendering/RenderCombineText.cpp FontSelector* fontSelector = style()->font().fontSelector(); font 135 Source/core/rendering/RenderCombineText.cpp style()->font().update(fontSelector); font 37 Source/core/rendering/RenderCombineText.h float combinedTextWidth(const Font& font) const { return font.fontDescription().computedSize(); } font 38 Source/core/rendering/RenderCombineText.h const Font& originalFont() const { return parent()->style()->font(); } font 940 Source/core/rendering/RenderDeprecatedFlexibleBox.cpp const Font& font = style(numVisibleLines == 1)->font(); font 946 Source/core/rendering/RenderDeprecatedFlexibleBox.cpp totalWidth = anchorBox->logicalWidth() + font.width(RenderBlockFlow::constructTextRun(this, font, ellipsisAndSpace, 2, style(), style()->direction())); font 949 Source/core/rendering/RenderDeprecatedFlexibleBox.cpp totalWidth = font.width(RenderBlockFlow::constructTextRun(this, font, &horizontalEllipsis, 1, style(), style()->direction())); font 139 Source/core/rendering/RenderEmbeddedObject.cpp Font font; font 142 Source/core/rendering/RenderEmbeddedObject.cpp if (!getReplacementTextGeometry(paintOffset, contentRect, path, replacementTextRect, font, run, textWidth)) font 151 Source/core/rendering/RenderEmbeddedObject.cpp const FontMetrics& fontMetrics = font.fontMetrics(); font 158 Source/core/rendering/RenderEmbeddedObject.cpp context->drawBidiText(font, runInfo, FloatPoint(labelX, labelY)); font 161 Source/core/rendering/RenderEmbeddedObject.cpp bool RenderEmbeddedObject::getReplacementTextGeometry(const LayoutPoint& accumulatedOffset, FloatRect& contentRect, Path& path, FloatRect& replacementTextRect, Font& font, TextRun& run, float& textWidth) const font 174 Source/core/rendering/RenderEmbeddedObject.cpp font = Font(fontDescription); font 175 Source/core/rendering/RenderEmbeddedObject.cpp font.update(nullptr); font 178 Source/core/rendering/RenderEmbeddedObject.cpp textWidth = font.width(run); font 107 Source/core/rendering/RenderFileUploadControl.cpp const Font& font = style()->font(); font 108 Source/core/rendering/RenderFileUploadControl.cpp TextRun textRun = constructTextRun(this, font, displayedFilename, style(), TextRun::AllowTrailingExpansion, RespectDirection | RespectDirectionOverride); font 119 Source/core/rendering/RenderFileUploadControl.cpp float textWidth = font.width(textRun); font 141 Source/core/rendering/RenderFileUploadControl.cpp paintInfo.context->drawBidiText(font, textRunPaintInfo, IntPoint(roundToInt(textX), roundToInt(textY))); font 154 Source/core/rendering/RenderFileUploadControl.cpp const Font& font = style()->font(); font 157 Source/core/rendering/RenderFileUploadControl.cpp float minDefaultLabelWidth = defaultWidthNumChars * font.width(constructTextRun(renderer, font, characterAsString, style(), TextRun::AllowTrailingExpansion)); font 160 Source/core/rendering/RenderFileUploadControl.cpp float defaultLabelWidth = font.width(constructTextRun(renderer, font, label, style(), TextRun::AllowTrailingExpansion)); font 224 Source/core/rendering/RenderFileUploadControl.cpp return RenderTheme::theme().fileListNameForWidth(input->locale(), input->files(), style()->font(), maxFilenameWidth()); font 70 Source/core/rendering/RenderFlowThread.cpp newStyle->font().update(nullptr); font 93 Source/core/rendering/RenderFullScreen.cpp fullscreenStyle->font().update(nullptr); font 132 Source/core/rendering/RenderImage.cpp const Font& font = style()->font(); font 133 Source/core/rendering/RenderImage.cpp IntSize paddedTextSize(paddingWidth + min(ceilf(font.width(RenderBlockFlow::constructTextRun(this, font, m_altText, style()))), maxAltTextWidth), paddingHeight + min(font.fontMetrics().height(), maxAltTextHeight)); font 344 Source/core/rendering/RenderImage.cpp const Font& font = style()->font(); font 345 Source/core/rendering/RenderImage.cpp const FontMetrics& fontMetrics = font.fontMetrics(); font 353 Source/core/rendering/RenderImage.cpp TextRun textRun = RenderBlockFlow::constructTextRun(this, font, m_altText, style(), TextRun::AllowTrailingExpansion | TextRun::ForbidLeadingExpansion, DefaultTextRunFlags | RespectDirection); font 354 Source/core/rendering/RenderImage.cpp float textWidth = font.width(textRun); font 364 Source/core/rendering/RenderImage.cpp context->drawBidiText(font, textRunPaintInfo, textOrigin); font 366 Source/core/rendering/RenderImage.cpp context->drawBidiText(font, textRunPaintInfo, textOrigin); font 217 Source/core/rendering/RenderInline.cpp || (checkFonts && (!parentStyle->font().fontMetrics().hasIdenticalAscentDescentAndLineGap(style()->font().fontMetrics()) font 224 Source/core/rendering/RenderInline.cpp alwaysCreateLineBoxes = !parentStyle->font().fontMetrics().hasIdenticalAscentDescentAndLineGap(childStyle->font().fontMetrics()) font 562 Source/core/rendering/RenderInline.cpp int logicalTop = rootBox.logicalTop() + (rootBox.renderer().style(rootBox.isFirstLineStyle())->font().fontMetrics().ascent() - container->style(rootBox.isFirstLineStyle())->font().fontMetrics().ascent()); font 563 Source/core/rendering/RenderInline.cpp int logicalHeight = container->style(rootBox.isFirstLineStyle())->font().fontMetrics().height(); font 577 Source/core/rendering/RenderInline.cpp int logicalTop = rootBox.logicalTop() + (rootBox.renderer().style(rootBox.isFirstLineStyle())->font().fontMetrics().ascent() - container->style(rootBox.isFirstLineStyle())->font().fontMetrics().ascent()); font 578 Source/core/rendering/RenderInline.cpp int logicalHeight = container->style(rootBox.isFirstLineStyle())->font().fontMetrics().height(); font 595 Source/core/rendering/RenderInline.cpp int logicalTop = rootBox.logicalTop() + (rootBox.renderer().style(rootBox.isFirstLineStyle())->font().fontMetrics().ascent() - container->style(rootBox.isFirstLineStyle())->font().fontMetrics().ascent()); font 596 Source/core/rendering/RenderInline.cpp int logicalHeight = container->style(rootBox.isFirstLineStyle())->font().fontMetrics().height(); font 131 Source/core/rendering/RenderListBox.cpp Font itemFont = style()->font(); font 440 Source/core/rendering/RenderListBox.cpp Font itemFont = style()->font(); font 1267 Source/core/rendering/RenderListMarker.cpp const Font& font = style()->font(); font 1268 Source/core/rendering/RenderListMarker.cpp TextRun textRun = RenderBlockFlow::constructTextRun(this, font, m_text, style()); font 1286 Source/core/rendering/RenderListMarker.cpp context->drawText(font, textRunPaintInfo, textOrigin); font 1307 Source/core/rendering/RenderListMarker.cpp TextRun suffixRun = RenderBlockFlow::constructTextRun(this, font, suffixStr, 2, style(), style()->direction()); font 1312 Source/core/rendering/RenderListMarker.cpp context->drawText(font, textRunPaintInfo, textOrigin); font 1313 Source/core/rendering/RenderListMarker.cpp context->drawText(font, suffixRunInfo, textOrigin + IntSize(font.width(textRun), 0)); font 1315 Source/core/rendering/RenderListMarker.cpp context->drawText(font, suffixRunInfo, textOrigin); font 1316 Source/core/rendering/RenderListMarker.cpp context->drawText(font, textRunPaintInfo, textOrigin + IntSize(font.width(suffixRun), 0)); font 1489 Source/core/rendering/RenderListMarker.cpp const Font& font = style()->font(); font 1498 Source/core/rendering/RenderListMarker.cpp logicalWidth = font.width(m_text); // no suffix for these types font 1503 Source/core/rendering/RenderListMarker.cpp logicalWidth = (font.fontMetrics().ascent() * 2 / 3 + 1) / 2 + 2; font 1583 Source/core/rendering/RenderListMarker.cpp LayoutUnit itemWidth = font.width(m_text); font 1585 Source/core/rendering/RenderListMarker.cpp LayoutUnit suffixSpaceWidth = font.width(RenderBlockFlow::constructTextRun(this, font, suffixSpace, 2, style(), style()->direction())); font 1715 Source/core/rendering/RenderListMarker.cpp const Font& font = style()->font(); font 1716 Source/core/rendering/RenderListMarker.cpp relativeRect = IntRect(0, 0, font.width(m_text), font.fontMetrics().height()); font 1808 Source/core/rendering/RenderListMarker.cpp const Font& font = style()->font(); font 1809 Source/core/rendering/RenderListMarker.cpp int itemWidth = font.width(m_text); font 1811 Source/core/rendering/RenderListMarker.cpp int suffixSpaceWidth = font.width(RenderBlockFlow::constructTextRun(this, font, suffixSpace, 2, style(), style()->direction())); font 1812 Source/core/rendering/RenderListMarker.cpp relativeRect = IntRect(0, 0, itemWidth + suffixSpaceWidth, font.fontMetrics().height()); font 157 Source/core/rendering/RenderMenuList.cpp bool fontChanged = !oldStyle || oldStyle->font() != style()->font(); font 182 Source/core/rendering/RenderMenuList.cpp optionWidth += style()->font().width(text); font 185 Source/core/rendering/RenderMenuList.cpp maxOptionWidth = max(maxOptionWidth, style()->font().width(text)); font 466 Source/core/rendering/RenderMenuList.cpp return style ? PopupMenuStyle(resolveColor(style, CSSPropertyColor), itemBackgroundColor, style->font(), style->visibility() == VISIBLE, font 506 Source/core/rendering/RenderMenuList.cpp return PopupMenuStyle(o->resolveColor(CSSPropertyColor), o->resolveColor(CSSPropertyBackgroundColor), s->font(), s->visibility() == VISIBLE, font 208 Source/core/rendering/RenderText.cpp newStyle->font().willUseFontData(); font 818 Source/core/rendering/RenderText.cpp const Font& font = style()->font(); // FIXME: This ignores first-line. font 821 Source/core/rendering/RenderText.cpp float spaceWidth = font.width(RenderBlockFlow::constructTextRun(this, font, &space, 1, style(), direction)); font 824 Source/core/rendering/RenderText.cpp maxWidth += font.fontDescription().wordSpacing(); font 835 Source/core/rendering/RenderText.cpp const Font& f = style()->font(); // FIXME: This ignores first-line. font 892 Source/core/rendering/RenderText.cpp static inline float hyphenWidth(RenderText* renderer, const Font& font, TextDirection direction) font 895 Source/core/rendering/RenderText.cpp return font.width(RenderBlockFlow::constructTextRun(renderer, font, style->hyphenString().string(), style, direction)); font 920 Source/core/rendering/RenderText.cpp const Font& f = styleToUse->font(); // FIXME: This ignores first-line. font 1497 Source/core/rendering/RenderText.cpp return width(from, len, style(firstLine)->font(), xPos, textDirection, fallbackFonts, glyphOverflow); font 1507 Source/core/rendering/RenderText.cpp if (&f == &style()->font()) { font 223 Source/core/rendering/RenderTextControl.cpp return roundf(style()->font().primaryFont()->avgCharWidth()); font 227 Source/core/rendering/RenderTextControl.cpp const Font& font = style()->font(); font 228 Source/core/rendering/RenderTextControl.cpp TextRun textRun = constructTextRun(this, font, str, style(), TextRun::AllowTrailingExpansion); font 230 Source/core/rendering/RenderTextControl.cpp return font.width(textRun); font 237 Source/core/rendering/RenderTextControl.cpp return roundf(style()->font().fontDescription().computedSize() * x / unitsPerEm); font 243 Source/core/rendering/RenderTextControl.cpp AtomicString family = style()->font().fontDescription().family().family(); font 320 Source/core/rendering/RenderTextControlSingleLine.cpp AtomicString family = style()->font().fontDescription().family().family(); font 328 Source/core/rendering/RenderTextControlSingleLine.cpp maxCharWidth = roundf(style()->font().primaryFont()->maxCharWidth()); font 130 Source/core/rendering/RenderTheme.cpp borderBox = m_platformTheme->controlBorder(part, style->font().fontDescription(), borderBox, style->effectiveZoom()); font 159 Source/core/rendering/RenderTheme.cpp LengthBox paddingBox = m_platformTheme->controlPadding(part, style->font().fontDescription(), style->paddingBox(), style->effectiveZoom()); font 170 Source/core/rendering/RenderTheme.cpp LengthSize controlSize = m_platformTheme->controlSize(part, style->font().fontDescription(), LengthSize(style->width(), style->height()), style->effectiveZoom()); font 177 Source/core/rendering/RenderTheme.cpp LengthSize minControlSize = m_platformTheme->minimumControlSize(part, style->font().fontDescription(), style->effectiveZoom()); font 184 Source/core/rendering/RenderTheme.cpp FontDescription controlFont = m_platformTheme->controlFont(part, style->font().fontDescription(), style->effectiveZoom()); font 185 Source/core/rendering/RenderTheme.cpp if (controlFont != style->font().fontDescription()) { font 191 Source/core/rendering/RenderTheme.cpp style->font().update(nullptr); font 1099 Source/core/rendering/RenderTheme.cpp String RenderTheme::fileListNameForWidth(Locale& locale, const FileList* fileList, const Font& font, int width) const font 1111 Source/core/rendering/RenderTheme.cpp return StringTruncator::rightTruncate(locale.queryString(blink::WebLocalizedString::MultipleFileUploadText, String::number(fileList->length())), width, font, StringTruncator::EnableRoundingHacks); font 1114 Source/core/rendering/RenderTheme.cpp return StringTruncator::centerTruncate(string, width, font, StringTruncator::EnableRoundingHacks); font 47 Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp DEFINE_STATIC_LOCAL(FontDescription, font, ()); font 48 Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp return font; font 53 Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp DEFINE_STATIC_LOCAL(FontDescription, font, ()); font 54 Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp return font; font 59 Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp DEFINE_STATIC_LOCAL(FontDescription, font, ()); font 60 Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp return font; font 90 Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp static float systemFontSize(const LOGFONT& font) font 92 Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp float size = -font.lfHeight; font 94 Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp HFONT hFont = CreateFontIndirect(&font); font 648 Source/core/rendering/RootInlineBox.cpp usedFonts->append(box->renderer().style(isFirstLineStyle())->font().primaryFont()); font 749 Source/core/rendering/RootInlineBox.cpp const Font& font = parent->style(firstLine)->font(); font 750 Source/core/rendering/RootInlineBox.cpp const FontMetrics& fontMetrics = font.fontMetrics(); font 751 Source/core/rendering/RootInlineBox.cpp int fontSize = font.fontDescription().computedPixelSize(); font 185 Source/core/rendering/line/BreakingContextInlineHeaders.h || !parent->style()->font().fontMetrics().hasIdenticalAscentDescentAndLineGap(flow->style()->font().fontMetrics()))) font 509 Source/core/rendering/line/BreakingContextInlineHeaders.h inline float measureHyphenWidth(RenderText* renderer, const Font& font, TextDirection textDirection) font 512 Source/core/rendering/line/BreakingContextInlineHeaders.h return font.width(RenderBlockFlow::constructTextRun(renderer, font, font 522 Source/core/rendering/line/BreakingContextInlineHeaders.h ALWAYS_INLINE float textWidth(RenderText* text, unsigned from, unsigned len, const Font& font, float xPos, bool isFixedPitch, bool collapseWhiteSpace, HashSet<const SimpleFontData*>* fallbackFonts = 0) font 526 Source/core/rendering/line/BreakingContextInlineHeaders.h return text->width(from, len, font, xPos, text->style()->direction(), fallbackFonts, &glyphOverflow); font 528 Source/core/rendering/line/BreakingContextInlineHeaders.h TextRun run = RenderBlockFlow::constructTextRun(text, font, text, from, len, text->style()); font 532 Source/core/rendering/line/BreakingContextInlineHeaders.h return font.width(run, fallbackFonts, &glyphOverflow); font 563 Source/core/rendering/line/BreakingContextInlineHeaders.h const Font& font = style->font(); font 564 Source/core/rendering/line/BreakingContextInlineHeaders.h bool isFixedPitch = font.isFixedPitch(); font 593 Source/core/rendering/line/BreakingContextInlineHeaders.h m_renderTextInfo.m_font = &font; font 595 Source/core/rendering/line/BreakingContextInlineHeaders.h } else if (m_renderTextInfo.m_font != &font) { font 596 Source/core/rendering/line/BreakingContextInlineHeaders.h m_renderTextInfo.m_font = &font; font 601 Source/core/rendering/line/BreakingContextInlineHeaders.h float wordTrailingSpaceWidth = (font.fontDescription().typesettingFeatures() & Kerning) ? font 602 Source/core/rendering/line/BreakingContextInlineHeaders.h font.width(RenderBlockFlow::constructTextRun( font 603 Source/core/rendering/line/BreakingContextInlineHeaders.h renderText, font, &space, 1, style, font 619 Source/core/rendering/line/BreakingContextInlineHeaders.h hyphenWidth = measureHyphenWidth(renderText, font, textDirectionFromUnicode(m_resolver.position().direction())); font 628 Source/core/rendering/line/BreakingContextInlineHeaders.h charWidth = textWidth(renderText, m_current.offset(), midWordBreakIsBeforeSurrogatePair ? 2 : 1, font, m_width.committedWidth() + wrapW, isFixedPitch, m_collapseWhiteSpace, 0); font 664 Source/core/rendering/line/BreakingContextInlineHeaders.h additionalTmpW = textWidth(renderText, lastSpace, m_current.offset() + 1 - lastSpace, font, m_width.currentWidth(), isFixedPitch, m_collapseWhiteSpace, &wordMeasurement.fallbackFonts) - wordTrailingSpaceWidth; font 666 Source/core/rendering/line/BreakingContextInlineHeaders.h additionalTmpW = textWidth(renderText, lastSpace, m_current.offset() - lastSpace, font, m_width.currentWidth(), isFixedPitch, m_collapseWhiteSpace, &wordMeasurement.fallbackFonts); font 686 Source/core/rendering/line/BreakingContextInlineHeaders.h float charWidth = textWidth(renderText, m_current.offset(), 1, font, m_width.currentWidth(), isFixedPitch, m_collapseWhiteSpace, &wordMeasurement.fallbackFonts) + (applyWordSpacing ? wordSpacing : 0); font 817 Source/core/rendering/line/BreakingContextInlineHeaders.h float additionalTmpW = m_ignoringSpaces ? 0 : textWidth(renderText, lastSpace, m_current.offset() - lastSpace, font, m_width.currentWidth(), isFixedPitch, m_collapseWhiteSpace, &wordMeasurement.fallbackFonts); font 518 Source/core/rendering/style/RenderStyle.cpp || inherited->font != other.inherited->font font 1052 Source/core/rendering/style/RenderStyle.cpp return font().primaryFontHasGlyphForCharacter(hyphen) ? hyphenString : hyphenMinusString; font 1181 Source/core/rendering/style/RenderStyle.cpp const Font& RenderStyle::font() const { return inherited->font; } font 1182 Source/core/rendering/style/RenderStyle.cpp const FontMetrics& RenderStyle::fontMetrics() const { return inherited->font.fontMetrics(); } font 1183 Source/core/rendering/style/RenderStyle.cpp const FontDescription& RenderStyle::fontDescription() const { return inherited->font.fontDescription(); } font 1194 Source/core/rendering/style/RenderStyle.cpp if (inherited->font.fontDescription() != v) { font 1195 Source/core/rendering/style/RenderStyle.cpp inherited.access()->font = Font(v); font 1233 Source/core/rendering/style/RenderStyle.cpp FontSelector* currentFontSelector = font().fontSelector(); font 1237 Source/core/rendering/style/RenderStyle.cpp font().update(currentFontSelector); font 1242 Source/core/rendering/style/RenderStyle.cpp FontSelector* currentFontSelector = font().fontSelector(); font 1246 Source/core/rendering/style/RenderStyle.cpp font().update(currentFontSelector); font 1260 Source/core/rendering/style/RenderStyle.cpp FontSelector* currentFontSelector = font().fontSelector(); font 1272 Source/core/rendering/style/RenderStyle.cpp font().update(currentFontSelector); font 1277 Source/core/rendering/style/RenderStyle.cpp FontSelector* currentFontSelector = font().fontSelector(); font 1281 Source/core/rendering/style/RenderStyle.cpp font().update(currentFontSelector); font 566 Source/core/rendering/style/RenderStyle.h const Font& font() const; font 47 Source/core/rendering/style/StyleInheritedData.cpp , font(o.font) font 56 Source/core/rendering/style/StyleInheritedData.cpp && font == o.font font 56 Source/core/rendering/style/StyleInheritedData.h Font font; font 224 Source/core/rendering/svg/RenderSVGInlineText.cpp scaledFont = style->font(); font 450 Source/core/rendering/svg/SVGInlineTextBox.cpp if (textRunNeedsRenderingContext(style->font())) font 506 Source/core/rendering/svg/SVGInlineTextBox.cpp static inline float thicknessForDecoration(TextDecoration, const Font& font) font 510 Source/core/rendering/svg/SVGInlineTextBox.cpp return font.fontDescription().computedSize() / 20.0f; font 695 Source/core/rendering/svg/SVGInlineTextBox.cpp void SVGInlineTextBox::paintTextMatchMarker(GraphicsContext* context, const FloatPoint&, DocumentMarker* marker, RenderStyle* style, const Font& font) font 446 Source/core/rendering/svg/SVGTextLayoutEngine.cpp const Font& font = style->font(); font 448 Source/core/rendering/svg/SVGTextLayoutEngine.cpp SVGTextLayoutEngineSpacing spacingLayout(font); font 449 Source/core/rendering/svg/SVGTextLayoutEngine.cpp SVGTextLayoutEngineBaseline baselineLayout(font); font 33 Source/core/rendering/svg/SVGTextLayoutEngineBaseline.cpp SVGTextLayoutEngineBaseline::SVGTextLayoutEngineBaseline(const Font& font) font 34 Source/core/rendering/svg/SVGTextLayoutEngineBaseline.cpp : m_font(font) font 37 Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp SVGTextLayoutEngineSpacing::SVGTextLayoutEngineSpacing(const Font& font) font 38 Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp : m_font(font) font 83 Source/core/rendering/svg/SVGTextMetrics.cpp if (textRunNeedsRenderingContext(style->font())) font 107 Source/core/rendering/svg/SVGTextMetrics.cpp bool needsContext = textRunNeedsRenderingContext(text->style()->font()); font 40 Source/core/rendering/svg/SVGTextRunRenderingContext.cpp static inline const SVGFontData* svgFontAndFontFaceElementForFontData(const SimpleFontData* fontData, SVGFontFaceElement*& fontFace, SVGFontElement*& font) font 52 Source/core/rendering/svg/SVGTextRunRenderingContext.cpp font = fontFace->associatedFontElement(); font 76 Source/core/rendering/svg/SVGTextRunRenderingContext.cpp float SVGTextRunRenderingContext::floatWidthUsingSVGFont(const Font& font, const TextRun& run, int& charsConsumed, Glyph& glyphId) const font 78 Source/core/rendering/svg/SVGTextRunRenderingContext.cpp WidthIterator it(&font, run); font 172 Source/core/rendering/svg/SVGTextRunRenderingContext.cpp GlyphData SVGTextRunRenderingContext::glyphDataForCharacter(const Font& font, const TextRun& run, WidthIterator& iterator, UChar32 character, bool mirror, int currentCharacter, unsigned& advanceLength) font 174 Source/core/rendering/svg/SVGTextRunRenderingContext.cpp const SimpleFontData* primaryFont = font.primaryFont(); font 177 Source/core/rendering/svg/SVGTextRunRenderingContext.cpp pair<GlyphData, GlyphPage*> pair = font.glyphDataAndPageForCharacter(character, mirror); font 189 Source/core/rendering/svg/SVGTextRunRenderingContext.cpp FontFallbackList* fontList = font.fontList(); font 236 Source/core/rendering/svg/SVGTextRunRenderingContext.cpp GlyphData fallbackGlyphData = font.glyphDataForCharacter(character, mirror); font 68 Source/core/rendering/svg/SVGTextRunRenderingContext.h inline bool textRunNeedsRenderingContext(const Font& font) font 72 Source/core/rendering/svg/SVGTextRunRenderingContext.h ASSERT(font.primaryFont()); font 73 Source/core/rendering/svg/SVGTextRunRenderingContext.h return font.primaryFont()->isSVGFont(); font 435 Source/core/svg/SVGDocumentExtensions.cpp void SVGDocumentExtensions::registerPendingSVGFontFaceElementsForRemoval(PassRefPtr<SVGFontFaceElement> font) font 437 Source/core/svg/SVGDocumentExtensions.cpp m_pendingSVGFontFaceElementsForRemoval.add(font); font 19 Source/core/svg/SVGRemoteFontFaceSource.cpp SVGRemoteFontFaceSource::SVGRemoteFontFaceSource(const String& uri, FontResource* font) font 20 Source/core/svg/SVGRemoteFontFaceSource.cpp : RemoteFontFaceSource(font) font 39 Source/platform/PopupMenuStyle.h PopupMenuStyle(const Color& foreground, const Color& background, const Font& font, bool visible, bool isDisplayNone, Length textIndent, TextDirection textDirection, bool hasTextDirectionOverride, BackgroundColorType backgroundColorType = DefaultBackgroundColor) font 42 Source/platform/PopupMenuStyle.h , m_font(font) font 54 Source/platform/PopupMenuStyle.h const Font& font() const { return m_font; } font 98 Source/platform/fonts/FontPlatformData.h NSFont* font() const { return m_font; } font 97 Source/platform/fonts/GlyphBuffer.h void add(Glyph glyph, const SimpleFontData* font, float width) font 99 Source/platform/fonts/GlyphBuffer.h m_fontData.append(font); font 110 Source/platform/fonts/GlyphBuffer.h void add(Glyph glyph, const SimpleFontData* font, GlyphBufferAdvance advance) font 112 Source/platform/fonts/GlyphBuffer.h m_fontData.append(font); font 161 Source/platform/fonts/SimpleFontData.h NSFont* getNSFont() const { return m_platformData.font(); } font 39 Source/platform/fonts/WidthIterator.cpp WidthIterator::WidthIterator(const Font* font, const TextRun& run, HashSet<const SimpleFontData*>* fallbackFonts, bool accountForGlyphBounds, bool forTextEmphasis) font 40 Source/platform/fonts/WidthIterator.cpp : m_font(font) font 46 Source/platform/fonts/WidthIterator.cpp , m_typesettingFeatures(font->fontDescription().typesettingFeatures()) font 61 Source/platform/fonts/WidthIterator.h static bool supportsTypesettingFeatures(const Font& font) font 64 Source/platform/fonts/WidthIterator.h return !font.fontDescription().typesettingFeatures(); font 60 Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp static void paintGlyphs(GraphicsContext* gc, const SimpleFontData* font, font 70 Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp font->platformData().setupPaint(&paint, gc); font 83 Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp font->platformData().setupPaint(&paint, gc); font 104 Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp void Font::drawGlyphs(GraphicsContext* gc, const SimpleFontData* font, font 116 Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp const OpenTypeVerticalData* verticalData = font->verticalData(); font 117 Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp if (font->platformData().orientation() == Vertical && verticalData) { font 125 Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp const FontMetrics& metrics = font->fontMetrics(); font 135 Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp verticalData->getVerticalTranslationsForGlyphs(font, &glyphs[0], chunkLength, reinterpret_cast<float*>(&translations[0])); font 148 Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp paintGlyphs(gc, font, glyphs, chunkLength, pos, textRect); font 169 Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp paintGlyphs(gc, font, glyphs, numGlyphs, pos, textRect); font 256 Source/platform/fonts/harfbuzz/FontPlatformDataHarfBuzz.cpp void FontPlatformData::getRenderStyleForStrike(const char* font, int sizeAndStyle) font 263 Source/platform/fonts/harfbuzz/FontPlatformDataHarfBuzz.cpp if (!font || !*font) font 266 Source/platform/fonts/harfbuzz/FontPlatformDataHarfBuzz.cpp blink::Platform::current()->sandboxSupport()->getRenderStyleForStrike(font, sizeAndStyle, &style); font 268 Source/platform/fonts/harfbuzz/FontPlatformDataHarfBuzz.cpp blink::WebFontInfo::renderStyleForStrike(font, sizeAndStyle, &style); font 134 Source/platform/fonts/harfbuzz/HarfBuzzFaceCoreText.cpp hb_font_t* font = hb_font_create(m_face); font 135 Source/platform/fonts/harfbuzz/HarfBuzzFaceCoreText.cpp hb_font_set_funcs(font, harfBuzzCoreTextGetFontFuncs(), m_platformData, 0); font 137 Source/platform/fonts/harfbuzz/HarfBuzzFaceCoreText.cpp hb_font_set_ppem(font, size, size); font 139 Source/platform/fonts/harfbuzz/HarfBuzzFaceCoreText.cpp hb_font_set_scale(font, scale, scale); font 140 Source/platform/fonts/harfbuzz/HarfBuzzFaceCoreText.cpp hb_font_make_immutable(font); font 141 Source/platform/fonts/harfbuzz/HarfBuzzFaceCoreText.cpp return font; font 229 Source/platform/fonts/harfbuzz/HarfBuzzFaceSkia.cpp hb_font_t* font = hb_font_create(m_face); font 230 Source/platform/fonts/harfbuzz/HarfBuzzFaceSkia.cpp hb_font_set_funcs(font, harfBuzzSkiaGetFontFuncs(), hbFontData, destroyHarfBuzzFontData); font 233 Source/platform/fonts/harfbuzz/HarfBuzzFaceSkia.cpp hb_font_set_scale(font, scale, scale); font 234 Source/platform/fonts/harfbuzz/HarfBuzzFaceSkia.cpp hb_font_make_immutable(font); font 235 Source/platform/fonts/harfbuzz/HarfBuzzFaceSkia.cpp return font; font 92 Source/platform/fonts/harfbuzz/HarfBuzzShaper.cpp Font font; font 106 Source/platform/fonts/harfbuzz/HarfBuzzShaper.cpp , font(*fontData) font 375 Source/platform/fonts/harfbuzz/HarfBuzzShaper.cpp HarfBuzzShaper::HarfBuzzShaper(const Font* font, const TextRun& run, ForTextEmphasisOrNot forTextEmphasis) font 376 Source/platform/fonts/harfbuzz/HarfBuzzShaper.cpp : m_font(font) font 379 Source/platform/fonts/harfbuzz/HarfBuzzShaper.cpp , m_wordSpacingAdjustment(font->fontDescription().wordSpacing()) font 383 Source/platform/fonts/harfbuzz/HarfBuzzShaper.cpp , m_letterSpacing(font->fontDescription().letterSpacing()) font 597 Source/platform/fonts/harfbuzz/HarfBuzzShaper.cpp size_t bufferLength, const Font* font, Vector<CandidateRun>* runs) font 607 Source/platform/fonts/harfbuzz/HarfBuzzShaper.cpp const SimpleFontData* nextFontData = font->glyphDataForCharacter(character, false).fontData; font 629 Source/platform/fonts/harfbuzz/HarfBuzzShaper.cpp nextFontData = font->glyphDataForCharacter(character, false).fontData; font 820 Source/platform/fonts/harfbuzz/HarfBuzzShaper.cpp if (cachedResults->dir == props.direction && cachedResults->font == *m_font) { font 55 Source/platform/fonts/mac/ComplexTextController.cpp ComplexTextController::ComplexTextController(const Font* font, const TextRun& run, bool mayUseNaturalWritingDirection, HashSet<const SimpleFontData*>* fallbackFonts, bool forTextEmphasis) font 56 Source/platform/fonts/mac/ComplexTextController.cpp : m_font(*font) font 43 Source/platform/fonts/mac/FontComplexTextMac.cpp static bool preferHarfBuzz(const Font* font) font 45 Source/platform/fonts/mac/FontComplexTextMac.cpp const FontDescription& description = font->fontDescription(); font 57 Source/platform/fonts/mac/FontMac.cpp static void setupPaint(SkPaint* paint, const SimpleFontData* fontData, const Font* font, bool shouldAntialias, bool shouldSmoothFonts) font 75 Source/platform/fonts/mac/FontMac.cpp if (font->fontDescription().fontSmoothing() == Antialiased || font->fontDescription().textRendering() == GeometricPrecision) font 82 Source/platform/fonts/mac/FontMac.cpp void Font::drawGlyphs(GraphicsContext* gc, const SimpleFontData* font, font 115 Source/platform/fonts/mac/FontMac.cpp if (font->platformData().orientation() == Vertical) font 116 Source/platform/fonts/mac/FontMac.cpp y += SkFloatToScalar(font->fontMetrics().floatAscent(IdeographicBaseline) - font->fontMetrics().floatAscent()); font 133 Source/platform/fonts/mac/FontMac.cpp if (font->platformData().orientation() == Vertical) { font 147 Source/platform/fonts/mac/FontMac.cpp setupPaint(&paint, font, this, shouldAntialias, shouldSmoothFonts); font 160 Source/platform/fonts/mac/FontMac.cpp setupPaint(&paint, font, this, shouldAntialias, shouldSmoothFonts); font 172 Source/platform/fonts/mac/FontMac.cpp if (font->platformData().orientation() == Vertical) font 40 Source/platform/fonts/mac/GlyphPageTreeNodeMac.cpp void CGFontGetGlyphsForUnichars(CGFontRef font, const UniChar chars[], CGGlyph glyphs[], size_t length); font 500 Source/platform/fonts/opentype/OpenTypeVerticalData.cpp float OpenTypeVerticalData::advanceHeight(const SimpleFontData* font, Glyph glyph) const font 505 Source/platform/fonts/opentype/OpenTypeVerticalData.cpp float advance = advanceFUnit * font->sizePerUnit(); font 510 Source/platform/fonts/opentype/OpenTypeVerticalData.cpp return font->fontMetrics().height(); font 513 Source/platform/fonts/opentype/OpenTypeVerticalData.cpp void OpenTypeVerticalData::getVerticalTranslationsForGlyphs(const SimpleFontData* font, const Glyph* glyphs, size_t count, float* outXYArray) const font 517 Source/platform/fonts/opentype/OpenTypeVerticalData.cpp const FontMetrics& metrics = font->fontMetrics(); font 518 Source/platform/fonts/opentype/OpenTypeVerticalData.cpp float sizePerUnit = font->sizePerUnit(); font 546 Source/platform/fonts/opentype/OpenTypeVerticalData.cpp FloatRect bounds = font->boundsForGlyph(glyph); font 556 Source/platform/fonts/opentype/OpenTypeVerticalData.cpp void OpenTypeVerticalData::substituteWithVerticalGlyphs(const SimpleFontData* font, GlyphPage* glyphPage, unsigned offset, unsigned length) const font 565 Source/platform/fonts/opentype/OpenTypeVerticalData.cpp ASSERT(glyphPage->glyphDataForIndex(index).fontData == font); font 568 Source/platform/fonts/opentype/OpenTypeVerticalData.cpp glyphPage->setGlyphDataForIndex(index, to, font); font 957 Source/platform/graphics/GraphicsContext.cpp void GraphicsContext::drawText(const Font& font, const TextRunPaintInfo& runInfo, const FloatPoint& point) font 962 Source/platform/graphics/GraphicsContext.cpp font.drawText(this, runInfo, point); font 965 Source/platform/graphics/GraphicsContext.cpp void GraphicsContext::drawEmphasisMarks(const Font& font, const TextRunPaintInfo& runInfo, const AtomicString& mark, const FloatPoint& point) font 970 Source/platform/graphics/GraphicsContext.cpp font.drawEmphasisMarks(this, runInfo, mark, point); font 973 Source/platform/graphics/GraphicsContext.cpp void GraphicsContext::drawBidiText(const Font& font, const TextRunPaintInfo& runInfo, const FloatPoint& point, Font::CustomFontNotReadyAction customFontNotReadyAction) font 1002 Source/platform/graphics/GraphicsContext.cpp font.drawText(this, subrunInfo, currPoint, customFontNotReadyAction); font 1007 Source/platform/graphics/GraphicsContext.cpp currPoint.move(font.width(subrun), 0); font 1013 Source/platform/graphics/GraphicsContext.cpp void GraphicsContext::drawHighlightForText(const Font& font, const TextRun& run, const FloatPoint& point, int h, const Color& backgroundColor, int from, int to) font 1018 Source/platform/graphics/GraphicsContext.cpp fillRect(font.selectionRectForText(run, point, h, from, to), backgroundColor); font 111 Source/platform/text/StringTruncator.cpp static String truncateString(const String& string, float maxWidth, const Font& font, TruncationFunction truncateToBuffer, bool disableRoundingHacks) font 118 Source/platform/text/StringTruncator.cpp float currentEllipsisWidth = stringWidth(font, &horizontalEllipsis, 1, disableRoundingHacks); font 134 Source/platform/text/StringTruncator.cpp float width = stringWidth(font, stringBuffer, truncatedLength, disableRoundingHacks); font 170 Source/platform/text/StringTruncator.cpp width = stringWidth(font, stringBuffer, truncatedLength, disableRoundingHacks); font 191 Source/platform/text/StringTruncator.cpp String StringTruncator::centerTruncate(const String& string, float maxWidth, const Font& font, EnableRoundingHacksOrNot enableRoundingHacks) font 193 Source/platform/text/StringTruncator.cpp return truncateString(string, maxWidth, font, centerTruncateToBuffer, !enableRoundingHacks); font 196 Source/platform/text/StringTruncator.cpp String StringTruncator::rightTruncate(const String& string, float maxWidth, const Font& font, EnableRoundingHacksOrNot enableRoundingHacks) font 198 Source/platform/text/StringTruncator.cpp return truncateString(string, maxWidth, font, rightTruncateToBuffer, !enableRoundingHacks); font 201 Source/platform/text/StringTruncator.cpp float StringTruncator::width(const String& string, const Font& font, EnableRoundingHacksOrNot enableRoundingHacks) font 203 Source/platform/text/StringTruncator.cpp return stringWidth(font, string, !enableRoundingHacks); font 210 Source/web/ExternalPopupMenu.cpp info->itemHeight = m_popupMenuClient->menuStyle().font().fontMetrics().height(); font 211 Source/web/ExternalPopupMenu.cpp info->itemFontSize = static_cast<int>(m_popupMenuClient->menuStyle().font().fontDescription().computedSize()); font 469 Source/web/PopupListBox.cpp Font itemFont = m_popupClient->itemStyle(rowIndex).font(); font 474 Source/web/PopupListBox.cpp Font font(d); font 475 Source/web/PopupListBox.cpp font.update(nullptr); font 476 Source/web/PopupListBox.cpp return font; font 65 Source/web/WebSettingsImpl.cpp void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode script) font 67 Source/web/WebSettingsImpl.cpp m_settings->genericFontFamilySettings().setStandard(font, script); font 71 Source/web/WebSettingsImpl.cpp void WebSettingsImpl::setFixedFontFamily(const WebString& font, UScriptCode script) font 73 Source/web/WebSettingsImpl.cpp m_settings->genericFontFamilySettings().setFixed(font, script); font 77 Source/web/WebSettingsImpl.cpp void WebSettingsImpl::setSerifFontFamily(const WebString& font, UScriptCode script) font 79 Source/web/WebSettingsImpl.cpp m_settings->genericFontFamilySettings().setSerif(font, script); font 83 Source/web/WebSettingsImpl.cpp void WebSettingsImpl::setSansSerifFontFamily(const WebString& font, UScriptCode script) font 85 Source/web/WebSettingsImpl.cpp m_settings->genericFontFamilySettings().setSansSerif(font, script); font 89 Source/web/WebSettingsImpl.cpp void WebSettingsImpl::setCursiveFontFamily(const WebString& font, UScriptCode script) font 91 Source/web/WebSettingsImpl.cpp m_settings->genericFontFamilySettings().setCursive(font, script); font 95 Source/web/WebSettingsImpl.cpp void WebSettingsImpl::setFantasyFontFamily(const WebString& font, UScriptCode script) font 97 Source/web/WebSettingsImpl.cpp m_settings->genericFontFamilySettings().setFantasy(font, script); font 101 Source/web/WebSettingsImpl.cpp void WebSettingsImpl::setPictographFontFamily(const WebString& font, UScriptCode script) font 103 Source/web/WebSettingsImpl.cpp m_settings->genericFontFamilySettings().setPictograph(font, script); font 105 Source/web/tests/PopupMenuTest.cpp Font font(fontDescription); font 106 Source/web/tests/PopupMenuTest.cpp font.update(nullptr); font 107 Source/web/tests/PopupMenuTest.cpp return PopupMenuStyle(Color::black, Color::white, font, true, false, Length(), TextDirection(), false /* has text direction override */);