Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 05 Apr 2013
Offline Last Active Apr 05 2013 05:23 PM

Topics I've Started

freetype fonts

05 April 2013 - 01:02 AM

I am trying to implement the freetype font method shown in



with some of my own code.  I am using Windows 7 and Codeblocks with MinGW.



The issue I am running into is that when I try to call

our_font.init("usuzv2i.ttf", 16);

I get a popup box saying "This application has requested runtime to terminate it in an unusual way."  It then immediately crashes. 

There's a decent chance I'm encountering a problem with the below because I don't have the file setup right but I don't know.  I downloaded "usuzv2i.ttf" and put it in my active directory.

// This Is Where We Load In The Font Information From The File.
        // Of All The Places Where The Code Might Die, This Is The Most Likely,
        // As FT_New_Face Will Fail If The Font File Does Not Exist Or Is Somehow Broken.
        if (FT_New_Face( library, fname, 0, &face ))
            throw std::runtime_error("FT_New_Face failed (there is probably a problem with your font file)");