Bug 691581

Summary: Wrong symbol-font used
Product: GhostPCL Reporter: Florian Rausch <florian.rausch>
Component: PCL fontsAssignee: Henry Stiles <henry.stiles>
Status: RESOLVED FIXED    
Severity: normal CC: Josef.Hinteregger
Priority: P4 Keywords: bountiable
Version: unspecified   
Hardware: PC   
OS: Windows 7   
Customer: Word Size: ---
Attachments: Output with wrong symbols
Source file
Reference-Output how "it should be"

Description Florian Rausch 2010-08-29 03:36:53 UTC
Hello!

I don't know if this really is a bug, but because there is no forum I have to post it here.

I am converting a PCL5e-file which is containing some telephon-icons. The output generated by pdfwrite contains airplane-icons instead. I'd say the wrong font is used, but i don't know how to figure it out. When viewing in adobe reader, i also can't select/mark the symbols like in the reference output.

There are also two other problems:

- The content gets cut at the bottom of the page, some lines are missing. Can i scale the hole page to fit?
- The filesize is about 700kb at the moment. My reference-file created by RedTitan is only 103 kb in size. Even if i resize the images to 72dpi, the file is larger than the reference and images have worse quality. Why is my output that large?

I add 3 files in the archive in attachment (pcl source, reference, ghostpcl output).

Thanks!
Comment 1 Florian Rausch 2010-08-29 03:44:53 UTC
Created attachment 6681 [details]
Output with wrong symbols
Comment 2 Florian Rausch 2010-08-29 03:47:24 UTC
Created attachment 6682 [details]
Source file
Comment 3 Florian Rausch 2010-08-29 03:48:00 UTC
Created attachment 6683 [details]
Reference-Output how "it should be"
Comment 4 Ken Sharp 2010-08-29 10:56:57 UTC
Running pcl6.exe, outputting to tiffg3 I see that the telephone numbers (Geschaeft, Privat, Mobil) have airplane icons beside them. Thus this is not a pdfwrite problem.

Running to PDF output with reasonably current code produces a PDF file 215Kb for me.
Comment 5 Henry Stiles 2010-08-29 22:02:14 UTC
There are legal issues with having a wingding TrueType font, we substitute Symbol.  The master output is formatted for A4 paper the default output for PCL is Letter.


./pcl6 -J"@PJL SET PAPER=A4" -sDEVICE=pdfwrite -sOutputFile=foo.pdf ~/Downloads/Auftrag1_PCL-Quelldatei.prn 

should fix the clipping.

You can get the latest code with svn

svn co http://svn.ghostscript.com/ghostscript/trunk/ghostpdl

or wait for the next release, at the latest a couple weeks off.
Comment 6 Joe 2011-09-29 07:24:58 UTC
I would call it a bug: 
Dingbats is substituted for Wingdings in pl/plftable.c without code remapping.
Comment 7 Henry Stiles 2011-09-29 15:23:43 UTC
Hi Josef, I saw your email, thanks, I've reopened the bug.
Comment 8 Henry Stiles 2011-11-10 16:53:07 UTC
Make bountiable.  Josef did you want to submit a patch for this?
Comment 9 Joe 2011-11-11 09:04:47 UTC
Remapping WingDings to Dingbats is IMHO not worth the effort, one could  enter "WingDings" into the builtin font table. If WingDings is required, the user has to provide a WingDings font.
I am rather thinking about a possibility to load a builtin font table at runtime (without having to recompile) and/or a fallback to Windows fonts under Win32. 

My requirement is support for WGL4 in monospaced font Courier, but Nimbus Mono Regular does not have complete cyrillic and greek glyphs.
Alternatives are Liberation or Microsoft corefonts.
Comment 10 Henry Stiles 2012-02-03 23:22:21 UTC
We now have a wingding font.  The latest git code or ghostpdl 9.05 will have this font.