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
_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to