Home | History | Annotate | Download | only in mac

Lines Matching refs:fontData

40 static bool shouldUseCoreText(UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData)
42 if (fontData->platformData().widthVariant() != RegularWidth || fontData->hasVerticalGlyphs()) {
54 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData)
59 if (!shouldUseCoreText(buffer, bufferLength, fontData)) {
61 wkGetGlyphsForCharacters(fontData->platformData().cgFont(), buffer, glyphs.data(), bufferLength);
66 setGlyphDataForIndex(offset + i, glyphs[i], fontData);
73 RetainPtr<CFAttributedStringRef> attributedString(AdoptCF, CFAttributedStringCreate(kCFAllocatorDefault, string.get(), fontData->getCFStringAttributes(0, fontData->hasVerticalGlyphs() ? Vertical : Horizontal)));
88 // be non-CFEqual to fontData->platformData().cgFont().
89 RetainPtr<CGFontRef> cgFont(AdoptCF, CTFontCopyGraphicsFont(fontData->platformData().ctFont(), 0));
93 // We need to pick runs that use the exact font we need, i.e., fontData->platformData().ctFont().
123 setGlyphDataForIndex(offset + stringIndices[i], glyphs[i], fontData);
140 wkConvertCharToGlyphs(fontData->m_styleGroup, buffer, bufferLength, &glyphVector);
156 setGlyphDataForIndex(offset + i, glyph, fontData);