Index: experimental/PdfViewer/SkPdfCIDFontDescriptorDictionary_autogen.h |
=================================================================== |
--- experimental/PdfViewer/SkPdfCIDFontDescriptorDictionary_autogen.h (revision 9684) |
+++ experimental/PdfViewer/SkPdfCIDFontDescriptorDictionary_autogen.h (working copy) |
@@ -5,6 +5,7 @@ |
#include "SkPdfArray_autogen.h" |
#include "SkPdfDictionary_autogen.h" |
+// Additional font descriptor entries for CIDFonts |
class SkPdfCIDFontDescriptorDictionary : public SkPdfDictionary { |
public: |
virtual SkPdfObjectType getType() const { return kCIDFontDescriptorDictionary_SkPdfObjectType;} |
@@ -521,6 +522,13 @@ |
SkPdfCIDFontDescriptorDictionary& operator=(const SkPdfCIDFontDescriptorDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} |
+/** (Optional) A dictionary containing entries that describe the style of the glyphs in |
+ * the font (see "Style," above). |
+**/ |
+ bool has_Style() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Style", "", NULL)); |
+ } |
+ |
SkPdfDictionary* Style() const { |
SkPdfDictionary* ret; |
if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Style", "", &ret)) return ret; |
@@ -528,6 +536,16 @@ |
return NULL; |
} |
+/** (Optional) A name specifying the language of the font, used for encodings where |
+ * the language is not implied by the encoding itself. The possible values are the |
+ * 2-character language codes defined by ISO 639-for example, en for English and ja |
+ * for Japanese. The complete list of these codes be obtained from the International |
+ * Organization for Standardization (see the Bibliography). |
+**/ |
+ bool has_Lang() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Lang", "", NULL)); |
+ } |
+ |
std::string Lang() const { |
std::string ret; |
if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Lang", "", &ret)) return ret; |
@@ -535,6 +553,15 @@ |
return ""; |
} |
+/** (Optional) A dictionary whose keys identify a class of characters in a CIDFont. |
+ * Each value is a dictionary containing entries that override the corresponding |
+ * values in the main font descriptor dictionary for that class of characters (see "FD," |
+ * below). |
+**/ |
+ bool has_FD() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FD", "", NULL)); |
+ } |
+ |
SkPdfDictionary* FD() const { |
SkPdfDictionary* ret; |
if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FD", "", &ret)) return ret; |
@@ -542,6 +569,19 @@ |
return NULL; |
} |
+/** (Optional) A stream identifying which CIDs are present in the CIDFont file. If this |
+ * entry is present, the CIDFont contains only a subset of the glyphs in the character |
+ * collection defined by the CIDSystemInfo dictionary. If it is absent, the only indica- |
+ * tion of a CIDFont subset is the subset tag in the FontName entry (see Section 5.5.3, |
+ * "Font Subsets"). |
+ * The stream's data is organized as a table of bits indexed by CID. The bits should be |
+ * stored in bytes with the high-order bit first. Each bit corresponds to a CID. The first |
+ * bit of the first byte corresponds to CID 0, the next bit to CID 1, and so on. |
+**/ |
+ bool has_CIDSet() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDSet", "", NULL)); |
+ } |
+ |
SkPdfStream CIDSet() const { |
SkPdfStream ret; |
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDSet", "", &ret)) return ret; |