Adding fonts to NextCloud + Collabora
-
Any chance of another look at this please @nebulon — these little things really help with user happiness, and the latest version is well worth the effort for making out go-to online office suite with Nextcloud.
-
Thanks for bringing this up again. I have published a new app package which supports adding fonts now. After copying the TTF fonts into the folder, the app has to be restarted as mentioned in https://docs.cloudron.io/apps/collabora/#adding-fonts
-
-
@BrutalBirdie what does invisible mean? Where are they invisible? Does
fc-match <fontname>
correctly recognize the font in the webterminal? -
root@7cca863b-c650-4447-9dba-c4653dafe333:/app/code# fc-match "Droid Sans" DejaVuSans.ttf: "DejaVu Sans" "Book"
Looks wrong to me...
root@7cca863b-c650-4447-9dba-c4653dafe333:/app/code# ls -lah /app/data/ total 20K drwxr-xr-x 3 root root 4.0K Aug 21 21:00 . drwxr-xr-x 1 root root 4.0K Sep 19 21:01 .. -rw-r--r-- 1 cloudron root 7.0K Oct 10 12:17 coolwsd.xml drwxr-xr-x 6 root root 4.0K Oct 10 14:00 fonts root@7cca863b-c650-4447-9dba-c4653dafe333:/app/code# ls -lah /app/data/fonts/ total 24K drwxr-xr-x 6 root root 4.0K Oct 10 14:00 . drwxr-xr-x 3 root root 4.0K Aug 21 21:00 .. drwxr-xr-x 2 root root 4.0K Oct 10 14:00 DroidSans drwxr-xr-x 2 root root 4.0K Oct 10 14:00 DroidSerif drwxr-xr-x 2 root root 4.0K Oct 10 14:00 NunitoSans drwxr-xr-x 2 root root 4.0K Oct 10 14:00 OpenSans root@7cca863b-c650-4447-9dba-c4653dafe333:/app/code# ls -lah /app/data/fonts/DroidSans/ total 96K drwxr-xr-x 2 root root 4.0K Oct 10 14:00 . drwxr-xr-x 6 root root 4.0K Oct 10 14:00 .. -rw-r--r-- 1 root root 42K Oct 9 13:47 DroidSans-Bold.ttf -rw-r--r-- 1 root root 41K Oct 9 13:47 DroidSans.ttf
root@7cca863b-c650-4447-9dba-c4653dafe333:/app/code# fc-match DroidSans DejaVuSans.ttf: "DejaVu Sans" "Book"
fc-match --all
Does also not include the fonts.
Also having the.ttf
files plain in no sub folder in/app/data/fonts
yields the same results.The fonts works tho on the local system.
-