synfig icon indicating copy to clipboard operation
synfig copied to clipboard

Text layers displaying wrong glyphs

Open jack5github opened this issue 4 months ago • 2 comments

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:

  1. Create a text layer with text using a font from Google Fonts (in my case I have been using Bebas Neue and Goldman).
  2. Close Synfig and re-open. If the text is not garbled, switch between fonts.
  3. See error.

Expected behavior

The glyphs of a text layer should always be displayed correctly.

Screenshots

Image

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.

jack5github avatar Oct 04 '25 03:10 jack5github

Maybe fixed by #3611

rodolforg avatar Oct 06 '25 01:10 rodolforg

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/fontconfig and 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

BobSynfig avatar Oct 07 '25 15:10 BobSynfig