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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Command$(count%) - I can't get a value when using the optional argument "(count%)" Unatic 3 529 08-22-2025, 11:58 AM
Last Post: Unatic
  keyword to get the EXE name and the EXE path instead of parsing Command$(0) ? madscijr 8 1,158 07-22-2025, 08:35 PM
Last Post: hsiangch_ong
  Using _MapTriangle in Small Virtual Screens NakedApe 7 866 07-05-2025, 11:54 AM
Last Post: SMcNeill
  Command$ issues eoredson 8 1,405 05-02-2025, 01:42 AM
Last Post: eoredson
  open multiple screens at once drewdavis 2 792 09-09-2024, 08:08 AM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)