CollaboraOnline / online

Collabora Online is a collaborative online office suite based on LibreOffice technology. This is also the source for the Collabora Office apps for iOS and Android.
https://collaboraonline.com
Other
1.87k stars 708 forks source link

Remote fonts only partially working #10227

Open djupdal opened 1 month ago

djupdal commented 1 month ago

Describe the Bug

I have set up collabora office and nextcloud using docker compose.

I have set the remote_font_config url to point to my nextcloud fonts.json, and it works well in text documents and spreadsheets. But it does not work in drawings and presentations.

I am not sure if this is a bug in CollaboraOnline, or if this is a setup problem on my server. I posted a question on the forum, but no solution was found. Therefore assumes this is a real bug.

Original forum post

Steps to Reproduce

  1. Set up a server using docker compose, with a docker compose file like this:

collabora: image: collabora/code restart: unless-stopped container_name: collabora environment: - domain=<removed> - DONT_GEN_SSL_CERT=YES - dictionaries=nb_NO nn_NO es_ES ca_ES en_US en_GB - extra_params=--o:ssl.enable=false --o:ssl.termination=true --o:remote_font_config.url=https://<removed>/apps/richdocuments/settings/fonts.json --o:user_interface.mode=compact ports: - 9980:9980 expose: - "9980" depends_on: - traefik cap_add: - MKNOD labels: - "traefik.enable=true" - "traefik.http.routers.collabora.rule=Host()" - "traefik.http.routers.collabora.entrypoints=websecure" - "traefik.http.routers.collabora.tls=true" - "traefik.http.routers.collabora.tls.certresolver=myresolver"

  1. Make sure the remote_font_config.url is pointing to your nextcloud fonts
  2. Create a text document in nextcloud and see that the remote fonts are available
  3. Create a presentation in nextcloud and see that the remote fonts are not available

Expected Behavior

That the remote fonts are working in all the collabora office apps.

Actual Behavior

Remote fonts are only available in collabora text documents and spreadsheets, not in drawings and presentations.

Screenshots

Nextcloud settings, showing the fonts that are available:

nextcloud_settings

Collabora writer, showing that font pacifico is available:

writer

Collabora draw, showing that font pacifico is missing:

draw

Desktop

sebastiaanveld commented 1 month ago

Nice catch, that explains some of the weird presentation behavior I saw before:) Can duplicate this too.

Environment: Firefox 131.0.3 x64, Windows 11

Nextcloud 30.0.1.2 +Nextcloud Office App 8.5.2

CODE: COOLWSD version: 24.04.8.2(git hash: 77a0aab (E)) LOKit version: Collabora Office 24.04.8.2(git hash: ac08496) Served by: Debian GNU/Linux 12 (bookworm) Server ID: f995c3d5 WOPI host: nextcloud 30.0.1.2 - richdocuments 8.5.2

skywalker478 commented 4 weeks ago

I have also encountered the same issue. What's funny is I couldn't even get remote fonts to work with SSL enabled before seeing this post. It used to say hostname lookup error for my nextcloud domain. Disabling SSL at least loads the font in writer and sheets.

Hope the issue is solved. And I would be grateful if anyone would explain it to me why enabling ssl resulted in hostname lookup failure.