Customize fonts of Onlyoffice

  1. install Onlyoffice via docker.
    2.
  2. 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/
  3. 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