Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font SimSun doesn't work #540

Closed
sidey opened this issue Nov 6, 2020 · 3 comments
Closed

Font SimSun doesn't work #540

sidey opened this issue Nov 6, 2020 · 3 comments
Labels
bug Something isn't working unconfirmed

Comments

@sidey
Copy link

sidey commented Nov 6, 2020

Describe the bug
docx with SimSun font can't render normally after I put a SimuSun font into the docker container and restart it

To Reproduce
Steps to reproduce the behavior:

  1. start up collabora office online with docker image 6.4.0.14

  2. download font SimSun
    simsun.zip

  3. put SimSun.ttc into /usr/share/fonts/ of the container.

  4. execute fc-cache -fv and fc-list :lang=zh

/usr/share/fonts/simsun.ttc: SimSun,宋体:style=Regular,常规
/usr/share/fonts/simsun.ttc: NSimSun,新宋体:style=Regular,常规

  1. restart container
  2. trying to open a docx of characters with a SimSun font.
    test_utf-8.docx

Expected behavior
the document cant be opened in browser normally.
document view in MS office

Actual behavior
an empty document
document view in collabora online

Desktop (please complete the following information)

  • OS: docker docker.io/collabora/code:6.4.0.14
  • Browser: chrome 86.0.4240.111
  • Version: 6.4.0.14

Additional context
I think the SimSun font file works,because characters with other fonts are rendered normally,except collabora changed their fonts to sans-serif

@sidey sidey added bug Something isn't working unconfirmed labels Nov 6, 2020
@sidey
Copy link
Author

sidey commented Nov 6, 2020

I've solved this problem according to this article:
https://help.nextcloud.com/t/collobora-online-and-docker-how-to-add-new-fonts/65750/9
In fact:
the font files must been put in folder container:/opt/collaboraoffice{version}/share/fonts/truetype/
but not container:/usr/share/fonts/truetype/

@sidey sidey closed this as completed Nov 9, 2020
@mrkara
Copy link
Member

mrkara commented Nov 10, 2020

@sidey Thank you for creating the issue report, and then also sharing the solution. :)

This looks like a very good fit for our forum where COOL installation and configuration topics belong to: https://forum.collaboraonline.com/c/installation-configuration/10

I'll try to move your question, along with the solution, to the forum soon, but if you would like to do it yourself, please feel free to beat me to it by opening a new topic. That's very welcome.

Thank you again! :)

@sidey
Copy link
Author

sidey commented Nov 11, 2020

@mrkara Please feel free to create a topic on collaboraonline forum about this solution.
And thanks for your work on CODE :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed
Projects
None yet
Development

No branches or pull requests

2 participants