Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Text label clipped when exporting to image
Text label clipped when exporting to image [message #552677] Fri, 13 August 2010 03:27 Go to next message
Eclipse User
Originally posted by: koen.yskout.cs.kuleuven.be

Hi,

I'm not entirely sure where to post this, but I suppose this is a
GEF/Draw2d issue...

When exporting a diagram (e.g., an Ecore diagram) to an image (using the
popup menu File > Save as image file), the text labels (especially for
longer names) are clipped at the right, so that one or more letters
disappear in the final image. I see this with PNG, SVG and PDF (didn't
test the others). The diagram appears perfectly fine in the editor.

When exporting to SVG, and editing the resulting SVG in inkscape, I saw
that each label has an associated clip path that apparently is too small.

Is this a known problem, and/or is there a workaround?

(I'm using the Helios release on Ubuntu, GEF/Draw2d version 3.6.0)

Kind regards,

Koen
Re: Text label clipped when exporting to image [message #552688 is a reply to message #552677] Fri, 13 August 2010 04:02 Go to previous messageGo to next message
Eclipse User
Originally posted by: koen.yskout.cs.kuleuven.be

Apparently this problem has been reported earlier for GMF
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=315028)

This problem still seems to exists in Helios, contrary to the bug report.

Koen



On 13/08/10 09:27, Koen Yskout wrote:
> Hi,
>
> I'm not entirely sure where to post this, but I suppose this is a
> GEF/Draw2d issue...
>
> When exporting a diagram (e.g., an Ecore diagram) to an image (using the
> popup menu File > Save as image file), the text labels (especially for
> longer names) are clipped at the right, so that one or more letters
> disappear in the final image. I see this with PNG, SVG and PDF (didn't
> test the others). The diagram appears perfectly fine in the editor.
>
> When exporting to SVG, and editing the resulting SVG in inkscape, I saw
> that each label has an associated clip path that apparently is too small.
>
> Is this a known problem, and/or is there a workaround?
>
> (I'm using the Helios release on Ubuntu, GEF/Draw2d version 3.6.0)
>
> Kind regards,
>
> Koen
Re: Text label clipped when exporting to image [message #637884 is a reply to message #552688] Tue, 09 November 2010 04:04 Go to previous message
Eclipse User
Originally posted by: koen.yskout.cs.kuleuven.be

Should somebody still encounter this issue, I found out that this was
presumably caused by the configuration of my machine (Ubuntu). I had the
font resolution (System > Preference > Appearance > Fonts > Details) set
to a lower value (84 dpi) than the display resolution
($ xdpyinfo | grep resolution -> 96 dpi). Setting the font resolution
equal to the display resolution solved the problem.

Koen


On 13/08/10 10:02, Koen Yskout wrote:
> Apparently this problem has been reported earlier for GMF
> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=315028)
>
> This problem still seems to exists in Helios, contrary to the bug report.
>
> Koen
>
>
>
> On 13/08/10 09:27, Koen Yskout wrote:
>> Hi,
>>
>> I'm not entirely sure where to post this, but I suppose this is a
>> GEF/Draw2d issue...
>>
>> When exporting a diagram (e.g., an Ecore diagram) to an image (using the
>> popup menu File > Save as image file), the text labels (especially for
>> longer names) are clipped at the right, so that one or more letters
>> disappear in the final image. I see this with PNG, SVG and PDF (didn't
>> test the others). The diagram appears perfectly fine in the editor.
>>
>> When exporting to SVG, and editing the resulting SVG in inkscape, I saw
>> that each label has an associated clip path that apparently is too small.
>>
>> Is this a known problem, and/or is there a workaround?
>>
>> (I'm using the Helios release on Ubuntu, GEF/Draw2d version 3.6.0)
>>
>> Kind regards,
>>
>> Koen
>
Previous Topic:Scale factor for feedback layer
Next Topic:How/when to show popup menu on connection creation?
Goto Forum:
  


Current Time: Fri Aug 29 12:35:30 EDT 2014

Powered by FUDForum. Page generated in 0.01605 seconds