Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • The load functions are accessible from two constructors, and free is called in the destructor -- I just didn't show that here. I find it convenient to be able to load the font directly from a file, instead of first opening the file, writing the data to a buffer and then passing that to Font. Sometimes I also need to load from a buffer, though, which is why I have both methods. Commented Jun 6, 2011 at 14:26