Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-fonts-3][css-fonts-4] letter-spacing disables optional ligatures. #2644 #3430

Merged
merged 1 commit into from Dec 12, 2018

Conversation

bungeman
Copy link
Contributor

A non-default value for letter-spacing should disable all
optional ligatures, not just common ligatures. Defer to css-text for
optional ligature definition.

Test that letter-spacing disables discretionary ligatures in particular at
https://chromium-review.googlesource.com/c/chromium/src/+/1294874

…w3c#2644

A non-default value for letter-spacing should disable all
optional ligatures, not just common ligatures. Defer to css-text for
optional ligature definition.
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Dec 11, 2018
The change to Lato-Medium is to add a mapping from U+fb06 to the 'st'
ligature glyph, which was previously only accessible through the 'dlig'
feature.

This tests w3c/csswg-drafts#3430

Change-Id: Iaf0ff1f99f3ec282bacb0e3cb44ede27d47fac5a
@svgeesus
Copy link
Contributor

Thanks for the PR and test.

Defer to css-text for optional ligature definition.

Do you mean this wording:

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, i.e. those that are not defined as required for fundamentally correct glyph shaping

or this non-normative note?

Note: In OpenType, required ligatures are expected to be associated to the rlig feature. All other ligatures are therefore considered optional. In some cases, however, UA or platform heuristics apply additional ligatures in order to handle broken fonts; this specification does not define or override such exceptional handling.

I agree that optional, rather than just common, ligatures is correct here.

Oh - the ipr bot is complaining, could you link your GitHub account with your W3C account please?

@bungeman
Copy link
Contributor Author

Since the checks are now passing, I assume that I've finally hit all the buttons and done all of the verifying required.

By "Defer to css-text for optional ligature definition." I mean both of the sections you mention. css-text here is defining optional ligatures as "those that are not required for fundamentally correct glyph shaping" and that is a great general definition, especially in the css-text specification. The note about OpenType is also good in that it clarifies what this means for the 95% use case. If there were also a note about TrueType shaping in there it would hit 99.9% or so. However, this note is already straying a bit into the css-fonts specification area, so I understand why it is a note.

@svgeesus svgeesus merged commit 40eeef5 into w3c:master Dec 12, 2018
foolip pushed a commit to web-platform-tests/wpt that referenced this pull request Dec 20, 2018
The change to Lato-Medium is to add a mapping from U+fb06 to the 'st'
ligature glyph, which was previously only accessible through the 'dlig'
feature.

This tests w3c/csswg-drafts#3430

Change-Id: Iaf0ff1f99f3ec282bacb0e3cb44ede27d47fac5a
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 21, 2020
The change to Lato-Medium is to add a mapping from U+fb06 to the 'st'
ligature glyph, which was previously only accessible through the 'dlig'
feature. Lato-Medium is upgraded from version 2.015 to version 3.002.

This tests w3c/csswg-drafts#3430

Change-Id: Iaf0ff1f99f3ec282bacb0e3cb44ede27d47fac5a
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 21, 2020
The change to Lato-Medium is to add a mapping from U+fb06 to the 'st'
ligature glyph, which was previously only accessible through the 'dlig'
feature. Lato-Medium is upgraded from version 2.015 to version 3.002.

This tests w3c/csswg-drafts#3430

Change-Id: Iaf0ff1f99f3ec282bacb0e3cb44ede27d47fac5a
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 23, 2020
The new Lato-Medium-Liga font is based on Lato-Medium 3.002 available
at https://github.com/latofonts/lato-source/tree/master/fonts/static/TTF
It is subset with hb-subset with "fiststfi " and the 'fi' ligatures
moved back to 'liga' (version 3.002 moved them to 'dlig'). The crossbar
of 't' in the 'st' ligature was also shorted to ensure that it would not
cover a normal 't'.

The Lato-Medium currently available to the tests is version 2.015 and
lacks a mapping from U+fb06 to the 'st' ligature glyph which was only
accessible through the 'dlig' feature. Lato-Medium 3.002 added this
mapping (required for this new test) but also moved the 'fi' ligatures
to 'dlig' and some existing tests depend on the 'fi' ligatures being in
'liga'.

This tests w3c/csswg-drafts#3430

Change-Id: Iaf0ff1f99f3ec282bacb0e3cb44ede27d47fac5a
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 27, 2020
The new Lato-Medium-Liga font is based on Lato-Medium 3.002 available
at https://github.com/latofonts/lato-source/tree/master/fonts/static/TTF
It is subset with hb-subset with "fiststfi " and the 'fi' ligatures
moved back to 'liga' (version 3.002 moved them to 'dlig'). The crossbar
of 't' in the 'st' ligature was also shorted to ensure that it would not
cover a normal 't'.

