diff options
author | fvogel <fvogelnew1@free.fr> | 2020-01-26 20:13:36 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2020-01-26 20:13:36 (GMT) |
commit | c994407673785cf715268fc873bf2e98f57ca585 (patch) | |
tree | 53aeb8c2c2095ca0b0905a4aa589dfd397aec3f9 | |
parent | 6949e8ec85570fe55ac46b25f78e2455683078ac (diff) | |
download | tk-c994407673785cf715268fc873bf2e98f57ca585.zip tk-c994407673785cf715268fc873bf2e98f57ca585.tar.gz tk-c994407673785cf715268fc873bf2e98f57ca585.tar.bz2 |
Fix [dccd82bdc7]: ttk fonts are absolute on x11, which is very undesirable for hidpi displays
-rw-r--r-- | library/ttk/fonts.tcl | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/library/ttk/fonts.tcl b/library/ttk/fonts.tcl index a2781c6..d819973 100644 --- a/library/ttk/fonts.tcl +++ b/library/ttk/fonts.tcl @@ -53,10 +53,6 @@ # Most other toolkits use medium weight for all UI elements, # which is what we do now. # -# Font size specified in pixels on X11, not points. -# This is Theoretically Wrong, but in practice works better; using -# points leads to huge inconsistencies across different servers. -# namespace eval ttk { @@ -131,10 +127,10 @@ switch -- [tk windowingsystem] { set F(family) "Helvetica" set F(fixed) "courier" } - set F(size) -12 - set F(ttsize) -10 - set F(capsize) -14 - set F(fixedsize) -12 + set F(size) 10 + set F(ttsize) 9 + set F(capsize) 12 + set F(fixedsize) 10 font configure TkDefaultFont -family $F(family) -size $F(size) font configure TkTextFont -family $F(family) -size $F(size) |