home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / programm / 6141 < prev    next >
Encoding:
Text File  |  1992-09-13  |  1.1 KB  |  32 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!ede978e
  3. From: ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson)
  4. Subject: Re: PSsetfont
  5. Message-ID: <1992Sep14.094813.8334@monu6.cc.monash.edu.au>
  6. Organization: Monash University, Caulfield Campus
  7. References: <1992Sep11.160744.2376@axion.bt.co.uk> <1992Sep12.224836.17946@next.cambridge.ma.us> <dillon.0nol@overload.Berkeley.CA.US>
  8. Date: Mon, 14 Sep 1992 09:48:13 GMT
  9. Lines: 21
  10.  
  11. dillon@overload.Berkeley.CA.US (Matthew Dillon) writes:
  12.  
  13. >In article <1992Sep12.224836.17946@next.cambridge.ma.us> simsong@next.cambridge.ma.us (Simson L. Garfinkel) writes:
  14. >>Don't use the PS wraps for fonts; use the Font class.  It's  much faster.
  15. >>
  16. >>    id    aFont = [Font newFont:"Times-Roman" size:12.0];
  17. >>
  18. >>    [aFont set];
  19. >>    PSmoveto(323,321)
  20. >>    PSshow("foobar");
  21. >>
  22. >>to change the size, use:
  23. >>
  24. >>    aFont = [Font newFont:[aFont name] size:aNewSize];
  25.  
  26. >    Don't you want to free the old aFont ?
  27.  
  28. A quick look at Font.rft cleared this up.
  29.  
  30. "Thus, Font objects shouldn't be freed; Font's free method simply returns self"
  31.  
  32.