SVG in OpenType is rendered slightly too small
Categories
(Core :: SVG, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox97 | --- | verified |
People
(Reporter: jan.boesenberg, Assigned: jfkthame)
References
Details
(Keywords: fonts)
Attachments
(3 files, 1 obsolete file)
Reporter | ||
Comment 1•8 years ago
|
||
Reporter | ||
Comment 2•8 years ago
|
||
Updated•7 years ago
|
Assignee | ||
Comment 3•3 years ago
|
||
This fixes the mis-sized rendering of SVG glyphs when unitsPerEm is not 1000, as in the example here;
thia also affects some real-world Adobe fonts, e.g. https://fonts.adobe.com/fonts/tipoteca-series#fonts-section
Updated•3 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
The testcase has some "fuzz" on macOS and Windows because the black non-SVG glyph gets antialiasing,
which shows slightly around the edges of the (non-antialiased) SVG glyph that is painted on top.
A "real" failure, however, would show strips of solid black, so it would have greater differences
and affect more pixels.
Depends on D133641
Comment 6•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/11dabfd15323
https://hg.mozilla.org/mozilla-central/rev/cbfbd2bac317
Comment 7•3 years ago
|
||
Great to see this fixed, thank you!
Just to note, in addition to the several color fonts in the Tipoteca Series that Jonathan mentioned (Filicudi Color Pride, Filicudi Color TV, etc), Noto Emoji SVG (https://github.com/adobe-fonts/noto-emoji-svg) also a non-100 UPM (2048).
So Firefox, before this fix, was rendering Noto Emoji SVG too small, and Filicudi Color (UPM of 833) too large.
Updated•3 years ago
|
Comment 8•3 years ago
|
||
I've reproduced this bug using the STR from comment 0, on an affected build, Nightly 2021-12-14.
The bug is verified as fixed on latest Beta 97.0b4, under macOS 11, Ubuntu 18.04 x64, Win 10 x64.
Description
•