Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 21:42 24 Nov 2024 Privacy Policy
Jump to

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: Australia
Posts: 5078
Posted: 11:48am 14 Dec 2011
Copy link to clipboard 
Print this post

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: Australia
Posts: 5078
Posted: 11:53am 14 Dec 2011
Copy link to clipboard 
Print this post

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


To reply to this topic, you need to log in.

© JAQ Software 2024