Skip to content

[css-fonts] Clarify what ligatures are optional #2644

@upsuper

Description

@upsuper

Recently we got a bug report that when text-justify: inter-character is specified, some characters which should be composed are instead separated.

I did some investigation and found that the reason is when that is specified, or a non-zero letter-spacing is specified, Gecko disables features liga and clig based on the CSS Text spec which states:

When the effective spacing between two characters is not zero (due to either justification or a non-zero value of letter-spacing), user agents should not apply optional ligatures.

while in this case, the composition is applied via clig feature. It sounds like clig is probably not an optional ligature.

But according to @jfkthame in the bug comment, the example in OpenType feature registry for clig clearly indicates it should be optional ligatures as it falls in the same category as ligatures like "fi". On the other hand, he also noticed that in shaping spec of some scripts, clig is also mentioned, which makes it less clear whether it is required, so maybe this should be conditionally treated optional.

It would probably be helpful if the spec can provide recommendation on what ligatures should be considered optional. Also any feedback from i18n wg would be great.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions