johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
5.93k stars 273 forks source link

Foliate Snap has issues with font search #1149

Closed JollyPanda closed 8 months ago

JollyPanda commented 8 months ago

Describe the bug As a Snap, Foliate fails to load user fonts store in either ~/.fonts or ~/.local/share/fonts. The Flatpak version does it fine.

Font search itself takes too long on the Snap version and makes the program unresponsive for a while, but it's instant on the Flatpak version.

To Reproduce Steps to reproduce the behavior:

  1. Open Foliate
  2. Open an eBook
  3. Configure font and layout
  4. Search the name of a font stored in either ~/.fonts or ~/.local/share/fonts

Expected behavior Fonts appear quickly in the list and can be used to display text.

Version:

johnfactotum commented 8 months ago

Probably not our bug as the font chooser is a built-in GTK widget and there's nothing Foliate do to fix this.

tecix commented 5 months ago

@JollyPanda You should locate your fonts folder (e.g ~/.local/share/fonts) , then make symlink in the path ~/snap/foliate/current/ with this command: ln -s ~/.loca/share/fonts ~/snap/foliate/current/.fonts