You are not logged in.

#1 2017-01-30 19:28:05

ashka
Member
Registered: 2017-01-30
Posts: 4

[Solved] Monospace font rendering with font anti-aliasing disabled

Hello,

I am having an issue with font rendering in all applications where monospace fonts like Hack are jagged. I recently upgraded from Debian 8 to Archlinux, it was working well on Debian 8 (example screenshot with the font I usually use, which is proprietary). Another screenshot with Hack being used. I am using Plasma 5 with X11.

Versions:

xorg-server 1.19.1-1
xf86-video-ati 1:7.8.99.r23.gd611d21d-1
plasma-desktop 5.8.5-1
fontconfig 2.12.1-4
freetype2 2.7.1-1

~/.fonts.conf:

<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <match target="font">
  <edit name="antialias" mode="assign">
   <bool>true</bool>
  </edit>
  <edit name="hinting" mode="assign">
   <bool>true</bool>
  </edit>
  <edit name="hintstyle" mode="assign">
   <const>hintfull</const>
  </edit>
  <!-- try hintmedium if it looks bad -->
  <edit name="lcdfilter" mode="assign">
   <const>lcddefault</const>
  </edit>
  <edit name="rgba" mode="assign">
   <const>rgb</const>
  </edit>
  <!-- set to match your display -->
 </match>
 <dir>~/.fonts</dir>
</fontconfig>

/etc/fonts/conf.d:

00kde.conf
10-hinting-slight.conf
10-no-sub-pixel.conf
20-unhint-small-dejavu-sans.conf
20-unhint-small-dejavu-sans-mono.conf
20-unhint-small-dejavu-serif.conf
20-unhint-small-vera.conf
30-metric-aliases.conf
30-urw-aliases.conf
31-cantarell.conf
40-nonlatin.conf
45-latin.conf
49-sansserif.conf
50-user.conf
51-local.conf
57-dejavu-sans.conf
57-dejavu-sans-mono.conf
57-dejavu-serif.conf
60-latin.conf
65-fonts-persian.conf
65-nonlatin.conf
69-unifont.conf
70-yes-bitmaps.conf
80-delicious.conf
90-synthetic.conf

(I assume these files + ~/.fonts.conf is not changing much on fonts not having anti-aliasing applied, though.)

Thanks for any help.

Last edited by ashka (2017-02-01 11:50:01)

Offline

#2 2017-01-31 09:44:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,500

Re: [Solved] Monospace font rendering with font anti-aliasing disabled

The problem (assuming you're after a more antialiased, smoother font?) is probably hintfull.

Online

#3 2017-01-31 10:30:57

ashka
Member
Registered: 2017-01-30
Posts: 4

Re: [Solved] Monospace font rendering with font anti-aliasing disabled

seth: Unfortunately I tried all the hinting styles and the font rendering was not changed. I am after getting the same result that I used to have on my debian box that can be seen in this screenshot; this proprietary font is optimized to not have anti-aliasing applied, however the issue is happening with a "regular" font like Hack as well so it's not the font.

Offline

#4 2017-01-31 18:05:26

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [Solved] Monospace font rendering with font anti-aliasing disabled

ashka wrote:

~/.fonts.conf

Arch doesn't honour that file, use $XDG_CONFIG_HOME/.fontconfig/fonts.conf instead.

https://wiki.archlinux.org/index.php/Fo … figuration


Jin, Jîyan, Azadî

Offline

#5 2017-01-31 19:27:11

ashka
Member
Registered: 2017-01-30
Posts: 4

Re: [Solved] Monospace font rendering with font anti-aliasing disabled

Head_on_a_Stick wrote:

use $XDG_CONFIG_HOME/.fontconfig/fonts.conf instead

Thanks, I moved the file, however the issue remains. I tried all hint modes and disabling hinting with this new file.

Offline

#6 2017-01-31 19:37:21

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [Solved] Monospace font rendering with font anti-aliasing disabled


Jin, Jîyan, Azadî

Offline

#7 2017-02-01 11:49:33

ashka
Member
Registered: 2017-01-30
Posts: 4

Re: [Solved] Monospace font rendering with font anti-aliasing disabled

Head_on_a_Stick wrote:

That seems to have solved my issue, thanks a lot! I'm not sure whether this is actually what fixed it, since I couldn't log out/log in at the moment I tried, but after a reboot the font now looks good.

Offline

Board footer

Powered by FluxBB