home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!ede978e
- From: ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson)
- Subject: Re: PSsetfont
- Message-ID: <1992Sep14.094813.8334@monu6.cc.monash.edu.au>
- Organization: Monash University, Caulfield Campus
- References: <1992Sep11.160744.2376@axion.bt.co.uk> <1992Sep12.224836.17946@next.cambridge.ma.us> <dillon.0nol@overload.Berkeley.CA.US>
- Date: Mon, 14 Sep 1992 09:48:13 GMT
- Lines: 21
-
- dillon@overload.Berkeley.CA.US (Matthew Dillon) writes:
-
- >In article <1992Sep12.224836.17946@next.cambridge.ma.us> simsong@next.cambridge.ma.us (Simson L. Garfinkel) writes:
- >>Don't use the PS wraps for fonts; use the Font class. It's much faster.
- >>
- >> id aFont = [Font newFont:"Times-Roman" size:12.0];
- >>
- >> [aFont set];
- >> PSmoveto(323,321)
- >> PSshow("foobar");
- >>
- >>to change the size, use:
- >>
- >> aFont = [Font newFont:[aFont name] size:aNewSize];
-
- > Don't you want to free the old aFont ?
-
- A quick look at Font.rft cleared this up.
-
- "Thus, Font objects shouldn't be freed; Font's free method simply returns self"
-
-