Disable Anti-Aliasing for just one font or application?
John Magolske <[email protected]> Fri, 14 Apr 2023 00:17:41 -0700
| Newsgroups | gmane.linux.suse.kde |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm on Tumbleweed, KDE, and am trying to get set up where my urxvt
terminal is displaying a bitmap font without anti-aliasing.
In the "Fonts - System Settings" panel Anti-Aliasing is enabled. If I
un-check this box to disable, the fonts will no longer be anti-aliased
in the urxvt terminal, but everywhere else as well -- which is not what
I want. Is there a way to selectively disable anti-aliasing for just
urxvt or just the font I'm using there? This would be the PragmataPro
font, which does have nice bitmaps. But I'm not finding a way to
selectively turn off anti-aliasing for it.
In ~/.Xresources I have:
URxvt.font: xft:PragmataPro:pixelsize=34:antialias=false:hinting=1:hintstyle=hintmedium
In ~/.config/fontconfig/rendering-options.conf I see:
<!-- Do not use font smoothing for some monospaced fonts. -->
<!-- Liberation Mono, Courier New, Andale Mono, Monaco, etc. -->
<match target="pattern" >
<edit name="force_bw_monospace" mode="assign">
<bool>true</bool>
</edit>
</match>
...but not sure if anything can be done with that, as this is a DO NOT EDIT
generated file, which points to /etc/sysconfig/fonts-config ... so I tried
editing that file, changing the following option from "no" to "yes" :
# Force black and white rendering. Fonts will not get smoothed with
# the benefit of high contrast betwen font and background.
#
#FORCE_BW="no"
FORCE_BW="yes"
and then ran the fonts-config command, but this made no difference.
Any suggestions re how to selectively turn off anti-aliasing?
Thanks for any help,
John
--
John Magolske
http://b79.net/contact