Bug 167963 - (Vertical writing) Italic characters are misplaced
Summary: (Vertical writing) Italic characters are misplaced
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
26.2.0.0 alpha0+ master
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:26.2.0 target:25.8.3.2
Keywords: bibisected, bisected, regression
Depends on:
Blocks: CJK
  Show dependency treegraph
 
Reported: 2025-08-15 13:41 UTC by Saburo
Modified: 2025-11-08 12:49 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot(writer-pdf) (48.89 KB, image/png)
2025-08-15 13:41 UTC, Saburo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Saburo 2025-08-15 13:41:07 UTC
Description:
When I open the attachment file (202330) for bug 167962,
the characters are placed in a different location.

Steps to Reproduce:
1.Open attachment file
https://bugs.documentfoundation.org/attachment.cgi?id=202330

Actual Results:
be misaligned.
Exporting to PDF has extra spaces.

Expected Results:
The characters on one line are aligned


Reproducible: Always


User Profile Reset: No

Additional Info:
bibisected with linux-64-26.2
first bad
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 77a799f556b2fdeac06c9652c0085995f81cd910
CPU threads: 4; OS: Linux 6.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: ja-JP (ja_JP.UTF-8); UI: en-US
Calc: threaded
Comment 1 Saburo 2025-08-15 13:41:55 UTC
Created attachment 202331 [details]
Screenshot(writer-pdf)
Comment 2 Saburo 2025-08-15 13:47:07 UTC
adding CC:Xisco Fauli
Please, take a look?
This may be a bug in halfbuzz, but I'm having trouble with the Japanese italicization.
Comment 3 Takenori Yasuda 2025-08-16 01:49:03 UTC
Reproduced not only in Japanese but also in Chinese.
Version: 25.8.1.0.0+ (X86_64) / LibreOffice Community
Build ID: 8b236227976b3b5c78afc916ea4acefd4b4b8c58
CPU threads: 8; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: CL threaded Jumbo

---

Not reproduced.
Version: 24.8.7.2 (x86) / LibreOffice Community
Build ID: e07d0a63a46349d29051da79b1fde8160bab2a89
CPU threads: 8; 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

Version: 25.2.5.2 (X86_64) / LibreOffice Community
Build ID: 03d19516eb2e1dd5d4ccd751a0d6f35f35e08022
CPU threads: 8; 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 Jumbo
Comment 4 Dieter 2025-08-19 17:42:44 UTC
(In reply to Takenori Yasuda from comment #3)
> Reproduced not only in Japanese but also in Chinese.
=> NEW
Comment 5 raal 2025-08-27 18:27:26 UTC
This seems to have begun at the below commit in bibisect repository/OS linux-64-25.8.
 3959c0339dc5a1e89df927cd3e5dc8de11ee4dbf is the first bad commit
commit 3959c0339dc5a1e89df927cd3e5dc8de11ee4dbf
Author: Jenkins Build User <tdf@maggie.tdf>
Date:   Mon Aug 4 15:42:41 2025 +0200

    source 150bf27c032f615453df8d5da71d86fa767c30de

188745: harfbuzz: upgrade to 11.3.3 | https://gerrit.libreoffice.org/c/core/+/188745
Comment 6 Jonathan Clark 2025-10-28 10:02:42 UTC
Confirmed, this is a regression in HarfBuzz.

$ hb-view --direction=ttb --font-slant=0.2 NotoSerifCJK-Regular.ttc この言葉は

I see the expected output with my system HarfBuzz 10.2.0, but with HarfBuzz 12.1.0 the first kana is shifted out of line with the following characters.
Comment 7 Khaled Hosny 2025-10-28 11:13:14 UTC
(In reply to Jonathan Clark from comment #6)
> Confirmed, this is a regression in HarfBuzz.
> 
> $ hb-view --direction=ttb --font-slant=0.2 NotoSerifCJK-Regular.ttc この言葉は
> 
> I see the expected output with my system HarfBuzz 10.2.0, but with HarfBuzz
> 12.1.0 the first kana is shifted out of line with the following characters.

Reported upstream https://github.com/harfbuzz/harfbuzz/issues/5628
Comment 8 Commit Notification 2025-10-30 10:23:05 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/68822e1bfe0ed83766f4166f8162aacc7e392191

tdf#167963: patch upstream fix

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 9 Xisco Faulí 2025-11-03 08:29:30 UTC
Closing as FIXED since the upstream patch has been patched in LibreOffice
Comment 10 Commit Notification 2025-11-04 12:17:05 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "libreoffice-25-8-3":

https://git.libreoffice.org/core/commit/ea49312254c953f9183c015727a8d8e01aa4bf7f

tdf#167963: patch upstream fix

It will be available in 25.8.3.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 11 Commit Notification 2025-11-04 17:06:15 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

https://git.libreoffice.org/core/commit/84681c65b2b101c7f86da4fe331f3208fc6cb053

tdf#167963: patch upstream fix

It will be available in 25.8.4.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.