Hacker News new | ask | show | jobs
by bad_username 626 days ago
Am I the last person on the Earth to turn off font smoothing completely and use fonts perfectly hinted to the pixel grid? Can't get any sharper than that, and really helps with eye strain.
4 comments

No, at least that's what I'm going for as well, at least for monospace fonts in editors and such. I can't stand the slightly blurry look of antialiased fonts and absolutely prefer the crisp edges of traditional bitmap fonts.
I do this only for specific fonts at specific sizes.
Do you have a working config for this on Linux?
Try this:

  $ cat $HOME/.config/fontconfig/fonts.conf 
  <match target="font">
      <edit name="rgba" mode="assign">
          <const>none</const>
      </edit>
      <test qual="any" name="size" compare="more">
          <double>1</double>
      </test>
      <test qual="any" name="size" compare="less">
          <double>22</double>
      </test>
      <edit name="antialias" mode="assign">
          <bool>false</bool>
      </edit>
      <edit name="hintstyle" mode="assign">
          <const>hintfull</const>
      </edit>
  </match>
This is a regular control panel setting in Linux Mint (Cinnamon). Not sure about other distros.