Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Staff meeting in the conference room in 3 minutes.


devel / comp.sys.acorn.programmer / Font_ScanString, icon widths not sticking

SubjectAuthor
* Font_ScanString, icon widths not stickingChristopher Self
`- Re: Font_ScanString, icon widths not stickingsvrsig

1
Font_ScanString, icon widths not sticking

<5a01b90ed6cself@btinternet.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=165&group=comp.sys.acorn.programmer#165

  copy link   Newsgroups: comp.sys.acorn.programmer
Path: i2pn2.org!i2pn.org!aioe.org!1Am8TetVz1ySmynpC1a/3g.user.46.165.242.75.POSTED!not-for-mail
From: cself@btinternet.com (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
 by: Christopher Self - Sat, 2 Jul 2022 14:06 UTC

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

Re: Font_ScanString, icon widths not sticking

<db06d5f3-ddad-4aad-aad5-d9b5483d1d3dn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=189&group=comp.sys.acorn.programmer#189

  copy link   Newsgroups: comp.sys.acorn.programmer
X-Received: by 2002:a05:622a:64c:b0:39c:ba62:ef05 with SMTP id a12-20020a05622a064c00b0039cba62ef05mr14855441qtb.351.1666341321453;
Fri, 21 Oct 2022 01:35:21 -0700 (PDT)
X-Received: by 2002:a0d:fe07:0:b0:360:c3e9:fc8a with SMTP id
o7-20020a0dfe07000000b00360c3e9fc8amr16163845ywf.441.1666341321285; Fri, 21
Oct 2022 01:35:21 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.acorn.programmer
Date: Fri, 21 Oct 2022 01:35:20 -0700 (PDT)
In-Reply-To: <5a01b90ed6cself@btinternet.com>
Injection-Info: google-groups.googlegroups.com; posting-host=81.178.166.119; posting-account=_FourwoAAABL0pe47Cm9loWPjQ7_ubPF
NNTP-Posting-Host: 81.178.166.119
References: <5a01b90ed6cself@btinternet.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <db06d5f3-ddad-4aad-aad5-d9b5483d1d3dn@googlegroups.com>
Subject: Re: Font_ScanString, icon widths not sticking
From: chris@svrsig.org (svrsig)
Injection-Date: Fri, 21 Oct 2022 08:35:21 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1351
 by: svrsig - Fri, 21 Oct 2022 08:35 UTC

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.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor