From: SourceForge.net <no...@so...> - 2009-05-13 19:16:14
|
Bugs item #2791352, was opened at 2009-05-13 20:15 Message generated for change (Comment added) made by patthoyts You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=2791352&group_id=12997 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 46. Unix Fonts Group: current: 8.6b1 Status: Open Resolution: None Priority: 7 Private: No Submitted By: Pat Thoyts (patthoyts) Assigned to: Pat Thoyts (patthoyts) Summary: font specification error Initial Comment: As raised on c.l.t by Adrian Davis: It seems there may be a (minor) bug setting the font for a (Tk/ttk) label widget, which causes an "expected integer ..." error. It appears to happen only in a very specific circumstance... When all of the following are true:- *) The "-family" option name contains a hyphen/dash. *) The "-family" option appears first in the list. *) All of the "-size", "-weight", "-slant", "-underline" and "-overstrike" options are specified. For Example... .mylabel configure -font {-family sans-serif -size 12 -weight bold -slant roman -underline 0 -overstrike 0} ...Doesn't work. But... .mylabel configure -font {-family times -size 12 -weight bold -slant roman -underline 0 -overstrike 0} .mylabel configure -font {-size 12 -family sans-serif -weight bold -slant roman -underline 0 -overstrike 0} .mylabel configure -font {-family sans-serif -size 12 -weight bold -slant roman -underline 0} ...All work Ok. I found this using Tcl/Tk 8.5.7 on Solaris 10. This has been reproduced under WinXP using ActiveTcl 8.5.3 and Ubuntu using ActiveTcl 8.6b1.1 (See thread: http://groups.google.co.uk/group/comp.lang.tcl/browse_thread/thread/aa2a4f206c139c42?hl=en#) WORKAROUND: Make sure that the "-family" option doesn't appear first in the list. Best Regards, =Adrian= ---------------------------------------------------------------------- >Comment By: Pat Thoyts (patthoyts) Date: 2009-05-13 20:16 Message: Occurs on Windows as well. The following test will reveal the issue: test font-4.12 "font command: bug #2791352" -body { font actual {-family sans-serif -size 12 -weight bold -slant roman -underline 0 -overstrike 0} } -returnCodes ok -match glob -result * ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=2791352&group_id=12997 |