|Subject:||Re: [bug-gv] Footers cut off in ps files from Emacs|
|Date:||Tue, 3 Mar 2015 17:03:30 -0500|
> > In the test file, in the code for /F (search for "% Font selection"), before
> > it calls setfont, try adding debug code like
> > (ascent) = Ascent = (descent) = Descent =
> Are you suggesting to add that stuff? I did, but the problem remains.
That change will not alter the appearance of the file, but if you run ghostscript directly, the debug code will appear on the console (the xterm or command window where you ran the ghostscript command).
In PostScript, parentheses quote literal strings, an equal sign prints the current value to the console, and typing a variable (like the Ascent or Descent identifiers) pushes the value of the variable.
> > The file also has fancy debug code if you uncomment (remove the leading %)
> > from the two lines
> > % 3 cm 20 cm moveto 10/Courier ReportFontInfo showpage
> > % 3 cm 20 cm moveto ReportAllFontInfo showpage
Uncommenting these lines should produce two initial pages of information.
The generated pages are not delimited by document structuring comments (the comments like %%Page) so gv and other viewers will not see them.
gv will show a document of 1 page, but you can advance through the pages with Page -> Reload on the menu bar.
You can also view the pages directly in ghostscript with "gs -sDEVICE=x11 stampa.ps"
The new pages should show text like
For Courier 10 point, the line height is 10.27, the space width is 5.99907,
and a crude estimate of average character width is 5.99907.
Does ghostscript show messages like the sample below on the console as it loads fonts?
Loading NimbusSanL-ReguItal font from %rom%Resource/Font/NimbusSanL-ReguItal... 6624544 5048814 4150288 2842412 1 done.
The %rom% means that ghostscript is using a font compiled into the gs executable.
Can you try something else with the original file? In the gv menu at the top, check that State -> Antialias is enabled.
You can also enable antialiasing by using the x11alpha device in gs with
gs -sDEVICE=x11alpha stampa.ps
|[Prev in Thread]||Current Thread||[Next in Thread]|