Font_ScanString, icon widths not sticking
From
Christopher Self@cself@btinternet.com to
comp.sys.acorn.programmer on Sat Jul 2 15:06:58 2022
From Newsgroup: comp.sys.acorn.programmer
Can someone tell what's wrong with this, please:
bbox!0 = 0
bbox!4 = 0
bbox!8 = 0
bbox!12 = 0
bbox!16 = -1
SYS "Font_ScanString", 0, text$, &40020, 3000*400, 2500*400, bbox
=bbox!28 / 400
Or this:
SYS "Font_ScanString", 0, text$, 0, 2500*400, 2000*400 TO ,,,width%
=width% / 400
The icon widths are correct at first, with either method, but then break
down and are shortened, seemingly randomly, when the icons are moved.
--
Christopher Self
--- Synchronet 3.21d-Linux NewsLink 1.2