I'm not immediately seeing this on a system where I recently upgraded to Ubuntu 24.04 beta (not sure if that system repro'd the issue beforehand or not), so it's conceivable that Ubuntu has a system-level fix for this in version 24.04.
Bug 1891877 Comment 6 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
I'm not able to reproduce this[1] on a system where I recently upgraded to Ubuntu 24.04 beta (not sure if that system repro'd the issue beforehand or not), so it's conceivable that Ubuntu has a system-level fix for this in version 24.04. [1] "not able to reproduce" = `fantasy` just renders with a sans-serif font, which produces readable text.