Removing unused fonts from ONLYOFFICE Docs

Bare-bones instructions

Having a large number of fonts installed on the ONLYOFFICE Docs server will slow down document opening. If you do not need all installed fonts, consider removing them:

Removing the fonts that are used in some of the documents might ruin the original document layout and display.
  1. Remove the unused fonts from the system (from the computer with ONLYOFFICE Docs installed).
  2. Open the command prompt as administrator.
  3. Switch to the C:\Program Files (x86)\Ascensio System SIA\ONLYOFFICE DocumentServer\Tools folder (use the actual installation path if it differs from the default):
    cd C:\Program Files (x86)\Ascensio System SIA\ONLYOFFICE DocumentServer\Tools
  4. Execute the AllFontsGen.exe command with the following parameters:
    AllFontsGen.exe "C:\Windows\Fonts" "C:\Program Files (x86)\Ascensio System SIA\ONLYOFFICE DocumentServer\DocService\web-apps\sdk\Common\AllFonts.js" "C:\Program Files (x86)\Ascensio System SIA\ONLYOFFICE DocumentServer\DocService\web-apps\sdk\Common\Images" "C:\Program Files (x86)\Ascensio System SIA\ONLYOFFICE DocumentServer\FileConverterService\Bin\font_selection.bin"
    It will scan the system font folder. The existing fonts will be used by the AllFonts.js script file to build the font database for their further usage.
  5. Restart the ONLYOFFICE Converter Service.
  6. Clear the browser cache and reopen the page.

Helpful hints

Removing unused fonts from older ONLYOFFICE Docs versions

If you are using the older 2.5 version of ONLYOFFICE Docs for Windows, we recommend that you upgrade to the latest available version. If you do not have the possibility to upgrade and need to remove the installed fonts, proceed as follows:

  1. Remove the unused fonts from the system (from the computer with ONLYOFFICE Docs installed).
  2. Open the C:\Program Files\Ascensio System SIA\ONLYOFFICE Online Editors\Tools folder.
  3. Run the GenerateAllFonts.bat file.
  4. Clear the browser cache and reopen the page.
Article with the tag:
Browse all tags