View Single Post
Old 2008-05-07, 00:57   #484 (permalink)
cybrmage
Portal Developer
 
Join Date: May 2007
Posts: 498
Thanks: 1
Thanked 83 Times in 39 Posts

Country:


Default

Quote:
Originally Posted by Terriff View Post
Quote:
Originally Posted by Terriff View Post
...Also, can you comment on why the text doesn't seem to be using the top 4 or 5 pixels on the iMON LCD when using graphical text mode and why there is less information in graphical text mode than regular "text" mode?....
Any comments on these questions, Cybrmage? Thanks.
Yep... It's the font you are using... the font reports a size larger than it actually is, and the text-to-graphics rendering relies on the values reported by the font to properly position it within the display area.

ie: (typical font) a font that is 10 pixels high will report that it is 12 pixels high (10 pixels for the font body and 2 pixels for the decenders)... and the text-to-graphics rendering will add one pixel to the top and one to the bottom to provide proper spacing.... but some fonts incorrectly report that they are they are 15 pixels high (13 pixels for font body and for decenders)... hence the excess space at the top of some fonts.

There is less information displayed using graphical text mode because most windows fonts are NOT fixed width... (the "w" takes up more space that the "a"... ) and windows fonts do not use an aspect ratio that is suited for a small display... The font used by the text mode is a 5x7 font and provides two lines x 16 characters on the iMon LCD displays. The windows fonts are wider (and usually taller) so they require more space on the display, and not as many characters fit horizontally on the display.

Also... The default CybrDisplay.xml file is configured for a two line display... If you use the graphical text mode, you most likely are using a font that will only produce a one line display... So all the data that would normally be displayed on the second line will be rendered outside of the display bounds (ie: it doesn't fit onto the display!).. You will need to modify the CybrDisplay.xml file to use only one line.

Last edited by cybrmage; 2008-05-07 at 01:13.
cybrmage is offline