implement loading fonts from memory locations

these commits implement a mechanism for creating texture fonts from memory,
for example when a font is embedded inside an application.

i've done my best to make sure the coding style matches and tried to split out
logic specific to my application, but please let me know if there's anything you'd
like modified.