mirror of
https://github.com/servo/servo.git
synced 2025-09-17 10:28:22 +01:00
Instead of doing font selection and text shaping in `canvas`, move this to `script`. This allows canvas to use the shared `Document` `FontContext`, which has access to web fonts. In addition, ensure that there is a font style accessible for `OffscreenCanvas` in workers. Testing: This causes a number of WPT tests to start to pass as web fonts are supported on canvas again. In addition, some start to fail as they expose other issues: - The lack of support for the `Context2D.fontStretch` property - Issues with zerosize gradient interpolation. - Differences between quoted and unquoted font family names. This seems like a timing issue with the way we are handling web fonts. The test seems to be expecting Local fonts to be available immediately (without waiting for them to load). This isn't how Servo works ATM. Seems like an issue with the test. Signed-off-by: Martin Robinson <mrobinson@igalia.com> |
||
---|---|---|
.. | ||
canvas.2d.direction.inherit.canvas.html.ini | ||
canvas.2d.direction.inherit.disconnected.canvas.html.ini | ||
canvas.2d.direction.inherit.document.html.ini | ||
canvas.2d.direction.inherit.dynamic.canvas.html.ini | ||
canvas.2d.direction.inherit.style.html.ini | ||
canvas.2d.disconnected.html.ini | ||
canvas.2d.fontStretch.condensed.html.ini | ||
canvas.2d.fontStretch.expanded.html.ini | ||
canvas.2d.fontStretch.extra-condensed.html.ini | ||
canvas.2d.fontStretch.extra-expanded.html.ini | ||
canvas.2d.fontStretch.semi-condensed.html.ini | ||
canvas.2d.fontStretch.semi-expanded.html.ini | ||
canvas.2d.fontStretch.ultra-condensed.html.ini | ||
canvas.2d.fontStretch.ultra-expanded.html.ini | ||
canvas.2d.lang.dynamic.html.ini |