Customize fonts of Onlyoffice

  1. install Onlyoffice via docker.
  • remove original fonts contained in onlyoffice
# ### cp -r /var/www/onlyoffice/documentserver/web-apps/apps/documenteditor/main/resources/help/en \
/var/www/onlyoffice/documentserver/web-apps/apps/documenteditor/main/resources/help/zh

# mkdir /root/fonts-backup/
# mv /var/www/onlyoffice/documentserver/core-fonts/*  /root/fonts-backup/
# ### rm -rf /var/www/onlyoffice/documentserver/core-fonts/*
mv /usr/share/fonts/X11                             /root/fonts-backup/
mv /usr/share/fonts/truetype/dejavu/                /root/fonts-backup/
  • then copy fonts you need into /var/www/onlyoffice/documentserver/core-fonts/
    and run
# bash /usr/bin/documentserver-generate-allfonts.sh

Tag: none

Leave a new comment