Hillel Lubman wrote:

> Is there a way to granularly configure font rendering for specific 
> fonts? The best font look for GUI elements I got when I set up *subpixel 
> smoothing* and *full hinting* in font rendering details. However full 
> hinting causes monospace font to look too wide and awkward. Is there a 
> way to set hinting to 'none' or 'slight' but only for specific font 
> (Monospace in this case), while leaving other settings for other fonts 
> on full hinting?

Yes, there is, but it's kind of tedious.

What we really need is a GUI driven fontconfig configuration tool.

For example, you could create a file:

/etc/fonts/conf.avail/20-indic.conf

and then do

%> cd /etc/fonts/conf.d
%> ln -sf ../conf.avail/20-indic.conf
%> /usr/bin/fc-cache --really-force --verbose

(best to do this while your desktop is not running :-)

and the file 20-indic.conf could look like this:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

<!-- Some Indic fonts look much better without hinting -->

<match target="font">
     <test name="family">
         <string>Lohit Gujarati</string>
     </test>
     <edit name="hinting">
         <bool>false</bool>
     </edit>
     <test name="family">
         <string>Lohit Tamil</string>
     </test>
     <edit name="hinting">
         <bool>false</bool>
     </edit>
</match>
</fontconfig>

Or, for additional hinting configuration elements you can look in:

/etc/fonts/conf.avail/20-unhint-small-vera.conf or 
/etc/fonts/conf.avail/20-unhint-small-dejavu-serif.conf

--Stefan

-- 
Stefan Teleman
Sun Microsystems, Inc.
stefan.teleman at Sun.COM

Reply via email to