DocumentServer icon indicating copy to clipboard operation
DocumentServer copied to clipboard

chinese font not display correctly

Open sidealice opened this issue 11 years ago • 33 comments

is this problem caused by font or built in library?

sidealice avatar Jun 25 '15 02:06 sidealice

The reason of the issue may be that you do not have chinese fonts on the machine where Document Server is installed. In order to resolve the issue, please, set chinese fonts using the package or put tff font to /usr/share/fonts/ directory. Then run the script: documentserver-generate-allfonts.sh Clear the browser cache and reopen the page. After that you should choose the font for your document.

AnaMih avatar Jun 25 '15 11:06 AnaMih

thanks for your help , i would try to follow your way. by the way how to contribute to the project, I would like to make this update to the core and help other chinese clients to use it.

sidealice avatar Jun 25 '15 13:06 sidealice

I regret to inform you that we do not currently have ssh protocol. Feel free to fork the repo and continue working.

AnaMih avatar Jun 26 '15 14:06 AnaMih

thanks now get the font worked , but still not perfect. because if my original document was wrote in Chinese, when I open it , the document not rendered in Chinese by default. I have to select all text and choose the font again. Is this an improvement for the software or it was caused by the font missing or font auto detection issue on the server?

sidealice avatar Jun 28 '15 21:06 sidealice

This is standard situation. The algorithm is: if the necessary font is not found the editors select the most suitable. There are two solutions:

  1. download the font package which supports Chinese language.
  2. change the document fragments with incorrect symbols to the font that supports necessary characters.

AnaMih avatar Jun 30 '15 10:06 AnaMih

I solve the issue with this:

apt-get install fonts-arphic-ukai cd /usr/share/fonts/ tar cv * | docker exec -i XXX tar x -C /usr/share/fonts/ docker exec XXX /var/www/onlyoffice/documentserver/Tools/GenerateAllFonts.sh where XXX is the container ID

Then clear cache browser and logon again.

libardoram avatar Sep 27 '15 13:09 libardoram

Chinese font not display correctly in onlyoffice spreadsheet chart ?

hisys3122 avatar Mar 04 '16 07:03 hisys3122

Please describe the issue more detailed and send us an examle for analyzing Make sure that the fonts are installed

ibnpetr avatar Mar 04 '16 09:03 ibnpetr

Our test server:

  1. OS -> CentOS Linux release 7.2.1511 (Core)
  2. Docker -> 1.8.2 10.el7.centos
  3. Server -> HP DL360 G8
  4. onlyoffice documentserver -> image download from DockerHub
  5. chinese fonts -> copy from windows 7 and installed correctly.

We open the "Sample Spreadsheet" file, and change Rank 1 "USA" to Chinese fonts, chinese font not display correctly in the chart.

Screenshot is in the attache file.

chinese_error

hisys3122 avatar Mar 07 '16 02:03 hisys3122

Hello The feature is planned for future versions, at the moment areal font only can be used in the chart inside the spreadsheet.

ibnpetr avatar Mar 09 '16 09:03 ibnpetr

Dear ONLYOFFICE users! We are working hard on implementation of asian fonts in Document Server. So we need both standard and non-standard fonts to analyze their behaviour in our product. Please send us fonts via [email protected] or attach them to your messages. We will appreciate your assistance. Best regards John ONLYOFFICE support team

JohnPerkin avatar Mar 13 '17 12:03 JohnPerkin

@JohnPerkin Dear John! Thanks for for your reply this issues. I am Chinese, and I am more concerned about this problem. Is it working right now?

leangjia avatar Oct 08 '17 15:10 leangjia

Hi @leangjia. Thank you for intresting for Document Server. It's difficult feature, so we are still working on it.

agolybev avatar Oct 09 '17 14:10 agolybev

my doc 's Chinese fonts is ok,but the interface have some trouble..... tim 20171205150642

carlsue avatar Dec 05 '17 07:12 carlsue

Hi @jianbosu, could you provide us this document?

agolybev avatar Dec 05 '17 10:12 agolybev

@agolybev 你的姓名.docx

carlsue avatar Jan 19 '18 07:01 carlsue

@agolybev i delete all file in /usr/share/fonts, then cp my font into it. and run Then run the script: documentserver-generate-allfonts.sh && Clear the browser cache and reopen the page. Everything is worked perfect. tim 20180119160237

carlsue avatar Jan 19 '18 08:01 carlsue

Hi, @jianbosu . 'my font', your font means which fonts?

JoeLucky avatar Jan 26 '18 06:01 JoeLucky

@jianbosu Did you delete all the fonts except Chinese fonts? So onlyoffice force all words to Chinese fonts. I donot think that is a good practice, though temporarily solved Chinese problem.

JoeLucky avatar Jan 26 '18 07:01 JoeLucky

@JoeLucky yes,i copy some Chinese fonts into your system,and delete all others,clear browser cache,at the end everything will be work perfect。 1

carlsue avatar Jan 29 '18 11:01 carlsue