OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * 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 |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 | 8 |
9 #ifndef SkPDFFont_DEFINED | 9 #ifndef SkPDFFont_DEFINED |
10 #define SkPDFFont_DEFINED | 10 #define SkPDFFont_DEFINED |
11 | 11 |
12 #include "SkAdvancedTypefaceMetrics.h" | 12 #include "SkAdvancedTypefaceMetrics.h" |
13 #include "SkBitSet.h" | 13 #include "SkBitSet.h" |
14 #include "SkPDFTypes.h" | 14 #include "SkPDFTypes.h" |
15 #include "SkTDArray.h" | 15 #include "SkTDArray.h" |
16 #include "SkTypeface.h" | 16 #include "SkTypeface.h" |
17 | 17 |
18 class SkPaint; | |
19 class SkPDFCanon; | 18 class SkPDFCanon; |
20 class SkPDFObjNumMap; | |
21 class SkPDFFont; | 19 class SkPDFFont; |
22 | 20 |
23 class SkPDFGlyphSet : SkNoncopyable { | 21 class SkPDFGlyphSet : SkNoncopyable { |
24 public: | 22 public: |
25 SkPDFGlyphSet(); | 23 SkPDFGlyphSet(); |
26 | 24 |
27 void set(const uint16_t* glyphIDs, int numGlyphs); | 25 void set(const uint16_t* glyphIDs, int numGlyphs); |
28 bool has(uint16_t glyphID) const; | 26 bool has(uint16_t glyphID) const; |
29 void merge(const SkPDFGlyphSet& usage); | 27 void merge(const SkPDFGlyphSet& usage); |
30 void exportTo(SkTDArray<uint32_t>* glyphIDs) const; | 28 void exportTo(SkTDArray<uint32_t>* glyphIDs) const; |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 uint16_t fLastGlyphID; | 193 uint16_t fLastGlyphID; |
196 sk_sp<const SkAdvancedTypefaceMetrics> fFontInfo; | 194 sk_sp<const SkAdvancedTypefaceMetrics> fFontInfo; |
197 sk_sp<SkPDFDict> fDescriptor; | 195 sk_sp<SkPDFDict> fDescriptor; |
198 | 196 |
199 SkAdvancedTypefaceMetrics::FontType fFontType; | 197 SkAdvancedTypefaceMetrics::FontType fFontType; |
200 | 198 |
201 typedef SkPDFDict INHERITED; | 199 typedef SkPDFDict INHERITED; |
202 }; | 200 }; |
203 | 201 |
204 #endif | 202 #endif |
OLD | NEW |