nanogui: how to change an bitmap font to an array of MWIMAGEBITS type
Subject:
Re: [nanogui] how to change an bitmap font to an array of MWIMAGEBITS type
From:
"Greg Haerr" ####@####.####
Date:
9 Jan 2008 00:57:11 -0000
Message-Id: <05a101c8525a$817a9d90$6501a8c0@winXP>
> but it seems that it is different for 12*12 dot matrix and 16*16 dot
> matrix to change them into MWIMAGEBITS type!Whatever, I've made it,but for
> 24*24 dot matrix I dont know how to do that! Now I've drawn my 24*24 dot
> matrix chinese char successly with psd->DrawPixel!
The MWIMAGEBITS is 16 bits, so you're conversion of 24*24 will use
24 times 32 bits (2 MWIMAGEBITS, right padded) per character.
> If the truetype scaleable font, how much mem space does it need ?
You'll have to load a font and check for the space requirements
yourself. This can easily be accomplished on the desktop.
Regards,
Greg