Removing / limiting available fonts

I’m using Collabora as part of my Nextcloud installation, through the Nextcloud Office app. I installed the coolwsd server on the same machine as the Nextcloud instance.

Everything works great, but there are a lot more fonts available than I need. I would like to pare this way down but I don’t see any place where I can do this. I’ve looked through the directory structure for a config file, or for the actual assets in case I could just remove some of them. I haven’t been able to find this. Could someone point me in the right direction?

Hello @3x5co First welcome to collabora online forums

Unfortunately, there’s currently no way to reduce the available fonts in Collabora Online through the configuration. However, you can add more fonts using JSON configuration as outlined in the documentation.

You can find more details here: Collabora Online SDK Documentation.

Thanks,
Darshan

Remove system fonts which are useful for your case

Collabora Online uses system-installed fonts. If you’d like to limit available fonts further, you can uninstall unnecessary fonts from your system.

Use a Custom Font Directory

If you only want specific fonts to be available, you can configure Collabora to use a custom directory for fonts by modifying the <fontdir> setting in the coolwsd.xml file.

  • First, move the fonts you want to keep into a custom directory, e.g., /usr/local/share/fonts/custom.
  • Then, add the path to the font directory in coolwsd.xml:
<fontdir path="/usr/local/share/fonts/custom" />