Vertical Alignment of Font 2 Characters

LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT Series

Moderators: Henry, Mods

Post Reply
sheetsjf
LCD?
Posts: 6
Joined: Wed Feb 19, 2014 11:40 am

Vertical Alignment of Font 2 Characters

Post by sheetsjf »

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?

Tino
Matrix Orbital
Matrix Orbital
Posts: 158
Joined: Wed May 22, 2013 9:04 am
Location: Matrix Orbital

Re: Vertical Alignment of Font 2 Characters

Post by Tino »

Hi Sheetsjf,

The Vertical and Horizontal justification does not modify the font bitmaps, it sets where the font bitmaps are placed within the label.
You could use a different font or you may need to modify the font bitmaps.

Another thing that could help is the size of the font can affect how the text looks within the label.

if you have any other questions or concerns please feel free to ask.
Thank you
Martino
Martino DeLeon
Matrix Orbital
Technical Support Representative

Post Reply