Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Locate command on the ttf graphical screens
#5
A quick example of the issue:

Code: (Select All)
Screen 12
$Color:0
f = _LoadFont("courbd.ttf", 16)
g = _LoadFont("courbd.ttf", 16, "MONOSPACE")

Print "First, I'm going to put some text on screen in RED, using variable width font.": Sleep 2
Color Red
_Font f
Locate 10, 10: Print "Hello (10, 10)": Sleep 2
Locate 5, 15: Print "World (5, 15)": Sleep 2

Locate 3
Color BrightWhite
Print "Now, I'm going to put some text on screen in GREEN, using a monospaced font.": Sleep 2
Color Green
_Font g
Locate 10, 10: Print "Hello (10,10)": Sleep 2
Locate 5, 15: Print "World (5, 15)": Sleep 2

Color White
Locate 7
Print "See the difference in the positions?"
Reply


Messages In This Thread
RE: Locate command on the ttf graphical screens - by SMcNeill - 03-09-2025, 05:41 PM



Users browsing this thread: 3 Guest(s)