6

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.

3
  • I'm pretty sure it's a limitation with the snap format. Feb 9, 2017 at 23:45
  • I don't think it's a limitation of snaps. It seems to just be a limitation of the Libreoffice snap. Posts like this one indicate that other snap apps (like inkscape) can use fonts found in ~/.fonts. Apparently, Libreoffice can't do that. Is this a problem with the way that the snap is being packaged? Some other problem?
    – Adam York
    Feb 10, 2017 at 16:30
  • Then I stand corrected, @AdamYork. Didn't know that ~/.fonts works (sometimes) as opposed to /usr/share/fonts. Feb 10, 2017 at 17:03

2 Answers 2

5

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
1
  • That worked for me. Thank you !
    – skonsoft
    Jan 14, 2020 at 10:08
0

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.

1
  • Basically a duplicate of answer above. Also it's unclear why two ln commands are necessary (don't they create two links in ~/snap/libreoffice/current, fonts -> ~/.local/share/fonts and .fonts -> ~/.fonts? Why?) Feb 11 at 14:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .