Path: csiph.com!aioe.org!1Am8TetVz1ySmynpC1a/3g.user.46.165.242.75.POSTED!not-for-mail From: Christopher Self Newsgroups: comp.sys.acorn.programmer Subject: Font_ScanString, icon widths not sticking Date: Sat, 02 Jul 2022 15:06:58 +0100 Organization: None Message-ID: <5a01b90ed6cself@btinternet.com> Injection-Info: gioia.aioe.org; logging-data="65446"; posting-host="1Am8TetVz1ySmynpC1a/3g.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Pluto/3.18 (RISC OS/5.29) NewsHound/v1.52-32 X-Notice: Filtered by postfilter v. 0.9.2 Xref: csiph.com comp.sys.acorn.programmer:6393 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