Lines Matching defs:font
757 const SkFont& font = glyphRun.font();
766 font.getPaths(glyphRun.glyphsIDs().data(), glyphRun.glyphsIDs().size(),
779 SkFont transparentFont = glyphRun.font();
794 static bool needs_new_font(SkPDFFont* font, const SkGlyph* glyph,
796 if (!font || !font->hasGlyph(glyph->getGlyphID())) {
807 bool convertedToType3 = (font->getType() == SkAdvancedTypefaceMetrics::kOther_Font);
816 const SkFont& glyphRunFont = glyphRun.font();
877 SkPDFFont* font = nullptr;
939 if (needs_new_font(font, glyphs[index], fontType)) {
940 // Not yet specified font or need to switch font.
941 font = SkPDFFont::GetFontResource(fDocument, glyphs[index], typeface);
942 SkASSERT(font); // All preconditions for SkPDFFont::GetFontResource are met.
943 glyphPositioner.setFont(font);
945 add_resource(fFontResources, font->indirectReference()));
951 font->noteGlyphUsage(gid);
952 SkGlyphID encodedGlyph = font->glyphToPDFFontEncoding(gid);
1106 // we simply preserve the font usage instead of pulling it out and merging