Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:43 29 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 highlight colour issues...

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9308
Posted: 01:44am 12 Apr 2014
Copy link to clipboard 
Print this post

Hello all.


Try this code:

PRINT CLR$(BLACK,RED) " Hello World. "

How come the text is ALWAYS favouring the upper level of the highlight?

IE: In the above example, and this is true for ANY of this kind of command, the text does not seem to be vertically centred with respect to the highlight colour if you see what I mean....

There is probably a reason, but I would love to know what it is, cos if I use something like that above, it looks odd on the screen, cos the text is not centred vertically with respect to the background colour.



Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6102
Posted: 10:40am 12 Apr 2014
Copy link to clipboard 
Print this post

Try this instead

PRINT CLR$(BLACK,RED) " Hello grogster. "


There has to be room for the characters with descenders.

Jim

VK7JH
MMedit   MMBasic Help
 
psergiu

Regular Member

Joined: 09/02/2013
Location: United States
Posts: 83
Posted: 03:51pm 12 Apr 2014
Copy link to clipboard 
Print this post

I think it depends on the font used - it fills up the "empty" pixels in the character cell.
Try with a custom font - you will be able to center the chars however you want them with a font editor.
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9308
Posted: 03:07pm 13 Apr 2014
Copy link to clipboard 
Print this post

Ahhhhh - I see. Thanks.
I fixed it in my case, by drawing a red line just above the highlighted text, and now it looks right.
Smoke makes things work. When the smoke gets out, it stops!
 
Print this page


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

© JAQ Software 2024