Description of problem: Since updating to cairo-1.3.4 rawhide, font rendering has somehow worsened on my computer. Some texts become garbled (as seen in the attached screenshot), and short spaces are put between words (strings), e.g. 'mass.streamfunction' been rendered as 'm ass s.str eamfunction'. Moving the cursor over the texts tends to smoothing it up, in case its garbled, and/or 're-group' the letters in situations where spaces show up in between words. This rendering issue doesn't seem to be present in the default font setup (i.e. /etc/fonts/fonts.conf), I have a local.conf (attached) in /etc/fonts (copied from FC5 fonts.conf) that seems to be causing the issue. It is perfectly reproducable, downgrading to cairo-1.3.2 does fix it for me. Version-Release number of selected component (if applicable): cairo-1.3.4 How reproducible: Always Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Created attachment 142462 [details] Screenshot showing garbled text
Created attachment 142463 [details] font config
Thanks for the report. I've sucessfully reproduced this issue on my own system. We're quite confident that this is due to a slightly modified rounding mode which was implemented in cairo 1.3.4. The problem could be worked around in nautilus, but we'll really need to fix this in cairo itself. We're now talking on the cairo list about which approach to use to solve it. I'll try to remember to post some patches here as well. -Carl
Created attachment 142645 [details] Implement _cairo_lround with floor(d+0.5) This patch should fix the bug. It's a performance regression, but likely only one that will be very noticeable on an embedded system without a hardware floating-point unit. We'll have this, (or another faster fix), in the 1.3.6 snapshot which is planned for next week. -Carl
Thanks, I can confirm the patch does indeed fix the bug. And BTW, the whole DE on my system (a PIII) feels snappier with this new version (1.3.4, even with this fix).
Deji, can you confirm that you have font hinting turned off?
(In reply to comment #6) > Deji, can you confirm that you have font hinting turned off? On the system where I took the screenshot, yes. But I see the same effect (of spaces inserted between words) on another computer with hinting turned on (i.e, slight hinting in the gnome font-preference).
Yeah, I seem to reproduce it for None and Slight hinting settings.
Fixed in cairo-1.3.6