Quantcast
Channel: Adobe Community : Popular Discussions - PDF Language and Specifications
Viewing all articles
Browse latest Browse all 46145

Problem with embedding an OpenType CFF font

$
0
0
I'm trying to embed an OpenType CFF font into a simple PDF file and can't get it to work. I'm hoping that someone here could spot my error or give me someplace to go for a better example/help.<br /><br />I've dumped the font itself to a file and it appears ok. OS X and Windows XP recognizes it as an OpenType CFF file and renders it.<br /><br />However, Acrobat Reader says "Cannot extract the embedded font 'GaramondPremrPro'. Some characters may not display or print correctly."<br /><br />Acrobat Pro preflight PDF syntax reports:<br />An unexpected value is associated with the key<br />Key: Subtype<br />Value: /OpenType<br />Type: CosName<br />Formal Representation: FontFile<br />Cos ID: 12<br />Traversal Path: ->Pages->Kids->[0]->Resources->Font->F1->FontDescriptor->FontFile3<br /><br />So... here is the important bits from the PDF:<br /><br />%PDF-1.7<br /><br />.....<br /><br />10 0 obj<br /><<<br />/Type /Font<br />/Subtype /Type1<br />/BaseFont /GaramondPremrPro<br />/Encoding /WinAnsiEncoding<br />/FirstChar 1<br />/LastChar 255<br />/Widths [ <omitted> ]<br />/FontDescriptor 11 0 R<br />>><br />endobj<br /><br />11 0 obj<br /><<<br />/Type /FontDescriptor<br />/Ascent 1000<br />/CapHeight 800<br />/Descent -300<br />/Flags 1000<br />/FontBBox [-213 -336 1405 918]<br />/FontName /GaramondPremrPro<br />/ItalicAngle 0<br />/StemV 100<br />/FontFile3 12 0 R<br />>><br />endobj<br /><br />12 0 obj<br /><<<br />/Length 13 0 R<br />/Subtype /OpenType<br />>><br />stream<br /><this data saved by itself appears as OpenType Font, Postscript Outlines, Single master in Windows and renders as it should. It has CFF table and it doesn't matter if I include all the original tables or only those suggested as needed it still doesn't render in the PDF itself>

Viewing all articles
Browse latest Browse all 46145

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>