On 2015.11.03 at 17:07 +0100, Werner LEMBERG wrote:
> 
> > it looks like it [stem darkening] only works with hinting
> > (autohinter) switched on.
> 
> Correct.
> 
> > But then cff gets disabled for OpenType fonts...
> 
> This depends...
> 
> > I like my fonts unhinted and would like to use OpenType fonts with
> > cff and TrueType fonts with the new stem-darkening at the same time.
> 
> ... on your fontconfig setup, which must be adjusted accordingly.

Can you tell me how?

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <match target="font">
  <edit mode="assign" name="autohint">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="lcdfilter">
   <const>lcdlight</const>
  </edit>
 </match>
 <dir>~/.fonts</dir>
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>vrgb</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>hintnone</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>
</fontconfig>

With this config I get no TT stem darkening at all.
If I change to hintstyle->hintslight stem darkening for TT gets switched
on, but then my OpenType fonts get distorted.

-- 
Markus

_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to