• 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
  • From svrsig@chris@svrsig.org to comp.sys.acorn.programmer on Fri Oct 21 01:35:20 2022
    From Newsgroup: comp.sys.acorn.programmer

    On Saturday, July 2, 2022 at 3:07:09 PM UTC+1, Christopher Self wrote:
    Can someone tell what's wrong with this, please:

    You are using the 'current font handle' (R1=0) so if something has changed font (like mobing an icon) the results will differ.
    --- Synchronet 3.21d-Linux NewsLink 1.2