Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB64 Phoenix Edition v3.7.0 Released!
#51
I doubt it'll ever work in SCREEN 0, as screen 0 requires MONOSPACED fonts and as such should work fine with just the standard PRINT commands.  _UPrintString is more for use with Unicode, variable-width fonts, (and sometimes even variable-height fonts such as when a character might have elaborate flourishes in a script font,) which aren't ever going to work in a Screen 0 environment.

There's no _UPrint at the moment, (and they may never be,) as Print is perhaps the most complex piece of code every written on the face of the planet.  Take a moment and try and replicate its behavior in a routine of your own sometime.  Comma command, semicolon commands, printing letters and numbers, word wrap, screen scrolling, cursor positioning and.... on and on and on!

_UPrintString is a much simpler (and faster) piece of code -- take the given text, create it in the font desired, toss it onto the screen in a single line of output.  If wordwrap is needed, it's up to the user to implement that, rather than just trusting that the command itself will do so.  Same with screen scrolling and such, if you're ever going to be printing off the bottom of the screen -- that's something one would have to do manually as _UPrintString doesn't change cursor position and/or scroll the screen.

Different tools for different use cases.  Smile
Reply


Messages In This Thread
RE: QB64 Phoenix Edition v3.7.0 Released! - by SMcNeill - 05-15-2023, 11:20 PM



Users browsing this thread: 1 Guest(s)