diff options
| author | Mica White <botahamec@outlook.com> | 2026-09-14 12:33:31 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2026-09-14 12:33:31 -0400 |
| commit | 04b911e4c93003712e492a5f2e9da10ae9d76430 (patch) | |
| tree | 838e62853fbf926dd324786e984f037a4cb16e36 /.config/fontconfig/fonts.conf | |
| parent | 7ac6f23519f869cb85fb360c1a2b8f2cef12ead7 (diff) | |
Add newsraft
Diffstat (limited to '.config/fontconfig/fonts.conf')
| -rw-r--r-- | .config/fontconfig/fonts.conf | 89 |
1 files changed, 83 insertions, 6 deletions
diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf index 69b93f5..5a33550 100644 --- a/.config/fontconfig/fonts.conf +++ b/.config/fontconfig/fonts.conf @@ -1,8 +1,85 @@ -<?xml version="1.0"?> -<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd"> +<?xml version='1.0'?> +<!DOCTYPE fontconfig SYSTEM 'urn:fontconfig:fonts.dtd'> <fontconfig> - <alias> - <family>monospace</family> - <prefer><family>Fira Code</family></prefer> - </alias> + <!-- + Artificial oblique for fonts without an italic or oblique version + --> + <match target="font"> + <!-- check to see if the font is roman --> + <test name="slant"> + <const>roman</const> + </test> + <!-- check to see if the pattern requested non-roman --> + <test compare="not_eq" name="slant" target="pattern"> + <const>roman</const> + </test> + <!-- multiply the matrix to slant the font --> + <edit mode="assign" name="matrix"> + <times> + <name>matrix</name> + <matrix> + <double>1</double> + <double>0.2</double> + <double>0</double> + <double>1</double> + </matrix> + </times> + </edit> + <!-- pretend the font is oblique now --> + <edit mode="assign" name="slant"> + <const>oblique</const> + </edit> + <!-- and disable embedded bitmaps for artificial oblique --> + <edit mode="assign" name="embeddedbitmap"> + <bool>false</bool> + </edit> + </match> + <!-- + Synthetic emboldening for fonts that do not have bold face available + --> + <match target="font"> + <!-- check to see if the weight in the font is less than medium which possibly need emboldening --> + <test compare="less_eq" name="weight"> + <const>medium</const> + </test> + <!-- check to see if the pattern requests bold --> + <test compare="more_eq" name="weight" target="pattern"> + <const>bold</const> + </test> + <!-- + set the embolden flag + needed for applications using cairo, e.g. gucharmap, gedit, ... + --> + <edit mode="assign" name="embolden"> + <bool>true</bool> + </edit> + <!-- + set weight to bold + needed for applications using Xft directly, e.g. Firefox, ... + --> + <edit mode="assign" name="weight"> + <const>bold</const> + </edit> + </match> + <match target="font"> + <edit mode="assign" name="hinting"> + <bool>true</bool> + </edit> + </match> + <match target="font"> + <edit mode="assign" name="hintstyle"> + <const>hintfull</const> + </edit> + </match> + <match target="font"> + <edit mode="assign" name="rgba"> + <const>rgb</const> + </edit> + </match> + <dir>~/.local/share/fonts</dir> + <match target="font"> + <edit mode="assign" name="antialias"> + <bool>true</bool> + </edit> + </match> </fontconfig> |
