Description: 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 Actual Results: When CJK texts surrounding by BiDi characters, they aren’t rendered with specified font, using fallback fonts instead. Expected Results: Text surrounding with Bidi characters should be rendering with specified font even if the font does not has corresponding grapheme. Reproducible: Always User Profile Reset: No Additional Info: Version: 6.0.0.0.beta1 (x64) Build ID:97471ab4eb4db4c487195658631696bb3238656c 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] Test file
Created attachment 138013 [details] Snapshot
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 > Windows. 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.
Hi, 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). --- Tested on: Version: 6.1.0.0.alpha0+ 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) > Hi, > > 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). 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! Warm Regards, QA Team MassPing-UntouchedBug
Dear Volga, 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 https://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! Warm Regards, QA Team MassPing-UntouchedBug
Dear Volga, 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 https://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://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
(In reply to خالد حسني from comment #7) > 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. Yes, I think so. Because in certain cases there's some needs to make use of BiDi characters to alter text direction (for example, Runes), such things shouldn just affect the order of characters on screen, not font face. https://commons.wikimedia.org/wiki/File:%E5%8D%B3%E4%BD%8D%E8%AF%8F%E4%B9%A6.png https://commons.wikimedia.org/wiki/File:%E4%BC%AA%E6%BB%A1%E7%9A%87%E5%B8%9D%E6%BA%A5%E4%BB%AA%E9%A2%81%E5%8F%91%E7%9A%84%E5%8D%B3%E4%BD%8D%E8%AF%8F%E4%B9%A6%E3%80%82%E4%BC%AA%E6%BB%A1%E7%9A%87%E5%AE%AB%E5%8D%9A%E7%89%A9%E9%99%A2.jpg
(In reply to خالد حسني from comment #7) > 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. Yes, I think so. Because in certain cases there's some needs to make use of BiDi characters to alter text direction (for example, Runes), ideally such things should just affect the order of characters on screen, not font face. https://commons.wikimedia.org/wiki/File:%E5%8D%B3%E4%BD%8D%E8%AF%8F%E4%B9%A6.png https://commons.wikimedia.org/wiki/File:%E4%BC%AA%E6%BB%A1%E7%9A%87%E5%B8%9D%E6%BA%A5%E4%BB%AA%E9%A2%81%E5%8F%91%E7%9A%84%E5%8D%B3%E4%BD%8D%E8%AF%8F%E4%B9%A6%E3%80%82%E4%BC%AA%E6%BB%A1%E7%9A%87%E5%AE%AB%E5%8D%9A%E7%89%A9%E9%99%A2.jpg