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?


????????????
990087...@qq.com



 

Reply via email to