home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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
-
-