Summary: | [CJK] Character position offset when export to PDF in vertical writing mode with bigger font size | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Franklin Weng <franklin> |
Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | ming.v.hua, suokunlong |
Priority: | medium | ||
Version: | 7.2.2.2 release | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | |||
Bug Blocks: | 83066, 106045 | ||
Attachments: |
sample document ODT file
PDF file exported under LibreOffice 7.2.2 Correct positions when editing under LibreOffice 7.2.2 Screenshot of exported PDF file under LibreOffice 7.2.2 (Windows version) |
Description
Franklin Weng
2021-10-30 13:57:39 UTC
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
|