Closed Bug 1395926 Opened 7 years ago Closed 7 years ago

GPOS doesn't work for vertical text with upright orientation

Categories

(Core :: Graphics: Text, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox57 --- wontfix
firefox58 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

(Depends on 1 open bug, )

Details

(Whiteboard: gfx-noted)

Attachments

(2 files)

The vertical-writing-mode rendering of attachment 8610505 [details] from bug 1148660 was fixed by the patch there, but subsequently broken again by bug 729993. (Unfortunately, we didn't have a reftest in place to detect this immediately.) See also bug 1395774, although fixing this issue is not sufficient by itself to render the bopomofo example properly.
Priority: -- → P3
Whiteboard: gfx-noted
Here's a reftest based on the testcase from bug 1148660, which currently fails on trunk -- many of the diacritics are misplaced to the left. (The GPOS-related fix we landed in bug 1376231 at least got the diacritics to the proper vertical positions, but we also handle the horizontal offsets incorrectly.) If we'd had this test in the tree already when we originally fixed bug 1148660, we wouldn't have promptly re-broken it in the next release (or at least, we'd have been aware that we did so...) :\
Attachment #8922881 - Flags: review?(jmuizelaar)
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
And this fixes the rendering (again), so that the test passes. With this in place, and covered by reftests, we can then consider revising how the glyph offsets are stored, so as to remove the vertical-shaping swap from the DrawGlyphs loop as per bug 1408612 comment 21; I'll file a fresh bug for that.
Attachment #8922882 - Flags: review?(jmuizelaar)
Attachment #8922881 - Flags: review?(jmuizelaar) → review+
Attachment #8922882 - Flags: review?(jmuizelaar) → review+
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/2182bb31daa6 Reftest for GPOS glyph positioning adjustments in vertical-upright mode. r=jrmuizel https://hg.mozilla.org/integration/mozilla-inbound/rev/f31841220317 Fix up handling of glyph offsets for text shaped in vertical mode. r=jrmuizel
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Depends on: 1412481
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: