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

Side by Side Diff: experimental/PdfViewer/autogen/pdfspec_autogen.py

Issue 18059003: Basic load base font when specified in a FontDescriptor. basic load of TrueType font (FontFile2) (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 import datatypes 1 import datatypes
2 2
3 def buildPdfSpec(pdfspec): 3 def buildPdfSpec(pdfspec):
4 pdfspec.addClass('StreamCommonDictionary', 'Dictionary', 'Entries common to al l stream dictionaries')\ 4 pdfspec.addClass('StreamCommonDictionary', 'Dictionary', 'Entries common to al l stream dictionaries')\
5 .required('NULL')\ 5 .required('NULL')\
6 .field('Length')\ 6 .field('Length')\
7 .name('Length')\ 7 .name('Length')\
8 .type('integer')\ 8 .type('integer')\
9 .comment('(Required) The number of bytes from the beginning of the lin e fol-\nlowing the keyword stream to the last byte just before the keyword\nends tream. (There may be an additional EOL marker, preceding\nendstream, that is not included in the count and is not logically part\nof the stream data.) See "Stre am Extent," above, for further discus-\nsion.')\ 9 .comment('(Required) The number of bytes from the beginning of the lin e fol-\nlowing the keyword stream to the last byte just before the keyword\nends tream. (There may be an additional EOL marker, preceding\nendstream, that is not included in the count and is not logically part\nof the stream data.) See "Stre am Extent," above, for further discus-\nsion.')\
10 .done().done()\ 10 .done().done()\
(...skipping 2032 matching lines...) Expand 10 before | Expand all | Expand 10 after
2043 .comment('(Optional) A stream containing a CMap file that maps charact er codes to\nUnicode values (see Section 5.9, "ToUnicode CMaps").')\ 2043 .comment('(Optional) A stream containing a CMap file that maps charact er codes to\nUnicode values (see Section 5.9, "ToUnicode CMaps").')\
2044 .done().done()\ 2044 .done().done()\
2045 .done() 2045 .done()
2046 2046
2047 pdfspec.addClass('FontDescriptorDictionary', 'Dictionary', 'Entries common to all font descriptors')\ 2047 pdfspec.addClass('FontDescriptorDictionary', 'Dictionary', 'Entries common to all font descriptors')\
2048 .required('NULL')\ 2048 .required('NULL')\
2049 .field('Type')\ 2049 .field('Type')\
2050 .name('Type')\ 2050 .name('Type')\
2051 .type('name')\ 2051 .type('name')\
2052 .comment('(Required) The type of PDF object that this dictionary descr ibes; must be\nFontDescriptor for a font descriptor.')\ 2052 .comment('(Required) The type of PDF object that this dictionary descr ibes; must be\nFontDescriptor for a font descriptor.')\
2053 .must([datatypes.PdfName('FontDescriptor')])\
2053 .done().done()\ 2054 .done().done()\
2054 .required('NULL')\ 2055 .required('NULL')\
2055 .field('FontName')\ 2056 .field('FontName')\
2056 .name('FontName')\ 2057 .name('FontName')\
2057 .type('name')\ 2058 .type('name')\
2058 .comment('(Required) The PostScript name of the font. This should be t he same as the\nvalue of BaseFont in the font or CIDFont dictionary that refers to this font\ndescriptor.')\ 2059 .comment('(Required) The PostScript name of the font. This should be t he same as the\nvalue of BaseFont in the font or CIDFont dictionary that refers to this font\ndescriptor.')\
2059 .done().done()\ 2060 .done().done()\
2060 .required('NULL')\ 2061 .required('NULL')\
2061 .field('Flags')\ 2062 .field('Flags')\
2062 .name('Flags')\ 2063 .name('Flags')\
(...skipping 3507 matching lines...) Expand 10 before | Expand all | Expand 10 after
5570 knowTypes['FreeTextAnnotationDictionary'] = ['SkPdfFreeTextAnnotationDictionar y*', 'FreeTextAnnotationDictionaryFromDictionary', datatypes.CppNull(), 'ret->po dofo()->GetDataType() == ePdfDataType_Dictionary'] 5571 knowTypes['FreeTextAnnotationDictionary'] = ['SkPdfFreeTextAnnotationDictionar y*', 'FreeTextAnnotationDictionaryFromDictionary', datatypes.CppNull(), 'ret->po dofo()->GetDataType() == ePdfDataType_Dictionary']
5571 knowTypes['ALinkAnnotationDictionary'] = ['SkPdfALinkAnnotationDictionary*', ' ALinkAnnotationDictionaryFromDictionary', datatypes.CppNull(), 'ret->podofo()->G etDataType() == ePdfDataType_Dictionary'] 5572 knowTypes['ALinkAnnotationDictionary'] = ['SkPdfALinkAnnotationDictionary*', ' ALinkAnnotationDictionaryFromDictionary', datatypes.CppNull(), 'ret->podofo()->G etDataType() == ePdfDataType_Dictionary']
5572 knowTypes['TextAnnotationDictionary'] = ['SkPdfTextAnnotationDictionary*', 'Te xtAnnotationDictionaryFromDictionary', datatypes.CppNull(), 'ret->podofo()->GetD ataType() == ePdfDataType_Dictionary'] 5573 knowTypes['TextAnnotationDictionary'] = ['SkPdfTextAnnotationDictionary*', 'Te xtAnnotationDictionaryFromDictionary', datatypes.CppNull(), 'ret->podofo()->GetD ataType() == ePdfDataType_Dictionary']
5573 knowTypes['WebCapturePageSetDictionary'] = ['SkPdfWebCapturePageSetDictionary* ', 'WebCapturePageSetDictionaryFromDictionary', datatypes.CppNull(), 'ret->podof o()->GetDataType() == ePdfDataType_Dictionary'] 5574 knowTypes['WebCapturePageSetDictionary'] = ['SkPdfWebCapturePageSetDictionary* ', 'WebCapturePageSetDictionaryFromDictionary', datatypes.CppNull(), 'ret->podof o()->GetDataType() == ePdfDataType_Dictionary']
5574 knowTypes['AppearanceDictionary'] = ['SkPdfAppearanceDictionary*', 'Appearance DictionaryFromDictionary', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] 5575 knowTypes['AppearanceDictionary'] = ['SkPdfAppearanceDictionary*', 'Appearance DictionaryFromDictionary', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary']
5575 knowTypes['CIDFontDescriptorDictionary'] = ['SkPdfCIDFontDescriptorDictionary* ', 'CIDFontDescriptorDictionaryFromDictionary', datatypes.CppNull(), 'ret->podof o()->GetDataType() == ePdfDataType_Dictionary'] 5576 knowTypes['CIDFontDescriptorDictionary'] = ['SkPdfCIDFontDescriptorDictionary* ', 'CIDFontDescriptorDictionaryFromDictionary', datatypes.CppNull(), 'ret->podof o()->GetDataType() == ePdfDataType_Dictionary']
5576 knowTypes['EmbeddedFontStreamDictionary'] = ['SkPdfEmbeddedFontStreamDictionar y*', 'EmbeddedFontStreamDictionaryFromDictionary', datatypes.CppNull(), 'ret->po dofo()->GetDataType() == ePdfDataType_Dictionary'] 5577 knowTypes['EmbeddedFontStreamDictionary'] = ['SkPdfEmbeddedFontStreamDictionar y*', 'EmbeddedFontStreamDictionaryFromDictionary', datatypes.CppNull(), 'ret->po dofo()->GetDataType() == ePdfDataType_Dictionary']
5577 knowTypes['AnnotationDictionary'] = ['SkPdfAnnotationDictionary*', 'Annotation DictionaryFromDictionary', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] 5578 knowTypes['AnnotationDictionary'] = ['SkPdfAnnotationDictionary*', 'Annotation DictionaryFromDictionary', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary']
5578 5579
5579 5580
OLDNEW
« no previous file with comments | « experimental/PdfViewer/autogen/SkPdfPodofoMapper_autogen.cpp ('k') | experimental/PdfViewer/spec2def.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698