В сообщении от Wednesday 10 September 2008 14:14:30 Sergei Golovan написал(а): > tags 498408 + confirmed > thanks > > On Tue, Sep 9, 2008 at 11:25 PM, Alexander Galanin <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]:~$ echo 'canvas .s;pack .s; .s create text 50 50 -text TEST;update;puts [ .s postscript ];exit' | wish8.4 > 84.ps [EMAIL PROTECTED]:~$ echo 'canvas .s;pack .s; .s create text 50 50 -text TEST;update;puts [ .s postscript ];exit' | wish8.5 > 85.ps [EMAIL PROTECTED]:~$ 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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

