Bug 148330 - Glyph positions are incorrect with DFKai-SB (ukai.ttf) in vertical writing.
Summary: Glyph positions are incorrect with DFKai-SB (ukai.ttf) in vertical writing.
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
7.2.0.4 release
Hardware: All All
: medium normal
Assignee: Mark Hung
URL:
Whiteboard: target:7.4.0
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-03 06:40 UTC by Mark Hung
Modified: 2022-04-12 09:26 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Test document. (10.52 KB, application/vnd.oasis.opendocument.text)
2022-04-03 06:41 UTC, Mark Hung
Details
vertical text with word 2019. (19.27 KB, image/jpeg)
2022-04-03 06:41 UTC, Mark Hung
Details
vertical text with libreoffice 7.3.1.3. (13.42 KB, image/jpeg)
2022-04-03 06:42 UTC, Mark Hung
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Hung 2022-04-03 06:40:24 UTC
Description:
DFKai-SB (ukai.ttf) is a built-in font under tradtional Chinese Windows. Glyph positions are incorrect with DFKai-SB (ukai.ttf) in vertical writing.

Steps to Reproduce:
1.Open the attached document.
2.Check the resulted text layout.

Actual Results:
Incorrect glyph positions. Chinese glyphs shift downward and the fullwidth comma isn't centered.

Expected Results:
Glyphs should spread evenly.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.3.1.3 (x64) / LibreOffice Community
Build ID: a69ca51ded25f3eefd52d7bf9a5fad8c90b87951
CPU threads: 16; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: zh-TW (zh_TW); UI: zh-TW
Calc: CL

This is related to
commit dd0d0b44fd1c6c0292d7b2eb3f5cf2baa21e4481
Author: Mark Hung <marklh9@gmail.com>
Date:   Sun May 2 15:12:46 2021 +0800

    vcl: adjust LayoutText() for vertical writing.
Comment 1 Mark Hung 2022-04-03 06:41:13 UTC
Created attachment 179283 [details]
Test document.
Comment 2 Mark Hung 2022-04-03 06:41:45 UTC
Created attachment 179284 [details]
vertical text with word 2019.
Comment 3 Mark Hung 2022-04-03 06:42:27 UTC
Created attachment 179285 [details]
vertical text with libreoffice 7.3.1.3.
Comment 4 Commit Notification 2022-04-08 13:26:06 UTC
Mark Hung committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/257bb11cbc5b1eb1f90014f528b9e7d6ccfeae86

tdf#148330 fix vertical offset for DFKai-SB (ukai.ttf).

It will be available in 7.4.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.