Closed Bug 1810310 Opened 1 year ago Closed 1 year ago

All optional ligature features should be suppressed when non-zero letter-spacing is present

Categories

(Core :: Layout: Text and Fonts, defect, P3)

defect

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

Details

Attachments

(1 file)

According to the CSS Fonts spec, item 11 in the list:

setting a non-default value for the letter-spacing property disables optional ligatures

Gecko has a longstanding implementation of this behavior, whereby non-zero letter-spacing disables the OpenType 'liga' (common ligatures) feature. However, it doesn't disable other kinds of "optional ligatures", in particular the features 'hlig' (historical ligatures) and 'dlig' (discretionary ligatures).

While the spec doesn't explicitly define what features "optional ligatures" should include, I think the intention must be that it means all ligature features other than 'rlig' "required ligatures". So 'dlig' and 'hlig' should be included in this.

We currently fail font-feature-resolution-002.html because of this.

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6ccbc33d9c23
When letter-spacing is present, disable all varieties of 'optional' ligatures, not only 'common' ones. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: