Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #6393 > unrolled thread

Font_ScanString, icon widths not sticking

Started byChristopher Self <cself@btinternet.com>
First post2022-07-02 15:06 +0100
Last post2022-10-21 01:35 -0700
Articles 2 — 2 participants

Back to article view | Back to comp.sys.acorn.programmer


Contents

  Font_ScanString, icon widths not sticking Christopher Self <cself@btinternet.com> - 2022-07-02 15:06 +0100
    Re: Font_ScanString, icon widths not sticking svrsig <chris@svrsig.org> - 2022-10-21 01:35 -0700

#6393 — Font_ScanString, icon widths not sticking

FromChristopher Self <cself@btinternet.com>
Date2022-07-02 15:06 +0100
SubjectFont_ScanString, icon widths not sticking
Message-ID<5a01b90ed6cself@btinternet.com>
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

[toc] | [next] | [standalone]


#6417

Fromsvrsig <chris@svrsig.org>
Date2022-10-21 01:35 -0700
Message-ID<db06d5f3-ddad-4aad-aad5-d9b5483d1d3dn@googlegroups.com>
In reply to#6393
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.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.sys.acorn.programmer


csiph-web