OLD | NEW |
1 #ifndef __DEFINED__SkPdfType1FontDictionary | 1 #ifndef __DEFINED__SkPdfType1FontDictionary |
2 #define __DEFINED__SkPdfType1FontDictionary | 2 #define __DEFINED__SkPdfType1FontDictionary |
3 | 3 |
4 #include "SkPdfUtils.h" | 4 #include "SkPdfUtils.h" |
5 #include "SkPdfEnums_autogen.h" | 5 #include "SkPdfEnums_autogen.h" |
6 #include "SkPdfArray_autogen.h" | 6 #include "SkPdfArray_autogen.h" |
7 #include "SkPdfFontDictionary_autogen.h" | 7 #include "SkPdfFontDictionary_autogen.h" |
8 | 8 |
9 // Entries in a Type 1 font dictionary | 9 // Entries in a Type 1 font dictionary |
10 class SkPdfType1FontDictionary : public SkPdfFontDictionary { | 10 class SkPdfType1FontDictionary : public SkPdfFontDictionary { |
11 public: | 11 public: |
12 virtual SkPdfObjectType getType() const { return kType1FontDictionary_SkPdfObj
ectType;} | 12 virtual SkPdfObjectType getType() const { return kType1FontDictionary_SkPdfObj
ectType;} |
13 virtual SkPdfObjectType getTypeEnd() const { return kType1FontDictionary__End_
SkPdfObjectType;} | 13 virtual SkPdfObjectType getTypeEnd() const { return kType1FontDictionary__End_
SkPdfObjectType;} |
14 public: | 14 public: |
15 virtual SkPdfType1FontDictionary* asType1FontDictionary() {return this;} | 15 virtual SkPdfType1FontDictionary* asType1FontDictionary() {return this;} |
16 virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return
this;} | 16 virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return
this;} |
17 | 17 |
18 private: | 18 private: |
19 virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} | |
20 virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL
;} | |
21 | |
22 virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} | 19 virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} |
23 virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return
NULL;} | 20 virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return
NULL;} |
24 | 21 |
25 public: | 22 public: |
26 private: | 23 private: |
27 public: | 24 public: |
28 SkPdfType1FontDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObje
ct* podofoObj = NULL) : SkPdfFontDictionary(podofoDoc, podofoObj) {} | 25 SkPdfType1FontDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObje
ct* podofoObj = NULL) : SkPdfFontDictionary(podofoDoc, podofoObj) {} |
29 | 26 |
30 SkPdfType1FontDictionary(const SkPdfType1FontDictionary& from) : SkPdfFontDict
ionary(from.fPodofoDoc, from.fPodofoObj) {} | 27 SkPdfType1FontDictionary(const SkPdfType1FontDictionary& from) : SkPdfFontDict
ionary(from.fPodofoDoc, from.fPodofoObj) {} |
31 | 28 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 * tion 5.7, "Font Descriptors"). | 104 * tion 5.7, "Font Descriptors"). |
108 * Note: For the standard 14 fonts, the entries FirstChar, LastChar, Widths,
and | 105 * Note: For the standard 14 fonts, the entries FirstChar, LastChar, Widths,
and |
109 * FontDescriptor must either all be present or all absent. Ordinarily, they
are ab- | 106 * FontDescriptor must either all be present or all absent. Ordinarily, they
are ab- |
110 * sent; specifying them enables a standard font to be overridden (see "Stan
dard | 107 * sent; specifying them enables a standard font to be overridden (see "Stan
dard |
111 * Type 1 Fonts," below). | 108 * Type 1 Fonts," below). |
112 **/ | 109 **/ |
113 bool has_FontDescriptor() const { | 110 bool has_FontDescriptor() const { |
114 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontD
escriptor", "", NULL)); | 111 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontD
escriptor", "", NULL)); |
115 } | 112 } |
116 | 113 |
117 SkPdfDictionary* FontDescriptor() const; | 114 SkPdfFontDescriptorDictionary* FontDescriptor() const; |
118 /** (Optional) A specification of the font's character encoding, if different fr
om | 115 /** (Optional) A specification of the font's character encoding, if different fr
om |
119 * its built-in encoding. The value of Encoding may be either the name of a pre
- | 116 * its built-in encoding. The value of Encoding may be either the name of a pre
- |
120 * defined encoding (MacRomanEncoding, MacExpertEncoding, or WinAnsi- | 117 * defined encoding (MacRomanEncoding, MacExpertEncoding, or WinAnsi- |
121 * Encoding, as described in Appendix D) or an encoding dictionary that | 118 * Encoding, as described in Appendix D) or an encoding dictionary that |
122 * specifies differences from the font's built-in encoding or from a specified
pre- | 119 * specifies differences from the font's built-in encoding or from a specified
pre- |
123 * defined encoding (see Section 5.5.5, "Character Encoding"). | 120 * defined encoding (see Section 5.5.5, "Character Encoding"). |
124 **/ | 121 **/ |
125 bool has_Encoding() const { | 122 bool has_Encoding() const { |
126 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encod
ing", "", NULL)); | 123 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encod
ing", "", NULL)); |
127 } | 124 } |
(...skipping 16 matching lines...) Expand all Loading... |
144 * codes to Unicode values (see Section 5.9, "ToUnicode CMaps"). | 141 * codes to Unicode values (see Section 5.9, "ToUnicode CMaps"). |
145 **/ | 142 **/ |
146 bool has_ToUnicode() const { | 143 bool has_ToUnicode() const { |
147 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ToUni
code", "", NULL)); | 144 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ToUni
code", "", NULL)); |
148 } | 145 } |
149 | 146 |
150 SkPdfStream* ToUnicode() const; | 147 SkPdfStream* ToUnicode() const; |
151 }; | 148 }; |
152 | 149 |
153 #endif // __DEFINED__SkPdfType1FontDictionary | 150 #endif // __DEFINED__SkPdfType1FontDictionary |
OLD | NEW |