Home | History | Annotate | Download | only in rendering

Lines Matching defs:fallbackFonts

432 ALWAYS_INLINE int RenderText::widthFromCache(const Font& f, int start, int len, int xPos, HashSet<const SimpleFontData*>* fallbackFonts) const
462 return f.width(TextRun(text()->characters() + start, len, allowTabs(), xPos), fallbackFonts);
575 HashSet<const SimpleFontData*> fallbackFonts;
576 calcPrefWidths(leadWidth, fallbackFonts);
577 if (fallbackFonts.isEmpty())
581 void RenderText::calcPrefWidths(int leadWidth, HashSet<const SimpleFontData*>& fallbackFonts)
655 currMaxWidth += widthFromCache(f, lastWordBoundary, i - lastWordBoundary, leadWidth + currMaxWidth, &fallbackFonts);
678 int w = widthFromCache(f, i, wordLen, leadWidth + currMaxWidth, &fallbackFonts);
684 currMaxWidth += widthFromCache(f, lastWordBoundary, j - lastWordBoundary, leadWidth + currMaxWidth, &fallbackFonts);
1084 unsigned RenderText::width(unsigned from, unsigned len, int xPos, bool firstLine, HashSet<const SimpleFontData*>* fallbackFonts) const
1092 return width(from, len, style(firstLine)->font(), xPos, fallbackFonts);
1095 unsigned RenderText::width(unsigned from, unsigned len, const Font& f, int xPos, HashSet<const SimpleFontData*>* fallbackFonts) const
1104 if (fallbackFonts) {
1106 const_cast<RenderText*>(this)->calcPrefWidths(0, *fallbackFonts);
1107 if (fallbackFonts->isEmpty())
1114 w = widthFromCache(f, from, len, xPos, fallbackFonts);
1116 w = f.width(TextRun(text()->characters() + from, len, allowTabs(), xPos), fallbackFonts);