I have attached my personal fonts.conf, it enables native (Y-axis) grid-fitting for CFF fonts and the Y-axis autohinter-grid-fitting for everything else. Also, RGB subpixel rendering if compiled in and the light LCD filter to counter the blurriness of non-gamma-corrected glyphs somewhat. Modify as you see fit. Note the "autohint" property, it changes the meaning of hintmedium and full!

Contributing per-font-format settings for fontconfig is still on my todo list :) I actually have them already, I just need to add comments so people know what's going on in them and why.

Oh, and thanks Werner! Soon, users will see... changes. I'm already bracing for impact :D

Cursory valgrind --tool=callgrind checking found that FT_Embolden_Outline is somewhere in the top something of CPU hoggers, by the way. So there definitely is a performance impact. I hope the fuzzing will get us more precise data, as I'm still a noob at performance analysis. So much to do, so little time...
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
  <match target="font">
    <edit mode="assign" name="hinting">
      <bool>true</bool>
    </edit>
    <edit mode="assign" name="autohint">
      <bool>true</bool>
    </edit>
    <edit mode="assign" name="hintstyle">
      <const>hintslight</const>
    </edit>
  </match>

  <match target="font">
    <test name="fontformat">
      <string>CFF</string>
    </test>
    <edit mode="assign" name="hinting">
      <bool>true</bool>
    </edit>
    <edit mode="assign" name="autohint">
      <bool>false</bool>
    </edit>
    <edit mode="assign" name="hintstyle">
      <const>hintfull</const>
    </edit>
  </match>

  <match target="pattern">
    <edit name="rgba" mode="append"><const>rgb</const></edit>
  </match>

  <match target="pattern">
    <edit mode="append" name="lcdfilter">
      <const>lcdlight</const>
    </edit>
  </match>
</fontconfig>
_______________________________________________
Freetype-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to