-
Hey, I looking for a way to attach a post fix to a font name, e.g. I want: docker run --rm -v `pwd`/in:/in -v `pwd`/out:/out nerdfonts/patcher --complete --careful To create the usual font name, which it does. And: docker run --rm -v `pwd`/in:/in -v `pwd`/out:/out nerdfonts/patcher --complete To create the usual font name with the post fix Is this possible? I tried If I run with Done with Patch Sets, generating font...
WARNING: Possible problem with the weight metadata detected, check with --debug
DEBUG: Weight approximations: OS2/PS/Name: 600/600/400 (from 600/'Demi'/'')
DEBUG: =====> Family (ID 1) ok (14 <=31): MyFont Ced For
DEBUG: =====> SubFamily (ID 2) ok ( 7 <=31): Regular
DEBUG: =====> Fullname (ID 4) ok (14 <=63): MyFont Ced For
DEBUG: =====> PSN (ID 6) ok (12 <=63): MyFontCedFor
DEBUG: =====> Filename '/out/MyFontCedFor-Regular.ttf' All fonts are called |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Fonts are a very organically grown file format, and lots of information is strewn around and contradicting in typical fonts. The
The option is kind of mixed, because it takes keywords ('full', 'postscript', 'filename') or a verbatim string. So if you give Note that all information - also Bold, Condensed, ExtraLight, etc - are in a font's name, and need to be there to analyze.
Yes and no. When you use Note that the weight and styles are separated from the 'real' name by a dash. That is just a convention, but it is usually followed, and the patcher script detects that. And as you see above, when you specify the weights-and-styles group separated with a dash it succeeds in correct determination of the parts. For your use case, where you have multiple fonts in some family (I guess), you need to call the patcher individually on each font file with the correct Easier probably is to rename the font files prior to patching to something you like, and then use
( Hmm, that Fixing the Wiki. Addendum: |
Beta Was this translation helpful? Give feedback.
Fonts are a very organically grown file format, and lots of information is strewn around and contradicting in typical fonts.
The name of a font is stored multiple times in the file, with different twists; but usually that is the best information source.
So the patcher analyses the name (for some definition of 'the') and tries to find out if the concrete font is bold or condensed etc.
The
--name
option lets you choose what 'the' means:T…