janb
Full Member
Retiree, born 1948, mostly HW/FW oriented programming for > 50 years, 25+ for IBM
Posts: 33
|
Post by janb on Apr 6, 2021 6:25:36 GMT -8
I'm using a GD3X touch screen as "keyboard and display". I use various buttons, a "widget" keyboard and a designated keyboard input area on the screen.
I have left/right buttons to move the "cursor" within the keyboard input area, and a button to select Insert or Replace character mode.
I'm using a custom, 'true type' font, said to be 8x12, i.e 8 pixels wide and 12 pixels high characters, which I load via an 'assets' file.
When I want to "address" the cursor position character within the keyboard input field, I have to increment by 7 pixels from field start (not 8!), to get to the cursor position!!! With this font, one complete line can hold just over 68 characters and (68 * 7) = 476 pixels! (If I use 13 pixels between lines vertically, there's a narrow stripe in between lines; so 12 pixels seem correct for character height...)
WHY??? It seems as if GD3X HW (or FW) "squeeze" the character width! A ZERO ('0') character seem to be 5 pixels wide, with an empty pixel on each side...
|
|