Removing unused fonts from ONLYOFFICE Docs

Bare-bones instructions

A large number of fonts installed on the computer with ONLYOFFICE Docs and enabled there will make the process of document opening longer, so if you are sure that you are not going to use all the installed fonts, you might consider removing them from the system and from ONLYOFFICE Docs. In case you want to limit the number of fonts uploaded from the system, you can do the following:

Removing the fonts that are used in some of the documents might ruin the original document layout and display.
  1. Remove the unnecessary and unused fonts from the system (from the computer with ONLYOFFICE Docs installed).
  2. Run the command prompt with administrator rights.
  3. Switch to the C:\Program Files (x86)\Ascensio System SIA\ONLYOFFICE DocumentServer\Tools folder (or use the path to the folder with ONLYOFFICE Docs installed):
    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 there 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 still 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, the succession of actions should be the following:

  1. Remove the unnecessary and 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.

Host ONLYOFFICE Docs on your own server or use it in the cloud

Article with the tag:
Browse all tags