Closed Bug 1836392 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 40351 - Update WOFF2 test fonts

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 40351 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/40351
Details from upstream follow.

Mok <Jasmine.Mok@sony.com> wrote:

Update WOFF2 test fonts

While attempting to use FreeType's WOFF2 support for fonts within WebKit, we saw failures with tests that load WOFF2 fonts.tests that load WOFF2 fonts.

With each of the woff2 files in the failing tests, we found that FreeType could load them if we decompressed them to a .ttf using woff2_decompress or fonttools ttLib.woff2 decompress, and then compressed them again using fonttools ttLib.woff2 compress with the --no-glyf-transform option.

GitLab FreeType bug we filed

We compressed the following fonts using fonttools ttlib.woff2 compress --no-glyf-transform, all of which FreeType was able to load:
css/WOFF2/support/datatypes-alt-255uint16-001.woff2
css/WOFF2/support/tabledata-transform-hmtx-001.woff2
css/WOFF2/support/tabledata-transform-hmtx-002.woff2
css/WOFF2/support/valid-005.woff2
css/WOFF2/support/valid-006.woff2
css/WOFF2/support/valid-007.woff2
css/WOFF2/support/valid-008.woff2

Only one test font was still unable to load using this method:
css/WOFF2/support/header-totalsfntsize-001.woff2

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

Ran 5 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 7 tests

Status Summary

Firefox

PASS: 7

Chrome

PASS: 7

Safari

PASS: 7

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f6b2856ae997 [wpt PR 40351] - Update WOFF2 test fonts, a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
You need to log in before you can comment on or make changes to this bug.