The Lato-Medium currently available to the tests is version 2.015 and
lacks a mapping from U+fb06 to the 'st' ligature glyph which was only
accessible through the 'dlig' feature. Lato-Medium 3.002 added this
mapping (required for this new test) but also moved the 'fi' ligatures
to 'dlig' and some existing tests depend on the 'fi' ligatures being in
'liga'.

This tests w3c/csswg-drafts#3430

Change-Id: Iaf0ff1f99f3ec282bacb0e3cb44ede27d47fac5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1294874
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Commit-Queue: Ben Wagner <bungeman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791807}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 27, 2020
The new Lato-Medium-Liga font is based on Lato-Medium 3.002 available
at https://github.com/latofonts/lato-source/tree/master/fonts/static/TTF
It is subset with hb-subset with "fiststfi " and the 'fi' ligatures
moved back to 'liga' (version 3.002 moved them to 'dlig'). The crossbar
of 't' in the 'st' ligature was also shorted to ensure that it would not
cover a normal 't'.

The Lato-Medium currently available to the tests is version 2.015 and
lacks a mapping from U+fb06 to the 'st' ligature glyph which was only
accessible through the 'dlig' feature. Lato-Medium 3.002 added this
mapping (required for this new test) but also moved the 'fi' ligatures
to 'dlig' and some existing tests depend on the 'fi' ligatures being in
'liga'.

This tests w3c/csswg-drafts#3430

Change-Id: Iaf0ff1f99f3ec282bacb0e3cb44ede27d47fac5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1294874
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Commit-Queue: Ben Wagner <bungeman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791807}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Aug 1, 2020
… for 'dlig'., a=testonly

Automatic update from web-platform-tests
Add wpt test for font feature precedence for 'dlig'.

The new Lato-Medium-Liga font is based on Lato-Medium 3.002 available
at https://github.com/latofonts/lato-source/tree/master/fonts/static/TTF
It is subset with hb-subset with "fiststfi " and the 'fi' ligatures
moved back to 'liga' (version 3.002 moved them to 'dlig'). The crossbar
of 't' in the 'st' ligature was also shorted to ensure that it would not
cover a normal 't'.

The Lato-Medium currently available to the tests is version 2.015 and
lacks a mapping from U+fb06 to the 'st' ligature glyph which was only
accessible through the 'dlig' feature. Lato-Medium 3.002 added this
mapping (required for this new test) but also moved the 'fi' ligatures
to 'dlig' and some existing tests depend on the 'fi' ligatures being in
'liga'.

This tests w3c/csswg-drafts#3430

Change-Id: Iaf0ff1f99f3ec282bacb0e3cb44ede27d47fac5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1294874
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Commit-Queue: Ben Wagner <bungeman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791807}

--

wpt-commits: f76fb70a30ce97c33425b30e4654ab4b5bce4fd1
wpt-pr: 14470
xeonchen pushed a commit to xeonchen/gecko that referenced this pull request Aug 1, 2020
… for 'dlig'., a=testonly

Automatic update from web-platform-tests
Add wpt test for font feature precedence for 'dlig'.

The new Lato-Medium-Liga font is based on Lato-Medium 3.002 available
at https://github.com/latofonts/lato-source/tree/master/fonts/static/TTF
It is subset with hb-subset with "fiststfi " and the 'fi' ligatures
moved back to 'liga' (version 3.002 moved them to 'dlig'). The crossbar
of 't' in the 'st' ligature was also shorted to ensure that it would not
cover a normal 't'.

The Lato-Medium currently available to the tests is version 2.015 and
lacks a mapping from U+fb06 to the 'st' ligature glyph which was only
accessible through the 'dlig' feature. Lato-Medium 3.002 added this
mapping (required for this new test) but also moved the 'fi' ligatures
to 'dlig' and some existing tests depend on the 'fi' ligatures being in
'liga'.

This tests w3c/csswg-drafts#3430

Change-Id: Iaf0ff1f99f3ec282bacb0e3cb44ede27d47fac5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1294874
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Commit-Queue: Ben Wagner <bungeman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791807}

--

wpt-commits: f76fb70a30ce97c33425b30e4654ab4b5bce4fd1
wpt-pr: 14470
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Aug 3, 2020
… for 'dlig'., a=testonly

Automatic update from web-platform-tests
Add wpt test for font feature precedence for 'dlig'.

The new Lato-Medium-Liga font is based on Lato-Medium 3.002 available
at https://github.com/latofonts/lato-source/tree/master/fonts/static/TTF
It is subset with hb-subset with "fiststfi " and the 'fi' ligatures
moved back to 'liga' (version 3.002 moved them to 'dlig'). The crossbar
of 't' in the 'st' ligature was also shorted to ensure that it would not
cover a normal 't'.

The Lato-Medium currently available to the tests is version 2.015 and
lacks a mapping from U+fb06 to the 'st' ligature glyph which was only
accessible through the 'dlig' feature. Lato-Medium 3.002 added this
mapping (required for this new test) but also moved the 'fi' ligatures
to 'dlig' and some existing tests depend on the 'fi' ligatures being in
'liga'.

