Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: experimental/PdfViewer/SkPdfType3FontDictionary_autogen.h

Issue 16975013: Deal with ca and CA transparency operators in pdf. add comments to generated classes. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: experimental/PdfViewer/SkPdfType3FontDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfType3FontDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfType3FontDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfFontDictionary_autogen.h"
+// Entries in a Type 3 font dictionary
class SkPdfType3FontDictionary : public SkPdfFontDictionary {
public:
virtual SkPdfObjectType getType() const { return kType3FontDictionary_SkPdfObjectType;}
@@ -38,6 +39,13 @@
SkPdfType3FontDictionary& operator=(const SkPdfType3FontDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
+/** (Required) The type of PDF object that this dictionary describes; must be
+ * Font for a font dictionary.
+**/
+ bool has_Type() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL));
+ }
+
std::string Type() const {
std::string ret;
if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret;
@@ -45,6 +53,12 @@
return "";
}
+/** (Required) The type of font; must be Type3 for a Type 3 font.
+**/
+ bool has_Subtype() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL));
+ }
+
std::string Subtype() const {
std::string ret;
if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret;
@@ -52,6 +66,12 @@
return "";
}
+/** (Required in PDF 1.0; optional otherwise) See Table 5.8 on page 317.
+**/
+ bool has_Name() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", NULL));
+ }
+
std::string Name() const {
std::string ret;
if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", &ret)) return ret;
@@ -59,6 +79,19 @@
return "";
}
+/** (Required) A rectangle (see Section 3.8.3, "Rectangles"), expressed in the
+ * glyph coordinate system, specifying the font bounding box. This is the small-
+ * est rectangle enclosing the shape that would result if all of the glyphs of the
+ * font were placed with their origins coincident and then filled.
+ * If all four elements of the rectangle are zero, no assumptions are made based
+ * on the font bounding box. If any element is nonzero, it is essential that the
+ * font bounding box be accurate; if any glyph's marks fall outside this bound-
+ * ing box, incorrect behavior may result.
+**/
+ bool has_FontBBox() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontBBox", "", NULL));
+ }
+
SkRect FontBBox() const {
SkRect ret;
if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontBBox", "", &ret)) return ret;
@@ -66,6 +99,14 @@
return SkRect();
}
+/** (Required) An array of six numbers specifying the font matrix, mapping
+ * glyph space to text space (see Section 5.1.3, "Glyph Positioning and
+ * Metrics"). A common practice is to define glyphs in terms of a 1000-unit
+**/
+ bool has_FontMatrix() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontMatrix", "", NULL));
+ }
+
SkPdfArray FontMatrix() const {
SkPdfArray ret;
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontMatrix", "", &ret)) return ret;

Powered by Google App Engine
This is Rietveld 408576698