Re: Visual GLCD and Right Justification of Variable
Posted: 24 Sep 2012 15:56
by dsiegel
Sorry for the hiatus, had to upgrade to Win7x64.
I've tried using a known monospaced/fixed width font Bitstream Vera Sans Mono.
The text in Visual GLCD shows a full width space, but once compiled, my display shows a infintessimal space.
The settings has One Pixel Space Width un-checked, as does the *.vglcd:
//FONT SPACE OPTIONS
ONE_PIXEL_SPACE_WIDTH = False
The font in _events_code.c does show a fixed number of bytes
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Code for char num 32
0x00,0x00,0x18,0x18,0x18,0x18,0x18,0x00,0x18,0x18,0x00,0x00,0x00, // Code for char num 33
I suspect there is some mechanism to proportionalize the fonts after the fact.
Re: Visual GLCD and Right Justification of Variable
Posted: 25 Sep 2012 12:42
by dsiegel
I just stepped the font size up to 28 (Bitstream Vera Sans Mono)
const code char Bitstream_Vera_SansMono22x43_Regular[]
' ' 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Code for char num 32 *SPACE*
'!' 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1E,0x00,0x1E,0x00,0x1E,0x00,0x1E,0x00,0x1E,0x00,0x1E,0x00,0x1E,0x00,0x1E,0x00,0x1E,0x00,0x1E,0x00,0x1E,0x00,0x1E,0x00,0x1E,0x00,0x1E,0x00,0x1E,0x00,0x1E,0x00,0x1E,0x00,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1E,0x00,0x1E,0x00,0x1E,0x00,0x1E,0x00,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Code for char num 33
'M' 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7C,0x00,0x1F,0xFC,0x80,0x1F,0xFC,0x80,0x1F,0xFC,0x80,0x1F,0xFC,0xC1,0x1F,0xBC,0xC1,0x1E,0xBC,0xC1,0x1E,0xBC,0xE3,0x1E,0xBC,0xE3,0x1E,0x3C,0x63,0x1E,0x3C,0x77,0x1E,0x3C,0x77,0x1E,0x3C,0x36,0x1E,0x3C,0x3E,0x1E,0x3C,0x3E,0x1E,0x3C,0x1C,0x1E,0x3C,0x1C,0x1E,0x3C,0x00,0x1E,0x3C,0x00,0x1E,0x3C,0x00,0x1E,0x3C,0x00,0x1E,0x3C,0x00,0x1E,0x3C,0x00,0x1E,0x3C,0x00,0x1E,0x3C,0x00,0x1E,0x3C,0x00,0x1E,0x3C,0x00,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Code for char num 77
Do I need to pack the characters myself?
If so, what is the framework for a font?
And how do I force the space to be a full character width?
It does appear that Visual GLCD proportionalizes the font, and the compiler also changes the space to a single column regardless.