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

Unified Diff: experimental/PdfViewer/pdfspec_autogen.py

Issue 17294008: load font manually, for now Type0 (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
« no previous file with comments | « experimental/PdfViewer/pdf_viewer_main.cpp ('k') | experimental/PdfViewer/spec2def.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/pdfspec_autogen.py
===================================================================
--- experimental/PdfViewer/pdfspec_autogen.py (revision 9684)
+++ experimental/PdfViewer/pdfspec_autogen.py (working copy)
@@ -1459,7 +1459,7 @@
.name('Subtype')\
.type('name')\
.comment('(Required) The type of XObject that this dictionary describes; must be\nImage for an image XObject.')\
- .must(datatypes.PdfName('Image'))\
+ .must([datatypes.PdfName('Image')])\
.done().done()\
.required('NULL')\
.field('Width')\
@@ -1586,7 +1586,7 @@
.name('Subtype')\
.type('name')\
.comment('(Required) The type of XObject that this dictionary describes; must be Form\nfor a form XObject.')\
- .must(datatypes.PdfName('Form'))\
+ .must([datatypes.PdfName('Form')])\
.done().done()\
.optional()\
.field('FormType')\
@@ -1737,6 +1737,7 @@
.name('Subtype')\
.type('name')\
.comment('(Required) The type of font; must be Type1 for a Type 1 font.')\
+ .must([datatypes.PdfName('Type1')])\
.done().done()\
.optional()\
.field('Name')\
@@ -1788,7 +1789,7 @@
.done().done()\
.done()
- pdfspec.addClass('Type3FontDictionary', 'FontDictionary', 'Entries in a Type 3 font dictionary')\
+ pdfspec.addClass('Type3FontDictionary', 'Type0FontDictionary', 'Entries in a Type 3 font dictionary')\
.required('NULL')\
.field('Type')\
.name('Type')\
@@ -1800,6 +1801,7 @@
.name('Subtype')\
.type('name')\
.comment('(Required) The type of font; must be Type3 for a Type 3 font.')\
+ .must([datatypes.PdfName('Type3')])\
.done().done()\
.optional()\
.field('Name')\
@@ -1875,6 +1877,7 @@
.name('Subtype')\
.type('name')\
.comment('(Required) The type of CIDFont; CIDFontType0 or CIDFontType2.')\
+ .must([datatypes.PdfName('CIDFontType0'), datatypes.PdfName('CIDFontType2')])\
.done().done()\
.required('NULL')\
.field('BaseFont')\
@@ -1971,6 +1974,7 @@
.name('Subtype')\
.type('name')\
.comment('(Required) The type of font; must be Type0 for a Type 0 font.')\
+ .must([datatypes.PdfName('Type0')])\
.done().done()\
.required('NULL')\
.field('BaseFont')\
« no previous file with comments | « experimental/PdfViewer/pdf_viewer_main.cpp ('k') | experimental/PdfViewer/spec2def.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698