https://bugzilla.redhat.com/show_bug.cgi?id=1753295
--- Comment #98 from Hans Ulrich Niedermann <rhbugs(a)n-dimensional.de> ---
(In reply to Peng Wu from comment #95)
I just wrote one simple script to automatically group and convert the
bitmap
fonts by family name and style name.
[...]
[...]
python3 convertfont.py bitmapfonts/*.pcf.gz
This looks like just what I was looking for.
Would you mind calling this script something more descriptive of
what it actually does? `convertfont` is very generic and leaves
a lot of space for interpretation.
`bitmapfonts2opentype` or `bitmapfonts2otb` comes to mind. It says
what the source format is supposed to be, what the destination
format is, and that it converts more than one bitmap font into
one otb file.
Also, if one of the source file names happens to have a space
in its name, using the shell to execute the subprocess given
by a single string will cause `fonttosfnt` to try and fail
opening filename parts. As always when calling subprocesses,
composing a Python list for use as the `args` argument of
`subprocess.run()` is the safer option here.
I will be trying that script together with the new and improved
`fonttosfnt` from the new and improved `xorg-x11-font-utils`[1]
package to hopefully improve on the conversion results of
Terminus to OpenType in `terminus-fonts-4.48-2.fc31.noarch`.
[1]
https://bodhi.fedoraproject.org/updates/FEDORA-2020-d6b7315fc4
--
You are receiving this mail because:
You are on the CC list for the bug.