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 |
11 #define SkPDFFont_DEFINED | 11 #define SkPDFFont_DEFINED |
12 | 12 |
13 #include "SkAdvancedTypefaceMetrics.h" | 13 #include "SkAdvancedTypefaceMetrics.h" |
14 #include "SkBitSet.h" | 14 #include "SkBitSet.h" |
15 #include "SkPDFTypes.h" | 15 #include "SkPDFTypes.h" |
16 #include "SkTDArray.h" | 16 #include "SkTDArray.h" |
17 #include "SkTypeface.h" | 17 #include "SkTypeface.h" |
18 | 18 |
19 class SkPaint; | 19 class SkPaint; |
20 class SkPDFCanon; | 20 class SkPDFCanon; |
21 class SkPDFCatalog; | 21 class SkPDFObjNumMap; |
22 class SkPDFFont; | 22 class SkPDFFont; |
23 | 23 |
24 class SkPDFGlyphSet : SkNoncopyable { | 24 class SkPDFGlyphSet : SkNoncopyable { |
25 public: | 25 public: |
26 SkPDFGlyphSet(); | 26 SkPDFGlyphSet(); |
27 | 27 |
28 void set(const uint16_t* glyphIDs, int numGlyphs); | 28 void set(const uint16_t* glyphIDs, int numGlyphs); |
29 bool has(uint16_t glyphID) const; | 29 bool has(uint16_t glyphID) const; |
30 void merge(const SkPDFGlyphSet& usage); | 30 void merge(const SkPDFGlyphSet& usage); |
31 void exportTo(SkTDArray<uint32_t>* glyphIDs) const; | 31 void exportTo(SkTDArray<uint32_t>* glyphIDs) const; |
(...skipping 164 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 |