Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing font-size in _rgb32 mode
#10
For an example of what's going on guys, take a look at this little demo:

Code: (Select All)
Screen _NewImage(600, 440, 32)

schrift = _LoadFont("C:\WINDOWS\Fonts\Arial.ttf", 14, "bold")
schrift_monospace = _LoadFont("C:\WINDOWS\Fonts\Arial.ttf", 14, "bold, monospace")

Print _FontWidth(schrift), _FontWidth(schrift_monospace)

_Font schrift
Locate 4, 10: Print "Hello World (4 down, 10 over)"
Locate 10: Print "Hello World (variable width)"
Locate 15: Print "WWWWWWWWWW (variable width)"
Locate 16: Print "iiiiiiiiii (variable width)"


_Font schrift_monospace
Locate 5, 10: Print "Hello World (5 down, 10 over)"
Locate 11: Print "Hello World (monospace)"
Locate 20: Print "WWWWWWWWWW (monospace)"
Locate 21: Print "iiiiiiiiii (monospace)"


   

Does the above showcase and make sense as to why LOCATE would behave differently in regards to monospaced fonts and variable-width fonts?
Reply


Messages In This Thread
RE: Changing font-size in _rgb32 mode - by bplus - 04-08-2023, 01:51 PM
RE: Changing font-size in _rgb32 mode - by bplus - 04-08-2023, 05:10 PM
RE: Changing font-size in _rgb32 mode - by SMcNeill - 04-08-2023, 07:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Enlarging window for older BAS programs (ie. Screen 7 mode) paulel 5 422 12-24-2025, 09:36 PM
Last Post: paulel
  Font Size in Threads Dimster 5 377 12-12-2025, 04:49 PM
Last Post: Dimster
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 11 1,085 11-10-2025, 07:23 PM
Last Post: madscijr
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 0 227 10-26-2025, 06:58 PM
Last Post: madscijr
  Problem with font in Teletext browser. SquirrelMonkey 7 763 08-27-2025, 11:38 AM
Last Post: BDS107

Forum Jump:


Users browsing this thread: 1 Guest(s)