After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 700664 - font metrics are misinterpreted in gnome goocanvas
font metrics are misinterpreted in gnome goocanvas
Status: RESOLVED DUPLICATE of bug 700592
Product: pango
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2013-05-19 21:28 UTC by Juergen Weigert
Modified: 2015-05-15 00:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
a python script exhibiting the issue. (1.48 KB, text/x-python)
2013-05-19 21:28 UTC, Juergen Weigert
Details
Screenshot showing overlapping glyphs and whitespace issues with scale=2 (82.74 KB, image/png)
2013-05-19 21:31 UTC, Juergen Weigert
Details
example ported to gi-bindings (1.63 KB, text/x-python)
2013-10-23 18:43 UTC, Dominique Leuenberger
Details

Description Juergen Weigert 2013-05-19 21:28:06 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 '+'.
Comment 1 Juergen Weigert 2013-05-19 21:31:17 UTC
Created attachment 244738 [details]
Screenshot showing overlapping glyphs and whitespace issues with scale=2
Comment 2 Dominique Leuenberger 2013-10-23 18:43:26 UTC
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
Comment 3 André Klapper 2014-08-02 12:24:20 UTC
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.
Comment 4 Dominique Leuenberger 2014-09-21 21:03:01 UTC
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.
Comment 5 Damon Chaplin 2014-09-22 00:01:53 UTC
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.)
Comment 6 Behdad Esfahbod 2015-05-15 00:50:45 UTC
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 ***