Open Bug 1912463 Opened 6 months ago Updated 6 days ago

Emoji is blurred/jagged on a bugzilla comment

Categories

(Core :: Graphics: Canvas2D, defect)

defect

Tracking

()

Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- affected
firefox129 --- wontfix
firefox130 --- wontfix
firefox131 --- fix-optional

People

(Reporter: mayankleoboy1, Unassigned, NeedInfo)

References

(Regression, )

Details

(Keywords: regression)

Attachments

(2 files)

Go to https://bugzilla.mozilla.org/show_bug.cgi?id=1912431#c0
pinch-zoom on the emoji

AR: The emoji is blurred/jagged
ER: Not so

Bisection:
Bug 1875670 - Add a cache for rasterized COLRv1 glyphs, because fully redrawing them on each use can be expensive. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D200139

I am filing this separately from bug 1912431, but feel free to dupe.

Flags: needinfo?(jfkthame)
Attached file about:support
Attached image bug.png

Set release status flags based on info from the regressing bug 1875670

FWIW, patch from bug 1912431 does not fix this issue.

Severity: -- → S3

This looks like it's the same issue as bug 1908261.

Flags: needinfo?(jfkthame)
See Also: → 1908261

This isn't exactly the same issue as bug 1908261, as it is specifically about the pinch-zoom case (which serves to exaggerate any blurriness of the emoji).

Still, the patch that recently landed in bug 1908261 has significantly improved things here, as it increased the resolution of the cached rendering of the emoji. It won't be entirely as sharp as the rendering before the cache was added, as we were previously rendering all the components of the color glyph directly to the (zoomed) destination and so the shapes were re-rasterized at full resolution (like their surrounding text).

Now, however, we use a cached rasterization that is based on the original (un-zoomed) size, and so it will inevitably be a bit blurry when zoomed.

Still, the higher-res cache provided by bug 1908261 makes the result reasonably acceptable, I think. We can't revert to uncached "direct" rendering of these emoji because of the performance cost of individually drawing so many shapes when a page uses large numbers of emoji.

I checked, and the emojis look much improved now.
Not sure if this bug should be closed or kept open?
(ni? you just for this question)

Flags: needinfo?(jfkthame)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: