I have installed Libreoffice 5.3 via snap, but it is only able to use a limited number of fonts. I have copied fonts into ~/.fonts and they still don't work. Once I copied fonts into ~/.fonts other snaps (like inkscape) could use the, but still not LO. Does anyone else have fonts working with LO or is this just a bug/limitation with the LO snap? I welcome any advice.
2 Answers
You must copy your fonts in ~/.font folder , then in terminal type sudo fc-cache -fv . go to this path ~/snap/libreoffice/current/ and make a link to ~/.fonts folder by below command:
ln -s {source-filename} {symbolic-filename}
ln -s ~/.fonts .fonts
- 263
-
Saved my day. However, my local font are installed in a different folder, so please also link
ln -s ~/.local/share/fonts .– tbolender May 25 '25 at 20:49
If you use the "snap" version of Ubuntu, you will not be able to "see" any fonts you have installed in Ubuntu.
Close LibreOffice, if it is open.
Open Terminal - hold "Ctrl", "Alt" and press "T" - then enter:
sudo fc-cache -fv
Change your "working" directory - that is, where you are in Terminal - to that of LibreOffice:
cd ~/snap/libreoffice/current
Create a symbolic link ("shortcut") to your font folder:
ln -s /home/your-ubuntu-username/.local/share/fonts
Then run this command:
ln -s ~/.fonts .fonts
This should work (it did for me just then!) and I've tried to make it as easy to follow as possible - but you don't feel comfortable using Terminal commands, you can always switch to the "regular" version of LibreOffice...
Open Ubuntu Software and search for "libreoffice" - remove the one that has references to "snap" or "snapcraft.io" when you click on it (i.e. on the page that has the picture, description, etc...) - it should have these references under the "Details" section towards the bottom.
Hit the "back" arrow and install the "regular" version of the LibreOffice programs you need to use - these should not contain any references to "snap" or "snapcraft.io" under the "Details" section at the bottom.
- 2,739
-
Basically a duplicate of answer above. Also it's unclear why two
lncommands are necessary (don't they create two links in~/snap/libreoffice/current,fonts -> ~/.local/share/fontsand.fonts -> ~/.fonts? Why?) – Robin Métral Feb 11 '24 at 14:36
~/.fontsworks (sometimes) as opposed to/usr/share/fonts. – Gunnar Hjalmarsson Feb 10 '17 at 17:03