| Ticket UUID: | 1548868 | |||
| Title: | Bug in [font actual] doesn't reflect [tk scaling] | |||
| Type: | Bug | Version: | obsolete: 8.5a7 | |
| Submitter: | nobody | Created on: | 2006-08-29 20:25:30 | |
| Subsystem: | 44. Generic Fonts | Assigned To: | fvogel | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2023-11-25 20:57:28 | |
| Resolution: | Works For Me | Closed By: | fvogel | |
| Closed on: | 2023-11-25 20:57:28 | |||
| Description: |
Text of the default font appears in a different size than text that has been tagged and assigned the default font with "-weight normal". The bug is can be reproduced following these steps: hat:/home/steve> wish % text .t .t % .t insert 1.0 "Line one\n" % .t insert 2.0 "Line two\n" % .t tag add weighted 1.0 1.8 % .t tag configure weighted -font "[font actual [.t cget -font]] -weight normal" % pack .t An example screencap is available here: http://azul7.net/~steve/mystery.png Submitted by Steve Havelka ([email protected]) | |||
| User Comments: |
fvogel added on 2023-11-25 20:57:28:
This does not happen anymore. I first thought the fix for [61550f38bf] resolved this one too, but it was already working before [6f485577] therefore something else eliminated this issue. anonymous (claiming to be [email protected]) added on 2016-07-04 15:39:04: This might have something to do with this (from the manual page): "For compatibility, an XLFD always chooses a font of the specified pixel size (not point size); although this interpretation is not strictly correct, all existing applications using XLFDs assumed that one “point” was in fact one pixel and would display incorrectly (generally larger) if the correct size font were actually used." fvogelnew1 added on 2007-10-08 01:40:10: Logged In: YES
user_id=1245417
Originator: NO
Similar (if not identical) issue on Linux with Tcl/Tk 8.5a7 is with the two liner:
set myfont "-family LucidaTypewriter -size 9 -weight normal -slant
for {set i 1} {$i<6} {incr i} {puts [set myfont [font actual $myfont]]}
The output of the for loop is:
-family LucidaTypewriter -size 12 -weight normal -slant roman -underline 0 -overstrike 0
-family LucidaTypewriter -size 14 -weight normal -slant roman -underline 0 -overstrike 0
-family LucidaTypewriter -size 19 -weight normal -slant roman -underline 0 -overstrike 0
-family LucidaTypewriter -size 24 -weight normal -slant roman -underline 0 -overstrike 0
-family LucidaTypewriter -size 24 -weight normal -slant roman -underline 0 -overstrike 0
Observe how the -size increases just by applying [font actual ] repeatedly.
Comments?
Francois
| |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki