notes from the bigfug

notes from the bigfug

programming light and other strange tales

notes from the bigfug RSS Feed
 
 
 
 

Posts tagged freetype2

Adding FreeType2 support to PatchBox

It’s well overdue, but am finally getting around to adding font support to PatchBox.  Rather than using bitmap based fonts, I thought it would be fun to use the font outlines and create proper 3D models.  Here’s how it went:
 
Having extracted the glyph outline using FreeType2, let’s draw it with GL_LINES… ah…

GL_LINE_STRIP isn’t correct either…

Ah, [...]