Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Locate command on the ttf graphical screens
#6
As I mentioned, it all steps back to this:

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

_Font f
Print _FontWidth, _FontHeight, "notice the fontwidth with variable width?"
_Font g
Locate 2: Print _FontWidth, _FontHeight; " vs monospaced"

Variable width fonts have no set fontwidth, so you can't just move character width left/right, so it moves by pixels instead.
Reply


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



Users browsing this thread: 4 Guest(s)