Bulk Changing Font Metadata Attributes - Possible?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
DaveCmd
Junior Member
Junior Member
Posts: 17
Joined: 2017-07-18, 15:36 UTC

Bulk Changing Font Metadata Attributes - Possible?

Post by *DaveCmd »

Hello,
I have a large batch of legacy fonts that I am organizing for a personal collection and I am looking for a way to change some font metadata attributes.
Specifically, I wanted to cleanup fields like "Authors", "Company", and "Title".
Part of the process would be to ensure a selected group of fonts has the proper "Company" name in the metadata (often the company field is left blank).
Also, the font "Title" field is often inconsistent, and I am hoping I can replace the "Title" field with the file name.

Is there any way of doing this?
I note the the Files/Change Attributes.../More Attributes/Plugin: area only allows for "tc" and "jpg-comment" plugins. Is there a way to reveal the ShellDetails (plug-in) list of fields? I suppose that a separate plug-in would be needed for that. Does one exist?

Finally, if there are any other non-Total-Commander ways to do this that people may know of, I am all ears!

Thanks,
Dave.
User avatar
beb
Power Member
Power Member
Posts: 579
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: Bulk Changing Font Metadata Attributes - Possible?

Post by *beb »

I'm afraid this might be a pretty essential answer to your question:
Q:
> How do I change a font's metadata (specifically a title)?
> I need a way to dynamically change the name of a font, and I cannot find a way to do so...
A:
2022-01-27 10:07 ddaanniiieeelll

https://stackoverflow.com/a/70876695
It's better to use specified tools used in font production Workflows. When opening a binary font file in an editor the editor tries to reverse engineer the font, and that almost never works out. Most of the time you'll lose big parts of your OT Layout Features (glyph replacement, mark positioning, sometimes even the Kerning). The newly produced font file will work but will have lost a lot of features.

As a font engineer I use these tools on a daily basis to work with binary font files without destroying them:

DTL OTMaster Quite a posh paid app that lets you access and edit all the tables inside a font. Nice touch: you can side to side compare/edit multiple files.

https://www.fontmaster.nl/otmaster.html

TTX CLI as part of the fonttools Cheap (free) alternative. TTX can dump all (or specific) tables of a binary font into readable XML files which can be edited in a text editor. Single tables can be merged back into the original font, whole font TTX dumps get converted back to completely new binary font files.

It's cheap (free), requires a bit more work but is quite fun when stringed up with shell and python build scripts to batch edit bigger amounts of font files.

https://github.com/fonttools/fonttools

However: in all the cases you should know what you're doing. Editing the wrong thing, or not all the things in fonts can render them unusable. Use the OT specifications to check in what table which information is stored in a font.

https://learn.microsoft.com/en-us/typography/opentype/spec/

Also, and this is probably the most important thing: check your license if you are allowed to change anything at all in the fonts you have. Designing and producing fonts is a lot of tedious and time consuming work, if you have a proper license and need a custom version of your font check with the designer or the vendor, usually they are more than happy to provide assistance:)
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
User avatar
DaveCmd
Junior Member
Junior Member
Posts: 17
Joined: 2017-07-18, 15:36 UTC

Re: Bulk Changing Font Metadata Attributes - Possible?

Post by *DaveCmd »

Thank you for that. I did see that Stack Overflow post, but I did not dig down to that answer.
I will explore these possibilities for a solution.
Post Reply