OLD | NEW |
1 #ifndef __DEFINED__SkPdfTrueTypeFontDictionary | 1 #ifndef __DEFINED__SkPdfTrueTypeFontDictionary |
2 #define __DEFINED__SkPdfTrueTypeFontDictionary | 2 #define __DEFINED__SkPdfTrueTypeFontDictionary |
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 "SkPdfType1FontDictionary_autogen.h" | 7 #include "SkPdfType1FontDictionary_autogen.h" |
8 | 8 |
9 class SkPdfTrueTypeFontDictionary : public SkPdfType1FontDictionary { | 9 class SkPdfTrueTypeFontDictionary : public SkPdfType1FontDictionary { |
10 public: | 10 public: |
(...skipping 18 matching lines...) Expand all Loading... |
29 SkPdfTrueTypeFontDictionary(const SkPdfTrueTypeFontDictionary& from) : SkPdfTy
pe1FontDictionary(from.fPodofoDoc, from.fPodofoObj) {} | 29 SkPdfTrueTypeFontDictionary(const SkPdfTrueTypeFontDictionary& from) : SkPdfTy
pe1FontDictionary(from.fPodofoDoc, from.fPodofoObj) {} |
30 | 30 |
31 virtual bool valid() const {return true;} | 31 virtual bool valid() const {return true;} |
32 | 32 |
33 SkPdfTrueTypeFontDictionary& operator=(const SkPdfTrueTypeFontDictionary& from
) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; retur
n *this;} | 33 SkPdfTrueTypeFontDictionary& operator=(const SkPdfTrueTypeFontDictionary& from
) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; retur
n *this;} |
34 | 34 |
35 bool has_Subtype() const { | 35 bool has_Subtype() const { |
36 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty
pe", "", NULL)); | 36 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty
pe", "", NULL)); |
37 } | 37 } |
38 | 38 |
39 std::string Subtype() const { | 39 std::string Subtype() const; |
40 std::string ret; | |
41 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "
", &ret)) return ret; | |
42 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
43 return ""; | |
44 } | |
45 | |
46 }; | 40 }; |
47 | 41 |
48 #endif // __DEFINED__SkPdfTrueTypeFontDictionary | 42 #endif // __DEFINED__SkPdfTrueTypeFontDictionary |
OLD | NEW |