- Home
- DocSpace
- Installation
- Various questions
- Changing the default font in DocSpace documents
Changing the default font in DocSpace documents
Introduction
When creating a new blank DOCX document or PDF form, the font is automatically set to Arial, 11 pt. For XLSX spreadsheets, the default font is Calibri, 11 pt. For PPTX files, the default font in text boxes and different placeholders (title, subtitle, etc.) is Arial.
If you want to change the default font for all new documents created in ONLYOFFICE DocSpace, you'll need to replace the pre-made examples of empty files: new.docx, new.pdf, new.xlsx, new.pptx.
In this guide, the commands are described for the DocSpace Docker version.
Changing the default font
Enter the onlyoffice-files
container:
sudo docker exec -it onlyoffice-files bash
Go to the folder that contains templates:
cd /var/www/products/ASC.Files/server/DocStore/new
List the files:
ls
You'll see folders with empty files for different locales. For example, we'll edit the en-US empty templates corresponding to the language of our DocSpace portal.
Exit the container:
exit
Copy the original files from the container to the host machine:
sudo docker cp onlyoffice-files:var/www/products/ASC.Files/server/DocStore/new/en-US /root/en-US
Open one of the copied empty files in ONLYOFFICE Desktop Editors and change the necessary settings, e.g., choose a different font instead of Arial. Save the file.
Copy the edited files from the host machine to the container:
sudo docker cp /root/en-US/. onlyoffice-files:var/www/products/ASC.Files/server/DocStore/new/en-US
After that, all new documents will be created with the specified font if the portal language is set to en-US. If your portal is used in different languages, edit and replace empty files for other locales as described above.
/var/www/docspace/products/ASC.Files/server/DocStore/new/
For the Windows version, the empty templates are stored in this folder: C:\Program Files (x86)\Ascensio System SIA\DocSpace\products\ASC.Files\DocStore\new