Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #237783 > unrolled thread
| Started by | Tom Browder <tom.browder@gmail.com> |
|---|---|
| First post | 2021-07-26 23:20 +0200 |
| Last post | 2021-07-27 15:40 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.debian.user
Using fontforge to convert TrueType or OpenType fonts to PostScript Type 1 Tom Browder <tom.browder@gmail.com> - 2021-07-26 23:20 +0200
Re: Using fontforge to convert TrueType or OpenType fonts to PostScript Type 1 Teemu Likonen <tlikonen@iki.fi> - 2021-07-27 07:00 +0200
Re: Using fontforge to convert TrueType or OpenType fonts to PostScript Type 1 Tom Browder <tom.browder@gmail.com> - 2021-07-27 15:40 +0200
| From | Tom Browder <tom.browder@gmail.com> |
|---|---|
| Date | 2021-07-26 23:20 +0200 |
| Subject | Using fontforge to convert TrueType or OpenType fonts to PostScript Type 1 |
| Message-ID | <CFgaZ-3Ks-9@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
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
[toc] | [next] | [standalone]
| From | Teemu Likonen <tlikonen@iki.fi> |
|---|---|
| Date | 2021-07-27 07:00 +0200 |
| Subject | Re: Using fontforge to convert TrueType or OpenType fonts to PostScript Type 1 |
| Message-ID | <CFnma-8b9-1@gated-at.bofh.it> |
| In reply to | #237783 |
[Multipart message — attachments visible in raw view] — view raw
* 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
[toc] | [prev] | [next] | [standalone]
| From | Tom Browder <tom.browder@gmail.com> |
|---|---|
| Date | 2021-07-27 15:40 +0200 |
| Subject | Re: Using fontforge to convert TrueType or OpenType fonts to PostScript Type 1 |
| Message-ID | <CFvtn-4SR-1@gated-at.bofh.it> |
| In reply to | #237788 |
On Mon, Jul 26, 2021 at 23:50 Teemu Likonen <tlikonen@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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web