Summary: | wrong encoding when using customer TTF-fonts | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | artifex |
Component: | PDF Interpreter | Assignee: | Ken Sharp <ken.sharp> |
Status: | NOTIFIED DUPLICATE | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 8.64 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Customer: | 870 | Word Size: | --- |
Attachments: | cidfmap |
Description
artifex
2009-05-15 00:48:19 UTC
Created attachment 5019 [details]
rotisfonts.pdf
Created attachment 5020 [details]
cidfmap
Created attachment 5021 [details]
Rb.ttf
Created attachment 5022 [details]
Rg.ttf
PDF interpreter can already load embedded TTF fonts and does it well. When we have the right font we need to use it directly, like an embedded font and drop Decoding resources and all associated cruft. I've tested this approach and it works fine for the sample file. We just need to figure out what TTF or OTF fonts are available. If the location of the .ttf fonts is identified with -sFONTPATH, and _IF_ the names in the ttf fonts MATCH the name given in the PDF, then GS will automatically load the TTF fonts. If the names don't match, then an alias may need to be added to the Fontmap. The Ghostscipt finds the TTF-fonts, but the enconding is not correct! When I use the attached file cidfmap, the Ghostscript is showing the messages: "Loading a TT font from Rg.ttf to emulate a CID font RotisSerif ... Done" "Loading a TT font from Rb.ttf to emulate a CID font RotisSansSerif ... Done" But the text, which is produced ist not correct. You can see this in the rectangle in the upper right corner of the picture. There should be text "siehe BBN 11-0009". *** This bug has been marked as a duplicate of 688515 *** Changing customer bugs that have been resolved more than a year ago to closed. |