[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft-devel] support of named instances
From: |
Werner LEMBERG |
Subject: |
[ft-devel] support of named instances |
Date: |
Thu, 13 Aug 2015 20:47:01 +0200 (CEST) |
I've just pushed a patch to the git repository for easy support of
named instances in GX fonts. From the CHANGES file:
- Simple access to named instances in GX variation fonts is now
available (in addition to the previous method via FreeType's MM
interface). In the FT_Face structure, bits 16-30 of the
`face_index' field hold the current named instance index for the
given face index, and bits 16-30 of `style_flags' contain the
number of instances for the given face index. `FT_Open_Face'
and friends also understand the extended bits of the face index
parameter.
You need to enable TT_CONFIG_OPTION_GX_VAR_SUPPORT for this new
feature. Otherwise, bits 16-30 of the two fields are zero (or
are ignored).
Please test – and enjoy!
Werner
- [ft-devel] support of named instances,
Werner LEMBERG <=