Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Possible bug: Word-wrap oddity
#6
@hannes

It is fun, and, at least for me, it was a big reason for sticking with a true BASIC language. The names of the statements make sense, are easily remembered, and many of the accompanying statements start with the root word.

@admin

There's another thing that I lost in memory, width 10, not 8. When you mentioned that, I vaguely recalled a project from three or fur years ago where I worked with the lucon width size. THANKS! You know the saying, "I've probably forgotten more information in life than most people ever had." is really not comforting.

Anyway, i = 1 to 80 prints 80 asterisks at width 10 pixels, makes perfect sense, but like I showed hannes, the monospace element does need to be present to do that or, apparently, the system doesn't consider the font width to be fixed at 10 pixels, as _FONTWIDTH without monospace added would be zero, (undefined), instead of 10.

So here is a little demo of not using and using monospace in the font declaration to illustrate this...

Code: (Select All)
handle& = _NEWIMAGE(800, 600, 256)
SCREEN handle&

fontpath$ = ENVIRON$("SYSTEMROOT") + "\fonts\lucon.ttf" 'Find Windows Folder Path.
font& = _LOADFONT(fontpath$, 16)
_FONT font&
_DELAY .1

PRINT "Demo without monospace added.": PRINT
FOR i = 1 TO 80
    ' With monospace added, this will print as one line.
    PRINT "*";
NEXT

fontpath$ = ENVIRON$("SYSTEMROOT") + "\fonts\lucon.ttf" 'Find Windows Folder Path.
font& = _LOADFONT(fontpath$, 16, "monospace")
_FONT font&

SLEEP

CLS
PRINT "Demo with monospace added.": PRINT
FOR i = 1 TO 80
    ' With monospace added, this will print as one line.
    PRINT "*";
NEXT

Pete


I may be old, but I'm not.. ah I'm not...
Shoot first and shoot people who ask questions, later.
Reply


Messages In This Thread
Possible bug: Word-wrap oddity - by hanness - 05-04-2022, 06:41 AM
RE: Possible bug: Word-wrap oddity - by Pete - 05-04-2022, 08:38 AM
RE: Possible bug: Word-wrap oddity - by Pete - 05-04-2022, 09:50 AM
RE: Possible bug: Word-wrap oddity - by SMcNeill - 05-04-2022, 10:35 AM
RE: Possible bug: Word-wrap oddity - by hanness - 05-04-2022, 04:35 PM
RE: Possible bug: Word-wrap oddity - by Pete - 05-04-2022, 05:06 PM
RE: Possible bug: Word-wrap oddity - by SMcNeill - 05-04-2022, 05:50 PM
RE: Possible bug: Word-wrap oddity - by hanness - 05-04-2022, 06:15 PM
RE: Possible bug: Word-wrap oddity - by SMcNeill - 05-04-2022, 06:18 PM
RE: Possible bug: Word-wrap oddity - by Pete - 05-04-2022, 06:29 PM
RE: Possible bug: Word-wrap oddity - by SMcNeill - 05-04-2022, 06:50 PM
RE: Possible bug: Word-wrap oddity - by Pete - 05-04-2022, 09:57 PM



Users browsing this thread: 2 Guest(s)