🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.acorn.tech
Article #629

Size of text in outline font?

#629
From: Lorcan Mongey
Date: Tue, 15 Dec 1992 00:48
17 lines
898 bytes
In article <1992Dec10.103203.23111@reks.uia.ac.be>
derijkp@reks.uia.ac.be (Peter De Rijk) writes:

> The subject sais it. Could anyone tell me how I can get the size of a
> certain string in an outline font from BASIC. (I haven't got the PRM's) 
 
DIMbuffer%&100
string$="Hello world"
$buffer%=string$
SYS "Font_FindFont",,"Trinity.Medium",16*10,16*10 TO handle%
SYS "Font_StringWidth",handle%,buffer%,&FFFF,&FFFF,-1,LEN(string$)
    TO ,,len%
PRINTlen%
 
len% is in millipoints.
 
Lorcan
Technical Details
Message-ID: <921215004810@avistic.demon.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!avistic.demon.co.uk!lorcan

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!avistic.demon.co.uk!lorcan
Newsgroups: comp.sys.acorn.tech
From: lorcan@avistic.demon.co.uk (Lorcan Mongey)
Reply-To: lorcan@avistic.demon.co.uk
Subject: Size of text in outline font?
X-Mailer: ReaderS for the Acorn Archimedes
Date: Tue, 15 Dec 1992 00:48:10 +0000
Message-ID: <921215004810@avistic.demon.co.uk>
Sender: usenet@demon.co.uk
Lines: 18