File: font-sizes.patch

package info (click to toggle)
tkcon 2%3A2.7.11-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,508 kB
  • sloc: tcl: 6,680; sh: 1,171; perl: 81; makefile: 63; exp: 23
file content (23 lines) | stat: -rw-r--r-- 1,067 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Sergei Golovan
Subject: Use points instead of pixels for font sizes.
 This helps with too small fonts on high DPI displays.
Date: Sat, 10 May 2025 13:50:03 +0300
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1105040

--- a/tkcon.tcl
+++ b/tkcon.tcl
@@ -641,10 +641,10 @@ proc ::tkcon::InitUI {title} {
     }
     set PRIV(base) $w
 
-    catch {font create tkconfixed      -family Courier -size -12}
-    catch {font create tkconfixedbold  -family Courier -size -12 -weight bold}
-    catch {font create tkconfixedlarge -family Courier -size -18 -weight bold}
-    catch {font create tkconfixedsmall -family Courier -size -8  -weight bold}
+    catch {font create tkconfixed      -family Courier -size 10}
+    catch {font create tkconfixedbold  -family Courier -size 10 -weight bold}
+    catch {font create tkconfixedlarge -family Courier -size 14 -weight bold}
+    catch {font create tkconfixedsmall -family Courier -size 7  -weight bold}
 
     set PRIV(statusbar) [set sbar [frame $w.fstatus]]
     set PRIV(tabframe)  [frame $sbar.tabs]