Picomite/PicoMiteVGA V5.07.05 release candidates


Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4013
Posted: 01:47pm 25 Sep 2022      

  matherp said  The issue is that you are outputting in a different font than is used by MM.INFO(FONTWIDTH)
Remember MMbasic parses the code left to right so it gets the fontwidth before you specify the font in the TEXT command.
To do what you want use the font command before the for statement


Right, stupid of me. There is no way to get the width of a font without first issuing a FONT command is there ? - don't add one if there isn't, I'd only ask for it on evey MMBasic flavour.

  matherp said  I've emailed Geoff to ask about the other issue. There is a hole in the code as-is because if 255 is the last char then the code can loop past the end of the string


Good point.

Note that after having done some googling you could, and perhaps should argue that character 255 is the "non-breaking space" character and shouldn't have had a glyph assigned to it by the MMBasic font in the first place.

Best wishes,

Tom
Edited 2022-09-25 23:49 by thwill