GithubHelp home page GithubHelp logo

Comments (4)

proin avatar proin commented on August 14, 2024

I think it is very useful if you should make some api about adding fonts to document editor for support multi languages.
I try to install font (nanum-gothic) and change javascript file at /var/www/onlyoffice/documentserver/DocService/OfficeWeb/sdk/Common,
I can visible korean characters.

Is any other solution to add font at document editor?

from docker-documentserver.

AnaMih avatar AnaMih commented on August 14, 2024

There are probably no necessary fonts on the server.
Please follow the instructions in order to resolve the issue:
add the fonts to your os and reinstall onlyoffice-documentserver package.The necessary files will be changed according to a new font list.

from docker-documentserver.

proin avatar proin commented on August 14, 2024

if i change parent font, is there changed the docker container's font too?
or document server has other isntall packages not docker?

from docker-documentserver.

AnaMih avatar AnaMih commented on August 14, 2024

To mount folder with fonts follow the instructions: :

  1. sudo docker run -i -t -d -p 80:80 -v /home/font:/usr/share/fonts/test_font onlyoffice/documentserver
    where
    /home/font - the folder with fonts on host os
    /usr/share/fonts/test_font - the folder, where the fonts should be put
  2. docker attach your_container_id
  3. /var/www/onlyoffice/documentserver/Tools/AllFontsGen" "/usr/share/fonts
    /var/www/onlyoffice/documentserver/DocService/OfficeWeb/sdk/Common/AllFonts.js
    /var/www/onlyoffice/documentserver/DocService/OfficeWeb/sdk/Common/Images
    /var/www/onlyoffice/documentserver/FileConverterService/Bin/font_selection.bin
    (rebuilding fonts)
  4. supervisorctl restart FileconverteService
    (service restart)
    Pay attention, that *.ttf and *.ttc fonts should be used.

from docker-documentserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.