This tests w3c/csswg-drafts#3430

Change-Id: Iaf0ff1f99f3ec282bacb0e3cb44ede27d47fac5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1294874
Reviewed-by: Dominik Röttsches <drottchromium.org>
Commit-Queue: Ben Wagner <bungemanchromium.org>
Cr-Commit-Position: refs/heads/master{#791807}

--

wpt-commits: f76fb70a30ce97c33425b30e4654ab4b5bce4fd1
wpt-pr: 14470

UltraBlame original commit: bde3e6077ec1b8aa854283874cd64154787cebac
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Aug 3, 2020
… for 'dlig'., a=testonly

Automatic update from web-platform-tests
Add wpt test for font feature precedence for 'dlig'.

The new Lato-Medium-Liga font is based on Lato-Medium 3.002 available
at https://github.com/latofonts/lato-source/tree/master/fonts/static/TTF
It is subset with hb-subset with "fiststfi " and the 'fi' ligatures
moved back to 'liga' (version 3.002 moved them to 'dlig'). The crossbar
of 't' in the 'st' ligature was also shorted to ensure that it would not
cover a normal 't'.

The Lato-Medium currently available to the tests is version 2.015 and
lacks a mapping from U+fb06 to the 'st' ligature glyph which was only
accessible through the 'dlig' feature. Lato-Medium 3.002 added this
mapping (required for this new test) but also moved the 'fi' ligatures
to 'dlig' and some existing tests depend on the 'fi' ligatures being in
'liga'.

This tests w3c/csswg-drafts#3430

Change-Id: Iaf0ff1f99f3ec282bacb0e3cb44ede27d47fac5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1294874
Reviewed-by: Dominik Röttsches <drottchromium.org>
Commit-Queue: Ben Wagner <bungemanchromium.org>
Cr-Commit-Position: refs/heads/master{#791807}

--

wpt-commits: f76fb70a30ce97c33425b30e4654ab4b5bce4fd1
wpt-pr: 14470

UltraBlame original commit: bde3e6077ec1b8aa854283874cd64154787cebac
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Aug 3, 2020
… for 'dlig'., a=testonly

Automatic update from web-platform-tests
Add wpt test for font feature precedence for 'dlig'.

The new Lato-Medium-Liga font is based on Lato-Medium 3.002 available
at https://github.com/latofonts/lato-source/tree/master/fonts/static/TTF
It is subset with hb-subset with "fiststfi " and the 'fi' ligatures
moved back to 'liga' (version 3.002 moved them to 'dlig'). The crossbar
of 't' in the 'st' ligature was also shorted to ensure that it would not
cover a normal 't'.

The Lato-Medium currently available to the tests is version 2.015 and
lacks a mapping from U+fb06 to the 'st' ligature glyph which was only
accessible through the 'dlig' feature. Lato-Medium 3.002 added this
mapping (required for this new test) but also moved the 'fi' ligatures
to 'dlig' and some existing tests depend on the 'fi' ligatures being in
'liga'.

This tests w3c/csswg-drafts#3430

Change-Id: Iaf0ff1f99f3ec282bacb0e3cb44ede27d47fac5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1294874
Reviewed-by: Dominik Röttsches <drottchromium.org>
Commit-Queue: Ben Wagner <bungemanchromium.org>
Cr-Commit-Position: refs/heads/master{#791807}

--

wpt-commits: f76fb70a30ce97c33425b30e4654ab4b5bce4fd1
wpt-pr: 14470

UltraBlame original commit: bde3e6077ec1b8aa854283874cd64154787cebac
mjfroman pushed a commit to mjfroman/moz-libwebrtc-third-party that referenced this pull request Oct 14, 2022
The new Lato-Medium-Liga font is based on Lato-Medium 3.002 available
at https://github.com/latofonts/lato-source/tree/master/fonts/static/TTF
It is subset with hb-subset with "fiststfi " and the 'fi' ligatures
moved back to 'liga' (version 3.002 moved them to 'dlig'). The crossbar
of 't' in the 'st' ligature was also shorted to ensure that it would not
cover a normal 't'.

The Lato-Medium currently available to the tests is version 2.015 and
lacks a mapping from U+fb06 to the 'st' ligature glyph which was only
accessible through the 'dlig' feature. Lato-Medium 3.002 added this
mapping (required for this new test) but also moved the 'fi' ligatures
to 'dlig' and some existing tests depend on the 'fi' ligatures being in
'liga'.

This tests w3c/csswg-drafts#3430

Change-Id: Iaf0ff1f99f3ec282bacb0e3cb44ede27d47fac5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1294874
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Commit-Queue: Ben Wagner <bungeman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#791807}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6c73d460554157f1c479307f90d837f6bea8bc98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants