Open rriemann opened 11 months ago
Are you sure that file extension is the problem? I downloaded a random otf font from https://www.1001fonts.com/opentype-fonts.html and it worked for me.
Are you sure that file extension is the problem? I downloaded a random otf font from https://www.1001fonts.com/opentype-fonts.html and it worked for me.
Do you know in which folder collabora (Docker CODE) stores the file? I could check if the download worked already.
I added two fonts (Tahoma.ttf and Pecita.otf), the only thing I can find in the container is: /opt/cool/child-roots/1-958b67f7/tmp/incoming/41e43f93.ttf /opt/cool/child-roots/1-958b67f7/tmp/incoming/6f5735e4.ttf
The fonts I uploaded are one .ttf and and one .otf, but but the otf 'translates' to a .ttf in the container.
The fonts I uploaded are one .ttf and and one .otf, but but the otf 'translates' to a .ttf in the container.
But did it work? That's the real question, because probably functionality is independent from file name extension. It works for me, but I'd like to hear confirmation from others.
The fonts I uploaded are one .ttf and and one .otf, but but the otf 'translates' to a .ttf in the container.
But did it work? That's the real question, because probably functionality is independent from file name extension. It works for me, but I'd like to hear confirmation from others.
@timar Yes, it does work for me :)
I have pulled again the most recent CODE docker container (COOLWSD version: 23.05.5.3 git hash: 5093121)
I can see 17 files in my NC fonts.json and 17 files in the directory /opt/cool/child-roots/1-a51cfe9e/tmp/incoming
. Still, none of the fonts is selectable when I open an odt file from NC.
So it does not work for me.
@sebastiaanveld could you try with the otf files from Font Awesome 6 Free for Desktop? I uploaded all otf font variants.
Download: https://fontawesome.com/v6/download
Fonts show up in the font menu:
The font applies to text succesfully:
Did you restart your container after adding the fonts to Nextcloud?
Describe the Bug
I use Collabora with Nextcloud. Collabora has a very good text render engine called HarfBuzz that works AFAIK best with otf fonts. Libertinus in otf is our house font.
Uploaded to the Nextcloud admin area, Nextcloud produces a font config file like:
However, I cannot find those fonts imported to CollaboraOffice. Intead, I found that the code to download those fonts to the collabora server has:
https://github.com/CollaboraOnline/online/blob/83fb699f7f20ce5b479aab77d764238d5d2d2ff0/wsd/COOLWSD.cpp#L1989
It looks like the files will all be given the
ttf
extension – also if the files are in fact in otf format.Steps to Reproduce
--o:remote_font_config.url
in Collabora OnlineExpected Behavior
I can see those fonts
Actual Behavior
I cannot see those fonts