[Pkg-tcltk-devel] Bug#498408: Bug#498408: tk8.5: 'canvas' widget postscript export produces mirrored text

Alexander Galanin gaa.nnov at mail.ru
Wed Sep 10 17:27:58 UTC 2008


В сообщении от Wednesday 10 September 2008 14:14:30 Sergei Golovan написал(а):
> tags 498408 + confirmed
> thanks
>
> On Tue, Sep 9, 2008 at 11:25 PM, Alexander Galanin <gaa.nnov at mail.ru> wrote:
> > 1. Create canvas widget
> > 2. Display any text on it
> > 3. Save canvas data as PostScript using '$canvas postsript'
> > 4. View resulting PostScript file using any viewer
> >
> > Expected results:
> > Text displayed correctly.
> >
> > What happens:
> > Text displayed morrired by both vertical and horizontal axes.
>
> Yes, this bug is reproducible if Tk is built with Xft support if font
> size is negative which means that it is given in pixels (without Xft
> fonts work fine). I'll report it upstream after some investigations.
>
> Cheers!

В сообщении от Wednesday 10 September 2008 14:14:30 вы написали:
> tags 498408 + confirmed
> thanks
>
> On Tue, Sep 9, 2008 at 11:25 PM, Alexander Galanin <gaa.nnov at mail.ru> wrote:
> > 1. Create canvas widget
> > 2. Display any text on it
> > 3. Save canvas data as PostScript using '$canvas postsript'
> > 4. View resulting PostScript file using any viewer
> >
> > Expected results:
> > Text displayed correctly.
> >
> > What happens:
> > Text displayed morrired by both vertical and horizontal axes.
>
> Yes, this bug is reproducible if Tk is built with Xft support if font
> size is negative which means that it is given in pixels (without Xft
> fonts work fine). I'll report it upstream after some investigations.

Yes, seems that negative font size is a root cause of a problem. You can use 
the following script to reproduce the problem:

al at gaa:~$ echo 'canvas .s;pack .s; .s create text 50 50 -text TEST;update;puts 
[ .s postscript ];exit' | wish8.4 > 84.ps
al at gaa:~$ echo 'canvas .s;pack .s; .s create text 50 50 -text TEST;update;puts 
[ .s postscript ];exit' | wish8.5 > 85.ps
al at gaa:~$ diff 84.ps 85.ps
5c5
< %%CreationDate: Wed Sep 10 21:24:55 2008
---
> %%CreationDate: Wed Sep 10 21:25:00 2008
10c10
< %%DocumentNeededResources: font Helvetica
---
> %%DocumentNeededResources: font DejavuSans
324c324
< %%IncludeResource: font Helvetica
---
> %%IncludeResource: font DejavuSans
334c334
< /Helvetica findfont 10 scalefont ISOEncode setfont
---
> /DejavuSans findfont -12 scalefont ISOEncode setfont
338c338
< ] 14 -0.5 0.5 0 false DrawText
---
> ] 15 -0.5 0.5 0 false DrawText

-- 
Alexander Galanin


-- 
Alexander Galanin





More information about the Pkg-tcltk-devel mailing list