online icon indicating copy to clipboard operation
online copied to clipboard

Custom fonts not working using helm chart

Open jglasbergen opened this issue 1 year ago • 2 comments

Describe the Bug

We want to use custom fonts in collabora-online. When adding the fonts to /opt/cool/systemplate/tmpfonts the fonts are not visible in thew Fonts dropdown. When adding the fonts to /usr/local/share/fonts/truetype/ the fonts are visible in the Fonts dropdown. But we cannot use them. If you put the cursor in the document and choose one of the fonts, the cursor disappears. When clicking again in the document the default font is active again. When you select a piece of text and choose one of the fonts the selected text disappears.

Steps to Reproduce

S1.

  1. Open a document in the editior.
  2. Put the cursor anywhere in the document.
  3. Choose a font from the dropdown.

S2.

  1. Open a document in the editor.
  2. Select a text fragment.
  3. Choose a font from the dropdown.

Expected Behavior

When I choose a font I want to add text with that typeface.

Actual Behavior

S1. The cursor disappears. S2. The text fragment disappears.

Screenshots

If applicable, add screenshots to help explain your problem.

Kubernetes

(Please complete the following information)

  • Collabora version: [e.g. 24.04.3.1.1]
  • OS and version: Azure AKS 1.28.9, Helm 3.13.0, Collabora Online Helm Chart 1.1.24
  • Browser and version: [e.g. Chrome 130.0.6723.116 ]

Additional Context

We used this font family. image

jglasbergen avatar Nov 07 '24 10:11 jglasbergen

CC: @Rash419

Darshan-upadhyay1110 avatar Nov 07 '24 14:11 Darshan-upadhyay1110

Is this still valid? Did you try in all apps: Writer, Calc, Impress?

timur-g avatar May 29 '25 07:05 timur-g

When adding the fonts to /usr/local/share/fonts/truetype/ the fonts are visible in the Fonts dropdown. But we cannot use them. If you put the cursor in the document and choose one of the fonts, the cursor disappears. When clicking again in the document the default font is active again. When you select a piece of text and choose one of the fonts the selected text disappears.

I can reproduce this issue in the 1.1.49 helm chart, using the chart provided font pvc. I can select the font, but then everything that uses this font is not rendered anymore. If I change the font back, the text reappears.

tested:

  • writer, impress, calc
  • multiple fonts, ttf, otf

Deaddy avatar Oct 08 '25 13:10 Deaddy

https://github.com/CollaboraOnline/online/issues/13146 https://github.com/CollaboraOnline/online/pull/13147

This seems to fixes this issue as well, it probably was the missing additional mountpoint #worksforme

Deaddy avatar Oct 13 '25 13:10 Deaddy