[OSGeo] #3142: Install OSGeo fonts in onlyoffice on our nextcloud

#3142: Install OSGeo fonts in onlyoffice on our nextcloud
--------------------------------+-----------------------
Reporter: ticheler | Owner: robe
     Type: enhancement | Status: new
Priority: normal | Milestone: Unplanned
Component: SysAdmin/Nextcloud | Keywords:
--------------------------------+-----------------------
Hi SAC,
Is it possible to install the OSGeo selected fonts in OnlyOffice on our
Nextcloud?

The fonts are located here:
osgeo/marketing/branding/fonts at master · OSGeo/osgeo · GitHub

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 :slight_smile: )
Thanks in advance,
Jeroen
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/3142&gt;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3142: Install OSGeo fonts in onlyoffice on our nextcloud
--------------------------------+---------------------------------------
Reporter: ticheler | Owner: robe
     Type: enhancement | Status: new
Priority: normal | Milestone: Sysadmin Contract 2024-I
Component: SysAdmin/Nextcloud | Resolution:
Keywords: |
--------------------------------+---------------------------------------
Changes (by robe):

* milestone: Unplanned => Sysadmin Contract 2024-I

--
Ticket URL: <#3142 (Install OSGeo fonts in onlyoffice on our nextcloud) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3142: Install OSGeo fonts in onlyoffice on our nextcloud
--------------------------------+---------------------------------------
Reporter: ticheler | Owner: robe
     Type: enhancement | Status: new
Priority: normal | Milestone: Sysadmin Contract 2024-I
Component: SysAdmin/Nextcloud | Resolution:
Keywords: |
--------------------------------+---------------------------------------
Comment (by robe):

It should be doable. I'll try to get to it this week.
--
Ticket URL: <#3142 (Install OSGeo fonts in onlyoffice on our nextcloud) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3142: Install OSGeo fonts in onlyoffice on our nextcloud
--------------------------------+---------------------------------------
Reporter: ticheler | Owner: robe
     Type: enhancement | Status: new
Priority: normal | Milestone: Sysadmin Contract 2024-I
Component: SysAdmin/Nextcloud | Resolution:
Keywords: |
--------------------------------+---------------------------------------
Comment (by robe):

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

I followed this as discussed here -
GitHub - nextcloud/documentserver_community: Document server for onlyoffice

{{{
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.
--
Ticket URL: <#3142 (Install OSGeo fonts in onlyoffice on our nextcloud) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3142: Install OSGeo fonts in onlyoffice on our nextcloud
--------------------------------+---------------------------------------
Reporter: ticheler | Owner: robe
     Type: enhancement | Status: new
Priority: normal | Milestone: Sysadmin Contract 2024-I
Component: SysAdmin/Nextcloud | Resolution:
Keywords: |
--------------------------------+---------------------------------------
Comment (by robe):

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

Segfault while rebuilding fonts · Issue #278 · nextcloud/documentserver_community · GitHub

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.
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/3142#comment:4&gt;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3142: Install OSGeo fonts in onlyoffice on our nextcloud
--------------------------------+---------------------------------------
Reporter: ticheler | Owner: robe
     Type: enhancement | Status: new
Priority: normal | Milestone: Sysadmin Contract 2024-I
Component: SysAdmin/Nextcloud | Resolution:
Keywords: |
--------------------------------+---------------------------------------
Comment (by robe):

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.
--
Ticket URL: <#3142 (Install OSGeo fonts in onlyoffice on our nextcloud) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3142: Install OSGeo fonts in onlyoffice on our nextcloud
--------------------------------+---------------------------------------
Reporter: ticheler | Owner: robe
     Type: enhancement | Status: closed
Priority: normal | Milestone: Sysadmin Contract 2024-I
Component: SysAdmin/Nextcloud | Resolution: fixed
Keywords: |
--------------------------------+---------------------------------------
Changes (by robe):

* status: new => closed
* resolution: => fixed

Comment:

going to close this out. Feel free to reopen if you have issues.
--
Ticket URL: <#3142 (Install OSGeo fonts in onlyoffice on our nextcloud) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3142: Install OSGeo fonts in onlyoffice on our nextcloud
--------------------------------+---------------------------------------
Reporter: ticheler | Owner: robe
     Type: enhancement | Status: closed
Priority: normal | Milestone: Sysadmin Contract 2024-I
Component: SysAdmin/Nextcloud | Resolution: fixed
Keywords: |
--------------------------------+---------------------------------------
Comment (by ticheler):

Thanks a lot Regina! It works and looks great!
Cheers,
Jeroen
--
Ticket URL: <#3142 (Install OSGeo fonts in onlyoffice on our nextcloud) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.