online icon indicating copy to clipboard operation
online copied to clipboard

Remote fonts only partially working

Open djupdal opened this issue 1 year ago • 1 comments

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

  • Collabora version: 24.04.8.2 (although has been like this for several versions of collabora and nextcloud)
  • OS and version: Ubuntu 24.04
  • Browser and version: Firefox 131.0.2

djupdal avatar Oct 15 '24 07:10 djupdal

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

sebastiaanveld avatar Oct 20 '24 08:10 sebastiaanveld

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.

skywalker478 avatar Oct 25 '24 12:10 skywalker478

I would expect that this was fixed later, so I close, please use 24.04.10.

timur-g avatar Dec 25 '24 13:12 timur-g

Yes it was fixed. I forgot that I the issue was open lol. My bad!

skywalker478 avatar Dec 26 '24 10:12 skywalker478