Bug 148330

Summary: Glyph positions are incorrect with DFKai-SB (ukai.ttf) in vertical writing.
Product: LibreOffice Reporter: Mark Hung <marklh9>
Component: graphics stackAssignee: Mark Hung <marklh9>
Status: ASSIGNED ---    
Severity: normal CC: himajin100000, xiscofauli
Priority: medium    
Version: 7.2.0.4 release   
Hardware: All   
OS: All   
Whiteboard: target:7.4.0
Crash report or crash signature: Regression By:
Attachments: Test document.
vertical text with word 2019.
vertical text with libreoffice 7.3.1.3.

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.