FT_Error FT_Get_Glyph(FT_GlyphSlot DescriptionGlyphe, FT_Glyph *Glyphe);
Le résultat est 0 en cas de succès.
#include <ft2build.h>
#include <freetype/ftoutln.h>
#include <freetype/ftstroke.h>
FT_Face Face;
wchar_t Caractere;
FT_UInt IndexGlyphe;
FT_Glyph Glyphe;
...
if (FT_Get_Char_Index(Face, (FT_ULong)Caractere))
{
...
}
...
if (FT_Load_Glyph(Face, IndexGlyphe, FT_LOAD_RENDER))
{
...
}
...
if (FT_Get_Glyph(Face->glyph, &Glyphe))
{
...
}
...
if (FT_Done_Glyph(Glyphe))
{
...
}
...