Vertical Alignment of Font 2 Characters
Posted: Tue Jun 10, 2014 9:45 am
I am working on a script for the GLK240128 display, which is ment to excecute the following commands:
Clear Screen
Initialize a Label (ID = 1, Vert = 1, Hor = 1, Font = 2, Background = 0, CharSpace = 1)
Initialize a Label (ID = 2, Vert = 1, Hor = 1, Font = 2, Background = 0, CharSpace = 1)
Draw a Rectangle (1 Pixel Outside Label 1)
Draw a Rectangle (1 Pixel Outside Label 2)
Update Label (ID = 1)
Update Label (ID = 2)
The script excecutes just fine, but according to the label configuration, the text should be drawing in the center of the label both vertically and horizontally, which it does not seem to be doing.
Upon further investigation, it would seem that many of the font 2 characters are offset towards the top of the font bitmap. Is there any simple fix for this aside from manually shifting each character in MOGD?
Clear Screen
Initialize a Label (ID = 1, Vert = 1, Hor = 1, Font = 2, Background = 0, CharSpace = 1)
Initialize a Label (ID = 2, Vert = 1, Hor = 1, Font = 2, Background = 0, CharSpace = 1)
Draw a Rectangle (1 Pixel Outside Label 1)
Draw a Rectangle (1 Pixel Outside Label 2)
Update Label (ID = 1)
Update Label (ID = 2)
The script excecutes just fine, but according to the label configuration, the text should be drawing in the center of the label both vertically and horizontally, which it does not seem to be doing.
Upon further investigation, it would seem that many of the font 2 characters are offset towards the top of the font bitmap. Is there any simple fix for this aside from manually shifting each character in MOGD?