Caleb Maclennan pushed to branch main at Arch Linux / Packaging / Packages / tk
Commits:
2301a09e by Serhii Tereshchenko at 2024-06-29T13:41:12+03:00
Add patch to fix font scaling on HiDPI displays
>From MR!1 (with style tweaks)
- - - - -
29787a4d by Caleb Maclennan at 2024-06-29T13:42:52+03:00
upgpkg: 8.6.14-4: Rebuild with font size patch
- - - - -
3 changed files:
- .SRCINFO
- PKGBUILD
- + font-sizes.diff
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = tk
pkgdesc = A windowing toolkit for use with tcl
pkgver = 8.6.14
- pkgrel = 3
+ pkgrel = 4
url = http://tcl.sourceforge.net/
arch = x86_64
license = TCL
@@ -10,6 +10,8 @@ pkgbase = tk
depends = libxft
options = staticlibs
source =
https://downloads.sourceforge.net/sourceforge/tcl/tk8.6.14-src.tar.gz
+ source = font-sizes.diff
sha256sums =
8ffdb720f47a6ca6107eac2dd877e30b0ef7fac14f3a84ebbd0b3612cee41a94
+ sha256sums =
80a64f81a002ca83475ac2e53b8c9836e1a376049989733b61687c88df8c68e5
pkgname = tk
=====================================
PKGBUILD
=====================================
@@ -3,7 +3,7 @@
pkgname=tk
pkgver=8.6.14
-pkgrel=3
+pkgrel=4
pkgdesc='A windowing toolkit for use with tcl'
arch=(x86_64)
url="http://tcl.sourceforge.net/"
@@ -13,8 +13,15 @@ depends=(tcl
libxft)
options=(staticlibs)
_archive="$pkgname$pkgver"
-source=("https://downloads.sourceforge.net/sourceforge/tcl/$_archive-src.tar.gz")
-sha256sums=('8ffdb720f47a6ca6107eac2dd877e30b0ef7fac14f3a84ebbd0b3612cee41a94')
+source=("https://downloads.sourceforge.net/sourceforge/tcl/$_archive-src.tar.gz"
+ font-sizes.diff)
+sha256sums=('8ffdb720f47a6ca6107eac2dd877e30b0ef7fac14f3a84ebbd0b3612cee41a94'
+ '80a64f81a002ca83475ac2e53b8c9836e1a376049989733b61687c88df8c68e5')
+
+prepare() {
+ cd "$_archive"
+ patch -p1 -i ../font-sizes.diff
+}
build() {
cd "$_archive/unix"
=====================================
font-sizes.diff
=====================================
@@ -0,0 +1,22 @@
+Author: Sergei Golovan
+Description: Patch sets the default font sizes for X11 in points instead of
+ pixels. This helps to get reasonable font sizes for high DPI displays.
+Last-Modified: Sat, 24 Mar 2018 16:14:33 +0300
+
+--- a/library/ttk/fonts.tcl
++++ b/library/ttk/fonts.tcl
+@@ -128,10 +128,10 @@
+ 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)
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/tk/-/compare/79ee2e62fcbfab6ba3494ba5f8322de74c7295ef...29787a4d2dd13e4ded5a653293c44f8e690350bc
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/tk/-/compare/79ee2e62fcbfab6ba3494ba5f8322de74c7295ef...29787a4d2dd13e4ded5a653293c44f8e690350bc
You're receiving this email because of your account on gitlab.archlinux.org.