Adding fonts to NextCloud + Collabora
-
Hey folks,
is there a way to add some fonts to the nextcloud installation, so we can use them with collabora documents?
It's a very uncomfortable workflow to download all files and to correct the layout when the documents have to be printed or converted as pdf files.Thanks for your help
Floh K.
-
@SirFiChi If you have a list of missing fonts, we can add it to the collabora package.
-
@girish I think a better option would be to move, then symlink the fonts dir in the package so it can be modified freely.
in the
Dockerfile
file, just add this somewhere:mv /usr/share/fonts/ /app/data/fonts/ ln -s /app/data/fonts /usr/share/fonts
Then users will be able to add their fonts as needed
-
@murgero I don't mind doing that as well. I need to look closely into how collabora works though. I wonder if it relies on client/browser fonts or fonts on the server side. Because currently the docker image basically has no fonts installed and somehow it seems to mostly work.
-
There's some instructions here - https://help.nextcloud.com/t/installing-new-fonts-in-collabora/22758/3 . Maybe @nebulon has an idea.
-
@girish If it's anything like openoffice, like I believe it is - it's the server's font dir, not the clients.
-
I also found this site and tried to write into /usr/share/fonts/truetype/, but as you know, the docker-containers are ro.
The solution of @murgero sounds great.I think about another solution so you can add fonts directly in the nextcloud.
What about adding a dircetory there:
/app/data/admin/files/FontsSo the admin can add fonts.
But we need a chown, chmod and a trigger for fc-cache? -
Opened https://git.cloudron.io/cloudron/collabora-app/-/issues/5 to investigate further