slackware-current/source/x/fontconfig/fontconfig.hack.for.monospace.diff
Patrick J Volkerding 6e6f0c6efb Thu Nov 28 00:18:02 UTC 2024
a/tcsh-6.24.14-x86_64-1.txz:  Upgraded.
ap/sudo-1.9.16p2-x86_64-1.txz:  Upgraded.
n/netatalk-4.0.7-x86_64-2.txz:  Rebuilt.
  Fixed config file handling. Thanks to marav.
n/openldap-2.6.9-x86_64-1.txz:  Upgraded.
t/texlive-2024.240409-x86_64-3.txz:  Rebuilt.
  Move files from /etc/fonts/conf.avail to /usr/share/fontconfig/fonts.avail.
x/dejavu-fonts-ttf-2.37-noarch-7.txz:  Rebuilt.
  Move files from /etc/fonts/conf.avail to /usr/share/fontconfig/fonts.avail.
x/font-bh-ttf-1.0.4-noarch-2.txz:  Rebuilt.
  Move files from /etc/fonts/conf.avail to /usr/share/fontconfig/fonts.avail.
x/fontconfig-2.15.0-x86_64-1.txz:  Upgraded.
  Thanks to Didier Spaier for the updated patches and meson build script!
x/liberation-fonts-ttf-2.1.5-noarch-2.txz:  Rebuilt.
  Move files from /etc/fonts/conf.avail to /usr/share/fontconfig/fonts.avail.
x/noto-cjk-fonts-ttf-2.001-noarch-4.txz:  Rebuilt.
  Move files from /etc/fonts/conf.avail to /usr/share/fontconfig/fonts.avail.
x/ttf-indic-fonts-0.5.14-noarch-6.txz:  Rebuilt.
  Move files from /etc/fonts/conf.avail to /usr/share/fontconfig/fonts.avail.
x/ttf-tlwg-0.7.3-noarch-2.txz:  Rebuilt.
  Move files from /etc/fonts/conf.avail to /usr/share/fontconfig/fonts.avail.
x/wqy-zenhei-font-ttf-0.8.38_1-noarch-10.txz:  Rebuilt.
  Move files from /etc/fonts/conf.avail to /usr/share/fontconfig/fonts.avail.
xap/xlockmore-5.81-x86_64-1.txz:  Upgraded.
testing/packages/mesa-24.3.0-x86_64-1.txz:  Added.
2024-11-28 02:04:23 +01:00

59 lines
2.1 KiB
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This patch makes available config file for the Hack set of fonts (as does Solus),
and modify the preferences in 60-latin.conf
diff -rNu fontconfig-2.15.0/conf.d/45-hack.conf fontconfig-2.15.0.new/conf.d/45-hack.conf
--- fontconfig-2.15.0/conf.d/45-hack.conf 1970-01-01 01:00:00.000000000 +0100
+++ fontconfig-2.15.0.new/conf.d/45-hack.conf 2024-11-25 21:26:07.370595000 +0100
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <!-- Declare Hack a monospace font -->
+ <alias>
+ <family>Hack</family>
+ <default><family>monospace</family></default>
+ </alias>
+ <!-- if this file is put in users configuration, unset sans-serif family -->
+ <match>
+ <test compare="eq" name="family">
+ <string>Hack</string>
+ </test>
+ <test compare="eq" name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit mode="delete" name="family"/>
+ </match>
+</fontconfig>
diff -rNu fontconfig-2.15.0/conf.d/60-latin.conf fontconfig-2.15.0.new/conf.d/60-latin.conf
--- fontconfig-2.15.0/conf.d/60-latin.conf 2023-12-22 14:43:03.000000000 +0100
+++ fontconfig-2.15.0.new/conf.d/60-latin.conf 2024-11-25 22:20:55.013830171 +0100
@@ -35,8 +35,10 @@
<alias>
<family>monospace</family>
<prefer>
- <family>Noto Sans Mono</family>
+ <family>Hack</family>
<family>DejaVu Sans Mono</family>
+ <family>Noto Mono</family>
+ <family>Noto Sans Mono</family>
<family>Inconsolata</family>
<family>Andale Mono</family>
<family>Courier New</family>
diff -rNu fontconfig-2.15.0/conf.d/meson.build fontconfig-2.15.0.new/conf.d/meson.build
--- fontconfig-2.15.0/conf.d/meson.build 2023-12-22 14:43:03.000000000 +0100
+++ fontconfig-2.15.0.new/conf.d/meson.build 2024-11-25 22:56:31.015982512 +0100
@@ -24,6 +24,7 @@
'30-metric-aliases.conf',
'40-nonlatin.conf',
'45-generic.conf',
+ '45-hack.conf',
'45-latin.conf',
'48-spacing.conf',
'49-sansserif.conf',
@@ -54,6 +57,7 @@
'30-metric-aliases.conf',
'40-nonlatin.conf',
'45-generic.conf',
+ '45-hack.conf',
'45-latin.conf',
'48-spacing.conf',
'49-sansserif.conf',