how to rename fonts files as their font names

Daemonicvs

New Member
Joined
Mar 25, 2022
Messages
5
Reaction score
1
Credits
37
Hello,

So, a long time ago, when I was still on windows, I used a little program called 'TTF renamer', it did just that, it renamed every font file it would find in a folder, to the actual name of the font. There is no linux version of this program.

Does anyone know of a program that does this?

Thank you.
------
Edit: Running Debian 12, static.
 
Last edited:


G'day Daemonicvs, Welcome to Linux.org

Which Linux are you running ?

If running Linux Mint, there are three file renamers showing in the Software Manager
1706125816510.png




In https://alternativeto.net/ there are many...pic below



1706125708135.png
 
Hello,

So, a long time ago, when I was still on windows, I used a little program called 'TTF renamer', it did just that, it renamed every font file it would find in a folder, to the actual name of the font. There is no linux version of this program.

Does anyone know of a program that does this?

Thank you.
If you have a look at the fonts in and under the truetype directory at /usr/share/fonts/truetype you will find that the fonts are already named as the actual fonts that they are. For example the bold Deja Vu Sans font is named: DejaVuSans-Bold.ttf and the bold, serif shaped, italic Liberation font is named: LiberationSerif-BoldItalic.ttf. Of course it's possible to rename most filenames in linux, but one might wonder about the logic of doing so in relation to the truetype fonts but YMMV.
 
you will find that the fonts are already named as the actual fonts that they are
Yeah, I mean to rename the fonts that I get from DaFont sort of websites, they are usually not properly named, and I have a lot of them.
 
Good to know ... your mileage did vary. :)
Thanks for the tip on DaFont.
Just had a look at https://www.dafont.com/, downloaded varsity font and after unzipping it, it was named:
varsity_regular.ttf.

In linux, if there is no linux program that does exactly what one wishes, then there are the tools to create it in the form of scripts, say in bash or some other interpreted language, or using a compiled language. There are websites which specialise in helping users create such programs. There's a learning curve of course, but the benefits can be very propitious.
 
Last edited:
if you want to make change to font name in metadata just install fontforge. FontForge will convert fonts (e.g. ttf to oft to ps), rename or create new fonts.
 
Font forge is very neat, I'm installing some of those flatpaks, see how it goes.
 
Is this even a good idea? Some applications, like Microsoft Edge and Google Chrome require font packages
like liberation-fonts to be installed. It you rename the packages, they may still install fine, but your applications won't
know they're installed because the package names are different.

Libreoffice, Simplicity studio, GIMP, and a few other programs require certain font packages to be installed, and they expect them to be named a certain way.
 
Libreoffice, Simplicity studio, GIMP, and a few other programs require certain font packages to be installed, and they expect them to be named a certain way
It is only meant for the extra fonts that are installed, not the default system fonts.
 

Staff online

Members online


Top