Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #253
| Newsgroups | comp.lang.postscript |
|---|---|
| Subject | Re: Convert PCL Font Pitch to Postscript Font Height |
| References | <433c7a05-9c30-4549-bb06-4da369649e35@s41g2000prb.googlegroups.com> |
| Organization | Gizmos & Gadgets, Ltd. |
| From | bonomi@host122.r-bonomi.com (Robert Bonomi) |
| Message-ID | <_aadnWdLSaxi9WTQnZ2dnUVZ_uydnZ2d@posted.nuvoxcommunications> (permalink) |
| Date | 2011-06-15 21:22 -0500 |
In article <433c7a05-9c30-4549-bb06-4da369649e35@s41g2000prb.googlegroups.com>, Ernschd <svenhensel78@googlemail.com> wrote: >Currently I'm writing a PCL to Postscript-Converter. Unfortunately >I'm stuck on following Problem: >in PCL there are commands for selecting Font Pitch and Font Height. >Pitch is used for fixed-width Fonts, Height for proportional Fonts >(Pitch = number of characters per inch, Height = Height in PCL Points >(1/72 inch)). > >In Postscript I'm not able to choose the Font size when I'm receiving >the PCL Font Pitch. Sure you are. :) You just have to _work_ at it a bit harder. >May I calculate the Height, or is there a according command in >Postscript? There is no equivalent commandin PostScript. The standard PCL fixed-with font pitches (10, 12, 16.67) are indended for 6 LPI / 8 LPI vertical. 6 LPI is 12 pt _line_spacing, 8 LPI is 9 pt _line_ spacing. One typically uses a font size that is somewhat less than the line spacing -- e.g. '10 pt font on 12 pt spacing", or '8 on 9'.. See the PCL reference manual: <http://h20000.www2.hp.com/bc/docs/support/SupportManual/bpl13210/bpl13210.pdf> chapter 8 "PCL Font Selection", the "Pitch Command" (starting page 8-10) for how to relate an arbitrary pitch to the font height. "Invert" the formula at the top of page 8-11, to get a font height based on a 'ptch' figure. If you don't have the 'contour' figure. '.6' (60%) is a reasonable number to use.
Back to comp.lang.postscript | Previous | Next — Previous in thread | Find similar
Convert PCL Font Pitch to Postscript Font Height Ernschd <svenhensel78@googlemail.com> - 2011-06-10 03:24 -0700 Re: Convert PCL Font Pitch to Postscript Font Height Helge Blischke <h.blischke@acm.org> - 2011-06-10 13:18 +0200 Re: Convert PCL Font Pitch to Postscript Font Height bonomi@host122.r-bonomi.com (Robert Bonomi) - 2011-06-15 21:22 -0500
csiph-web