Tk Source Code

View Ticket
Login
Ticket UUID: 4dc9cdf8f11db53ab3cc59f519e692cc94cba9bc
Title: font sizing not correct for bold font on windows 10
Type: Bug Version: 8.6.10
Submitter: bll Created on: 2020-06-23 22:04:08
Subsystem: 47. Win Fonts Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2020-08-18 18:54:42
Resolution: None Closed By: nobody
    Closed on: 2020-06-24 15:01:52
Description:
Discussion from:
[https://groups.google.com/d/topic/comp.lang.tcl/XhQ19HQ40II/discussion]

The font size for the labelframe label ends up the wrong size when using
-weight bold on windows 10.  

More testing is needed to see if this is a general problem with all fonts
configured with -weight bold.
User Comments: oehhar added on 2020-06-24 16:04:11:

Sorry, back opened. Was missunderstood. Sorry, Harald


bll added on 2020-06-24 15:01:52:
Yeah, well saying something is not a bug doesn't make it not a bug.
This will always remain a bug in my book.
"that's the way it is" is not a reason, it is an excuse.

It is an unexpected behavior and should be fixed.

oehhar added on 2020-06-24 12:25:13:

The issue was clarified on the clt thread by the following post:

Not a bug. TkDefaultFont is a named font like any other, it has no special status. The system doesn't know you want your new font to based on TkDefaultFont (tip 131 is still not implemented).

When you create a font without specifying all parameters, you just get some hard coded default values. These may or may not match TkDefaultFont, which is defined differently on different platforms.

To base your font on an existing font, you can use:

font create MPbold {*}[font actual TkDefaultFont] -weight bold

Schelte.


bll added on 2020-06-23 22:27:16:
Seems to be a general problem.  I see the same disparity in font sizes 
when using labels.

The essential issue is that:
   font create MPbold -weight bold
should inherit the size from TkDefaultFont and have the same '-size'.

Attachments: