Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Font_ScanString, icon widths not sticking

19 views
Skip to first unread message

Christopher Self

unread,
Jul 2, 2022, 10:07:09 AM7/2/22
to
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

svrsig

unread,
Oct 21, 2022, 4:35:21 AM10/21/22
to
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.
0 new messages