Page 1 of 1

Loading A font

PostPosted: 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..?

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

PostPosted: 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

PostPosted: 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.

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

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

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

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