GNOME Bugzilla – Bug 120337
exported EPS diagrams get wrong font metrics
Last modified: 2019-03-20 11:08:08 UTC
I have a small UML diagram, in 0.91. In DIA display, the UML class box has a nice bit of margin around the method name+signature (the longest, hence width defining line). In the exported EPS, the margin is zero, or even slightly negative: the UML class box intersects the last letter of the return type of the method. I'm suprised at this, as I was under the impression that 0.91 beziered all fonts, so it should be able to precisely recreate onscreen diagram. workaround for now is to pad names with spaces.
I'm quite surprised too. We do indeed bezier the characters, much to the annoyance of PDF users, to avoid that problem. Can you attach an example diagram?
Created attachment 19418 [details] dia file: different font metrics in eps export than onscreen
> bezier the characters, much to the annoyance of PDF users, Heh. bug 111364 by yours truly
Ah, I see. That's because the EPS output doesn't do the tweaking of the scale that screen output does. The screen font size is automatically adjusted for each string to avoid overruns like this, but we don't do that for EPS. In fact, I will have to check on the kerning capabilities of Pango. That'd be a much better way to adjust the width.
*** Bug 133725 has been marked as a duplicate of this bug. ***
I believe that I am seeing this bug. Interestingly, the problem is absent (or at least much less severe) when exporting an EPS with Latin1 fonts. I created a diagram with a single UML Class object and exported it as both Pango-EPS and Latin1-EPS files. The bounding box (which roughly corresponds to the size of the Class object) was exactly the same in both files. This bug also affects printing. Might I suggest that its priority should be raised?
*** Bug 317160 has been marked as a duplicate of this bug. ***
still present in 0.94 , setting version example dia attachment #52630 [details] example eps export: attachment #52631 [details] correct png export attachment #52632 [details]
similar problem in 0.97, Text is printed in eps losing the original orientation. I make the text centered in a object, but when I export it to eps, it randomly lose orientation.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/dia/issues/89.