Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: src/pdf/SkPDFFont.h

Issue 1401763002: SkPDF: fall back on paths for unembeddable fonts. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-10-12 (Monday) 15:54:45 EDT Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | src/pdf/SkPDFFont.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkPDFFont_DEFINED 10 #ifndef SkPDFFont_DEFINED
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 kExact_Match, 142 kExact_Match,
143 kRelated_Match, 143 kRelated_Match,
144 kNot_Match, 144 kNot_Match,
145 }; 145 };
146 static Match IsMatch(SkPDFFont* existingFont, 146 static Match IsMatch(SkPDFFont* existingFont,
147 uint32_t existingFontID, 147 uint32_t existingFontID,
148 uint16_t existingGlyphID, 148 uint16_t existingGlyphID,
149 uint32_t searchFontID, 149 uint32_t searchFontID,
150 uint16_t searchGlyphID); 150 uint16_t searchGlyphID);
151 151
152 /**
153 * Return false iff the typeface has its NotEmbeddable flag set.
154 * If typeface is NULL, the default typeface is checked.
155 */
156 static bool CanEmbedTypeface(SkTypeface*, SkPDFCanon*);
157
152 protected: 158 protected:
153 // Common constructor to handle common members. 159 // Common constructor to handle common members.
154 SkPDFFont(const SkAdvancedTypefaceMetrics* fontInfo, 160 SkPDFFont(const SkAdvancedTypefaceMetrics* fontInfo,
155 SkTypeface* typeface, 161 SkTypeface* typeface,
156 SkPDFDict* relatedFontDescriptor); 162 SkPDFDict* relatedFontDescriptor);
157 163
158 // Accessors for subclass. 164 // Accessors for subclass.
159 const SkAdvancedTypefaceMetrics* fontInfo(); 165 const SkAdvancedTypefaceMetrics* fontInfo();
160 void setFontInfo(const SkAdvancedTypefaceMetrics* info); 166 void setFontInfo(const SkAdvancedTypefaceMetrics* info);
161 uint16_t firstGlyphID() const; 167 uint16_t firstGlyphID() const;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 uint16_t fLastGlyphID; 202 uint16_t fLastGlyphID;
197 SkAutoTUnref<const SkAdvancedTypefaceMetrics> fFontInfo; 203 SkAutoTUnref<const SkAdvancedTypefaceMetrics> fFontInfo;
198 SkAutoTUnref<SkPDFDict> fDescriptor; 204 SkAutoTUnref<SkPDFDict> fDescriptor;
199 205
200 SkAdvancedTypefaceMetrics::FontType fFontType; 206 SkAdvancedTypefaceMetrics::FontType fFontType;
201 207
202 typedef SkPDFDict INHERITED; 208 typedef SkPDFDict INHERITED;
203 }; 209 };
204 210
205 #endif 211 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | src/pdf/SkPDFFont.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698