Page 1 of 1
Loading A font

Posted:
Jul 16, 2003 @ 1:40pm
by Guest
Hi i notice this is how you load a VGA font from
a resource
FindResource(_Module.GetModuleInstance(), MAKEINTRESOURCE(IDR_WACKY_FONT), TEXT("FONTS"));
How would i do this manually, is it possible..?

Posted:
Jul 16, 2003 @ 2:07pm
by fzammetti
I'm not sure what you mean by manually... could you elaborate a bit?

Posted:
Jul 16, 2003 @ 2:18pm
by Guest
i meant can i load the font as i would an external image. i do not wish to compile my resources at the moment

Posted:
Jul 16, 2003 @ 2:23pm
by fzammetti
Sorry, that functionality isn't included at this point. However, the font drawText function simply requires an unsigned char* to the font data (as I recall, be sure to check the code to be sure I remembered correctly), so you can load it yourself without any problem.

Posted:
Jul 16, 2003 @ 3:53pm
by Guest

Posted:
Jul 16, 2003 @ 3:57pm
by fzammetti

Posted:
Jul 16, 2003 @ 4:00pm
by Guest

Posted:
Jul 16, 2003 @ 4:37pm
by fzammetti