Re: Variable Font and FT_Load_Sfnt_Table

2023-05-09 Thread Werner LEMBERG


> If variable font is set using FT_Set_Var_Design_Coordinates(ftFace,
> ... ) or FT_Set_Named_Instance(ftFace, ...) and then call to
> FT_Load_Sfnt_Table(ftFace,...) is made, does it return table data
> specific to variation set on ftFace or whole data of variable font ?

No, as Lawrence answered.

What you ask for smells like the wish to use FreeType for manipulating
fonts.  FreeType is *not* suited to that!  Its job is to render
glyphs, nothing more.

What you probably need is a program to create font instances, for
example,
https://fonttools.readthedocs.io/en/latest/varLib/mutator.html.

AFAIK, the Cairo library does that automatically while generating
PDFs.


   Werner



Re: Variable Font and FT_Load_Sfnt_Table

2023-05-09 Thread Lawrence D'Oliveiro
On Wed, 10 May 2023 01:58:24 +, Rajeev Pahuja via FreeType users
wrote:

> If variable font is set using FT_Set_Var_Design_Coordinates(ftFace,
> ... ) or FT_Set_Named_Instance(ftFace, ...) and then call to
> FT_Load_Sfnt_Table(ftFace,...) is made, does it return table data
> specific to variation set on ftFace or whole data of variable font ?

As I understand it, table contents don’t change because of changes in
variation/MM settings.