Opened 4 months ago

Closed 4 months ago

Last modified 3 months ago

#3142 closed enhancement (fixed)

Install OSGeo fonts in onlyoffice on our nextcloud

Reported by: ticheler Owned by: robe
Priority: normal Milestone: Sysadmin Contract 2024-I
Component: SysAdmin/Nextcloud Keywords:
Cc:

Description

Hi SAC, Is it possible to install the OSGeo selected fonts in OnlyOffice on our Nextcloud?

The fonts are located here: https://github.com/OSGeo/osgeo/tree/master/marketing/branding/fonts

The instructions I found in the OnlyOffice documentation is:

By default ONLYOFFICE Docs uses embedded free fonts (true type only in .ttf format) from the operating system where ONLYOFFICE Docs is installed. If you would like to use additional fonts you can do the following:

1- Install the font by copying it to /usr/share/fonts/ (to the computer with ONLYOFFICE Docs installed). 2- Open the /usr/bin folder. 3- Run the documentserver-generate-allfonts.sh file. 4- Clear the browser cache and reopen the page.

Please let me know if this is possible (or not :) ) Thanks in advance, Jeroen

Change History (7)

comment:1 by robe, 4 months ago

Milestone: UnplannedSysadmin Contract 2024-I

comment:2 by robe, 4 months ago

It should be doable. I'll try to get to it this week.

comment:3 by robe, 4 months ago

I guess these instructions were for standard-alone documentserver and not the one shipped with nextcloud.

I followed this as discussed here - https://github.com/nextcloud/documentserver_community

sudo -u www-data php occ documentserver:fonts --add /usr/share/fonts/truetype/MiriamLibre/MiriamLibre-Regular.ttf 


But unfortunately I'm running into segmentation fault. It's an issue I think with the document server setup since fonts like export to PDF has been broken for a bit. I'll install this once I have this resolved.

comment:4 by robe, 4 months ago

Okay the segmentation error is a long standing issue as detailed here

https://github.com/nextcloud/documentserver_community/issues/278

I did run thru the steps of adding the fonts as follows:

sudo -u www-data php occ documentserver:fonts --add /usr/share/fonts/truetype/MiriamLibre/MiriamLibre-Regular.ttf 
sudo -u www-data php occ documentserver:fonts --add /usr/share/fonts/truetype/MiriamLibre/MiriamLibre-Bold.ttf 
sudo -u www-data php occ documentserver:fonts --add /usr/share/fonts/truetype/libreoffice/opens___.ttf
sudo -u www-data php occ documentserver:fonts --add  /usr/share/fonts/truetype/OSGeo-webfont/fonts/miriamlibre-bold-webfont.ttf
sudo -u www-data php occ documentserver:fonts --add  /usr/share/fonts/truetype/Sintony/Sintony-Bold.ttf
sudo -u www-data php occ documentserver:fonts --add  /usr/share/fonts/truetype/Sintony/Sintony-Regular.ttf

And they do show as installed, but since rebuild is not working not sure they are actually instance.

Also not sure if I should be doing anything with the fonts in OSGeo-fonts. they seem to be same but lower cased.

sudo -u www-data php occ documentserver:fonts

outputs

MiriamLibre-Bold.ttf
MiriamLibre-Regular.ttf
Sintony-Bold.ttf
Sintony-Regular.ttf
miriamlibre-bold-webfont.ttf
miriamlibre-regular-webfont.ttf
opens___.ttf

So it says they are installed, but not sure given the rebuild is failing. Please check and see if you can use them. I do see them in dropdown when saving a document.

comment:5 by robe, 4 months ago

I ended up turning off only office and replacing with Collabra built-in and installed these fond there too. I had stopped using collabra before cause it was causing exhaustion, but seems to be fine now.

comment:6 by robe, 4 months ago

Resolution: fixed
Status: newclosed

going to close this out. Feel free to reopen if you have issues.

comment:7 by ticheler, 3 months ago

Thanks a lot Regina! It works and looks great! Cheers, Jeroen

Note: See TracTickets for help on using tickets.