| Ticket UUID: | 2107938 | |||
| Title: | Mirrored text if Xft is used | |||
| Type: | Bug | Version: | obsolete: 8.6a4 | |
| Submitter: | teopetuk | Created on: | 2008-09-12 19:11:24 | |
| Subsystem: | 06. Canvas Postscript | Assigned To: | dkf | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2008-12-22 17:16:00 | |
| Resolution: | Fixed | Closed By: | dkf | |
| Closed on: | 2008-12-22 10:16:00 | |||
| Description: |
Hi! Appears that if Xft-enabled fonts are used and font size is negative (gives size in pixels, not in points) then canvas postscript prints text inverted (rotated at 180 degrees). The problem is that Tk_PostscriptFontName() is expected to return font size in points, but it returns just TkFont size attribute which may be negative. The attached patch converts negative size attribute to positive, so canvas postscript becomes working again. | |||
| User Comments: |
dkf added on 2008-12-22 17:16:00:
Bother, I'd forgotten that I'd added the 'tkwin' field. Now builds right. dgp added on 2008-12-22 09:04:27: thanks for the effort, but the build is now broken: /local/home/dgp/cvs/tk8.5/unix/../generic/tkCanvPs.c: In function ‘Tk_PostscriptFont’: /local/home/dgp/cvs/tk8.5/unix/../generic/tkCanvPs.c:758: warning: implicit declaration of function ‘TkFontGetPoints’ /local/home/dgp/cvs/tk8.5/unix/../generic/tkCanvPs.c:758: error: ‘TkPostscriptInfo’ has no member named ‘tkwin’ Please fix or revert. dkf added on 2008-12-22 08:45:05: Done (well, the part that was the fix of this bug...) dgp added on 2008-12-22 03:33:22: backport for 8.5.6 ? dkf added on 2008-12-05 17:30:16: Fixed now. Also got rid of the stupidity which had us distributing a PS prolog which wasn't used, and made rotated text print properly (well, assuming it gets mapped to a font that the printer understands correctly, which is a whole separate issue.) teopetuk added on 2008-09-13 02:11:26: File Added - 293177: fontsize.diff | |||
Attachments:
- fontsize.diff [download] added by teopetuk on 2008-09-13 02:11:26. [details]
