GNOME Bugzilla – Bug 700664
font metrics are misinterpreted in gnome goocanvas
Last modified: 2015-05-15 00:50:45 UTC
Created attachment 244737 [details] a python script exhibiting the issue. The attached python script is my first attempt to use goocanvas. I may be overlooking something obvious, but when rendering the String "TooT, World" I see bad inter character spacing (kerning?) in various places. Depending on the canvas scale, the glyphs exhibit overlap or even swap places (',' before 'T'). I am using a default, 'sans' and 'Arial' fonts. All fonts are affected. The issue might be font-independent. Kerning should be independant of canvas scale. To see the effect of different canvas scaling, press '-' or '+'.
Created attachment 244738 [details] Screenshot showing overlapping glyphs and whitespace issues with scale=2
Created attachment 257950 [details] example ported to gi-bindings Same patch, but against gi.repository GooCanvas, Gtk and cairo. the issue remains. except now it's with the 'maintained' variant; tested with version 2.0.1
The last Pygoocanvas code changes took place in 2010: https://git.gnome.org/browse/archive/pygoocanvas/log/ This project is not under active development anymore. This project has been recently archived in GNOME Git. It is currently unlikely that there will be any further active development. Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this bug report in the future if anyone takes the responsibility for active development again.
Andre, sorry, I missed your update. Have you seen comment#2, stating that the same issue exists when using the gi.repository GooCanvas bindings? I'm changing component to goocancas directly.
GooCanvas has nothing to do with text layout - that is all done by PangoLayout. I'll move this there to see what they say. (I have noticed problems like this since GooCanvas was created. I thought they were fixed at one point, but it seems not.)
Should be fixed now. Please test. commit 061633100aa120262db2acf9486bb590b2e0862e Author: Behdad Esfahbod <behdad@behdad.org> Date: Mon May 11 17:16:40 2015 -0700 Fix PangoFc with non-identity scale matrix (again!) https://bugzilla.gnome.org/show_bug.cgi?id=700592 *** This bug has been marked as a duplicate of bug 700592 ***