If text inserted Unicode BiDi characters, they could be rendering with fallback fonts.
Steps to Reproduce:
1. Copying some texts from https://en.wikipedia.org/wiki/Bi-directional_text#Chinese_characters_and_other_CJK_scripts
2. Paste into Writer
3. Set CJK font face
When CJK texts surrounding by BiDi characters, they aren’t rendered with specified font, using fallback fonts instead.
Text surrounding with Bidi characters should be rendering with specified font even if the font does not has corresponding grapheme.
User Profile Reset: No
Version: 126.96.36.199.beta1 (x64)
CPU 线程：4; 操作系统：Windows 10.0; UI 渲染：默认;
Locale: zh-CN (zh_CN); Calc: group threaded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
Created attachment 138012 [details]
Created attachment 138013 [details]
Do you mean setting same CJK font face to the two "海南航空"?
I tried to set both of them to "思源宋体 CN Medium", they are displaying correctly as this font.
I also tried "仿宋", it works.
Am I doing right? If I am doing right, this may be tested by someone else on Windows.
(In reply to Kevin Suo from comment #3)
> Do you mean setting same CJK font face to the two "海南航空"?
> I tried to set both of them to "思源宋体 CN Medium", they are displaying
> correctly as this font.
> I also tried "仿宋", it works.
> Am I doing right? If I am doing right, this may be tested by someone else on
I tested again, if I selest the who text, then set the font to "仿宋", it works, but if I set different font face for Western Text Font and Asian Text Font, the problem appearing to me.
If I understand it correctly, that's because the RTL text "空航南海" here is identified as CTL Text, rather than East Asian Text. (Move the cursor to the text, and check the status bar.)
Therefore, it's using the font set for CTL Text (Format -> Character -> CTL font).
Build ID: 42dafb5c7bd218f4d368fbd1113fa4a0fcd7f0cb
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk2;
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-11-30_00:36:09
Locale: zh-TW (zh_TW.UTF-8); Calc: group threaded
(In reply to Hiunn-hué from comment #5)
> If I understand it correctly, that's because the RTL text "空航南海" here is
> identified as CTL Text, rather than East Asian Text. (Move the cursor to the
> text, and check the status bar.)
> Therefore, it's using the font set for CTL Text (Format -> Character -> CTL
Yes, the usage of BiDi characters should be used for controlling text direction, and just set costomized direction within text, not affect font rendering for surrounding text.
I don’t this is a font fallback issue since our HarfBuzz-based font fallback code certainly handles this (i.e. does not require control characters to be present in the font). I suspect the issue is happening at a higher level when we decide if a character should use Western/CTL/CJK font.
So is it possible to add exceptions to make BiDi characters independent of Western/CTL/CJK font settings?
(In reply to Volga from comment #8)
> So is it possible to add exceptions to make BiDi characters independent of
> Western/CTL/CJK font settings?
Possibly, I’m not 100% sure this is what is going on.
** Please read this message in its entirety before responding **
To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.
There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.
If you have time, please do the following:
Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/
If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.
Please DO NOT
Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not
appropriate in this case)
If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/
2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword
Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa
Thank you for helping us make LibreOffice even better for everyone!