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 SkPDFFontImpl_DEFINED | 10 #ifndef SkPDFFontImpl_DEFINED |
11 #define SkPDFFontImpl_DEFINED | 11 #define SkPDFFontImpl_DEFINED |
12 | 12 |
13 #include "SkPDFFont.h" | 13 #include "SkPDFFont.h" |
14 | 14 |
15 class SkPDFType0Font : public SkPDFFont { | 15 class SkPDFType0Font : public SkPDFFont { |
16 public: | 16 public: |
17 virtual ~SkPDFType0Font(); | 17 virtual ~SkPDFType0Font(); |
18 virtual bool multiByteGlyphs() const { return true; } | 18 virtual bool multiByteGlyphs() const { return true; } |
19 SK_API virtual SkPDFFont* getFontSubset(const SkPDFGlyphSet* usage); | 19 SK_API virtual SkPDFFont* getFontSubset(const SkPDFGlyphSet* usage); |
20 #ifdef SK_DEBUG | 20 #ifdef SK_DEBUG |
21 virtual void emitObject(SkWStream* stream, SkPDFCatalog* catalog, | 21 virtual void emitObject(SkWStream* stream, SkPDFCatalog* catalog); |
22 bool indirect); | |
23 #endif | 22 #endif |
24 | 23 |
25 private: | 24 private: |
26 friend class SkPDFFont; // to access the constructor | 25 friend class SkPDFFont; // to access the constructor |
27 #ifdef SK_DEBUG | 26 #ifdef SK_DEBUG |
28 bool fPopulated; | 27 bool fPopulated; |
29 typedef SkPDFDict INHERITED; | 28 typedef SkPDFDict INHERITED; |
30 #endif | 29 #endif |
31 | 30 |
32 SkPDFType0Font(const SkAdvancedTypefaceMetrics* info, SkTypeface* typeface); | 31 SkPDFType0Font(const SkAdvancedTypefaceMetrics* info, SkTypeface* typeface); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 private: | 74 private: |
76 friend class SkPDFFont; // to access the constructor | 75 friend class SkPDFFont; // to access the constructor |
77 | 76 |
78 SkPDFType3Font(const SkAdvancedTypefaceMetrics* info, | 77 SkPDFType3Font(const SkAdvancedTypefaceMetrics* info, |
79 SkTypeface* typeface, uint16_t glyphID); | 78 SkTypeface* typeface, uint16_t glyphID); |
80 | 79 |
81 bool populate(uint16_t glyphID); | 80 bool populate(uint16_t glyphID); |
82 }; | 81 }; |
83 | 82 |
84 #endif | 83 #endif |
OLD | NEW |