[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #64342] [afmtodit] Preserve AFM file's ItalicAngle value in font de
From: |
Dave |
Subject: |
[bug #64342] [afmtodit] Preserve AFM file's ItalicAngle value in font description file |
Date: |
Sat, 24 Jun 2023 19:51:00 -0400 (EDT) |
Follow-up Comment #1, bug #64342 (project groff):
[comment #0 original submission:]
> the AFM file's ItalicAngle value should still be placed in the file,
> either in a comment or as a parameter to a new optional directive.
The intro of the Font Description File Format section of the Texinfo manual
suggests a third possibility. It says, "If a directive name is repeated,
later entries in the file override previous ones." So the file could contain
two "slant" directives, with the user-specified one in the second so that it
will be the one that takes effect.
This is my least favorite solution, as its purpose is opaque to the (human)
reader without an explanatory comment, and if afmtodit is going to add a
comment, it should be one containing the AFM-file value rather explaining a
quirky directive overloading.
But I've come to think the best solution is to introduce a new directive, even
though it'll be seldom used. The advantage is that the value will be in a
prescribed format, so that code can read and use it, such as in:
.pso ( grep ^realslant /path/font/file || grep ^slant /path/font/file ) | sed
's/^[[:alpha:]]*/.ds slant/'
(I'm not suggesting "realslant" as the new directive name, just using it here
as an example.)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64342>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/