Skip to content

Instantly share code, notes, and snippets.

@Shaptic
Created February 4, 2013 05:53
Show Gist options
  • Save Shaptic/4705226 to your computer and use it in GitHub Desktop.
Save Shaptic/4705226 to your computer and use it in GitHub Desktop.
CFont::Initialize() - Initializes the TrueType 2 library.
bool CFont::Initialize()
{
if(s_loaded) return true;
if(FT_Init_FreeType(&s_Library) != 0) return false;
return (s_loaded = true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment