Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : (MM-DM)Bug. Font #3 needs a space.
Author | Message | ||||
Gizmo Admin Group Joined: 05/06/2004 Location: AustraliaPosts: 5078 |
I've been writing a battery monitoring program and using all 3 embedded fonts. I came across a problem with the #3 font. #3 includes numbers 0 to 9, plus + - , and . but no space. I was displaying a number that was updated every second, on the same screen location. If the number changed from, for example, 12.34 to 5.67, the number moves to the left as expected, and leaves a character to the right of the new number, so I end up with 5.674. To clear the old number, I printed a few spaces in the location before printing the number, but this didn't work, and it took me a while to work it out, no space characted in font #3. As a fix I now draw a block with the LINE (x,y)-(a,b),"BF" command before printing the new number, but this give a noticable flicker to the number. I could use a custom font that included the space character. So just a sugestion for a future update, add a space to the Font #3. No big deal. Glenn The best time to plant a tree was twenty years ago, the second best time is right now. JAQ |
||||
Gizmo Admin Group Joined: 05/06/2004 Location: AustraliaPosts: 5078 |
Another way around this problem is to use Font #2 at 2 scale, that is FONT #2,2. Its the same size as font #3, and includes the space character, but is ugly as. The best time to plant a tree was twenty years ago, the second best time is right now. JAQ |
||||
Print this page |