• Font_ScanString, icon widths not sticking

    From Christopher Self@21:1/5 to All on Sat Jul 2 15:06:58 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From svrsig@21:1/5 to Christopher Self on Fri Oct 21 01:35:20 2022
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)