Quote:
Originally Posted by zertyuiop
Can you please share your notes again as well as fix-panose.py?
|
I backed them up.
EDIT: If you're going to use that fixfont script to Koboify your fonts and have no intention to make the ascenders/descenders consistent and reduce the line gap to zero, then comment out lines 6 and 7 (else, input the values you want; I was too lazy to modify the script to take in command line options). Otherwise, it expects fonts to be named in the form of FontName-Regular.ttf, FontName-BoldItalic.ttf, etc. and I think it'll work with otfs as well with the modifications I made (they seem fine to me).
It'll work on all fonts in the directory, but if you're changing stuff like the ascenders, make sure to only have one font family in the directory at a time.
There's also a limitation with nametable-from-filename where it'll take fonts that are acronyms (ex. STIXTwoText-Regular.ttf) and treat each letter of the acronym as a word (i.e. it'll change the internal name of the font to S T I X Two Text) which is annoying (basically, it starts a new word once it hits a capital letter in the filename). If you're certain your font is named correctly internally and just want to change PANOSE values, you can comment out lines 8 and 9 as well.
And remember, it's a zsh script; if you don't want to install zsh, you'll need to port it to bash, sh, python, etc. yourself.