Hey everyone.
I usually use DTL OTMaster for setting up all my name records for all styles of a typeface, but I'm wondering if there may be a faster way to do one specific task.
Say I have a font called "Hello Sans", and I have all the correct name strings set up within each respective OTF file. Is there any sort of Adobe FDK script, TTX script, or any script that I could run that would say "find all instances of "Hello Sans" and replace with "Hello Sans Test", and then find all instances of "HelloSans" and replace with "HelloSansTest"?
This would essentially be a "find and replace", but I just have no clue how this would be done as a batch/bash to a folder full of OTF/TTF files (preferably), or TTX files.
If this is possible, it would save me so much time instead of opening a bunch of files in DTL OTMaster just to alter the font name.
If anyone has any recommendations or help I would really appreciate it!
0
Comments
http://typedrawers.com/discussion/1149/font-convertor/p1
I'll try some of these suggestions, but if anyone else has something to add I'd be happy with any other help, thanks!
Some examples:
https://github.com/googlefonts/fontbakery/blob/master/fontbakery-check-name.py
https://github.com/googlefonts/fontbakery/blob/master/fontbakery-fix-nameids.py
The one thing I did notice is that pyftfeatfreeze.py takes nameID 1 and 2, and combines them to make nameID 4. As you can see on your post nameID 4 now has "Regular" tacked onto the end, most likely because nameID 2 is "Regular".
I somehow managed to tweak the script with my tiny bit of python understanding (not much at all) and added a couple lines of code that basically say "if the word 'Regular' shows up in one of the nameIDs, only use nameID 1 for nameID4".
Even though I figured that much out, it still seems like the CFF table isn't working correctly...
Thanks everyone!
for i in Sour*.otf<br>do rename $i<br>done<br>
gives the fonts and there is no glitch in the name table. Since only the name table is extracted, that is relatively fast. In fact, if you usettx -t name -t CFF $1<br>
you get all the job done but that was too slow for my taste (and my needs). Of course you need to give yourself beforehand the test directory.