You are not logged in.

#1 2013-03-07 20:09:13

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,440
Website

Recovering freetype2-infinality junkie - freetype2 renders weird

I recently had to uninstall freetype2-infinality due to some oddities in gimp.  Now that I am using vanilla freetype2 my OS fonts look all messed up.  Nothing exotic on my system: xfce4/xfwm.  Monitor is an ASUS VS247 running @ 1920x1080.

% xdpyinfo | grep -B1 dot
  dimensions:    1920x1080 pixels (506x285 millimeters)
  resolution:    96x96 dots per inch
% xrandr --query                               
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 32767 x 32767
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 521mm x 293mm
   1920x1080      60.0*+
...

Have experimented with hinting and have AA enabled using 'droid sans/10' without messing with dpi override.  Not too sure what to do to make things look more visually pleasing.  Advice is appreciated.

Last edited by graysky (2013-03-07 20:24:11)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2013-03-07 21:28:48

doug piston
Member
From: Seattle
Registered: 2011-09-11
Posts: 387
Website

Re: Recovering freetype2-infinality junkie - freetype2 renders weird

I installed fontconfig-infinality and selected 'win7'. I use droid-sans myself and heve been very pleased thus far.

Offline

#3 2013-03-07 21:41:08

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,440
Website

Re: Recovering freetype2-infinality junkie - freetype2 renders weird

doug piston wrote:

I installed fontconfig-infinality and selected 'win7'. I use droid-sans myself and heve been very pleased thus far.

Right... to use gimp, I needed to remove it.

Last edited by graysky (2013-03-07 21:43:31)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2013-03-07 21:47:30

elkoraco
Member
Registered: 2013-02-18
Posts: 121

Re: Recovering freetype2-infinality junkie - freetype2 renders weird

graysky wrote:

Not too sure what to do to make things look more visually pleasing.  Advice is appreciated.

It all depends on what hinting and subpixel smoothing levels you prefer. I find vanilla freetype to have the best font rendering on any desktop platform. I have .config/fontconfig/fonts.conf with:

<?xml version="1.0"?>
   <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
   <fontconfig>
   <match target="font" >
     <edit mode="assign" name="rgba" >
       <const>rgb</const>
     </edit>
   </match>
   <match target="font" >
     <edit mode="assign" name="hinting" >
       <bool>true</bool>
     </edit>
   </match>
   <match target="font" >
     <edit mode="assign" name="hintstyle" >
       <const>hintslight</const>
     </edit>
   </match>
   <match target="font" >
     <edit mode="assign" name="antialias" >
       <bool>true</bool>
     </edit>
   </match>
   <match target="font"><edit mode="assign" name="lcdfilter">
       <const>lcddefault</const>
     </edit>
   </match>
 </fontconfig>

and .Xresources with:

Xft.autohint: 0
Xft.antialias: 1
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.dpi: 96
Xft.rgba: rgb
Xft.lcdfilter: lcddefault

The default configuration leaves the lcd filter off, and it goes graycale RGBA to medium hinting (infinality does something silimar?). I don't, however, even have any Microsoft font installed, so no webpage is shoving Arial down my throat, which is great. The Windows fonts do not render well at medium to smaller sizes with my setup at all.

Offline

#5 2013-03-07 22:59:44

doug piston
Member
From: Seattle
Registered: 2011-09-11
Posts: 387
Website

Re: Recovering freetype2-infinality junkie - freetype2 renders weird

graysky wrote:
doug piston wrote:

I installed fontconfig-infinality and selected 'win7'. I use droid-sans myself and heve been very pleased thus far.

Right... to use gimp, I needed to remove it.

Apologies, I misunderstood.

Offline

Board footer

Powered by FluxBB