FT_Error FT_New_Face(FT_Library Bibliotheque, const char *NomFichierPolice, FT_Long Numero, FT_Face *Face);
La première face à pour numéro 0. Le fichier sur la police vectorielle reste ouvert pour les besoins de Free Type.
Le résultat est 0 en cas de succès.
#include <ft2build.h>
#include <freetype/ftoutln.h>
#include <freetype/ftstroke.h>
FT_Library Bibliotheque;
char NomFichierPolice[256];
FT_Face Face;
...
if (FT_Init_FreeType(&Bibliotheque))
{
...
}
...
if (FT_New_Face(Bibliotheque, NomFichierPolice, 0, &Face))
{
...
}
...
if (FT_Done_Face(Face))
{
...
}
...
if (FT_Done_FreeType(Bibliotheque))
{
...
}
...