| jim_s
|
Problem with setPrintPos() and custom fontPosted at:2016-08-29 21:01:44 Edited at:2016-08-29 21:09:22
|
|
I am using a Universal Serial Adapter with a 128x64 monochrome GLCD. This was purchased directly from you through eBay back on Dec 30, 2015, but I'm not sure of the Digole firmwar/version number. I have created a small custom font set of symbols that I'm using for a menu - it consists of 6 characters only. I created the characters in Fony, then exported to .bdf format, and then ran the bdf2u8g_101.exe converter on it, to produce the needed u8g array for the font. I loaded the font to the Digole adapter, and use it, but am having some strangeness with the setPrintPos() method. My custom font is in font 201 (user font 1). Another font, an existing u8g font that I use for the menu text is loaded to the adapter, is defined as font 200. (User font zero) My custom fonts are numbered 0 through 5. (I have also tried defining these as characters 65 - 70, but have had no luck with that, either.) When I try:
Nothing shows up on the screen. If I instead call:
Then the custom character displays on the screen just fine. I have also specifically tried calling setFont(), setPrintPos(), preprint() and then print(), but this is not working, either - I only have success if I first call drawStr() with the pre-built font, then switch to the custom font, and then call print(). Clearly, I suspect there is something amiss with my custom font, but I have no idea what. Any thoughts or suggestions on this? Thanks! Jim
|
