I need a way to dynamically change the name of a font, and I cannot find a way to do so in .net. I am not concerned about the font file type, so otf, fon, ttf are all open.
Things I've tried:
I've read that .fon files are just dlls in disguise, (one example), so perhaps that is a way to get to it?
Click on My Sites, then click the Customize button next to Themes. Click on Fonts. Select a different font under Headings. That will change the font for the site title and all other headings on the site.
Hope it helps.
To change the font name, you will have to open the font with a real font editor and rename it, then re-export it to the format you need.
Install FontForge and then you can open the font from your computer and using "Font Info" under the "Element" menu, you can change the font metadata, including the font name and font family.
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://docs.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 :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With