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


Groups > comp.lang.postscript > #3682

Re: otf/ttf to afm with kern pair adjustments

Path csiph.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date Tue, 28 Sep 2021 01:52:47 -0500
From ken <ken@spamcop.net>
Newsgroups comp.lang.postscript
Subject Re: otf/ttf to afm with kern pair adjustments
Date Tue, 28 Sep 2021 07:52:45 +0100
Message-ID <MPG.3bbbdae31659aa5f9898cd@usenet.plus.net> (permalink)
References <1c5cc337-1238-4e92-9649-3ce56166a2b8n@googlegroups.com>
Reply-To ken@spamcop.net
MIME-Version 1.0
Content-Type text/plain; charset="us-ascii"
Content-Transfer-Encoding 7bit
User-Agent MicroPlanet-Gravity/3.0.4
X-Antivirus Avast (VPS 210928-0, 28/9/2021), Outbound message
X-Antivirus-Status Clean
Lines 32
X-Usenet-Provider http://www.giganews.com
X-Trace sv3-obPiP3OxhB5aVoyDCbD6U8J+BJaKBlZdt9GMs9CCEDWD4COHVPLNIgQ6Ohh4jUxlza9LzV49ppTxss2!pqnCAoMOGgHvvHUDX6M2QBINKAOk7iojfP7WaQRKYYSuso+H/ayrc3JyB6SzmgdOThViv1GyqNxy!mX2leTwtrWmHSGM=
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 2563
Xref csiph.com comp.lang.postscript:3682

Show key headers only | View raw


In article <1c5cc337-1238-4e92-9649-3ce56166a2b8n@googlegroups.com>, 
dougLas.L.mcaLLaster.civ@mail.mil says...

> I found below postscript program in ghostscript distro.
> I creates the AFM file but does not include the KPX data.
> Does any have a ps job which extracts the KPX data? 

The printafm.ps program doesn't actully extract any data from the font 
at all.  What it does is use the built-in font interpreter to interpret 
the font data, and some standard PostScript to **create** soemthing akin 
to an AFM file. THis means that it will work with any font type 
supported by Ghostscript.

Basically it does this by using the PostScript 'stringwidth' on a single 
character to determine the horizontal (or vertical, for vertical writing 
fonts) displaement of the glyph, and then turns the glyph description 
into a path, and executes charpath pathbbox to determine the bounding 
box.

If you want actual data from the TrueType font you will need to write a 
PostScript program to read and interpret TrueType/OpenType fonts 
(bearing in mind that OpenType fonts can have CFF outline data).

Presumably you want the kern table (I've no idea what KPX means in this 
context) since you mention OpenType/TrueType fonts.

To be frank, you would almost certainly be better off extracting that 
with some other tool; writing a PostScript program to do it is perfectly 
possible but probably not wise.


				Ken

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


Thread

otf/ttf to afm with kern pair adjustments "dougLas.L.mc...@maiL.mil" <dougLas.L.mcaLLaster.civ@mail.mil> - 2021-09-26 13:41 -0700
  Re: otf/ttf to afm with kern pair adjustments ken <ken@spamcop.net> - 2021-09-28 07:52 +0100
    Re: otf/ttf to afm with kern pair adjustments "dougLas.L.mc...@maiL.mil" <dougLas.L.mcaLLaster.civ@mail.mil> - 2021-09-30 10:02 -0700
      Re: otf/ttf to afm with kern pair adjustments ken <ken@spamcop.net> - 2021-10-01 07:54 +0100

csiph-web