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 573261 - PDF: Letters above each other
PDF: Letters above each other
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: exports
devel
Other Linux
: Normal normal
: 0.97.3
Assigned To: Dia maintainers
Dia maintainers
: 584551 588518 589322 597036 598776 616716 705164 729856 (view as bug list)
Depends on: 341481
Blocks:
 
 
Reported: 2009-02-26 12:02 UTC by alexander
Modified: 2014-05-09 22:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The "master" Dia diagram (6.85 KB, application/x-dia-diagram)
2009-02-26 12:02 UTC, alexander
Details
Generated PDF (30.45 KB, application/pdf)
2009-02-26 12:05 UTC, alexander
Details
Screenshot of Evince, displaying the generated PDF file (179.26 KB, image/png)
2009-02-26 12:07 UTC, alexander
Details

Description alexander 2009-02-26 12:02:00 UTC
Please review the attached files, which show a Dia diagram generated with SVN r4297.

As you can see there, some of the letters are misplaced.

In the network cloud, it should read "Rieter\nWAN" (linebreak after Rieter). But the "W" and "A" are above each other.

In the lower left hand corner, it should read "Workgroup Server". But the "W" and the "o" and also the "r" (I think) overlap.

Upper right hand side: It should read "TcEnt" (under the box "DRE" and to the right side of the box "FMS". The label should be (more or less) centered under "DRE". It's displaced to the right. And the "T" and "c" overlap.

Lower right hand side: To the right of "msqlora", it should read "Tc\nEnt". The "T" and "c" overlap and are too far to the right. "Tc" should be centered above "Ent". And  there's also a box which should read "ORA" (under the "winds00"). "R" and "A" overlap. "R" should be in the middle of "O" and "A" ("O" and "A" are at the correct spots).

Using Dia SVN r4297 on ArchLinux. I compiled Dia SVN by myself on this system.
Comment 1 alexander 2009-02-26 12:02:43 UTC
Created attachment 129559 [details]
The "master" Dia diagram
Comment 2 alexander 2009-02-26 12:05:09 UTC
Created attachment 129560 [details]
Generated PDF

It's been generated by doing File → Export... → "Cairo Portable Document Format (*.pdf").

I get the same bad output if I do File → Print → Print to File.
Comment 3 alexander 2009-02-26 12:07:49 UTC
Created attachment 129561 [details]
Screenshot of Evince, displaying the generated PDF file

In the screenshot, I rotated the PDF. But also in the original portrait format, it's bad.
Comment 4 Hans Breuer 2009-03-08 16:16:48 UTC
Confirmed, when using "sans" on my Linux box. Changing the font to e.g. Arial makes the effect go away, which lets me assume this is caused by some pango/cairo kerning problem as described in bug #341481.
Unfortunately I did not find a way to code around the issue yet.
Comment 5 Hans Breuer 2009-03-28 13:42:40 UTC
2009-03-28  Hans Breuer  <hans@breuer.org>

	* plug-ins/cairo/diacairo-renderer.c : apparently I've found a 
	workaround for pango bug #341481. Or maybe bug #573261 always we mine.
Comment 6 Hans Breuer 2009-09-19 20:06:28 UTC
Given the number of duplicates reported the workaround seems to be not complete. Reopening for reference.
Comment 7 Hans Breuer 2009-09-19 20:07:45 UTC
*** Bug 584551 has been marked as a duplicate of this bug. ***
Comment 8 Hans Breuer 2009-09-19 20:10:33 UTC
*** Bug 589322 has been marked as a duplicate of this bug. ***
Comment 9 Hans Breuer 2009-09-19 20:11:34 UTC
*** Bug 588518 has been marked as a duplicate of this bug. ***
Comment 10 Hans Breuer 2009-10-01 20:16:46 UTC
*** Bug 597036 has been marked as a duplicate of this bug. ***
Comment 11 Hans Breuer 2009-10-17 18:37:32 UTC
*** Bug 598776 has been marked as a duplicate of this bug. ***
Comment 12 Hans Breuer 2009-11-22 19:42:17 UTC
Please update to Pango-1.26.1 or later, for me the following patch fixes the issue: 
http://git.gnome.org/cgit/pango/commit/?id=d9abcaf566e9cd7f702c98958f99f90fd53b4c0b
Comment 13 Antoine Jacoutot 2009-11-22 19:44:14 UTC
I confirm the new pango fixes this issue.
Comment 14 Hans Breuer 2010-05-15 19:05:49 UTC
*** Bug 616716 has been marked as a duplicate of this bug. ***
Comment 15 Hans Breuer 2013-07-30 19:11:00 UTC
*** Bug 705164 has been marked as a duplicate of this bug. ***
Comment 16 Jorge Vallecillo 2013-08-01 14:17:49 UTC
*** Bug 705164 has been marked as a duplicate of this bug. ***
Comment 17 Hans Breuer 2014-02-14 15:39:29 UTC
Pango 1.32 with HarfBuzz reintroduced the issue, see bug 700592. Although for me the latter were not overlapping but had huge gaps in between. See https://mail.gnome.org/archives/dia-list/2014-February/msg00032.html for the discussion.
Comment 18 Hans Breuer 2014-03-02 10:27:06 UTC
Supposed to be fixed once and for all by:
https://git.gnome.org/browse/dia/commit/?id=226fb87f34d4b49e700fb9cb340b49b67fd59540
Comment 19 Hans Breuer 2014-03-08 11:16:40 UTC
cherry-picked to dia-0-97 branch:
https://git.gnome.org/browse/dia/commit/?h=dia-0-97&id=c807c3012a4b1f35b87de1972b006a13b36a2a86
Comment 20 Hans Breuer 2014-05-09 22:01:26 UTC
*** Bug 729856 has been marked as a duplicate of this bug. ***