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

2021-07-27 Thread Tom Browder
On Mon, Jul 26, 2021 at 23:50 Teemu Likonen  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



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

2021-07-26 Thread Teemu Likonen
* 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
Description: PGP signature


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

2021-07-26 Thread Tom Browder
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