Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using fontforge to convert TrueType or OpenType fonts to PostScript Type 1

119 views
Skip to first unread message

Tom Browder

unread,
Jul 26, 2021, 5:20:05 PM7/26/21
to
Can anyone show how to script the above conversion?

The output should at least have the first 256 glyps, but converting to multiple Types 1 or an acceptable PostScript Level 2 or 3 advanced type is better (as long it can be represented in a PS printer-acceptable text file).

I have had success creating Type 1 .pfa files using the widget interface, but would prefer scripting.

Thanks,

-Tom

Teemu Likonen

unread,
Jul 27, 2021, 1:00:07 AM7/27/21
to
* 2021-07-26 16:15:01-0500, Tom Browder wrote:

> Can anyone show how to script the above conversion?

It's not good writing style to refer to a subject or heading. A reader
may need to skip back to it if he didn't expect it to be referred later.
Message or document content should be clear even without subject or
heading.

> I have had success creating Type 1 .pfa files using the widget
> interface, but would prefer scripting.

I hope I can help with a script I made long ago for converting font
files. My script's date stamp says 2005-11-26 and I don't remember much
about Fontforge but the script itself is simple and the code explains
itself. Give it font file names as arguments.


#!/usr/bin/fontforge

i = 1
while ( i < $argc )
Open($argv[i])
Generate($argv[i]:r + ".pfa")
i++
endloop

--
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450
signature.asc

Tom Browder

unread,
Jul 27, 2021, 9:40:05 AM7/27/21
to
On Mon, Jul 26, 2021 at 23:50 Teemu Likonen <tlik...@iki.fi> wrote:
>
> * 2021-07-26 16:15:01-0500, Tom Browder wrote:
> > Can anyone show how to script the above conversion?
> It's not good writing style to refer to a subject or heading.

True, I don't usually do that. I apologize.

> the script itself is simple and the code explains
> itself. Give it font file names as arguments.

It works like a charm, Teemu. Thanks very much!

Blessings,

-Tom
0 new messages