Package: release.debian.org
Severity: normal
X-Debbugs-Cc: tk...@packages.debian.org
Control: affects -1 + src:tkcon
User: release.debian....@packages.debian.org
Usertags: unblock

Please unblock package tkcon

[ Reason ]
The new version fixes a bug with too small fonts on High DPI displays
(see [1]). It specifies the initial font sizes in points instead of
pixels.

[ Impact ]
The package currently in trixie specifies initilal font sizes in pixels,
which make them too small on high DPI diplays. One can manually adjust
the fonts using a keyboard shortcut, but doing this every time Tkcon
starts is a bit annoying.

[ Tests ]
There's no automated tests, I've tested the change manually on both
high and low DPI displays.
 
[ Risks ]
The changes are trivial, the package is a leaf package, I don't expect
any adverse effects.

[ Checklist ]
  [+] all changes are documented in the d/changelog
  [+] I reviewed all changes and I approve them
  [+] attach debdiff against the package in testing

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1105040

unblock tkcon/2:2.7.11-6
diff -Nru tkcon-2.7.11/debian/changelog tkcon-2.7.11/debian/changelog
--- tkcon-2.7.11/debian/changelog       2025-03-22 16:27:56.000000000 +0300
+++ tkcon-2.7.11/debian/changelog       2025-05-10 13:50:43.000000000 +0300
@@ -1,3 +1,10 @@
+tkcon (2:2.7.11-6) unstable; urgency=medium
+
+  * Fix setting font sizes for high DPI displays by specifying them using
+    points instead of pixels (closes: #1105040).
+
+ -- Sergei Golovan <sgolo...@debian.org>  Sat, 10 May 2025 13:50:43 +0300
+
 tkcon (2:2.7.11-5) unstable; urgency=medium
 
   * Fix a typo in the patch for support of Tcl 9.
diff -Nru tkcon-2.7.11/debian/patches/font-sizes.patch 
tkcon-2.7.11/debian/patches/font-sizes.patch
--- tkcon-2.7.11/debian/patches/font-sizes.patch        1970-01-01 
03:00:00.000000000 +0300
+++ tkcon-2.7.11/debian/patches/font-sizes.patch        2025-05-10 
13:50:43.000000000 +0300
@@ -0,0 +1,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]
diff -Nru tkcon-2.7.11/debian/patches/series tkcon-2.7.11/debian/patches/series
--- tkcon-2.7.11/debian/patches/series  2025-03-22 16:27:56.000000000 +0300
+++ tkcon-2.7.11/debian/patches/series  2025-05-10 13:50:43.000000000 +0300
@@ -1,2 +1,2 @@
-# Nothing here
 tk9.patch
+font-sizes.patch

Reply via email to