How can I turn off anti-aliasing for xterm / rxvt-unicode?

7,873

Usually xterm does not apply antialiasing to fonts. However, I think some windowmanagers like compiz generally apply antialias to windows, hence your problem would be your window manager, not your terminal emulator. Try checking your window manager for antialiasing and try disabling it.

Share:
7,873

Related videos on Youtube

sleske
Author by

sleske

Software developer, mathematician SOreadytohelp

Updated on September 18, 2022

Comments

  • sleske
    sleske over 1 year

    My system (Debian squeeze) uses anti-aliasing for fonts, which is fine for the most part. However, I would like to disable it for terminal fonts in xterm and urxvt (rxvt-unicode), and can't get that to work.

    I tried using antialias=false, like explained e.g. in the urxvt man page (search for "antialias"), but it does not have any effect:

    urxvt -fn "xft:Deja Vu Sans Mono:pixelsize=10:antialias=false"
    

    I get exactly the same font rendering, no matter if I use antialias=true or false. The font face and size I specify do have an effect, so urxvt apparently processes the option.

    Same result with xterm (using -fa), or when putting Xft*antialias: false into my X resources (as proposed in How can I turn off font-antialiasing only for gnome-terminal, but not for other applications?).

    What am I doing wrong? Is there some other setting?

    Edit:

    Just found out that I can disable anti-aliasing in /etc/fonts/local.conf:

    <match target="font">
      <edit name="antialias" mode="assign">
        <bool>false</bool>
      </edit>
    </match>
    

    Still, I don't understand why antialias=false is not respected in a font spec.

  • sleske
    sleske about 9 years
    This does not answer the question - the question is how to disable antialiasing, not how to enable it.
  • sleske
    sleske about 9 years
    I don't think a window manager can apply antialiasing - antialiasing must happen during rasterization. The window manager only gets the rasterized result, by then it's too late. Do you have any sources for your claim?
  • user1129682
    user1129682 almost 9 years
    I'm sure I had one back then. After three years, this is probably worthless. Antialiasing needn't happen during rasterization.