Text layers displaying wrong glyphs
Describe the bug
I was working on a project and saved it from a recovery. After it was recovered, the glyphs of my text layers are incorrect, and they change depending on the font being used. Sometimes they are correct when I switch fonts, but inevitably when I close and re-open the project, all text is garbled again, and this even applies to attempts at rendering it.
To Reproduce
Steps to reproduce the behavior:
- Create a text layer with text using a font from Google Fonts (in my case I have been using Bebas Neue and Goldman).
- Close Synfig and re-open. If the text is not garbled, switch between fonts.
- See error.
Expected behavior
The glyphs of a text layer should always be displayed correctly.
Screenshots
System information:
- Linux distro: Linux Mint 22.2 Zara
- OS version (base): Ubuntu 24.04 noble
- Package: Flatpak
- Synfig version: 1.5.3
Additional information
I found a fix (which may only be temporary) by duplicating the layers, but I'm leaving this issue open in case it can be fixed.
Maybe fixed by #3611
Run fc-cache -frv to rebuild the font cache from your home directory.
Your Goldman and Bebas Neue were probably installed as user fonts (~/.local/fonts) and need to be known from global cache by Synfig when reopening the saved file.
Once done, it works fine, the first time I reopened I had gibberish, after fc-cache it was fine (including Flatpak version and even theh the 1 year old 1.5.3 appimage)
If it is still not working, try to delete
- for Flatpak version :
~/.var/app/org.synfig.SynfigStudio/cache/fontconfig - for appimage/deb version :
~/.cache/fontconfigand rebuild font cache as described above
Note: User installed fonts are not know when using AppImage V2 SynfigStudio-UNOFFICIAL.AppImage.config/.home directories but normal behavior is restored when removing them