synthetic-bold effect should not increase the advance of zero-width glyphs
Categories
(Core :: Layout: Text and Fonts, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: jfkthame, Assigned: jfkthame)
Details
Attachments
(2 files)
Bug 1611610 - Don't increase glyph advance for synthetic bold if the glyph is zero-width. r=lsalzman
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
Generally, when synthetic bold is applied (because font-weight
calls for bold, but no actual bold face is available for the font family in use), glyph advances are increased to account for the "fattening" of the glyphs.
However, for zero-width glyphs we shouldn't do this; if a glyph has an advance width of zero, it is expected that it will not result in any extra space between its neighbors, and we should maintain that behavior even when synthetic bold is involved.
Assignee | ||
Comment 1•6 years ago
|
||
(Note that this is specific to platforms where we use gecko's built-in "synthetic bold by multi-striking" implementation; where we're using a platform font backend's synthetic bold (such as DirectWrite "simulations") we simply use whatever glyph advances it gives us.)
Assignee | ||
Comment 2•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 3•6 years ago
|
||
Depends on D61065
Assignee | ||
Comment 4•6 years ago
|
||
The above reftest fails on macOS without the patch, due to this bug; I think this may currently be our only affected platform. (Checking on tryserver whether the test passes as expected everywhere else.)
Comment 6•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ed3330607ac3
https://hg.mozilla.org/mozilla-central/rev/66c0610ae7ce
Description
•