FT_Get_Glyph

Prototypes

FT_Error FT_Get_Glyph(FT_GlyphSlot DescriptionGlyphe, FT_Glyph *Glyphe);

Description

Alloue la glyphe Glyphe à partir de sa description DescriptionGlyphe.

Le résultat est 0 en cas de succès.

Exemple

#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)) ...

Voir aussi

FT_Load_Glyph pour charger la description d'une glyphe. FT_Done_Glyph pour libérer une glyphe.