From faef8587bcb97b27a80467db5415d9e6a9b14396 Mon Sep 17 00:00:00 2001 From: svetlana maleeva Date: Tue, 26 Dec 2023 14:23:41 +0300 Subject: [PATCH] Edit InstallFonts.ascx --- .../Server/Windows/Document/InstallFonts/InstallFonts.ascx | 4 ++-- .../Server/Windows/Document/InstallFonts/InstallFonts.ru.ascx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Web/Controls/Help/Server/Windows/Document/InstallFonts/InstallFonts.ascx b/Web/Controls/Help/Server/Windows/Document/InstallFonts/InstallFonts.ascx index 814502c59..488c74ece 100644 --- a/Web/Controls/Help/Server/Windows/Document/InstallFonts/InstallFonts.ascx +++ b/Web/Controls/Help/Server/Windows/Document/InstallFonts/InstallFonts.ascx @@ -29,9 +29,9 @@

Sometimes you might want to add additional fonts or language spellchecking support to ONLYOFFICE Docs to enhance the work with the editors. That can be done quite easily.

Bare Bones Instructions

Installing new fonts
-

By default ONLYOFFICE Docs uses embedded free fonts (true type only in .ttf format) from the operating system where ONLYOFFICE Docs is installed. If you would like to use additional fonts you can do the following:

+

By default ONLYOFFICE Docs uses embedded free fonts (true type only in .ttf format) from the operating system where ONLYOFFICE Docs is installed. If you would like to use additional fonts you can do the following on the computer with ONLYOFFICE Docs installed:

    -
  1. Install the font by copying it to C:\Windows\Font (to the computer with ONLYOFFICE Docs installed).
  2. +
  3. Install the font to the C:\Windows\Font folder by clicking the font and choosing the Install for all users option in the context menu. On Windows versions lower than Windows 11 or Windows Server 2022, just select Install.
  4. Go to the C:\Program Files\ONLYOFFICE\DocumentServer\bin\ folder and run the documentserver-generate-allfonts.bat file as administrator.

    It will scan the system font folder for the installed font, the font will be used by the AllFonts.js script to form the font thumbnails in the editors and add the font metrics to the font_selection.bin file for its further usage.

  5. diff --git a/Web/Controls/Help/Server/Windows/Document/InstallFonts/InstallFonts.ru.ascx b/Web/Controls/Help/Server/Windows/Document/InstallFonts/InstallFonts.ru.ascx index e21ea4cb1..a8f86e576 100644 --- a/Web/Controls/Help/Server/Windows/Document/InstallFonts/InstallFonts.ru.ascx +++ b/Web/Controls/Help/Server/Windows/Document/InstallFonts/InstallFonts.ru.ascx @@ -29,9 +29,9 @@

    Иногда вам может потребоваться добавить дополнительные шрифты или поддержку дополнительных языков проверки орфографии в ONLYOFFICE Docs, чтобы улучшить работу с редакторами. Это доволно легко.

    Основные инструкции

    Установка новых шрифтов
    -

    По умолчанию в ONLYOFFICE Docs используются встроенные бесплатные шрифты (только шрифты TrueType в формате .ttf) операционной системы, на которой установлен ONLYOFFICE Docs. Если вы хотите использовать дополнительные шрифты, можно сделать следующее:

    +

    По умолчанию в ONLYOFFICE Docs используются встроенные бесплатные шрифты (только шрифты TrueType в формате .ttf) операционной системы, на которой установлен ONLYOFFICE Docs. Если вы хотите использовать дополнительные шрифты, можно сделать следующее на компьютере, где установлен ONLYOFFICE Docs:

      -
    1. Установите шрифт, скопировав его в папку C:\Windows\Font (на компьютере, где установлен ONLYOFFICE Docs).
    2. +
    3. Установите шрифт в папку C:\Windows\Font, кликнув мышкой на шрифт и выбрав в контекстном меню пункт Install for all users. На версиях Windows ниже, чем Windows 11 или Windows Server 2022, просто выберите Install.
    4. Перейдите в папку C:\Program Files\ONLYOFFICE\DocumentServer\bin\ и запустите файл documentserver-generate-allfonts.bat от имени администратора.

      Папка с системными шрифтами будет просканирована на наличие установленного шрифта. Этот шрифт будет использован файлом сценария AllFonts.js , чтобы сформировать эскизы шрифта в редакторах и добавить метрику шрифта в файл font_selection.bin для его дальнейшего использования.