freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

About freetype2 switch face_index


From: ????????????
Subject: About freetype2 switch face_index
Date: Fri, 23 Jun 2023 20:22:43 +0800

Hi:


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?


Another way is to first release and then create, but this is not efficient.


for example??
  
FT_New_Face(ft_Lib??pathname, 0, &face);
FT_Load_Char( face, chr, FT_LOAD_RENDER | FT_LOAD_NO_HINTING | 
FT_LOAD_MONOCHROME );
...
FT_Done_Face(face);
FT_New_Face(ft_Lib??pathname, 1, &face);
FT_Load_Char( face, chr, FT_LOAD_RENDER | FT_LOAD_NO_HINTING | 
FT_LOAD_MONOCHROME );

...
FT_Done_Face(face);


What I expect??


FT_New_Face(ft_Lib??pathname, 0, &face);
FT_Load_Char( face, chr, FT_LOAD_RENDER | FT_LOAD_NO_HINTING | 
FT_LOAD_MONOCHROME );
...

//Calling a function to switch face_index to 1
FT_Load_Char( face, chr, FT_LOAD_RENDER | FT_LOAD_NO_HINTING | 
FT_LOAD_MONOCHROME );
...



Does freetype2 have such a function, or do you plan to add it in the future?


????????????
990087812@qq.com



 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]