Lines Matching refs:SkPDFFont
16 #include "SkPDFFont.h"
28 SkAutoGlyphCache SkPDFFont::MakeVectorCache(SkTypeface* face, int* size) {
52 struct SkPDFType0Font final : public SkPDFFont {
53 SkPDFType0Font(SkPDFFont::Info, const SkAdvancedTypefaceMetrics&);
63 struct SkPDFType1Font final : public SkPDFFont {
64 SkPDFType1Font(SkPDFFont::Info, const SkAdvancedTypefaceMetrics&, SkPDFCanon*);
69 struct SkPDFType3Font final : public SkPDFFont {
70 SkPDFType3Font(SkPDFFont::Info, const SkAdvancedTypefaceMetrics&);
120 // class SkPDFFont
129 * granularity. a) change SkPDFFont to fill in its state on demand, kind of
135 SkPDFFont::~SkPDFFont() {}
141 const SkAdvancedTypefaceMetrics* SkPDFFont::GetMetrics(SkTypeface* typeface,
164 SkAdvancedTypefaceMetrics::FontType SkPDFFont::FontType(const SkAdvancedTypefaceMetrics& metrics) {
177 SkPDFFont* SkPDFFont::GetFontResource(SkPDFCanon* canon,
182 const SkAdvancedTypefaceMetrics* fontMetrics = SkPDFFont::GetMetrics(face, canon);
186 SkAdvancedTypefaceMetrics::FontType type = SkPDFFont::FontType(metrics);
187 bool multibyte = SkPDFFont::IsMultiByte(type);
191 if (SkPDFFont** found = canon->fFontMap.find(fontID)) {
192 SkPDFFont* foundFont = *found;
212 SkPDFFont::Info info = {std::move(typeface), firstNonZeroGlyph, lastGlyph, type};
213 sk_sp<SkPDFFont> font;
231 return font.release(); // TODO(halcanary) return sk_sp<SkPDFFont>.
234 SkPDFFont::SkPDFFont(SkPDFFont::Info info)
272 SkPDFFont::Info info,
274 : SkPDFFont(std::move(info)) {
356 SkPDFFont::GetMetrics(this->typeface(), canon);
436 SkAutoGlyphCache glyphCache = SkPDFFont::MakeVectorCache(face, &emSize);
512 SkAutoGlyphCache glyphCache = SkPDFFont::MakeVectorCache(typeface, &emSize);
540 SkPDFType1Font::SkPDFType1Font(SkPDFFont::Info info,
543 : SkPDFFont(std::move(info))
599 const SkAdvancedTypefaceMetrics* metrics = SkPDFFont::GetMetrics(typeface, canon);
607 SkAutoGlyphCache cache = SkPDFFont::MakeVectorCache(typeface, &unitsPerEm);
711 SkPDFType3Font::SkPDFType3Font(SkPDFFont::Info info,
713 : SkPDFFont(std::move(info)) {}
722 bool SkPDFFont::CanEmbedTypeface(SkTypeface* typeface, SkPDFCanon* canon) {
723 const SkAdvancedTypefaceMetrics* metrics = SkPDFFont::GetMetrics(typeface, canon);
727 void SkPDFFont::drop() {