Godot Version
v4.3.stable.official [77dcf97d8]
Question
I have a default theme (that I’ve created from scratch). It only has a default font and a font override for Label and RichTextLabel, nothing else. These fonts are saved as .tres separately.
Occasionally, when I open the project in the editor, I see that the saved font resource file gets marked as changed, and indeed, a million, cache-related entries do show changes. However, I haven’t modified anything at all, just opened the project.
Such a font .tres file is around 1.7MB, so I’m not very happy that it’d spam my git repository, and I also don’t like looking for this change just to be able to revert it.
This is the closest discussion I could find on the net, and Calinou has recommended the following: “Make sure the font data itself isn’t being serialized as Base64 in text-based resources.” But, I doubt if just by saving the font .tres file as binary .res would stop having this file getting changed all the time.
The font in question (Alegreya Medium.ttf, downloaded from Google Fonts) has the following import settings:
- Generate Mipmaps
- Disable Embedded Bitmaps
- Multichannel Signed Distance
- MSDF Pixel Range: 8
- MSDF Size: 48
- Allow System Fallback
- (disabled) Force Autohinter
- Light Hinting (default)
- Compress
- (no) Fallbacks
Any suggestions?