| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |