Description: Vertical Unicode SMP chars are not displayed correctly in a PDF file exported from an ODT. Steps to Reproduce: 1. Install font `全宋體` (download: https://drive.google.com/file/d/1m0-WYAXbEz3lxJrti25ZvWv6LkHjMp2X/view, official page: http://fgwang.blogspot.com/2023/02/blog-post.html). 2. Open the attached demo file unifont.odt. 3. Export the file as PDF and open it with Google Chrome. Actual Results: The chars 𠀀 (U+20000), 𮯠 (U+2EBE0), 𰀀 (U+30000), 𲎯 (U+323AF) in the PDF are not displayed correctly. Expected Results: All chars in the PDF should be displayed correctly as in the LO Writer. Reproducible: Always User Profile Reset: No Additional Info: Related bug: #107488
Created attachment 185629 [details] Demo ODT file
Created attachment 185630 [details] Rendering of the demo ODT file, which seems normal
Created attachment 185631 [details] Rendering of the exported PDF of the demo ODT file, which seems corrupted
I installed all the TTF fonts from the archive you linked. Even though the font "全宋體(調和)" is still displayed as unavailable in LibreOffice, the fallback seems to work and the characters are displayed properly in the example file. I can then export the PDF and still see the characters displayed properly in left-to-right (horizontal) text direction. However, in right-to-left (vertical) text direction, the PDF export shows the same shifted characters. Using pdffonts on my PDF export shows me: name type encoding emb sub uni object ID ------------------ ------------ ------------ --- --- --- --------- BAAAAA+FSung-p TrueType WinAnsi yes yes yes 9 0 CAAAAA+FSung-2 TrueType WinAnsi yes yes yes 14 0 DAAAAA+FSung-3 TrueType WinAnsi yes yes yes 19 0 Tested with: Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 98f35cf85ee66e995610fec92ea5224fbf28dff3 CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded 6.0 was sensibly worse, but OOo 3.3 does not have that shift, so marking as regression. Khaled, any idea what might be going on here?
Created attachment 185945 [details] PDF export in vertical layout with LO 7.6 alpha
(In reply to Stéphane Guillou (stragu) from comment #4) > Khaled, any idea what might be going on here? No idea, if font fallback is involved, PDF export seems to do some weird things for vertical text, e.g. bug 119346.
Created attachment 185969 [details] updated test document, right-to-left vertical, copy using FSung-m font Thanks Khaled. I tested by copying the same characters in another line, changing the font to one installed (FSung-m) and exporting again, and I get the same issue. So I don't think it is related to fallback fonts.
Dear Danny Lin, 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
Created attachment 199917 [details] font-change-FSung2_FSung3 I installed all the TTF fonts from the linked archive. The font "全宋體(調和)" still shows up as unavailable in LibreOffice in my environment. If I change the font directly it works fine. I think this is due to font fallback, but it's a mystery why this happens when writing vertically but not horizontally. Version: 25.2.1.2 (X86_64) / LibreOffice Community Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49 CPU threads: 12; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win Locale: ja-JP (ja_JP); UI: ja-JP Calc: CL threaded