[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About freetype2 switch face_index
From: |
???????????? |
Subject: |
Re: About freetype2 switch face_index |
Date: |
Fri, 23 Jun 2023 23:24:03 +0800 |
Thank you!
I am referring to TrueType Collections.
It seems that I can only create another 'FT_Face' object.
????????????
990087812@qq.com
------------------ Original ------------------
From:
"Werner LEMBERG"
<wl@gnu.org>;
Date: Fri, Jun 23, 2023 11:04 PM
To: "????????????"<990087812@qq.com>;"freetype"<freetype@nongnu.org>;
Subject: Re: About freetype2 switch face_index
> Is there any other function to switch the face_index when a font
> contains multiple fonts, besides specifying the face_index when
> creating the face?
It depends. In TrueType Collections, fonts with different font
indices might be really completely different fonts, so you can't avoid
creating another `FT_Face` object.
However, if you are referring to named instances of Variation Fonts
you can use function `FT_Set_Named_Instance`.
Werner