home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / acorn / tech / 1019 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  871 b 

  1. Path: sparky!uunet!pipex!demon!avistic.demon.co.uk!lorcan
  2. Newsgroups: comp.sys.acorn.tech
  3. From: lorcan@avistic.demon.co.uk (Lorcan Mongey)
  4. Reply-To: lorcan@avistic.demon.co.uk
  5. Subject: Size of text in outline font?
  6. X-Mailer: ReaderS for the Acorn Archimedes
  7. Date: Tue, 15 Dec 1992 00:48:10 +0000
  8. Message-ID: <921215004810@avistic.demon.co.uk>
  9. Sender: usenet@demon.co.uk
  10. Lines: 18
  11.  
  12. In article <1992Dec10.103203.23111@reks.uia.ac.be>
  13. derijkp@reks.uia.ac.be (Peter De Rijk) writes:
  14.  
  15. > The subject sais it. Could anyone tell me how I can get the size of a
  16. > certain string in an outline font from BASIC. (I haven't got the PRM's) 
  17.  
  18. DIMbuffer%&100
  19. string$="Hello world"
  20. $buffer%=string$
  21. SYS "Font_FindFont",,"Trinity.Medium",16*10,16*10 TO handle%
  22. SYS "Font_StringWidth",handle%,buffer%,&FFFF,&FFFF,-1,LEN(string$)
  23.     TO ,,len%
  24. PRINTlen%
  25.  
  26. len% is in millipoints.
  27.  
  28. Lorcan
  29.  
  30.