| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 | 72 |
| 73 /** \class SkPDFFont | 73 /** \class SkPDFFont |
| 74 A PDF Object class representing a font. The font may have resources | 74 A PDF Object class representing a font. The font may have resources |
| 75 attached to it in order to embed the font. SkPDFFonts are canonicalized | 75 attached to it in order to embed the font. SkPDFFonts are canonicalized |
| 76 so that resource deduplication will only include one copy of a font. | 76 so that resource deduplication will only include one copy of a font. |
| 77 This class uses the same pattern as SkPDFGraphicState, a static weak | 77 This class uses the same pattern as SkPDFGraphicState, a static weak |
| 78 reference to each instantiated class. | 78 reference to each instantiated class. |
| 79 */ | 79 */ |
| 80 class SkPDFFont : public SkPDFDict { | 80 class SkPDFFont : public SkPDFDict { |
| 81 SK_DECLARE_INST_COUNT(SkPDFFont) | 81 |
| 82 public: | 82 public: |
| 83 virtual ~SkPDFFont(); | 83 virtual ~SkPDFFont(); |
| 84 | 84 |
| 85 /** Returns the typeface represented by this class. Returns NULL for the | 85 /** Returns the typeface represented by this class. Returns NULL for the |
| 86 * default typeface. | 86 * default typeface. |
| 87 */ | 87 */ |
| 88 SkTypeface* typeface(); | 88 SkTypeface* typeface(); |
| 89 | 89 |
| 90 /** Returns the font type represented in this font. For Type0 fonts, | 90 /** Returns the font type represented in this font. For Type0 fonts, |
| 91 * returns the type of the decendant font. | 91 * returns the type of the decendant font. |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 uint16_t fLastGlyphID; | 196 uint16_t fLastGlyphID; |
| 197 SkAutoTUnref<const SkAdvancedTypefaceMetrics> fFontInfo; | 197 SkAutoTUnref<const SkAdvancedTypefaceMetrics> fFontInfo; |
| 198 SkAutoTUnref<SkPDFDict> fDescriptor; | 198 SkAutoTUnref<SkPDFDict> fDescriptor; |
| 199 | 199 |
| 200 SkAdvancedTypefaceMetrics::FontType fFontType; | 200 SkAdvancedTypefaceMetrics::FontType fFontType; |
| 201 | 201 |
| 202 typedef SkPDFDict INHERITED; | 202 typedef SkPDFDict INHERITED; |
| 203 }; | 203 }; |
| 204 | 204 |
| 205 #endif | 205 #endif |
| OLD | NEW |