| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 4 * | 3 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 | 8 |
| 10 #ifndef SkPDFFont_DEFINED | 9 #ifndef SkPDFFont_DEFINED |
| 11 #define SkPDFFont_DEFINED | 10 #define SkPDFFont_DEFINED |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 62 |
| 64 | 63 |
| 65 /** \class SkPDFFont | 64 /** \class SkPDFFont |
| 66 A PDF Object class representing a font. The font may have resources | 65 A PDF Object class representing a font. The font may have resources |
| 67 attached to it in order to embed the font. SkPDFFonts are canonicalized | 66 attached to it in order to embed the font. SkPDFFonts are canonicalized |
| 68 so that resource deduplication will only include one copy of a font. | 67 so that resource deduplication will only include one copy of a font. |
| 69 This class uses the same pattern as SkPDFGraphicState, a static weak | 68 This class uses the same pattern as SkPDFGraphicState, a static weak |
| 70 reference to each instantiated class. | 69 reference to each instantiated class. |
| 71 */ | 70 */ |
| 72 class SkPDFFont : public SkPDFDict { | 71 class SkPDFFont : public SkPDFDict { |
| 73 | 72 |
| 74 public: | 73 public: |
| 75 virtual ~SkPDFFont(); | 74 virtual ~SkPDFFont(); |
| 76 | 75 |
| 77 /** Returns the typeface represented by this class. Returns nullptr for the | 76 /** Returns the typeface represented by this class. Returns nullptr for the |
| 78 * default typeface. | 77 * default typeface. |
| 79 */ | 78 */ |
| 80 SkTypeface* typeface(); | 79 SkTypeface* typeface(); |
| 81 | 80 |
| 82 /** Returns the font type represented in this font. For Type0 fonts, | 81 /** Returns the font type represented in this font. For Type0 fonts, |
| 83 * returns the type of the decendant font. | 82 * returns the type of the decendant font. |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 uint16_t fLastGlyphID; | 195 uint16_t fLastGlyphID; |
| 197 sk_sp<const SkAdvancedTypefaceMetrics> fFontInfo; | 196 sk_sp<const SkAdvancedTypefaceMetrics> fFontInfo; |
| 198 sk_sp<SkPDFDict> fDescriptor; | 197 sk_sp<SkPDFDict> fDescriptor; |
| 199 | 198 |
| 200 SkAdvancedTypefaceMetrics::FontType fFontType; | 199 SkAdvancedTypefaceMetrics::FontType fFontType; |
| 201 | 200 |
| 202 typedef SkPDFDict INHERITED; | 201 typedef SkPDFDict INHERITED; |
| 203 }; | 202 }; |
| 204 | 203 |
| 205 #endif | 204 #endif |
| OLD | NEW |