Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #251

Re: Convert PCL Font Pitch to Postscript Font Height

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Helge Blischke <h.blischke@acm.org>
Newsgroups comp.lang.postscript
Subject Re: Convert PCL Font Pitch to Postscript Font Height
Followup-To comp.lang.postscript
Date Fri, 10 Jun 2011 13:18:24 +0200
Lines 24
Message-ID <95ecs2FvaoU1@mid.individual.net> (permalink)
References <433c7a05-9c30-4549-bb06-4da369649e35@s41g2000prb.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace individual.net 0WTRKFCStLwwV8vsXEt+Dw+PmqRCxpUbRTl3s3QH46xXm+4tqK
Cancel-Lock sha1:xcbp3LAN0YphFzfrorfV8yHAWEg=
User-Agent KNode/0.99.01
Xref x330-a1.tempe.blueboxinc.net comp.lang.postscript:251

Followups directed to: comp.lang.postscript

Show key headers only | View raw


Ernschd 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.
> 
> May I calculate the Height, or is there a according command in
> Postscript?

You could look at the /FontBBox entry in the font dictionary anc compute
the scaling factor (ant thus the "font height") from the FontBBox and the 
pitch value you get from PCL.
Note that this only makes sense for fixed pitch fonts. And note that the 
/isFixedPitch value in the /FontInfo dictionary isn't always reliable for 
determining if the font is fixed pitch or not.

Helge

Back to comp.lang.postscript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

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