[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft-devel] first auto-hinter infinality patch added to git
From: |
Werner LEMBERG |
Subject: |
[ft-devel] first auto-hinter infinality patch added to git |
Date: |
Wed, 19 Sep 2012 07:02:33 +0200 (CEST) |
Folks,
I've just committed a first experimental auto-hinter addition from the
Infinality patch: What you could originally control by the environment
variable `INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS' can now be
handled with the new property `increase-x-height' (and even
fine-tuned, not possible with the original implementation).
From the documentation:
For ppem values in the range 6 <= ppem <= ‘increase-x-height’, round
up the font's x height much more often than normally. If the value
is set to 0, which is the default, this feature is switched off.
Use this property to improve the legibility of small font sizes if
necessary.
FT_Library library;
FT_Face face;
FT_Prop_IncreaseXHeight prop;
FT_Init_FreeType( &library );
FT_New_Face( library, "foo.ttf", 0, &face );
FT_Set_Char_Size( face, 10 * 64, 0, 72, 0 );
prop.face = face;
prop.limit = 14;
FT_Property_Set( library, "autofitter",
"increase-x-height", &prop );
Along these lines it should be possible to add other auto-hinter
extensions. Erik?
Werner
- [ft-devel] first auto-hinter infinality patch added to git,
Werner LEMBERG <=