Question about adding fonts and custom samples for OnlyOffice ?
-
Adding more fonts
Based on this documentation they suggesting to add fonts in
/usr/share/fonts/
.Custom Templates/Sample
Based on this issue customizing the default font is only a matter of declaring it in these samples but I can't find this
public/samples
directory.My question for Cloudron are
- Someone knows where is
public/samples
dir ? - How to make my new fonts and samples persistent ?
- Does these modifications be included in the backup since it is not under
/app
?
- Someone knows where is
-
I was not aware of that feature actually and thus the app package does not support this yet.
Since apps on Cloudron run on a read-only filesystem, we have to symlink those folders into /app/data/ somewhere, that way they are also part of the backup.I created an issue in the app package repo at https://git.cloudron.io/cloudron/onlyoffice-app/issues/1 so we don't forget about it
-
@nebulon Stumbled across this while trying to find out how to add custom fonts. I would appreciate this option as well since standard fonts like Helvetica aren't included plus I would like to import a company-specific font that aligns with their CI
-
@nebulon I followed these instructions but the fonts are not shown in the web-app. I'm trying to add up the iA Writer fonts (all TTF), but restarting the app and the browser doesn't show any of the new fonts in the app.
Any hint of what else should I do?
-
@chetbaker said in Question about adding fonts and custom samples for OnlyOffice ?:
@nebulon I followed these instructions but the fonts are not shown in the web-app. I'm trying to add up the iA Writer fonts (all TTF), but restarting the app and the browser doesn't show any of the new fonts in the app.
Any hint of what else should I do?
Hello, you need not only to restart your brower but before doing so, you must clear the cache of it. One way to find out is trying the app in another browser, so if it works then that means the other one cache is not fully cleared. If it does not work in both, then the issue is elsewhere.
-
@nebulon said in Question about adding fonts and custom samples for OnlyOffice ?:
The latest app package now supports adding custom fonts. See https://docs.cloudron.io/apps/onlyoffice/#custom-fonts for details.
Hello @nebulon . Could you please check this feature again ? It seems adding fonts is not working anymore
I've Nextcloud and OnlyOffice apps running on the same Cloudron. I'm in need to use a few custom ttf fonts to allow users to write in their local language (ie Lao fonts like these : Saysettha).
Despite following the process mentioned custom fonts won't show up in the menu...
Thanks for your support -
I can reproduce an error with fonts at least. The app does pick up the font correctly but while trying to open the font selection dropdown it crashes if a custom font was added. The browser console shows:
Uncaught RangeError: attempting to construct out-of-bounds Uint8ClampedArray on ArrayBuffer
Not yet sure what the bug is and what needs fixing.
-
N nebulon has marked this topic as unsolved on
-
N nebulon has marked this topic as solved on