Author Topic: I cannot change font hinting  (Read 847 times)

0 Members and 1 Guest are viewing this topic.

Offline spectromas

  • Sr. Mitglied
  • ****
  • Posts: 459
  • Branch: Stable
  • Desktop: Awesome
  • GPU Card: ATI RV710/M92 [Radeon HD 4330/4350/4550]
  • GPU driver: free
  • Kernel: linux45-x64
  • Skill: Intermediate
I cannot change font hinting
« on: 09. April 2016, 18:18:40 »
I previously had infinality installed but I've decided to try without it. I cannot seem to change hinting to slight now though, somewhere it is being set to full but I cannot find where this is being set.

In /etc/fonts/local.conf I have:

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<!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>hintslight</const></edit>
    <edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
    <edit name="rgba" mode="assign"><const>rgb</const></edit>
  </match>

</fontconfig>

In /etc/fonts/conf.d I have the following symlinks
Code: [Select]
10-scale-bitmap-fonts.conf@
10-sub-pixel-rgb.conf@
11-lcdfilter-default.conf@
20-unhint-small-vera.conf@
30-caladea.conf@
30-carlito.conf@
30-metric-aliases-free.conf@
30-metric-aliases.conf@
30-ttf-liberation-mono.conf@
30-ttf-liberation-sans.conf@
30-ttf-liberation-serif.conf@
30-urw-aliases.conf@
30-win32-aliases.conf@
37-repl-global-free.conf@
40-nonlatin.conf@
45-latin.conf@
49-sansserif.conf@
50-user.conf@
51-local.conf@
60-latin-free.conf@
60-latin.conf@
60-ttf-droid-sans-mono-fontconfig.conf@
65-fonts-persian.conf@
65-non-latin-free.conf@
65-nonlatin.conf@
65-ttf-droid-kufi-fontconfig.conf@
65-ttf-droid-sans-fontconfig.conf@
65-ttf-droid-serif-fontconfig.conf@
66-aliases-wine-free.conf@
69-unifont.conf@
80-delicious.conf@
81-ubuntu.conf
90-synthetic.conf@

However, whenever I open lxappearance it shows hinting set to Full. If I change it to Slight it is set to Full again when I reopen.

I'm using awesome so there shouldn't be any DE configs causing this. I have tried editing gtk2 and gtk3 files and set them to hintslight but still lxappearance shows Full.

edit: not sure why this has been moved to community editions, this is just a net install with awesome installed.

Solved it, put this in ~.Xresources

Code: [Select]
Xft.autohint: 0
Xft.antialias: 1
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.dpi: 96
Xft.rgba: rgb
Xft.lcdfilter: lcddefault
« Last Edit: 09. April 2016, 20:52:32 by spectromas »