[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Variable Font and FT_Load_Sfnt_Table
From: |
Werner LEMBERG |
Subject: |
Re: Variable Font and FT_Load_Sfnt_Table |
Date: |
Wed, 10 May 2023 04:13:37 +0000 (UTC) |
> 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