Description: I'm generating my genealogy using LibreOffice. Following our traditional document style I set the page as portrait and vertical writing, from right to left. I used font "AR PL UKai TW MBE" (which can be downloaded at https://github.com/saiswa/free-fonts/blob/master/PCLinuxOSFonts/AR%20PL%20UKai%20TW%20MBE%2C%20Regular.ttc ). The position of words were correct when editing. However when exporting to PDF the big font size characters and vertical parentheses were shifted. Steps to Reproduce: 1. Set page style as portrait and vertical writing, right to left 2. Input words as sample_doc (attached) 3. Export to PDF Actual Results: Some characters (big font size characters) and parentheses were shifted to wrong positions (screenshot attached) Expected Results: should not be shifted (correct screenshot attached) Reproducible: Always User Profile Reset: No Additional Info: The correct PDF output can be generated with NDC ODF Application Tools v3.1, which unfortunately the characters positions were wrong when editing. In LibreOffice 7.2 the positions were correct when editing, but wrong when exporting to PDF.
Created attachment 176024 [details] sample document ODT file The sample document. Exporting it to PDF under LibreOffice 7.2 would get wrong results.
Created attachment 176025 [details] PDF file exported under LibreOffice 7.2.2 The position is wrong.
Created attachment 176026 [details] Correct positions when editing under LibreOffice 7.2.2 It is correctly shown when editing in LibreOffice Writer 7.2.2.
Created attachment 176027 [details] Screenshot of exported PDF file under LibreOffice 7.2.2 (Windows version)
Tested version information: Version: 7.2.2.2 / LibreOffice Community Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56 CPU threads: 4; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb) Locale: zh-TW (zh_TW.UTF-8); UI: zh-TW Calc: threaded Same version under Windows has the same result.
With 7.2.2 RC1 on Windows 10, I can partially reproduce. I don't have UKai font installed, and when substitute with Windows's "KaiTi" font, I reproduce the shift of characters with big font size, but don't see the shift of parentheses. Version: 7.2.2.1 (x64) / LibreOffice Community Build ID: 0e408af0b27894d652a87aa5f21fe17bf058124c CPU threads: 2; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win Locale: zh-CN (zh_CN); UI: zh-CN Calc: threaded
I do reproduce on an older build of 7.2 branch, but I do not reproduce on current master branch. I then did a reverse-bibisect-ing using the repo in: https://go.suokunlong.cn:88/cgit/lo/bibisect-linux-64-7.3-CN/ And find that it was fixed by Mark Hung in the following commit: commit a4244c0f05b95ded277a3a7ed217bf0451daa996 Author: Mark Hung <marklh9@gmail.com> Date: Sat Oct 16 13:55:56 2021 +0800 tdf#144222 fix pdf export with vertical layout Remove the offset adjustment that is no longer necessary. That was done in every backend before, and has been removed now. We can trust what layout text provides us. Regression from: commit dd0d0b44fd1c6c0292d7b2eb3f5cf2baa21e4481 Author: Mark Hung <marklh9@gmail.com> Date: Sun May 2 15:12:46 2021 +0800 *** This bug has been marked as a duplicate of bug 144222 ***
By the way, on Fedora the font "AR PL UKai TW MBE" is a part of the cjkuni-ukai-fonts package: > $ sudo dnf install cjkuni-ukai-fonts