predr / typora-snap

https://snapcraft.io/typora
2 stars 3 forks source link

Fonts on open/save dialog #3

Closed predr closed 3 years ago

predr commented 3 years ago

On fedora the dialogues for opening, saving or exporting files ... don't seem to be able to represent the font correctly. I've observed this on both 32 and 33.

I'm not seeing this issue @sirrahn can you try executing these commands in Terminal? Close all apps and execute each command in listed order.

rm ~/snap/typora/common/.cache/fontconfig/*
sudo rm /var/cache/fontconfig/*
rm ~/.cache/fontconfig/*
fc-cache -r

That should clear and recreate font cache files, then open Typora and see if issue persists.

sirrahn commented 3 years ago

Hi

[nathan@ikymaki ~]$ rm ~/snap/typora/common/.cache/fontconfig/ rm: cannot remove '/home/nathan/snap/typora/common/.cache/fontconfig/': No such file or directory [nathan@ikymaki ~]$ sudo rm /var/cache/fontconfig/ [sudo] password for nathan: [nathan@ikymaki ~]$ rm ~/.cache/fontconfig/ [nathan@ikymaki ~]$ rm ~/.cache/fontconfig/fc-cache -r rm: cannot remove '/home/nathan/.cache/fontconfig/fc-cache': No such file or directory

Even though a couple of the files weren't found it was a success and the fonts in the dialogues are now fine.

Thanks

On Thu, Dec 3, 2020 at 22:31, predr notifications@github.com wrote:

On fedora the dialogues for opening, saving or exporting files ... don't seem to be able to represent the font correctly. I've observed this on both 32 and 33.

I'm not seeing this issue @sirrahn https://github.com/sirrahn can you try executing these commands in Terminal? Close all apps and execute each command in listed order.

rm ~/snap/typora/common/.cache/fontconfig/ sudo rm /var/cache/fontconfig/ rm ~/.cache/fontconfig/* fc-cache -r That should clear and recreate font cache files, then open Typora and see if issue persists.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/predr/typora-snap/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMBYAZ55TD45O7SNEURWPYLSTB64VANCNFSM4UNAK7AA.

predr commented 3 years ago

Even though a couple of the files weren't found it was a success and the fonts in the dialogues are now fine.

Great to hear, just be careful when executing commands next time. Files weren't found because you combined last two commands into one.