home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / programm / 6139 < prev    next >
Encoding:
Internet Message Format  |  1992-09-13  |  1.0 KB

  1. Path: sparky!uunet!overload!dillon
  2. From: dillon@overload.Berkeley.CA.US (Matthew Dillon)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re:  PSsetfont
  5. Distribution: world
  6. Message-ID: <dillon.0nol@overload.Berkeley.CA.US>
  7. References:  <1992Sep11.160744.2376@axion.bt.co.uk> <1992Sep12.224836.17946@next.cambridge.ma.us>
  8. Date: 13 Sep 92 09:42:21 PST
  9. Organization: Not an Organization
  10. Lines: 24
  11.  
  12. In article <1992Sep12.224836.17946@next.cambridge.ma.us> simsong@next.cambridge.ma.us (Simson L. Garfinkel) writes:
  13. >Don't use the PS wraps for fonts; use the Font class.  It's  much faster.
  14. >
  15. >    id    aFont = [Font newFont:"Times-Roman" size:12.0];
  16. >
  17. >    [aFont set];
  18. >    PSmoveto(323,321)
  19. >    PSshow("foobar");
  20. >
  21. >to change the size, use:
  22. >
  23. >    aFont = [Font newFont:[aFont name] size:aNewSize];
  24.  
  25.     Don't you want to free the old aFont ?
  26.  
  27.                     -Matt
  28.  
  29. --
  30.  
  31.     Matthew Dillon        dillon@Overload.Berkeley.CA.US
  32.     1005 Apollo Way        uunet.uu.net!overload!dillon
  33.     Incline Village, NV. 89451    ham: KC6LVW (no mail drop)
  34.     USA             Sandel-Avery Engineering (702)831-8000
  35.  
  36.