viewBox-scaling-text-001.html needs changes to correctly reference Ahem font in other browsers
Categories
(Core :: SVG, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: dholbert, Assigned: dholbert)
References
Details
Attachments
(1 file)
I added a new reftest-style web-platform-test "viewBox-scaling-text-001.html" in bug 1544432, but apparently it fails on other browsers:
https://wpt.fyi/results/svg/coordinate-systems/viewBox-scaling-text-001.html?run_id=266890006&run_id=239240001&run_id=262730005&run_id=241080002
In particular, the testcase is rendering an "X" character instead of an Ahem block-glyph, so the font usage isn't getting picked up.
I'm probably missing some annotation/reference to pull in the Ahem font...
Assignee | ||
Comment 1•6 years ago
|
||
Ah -- so it looks like technically I am supposed to use fonts/ahem.css
and/or <meta flags="ahem">. But that doesn't fix the issue.
The real problem here is that Ahem doesn't have a "X̂̂̂̂̂̂" character, so Chrome/Safari/Edge seem to use a fallback font to provide that character instead. (whereas Firefox happily synthesizes an ahem-block-with-hats character)
So, I need to rewrite this test a bit. I might just morph it into a "mismatch" test, saying that a monospace X̂̂̂̂̂̂ character should look different from a blank page (i.e. it should render something).
Assignee | ||
Comment 2•6 years ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #1)
So, I need to rewrite this test a bit. I might just morph it into a "mismatch" test, saying that a monospace X̂̂̂̂̂̂ character should look different from a blank page (i.e. it should render something).
Actually, I can still do a "match" test, comparing a scaled-up 1px-viewBox-with-1px-font character against a natural-100px-viewPort-and-100px-font character.
Patch coming up.
Assignee | ||
Comment 3•6 years ago
|
||
Comment 7•6 years ago
|
||
bugherder |
Assignee | ||
Comment 8•6 years ago
•
|
||
Looks like this did the trick.
wpt.fyi shows all browsers passing the test now, except Safari which has a single fuzzy pixel in the "elbow" of a serif on the X character.
https://wpt.fyi/results/svg/coordinate-systems/viewBox-scaling-text-001.html?run_id=264950003&run_id=244960018&run_id=255520003&run_id=241100006
Description
•