Lines Matching refs:fontData
81 const FontData* fontData = primaryFontData(fontDescription);
82 if (!fontData->isSegmented())
83 m_pitch = static_cast<const SimpleFontData*>(fontData)->pitch();
85 const SegmentedFontData* segmentedFontData = static_cast<const SegmentedFontData*>(fontData);
88 m_pitch = segmentedFontData->rangeAt(0).fontData()->pitch();
120 const FontData* FontFallbackList::primaryFontData(const FontDescription& fontDescription) const
125 const FontData* fontData = fontDataAt(fontDescription, fontIndex);
126 if (!fontData) {
127 // All fonts are custom fonts and are loading. Return the first FontData.
128 fontData = fontDataAt(fontDescription, 0);
129 if (fontData)
130 return fontData->fontDataForCharacter(' ');
137 if (fontData->isSegmented() && !toSegmentedFontData(fontData)->containsCharacter(' '))
140 const SimpleFontData* simpleFontData = fontData->fontDataForCharacter(' ');
146 return fontData;
156 PassRefPtr<FontData> FontFallbackList::getFontData(const FontDescription& fontDescription, int& familyIndex) const
158 RefPtr<FontData> result;
188 if (RefPtr<FontData> data = m_fontSelector->getFontData(fontDescription, FontFamilyNames::webkit_standard))
197 const FontData* FontFallbackList::fontDataAt(const FontDescription& fontDescription, unsigned realizedFontIndex) const
213 RefPtr<FontData> result = getFontData(fontDescription, m_familyIndex);