FT_Error FT_Glyph_Stroke(FT_Glyph *Glyphe, FT_Stroker Dessinateur, FT_Bool ReallouerAncienneImage);
Les contours sont dessinés. Les espaces entre les contours externes et internes ne sont pas remplis.
Le résultat est 0 en cas de succès.
#include <ft2build.h>
#include <freetype/ftoutln.h>
#include <freetype/ftstroke.h>
FT_Library Bibliotheque;
FT_Face Face;
FT_Glyph Glyphe;
FT_Stroker Dessinateur;
...
if (FT_Get_Glyph(Face->glyph, &Glyphe))
{
...
}
...
if (FT_Stroker_New(Bibliotheque, &Dessinateur))
{
...
}
...
if (FT_Glyph_Stroke(>Glyphe, Dessinateur, 0))
{
...
}
...
if (FT_Glyph_To_Bitmap(Glyphe, FT_RENDER_MODE_NORMAL, NULL, 0))
{
...
}
...
if (FT_Stroker_Done(Dessinateur))
{
...
}
...
if (FT_Done_Glyphe(Glyphe))
{
...
}
...