nanogui: how to change an bitmap font to an array of MWIMAGEBITS type


Previous by date: 9 Jan 2008 00:57:11 -0000 F1E-A71 Framebuffer question, Demetris Zavorotnichenko
Next by date: 9 Jan 2008 00:57:11 -0000 Re: Nano-X, nxlib and Fltk-UTF8-1.1.6, Greg Haerr
Previous in thread: 9 Jan 2008 00:57:11 -0000 Re: how to change an bitmap font to an array of MWIMAGEBITS type, aflar.163.com
Next in thread:

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 


Previous by date: 9 Jan 2008 00:57:11 -0000 F1E-A71 Framebuffer question, Demetris Zavorotnichenko
Next by date: 9 Jan 2008 00:57:11 -0000 Re: Nano-X, nxlib and Fltk-UTF8-1.1.6, Greg Haerr
Previous in thread: 9 Jan 2008 00:57:11 -0000 Re: how to change an bitmap font to an array of MWIMAGEBITS type, aflar.163.com
Next in thread:


Powered by ezmlm-browse 0.20.