home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!overload!dillon
- From: dillon@overload.Berkeley.CA.US (Matthew Dillon)
- Newsgroups: comp.sys.next.programmer
- Subject: Re: PSsetfont
- Distribution: world
- Message-ID: <dillon.0nol@overload.Berkeley.CA.US>
- References: <1992Sep11.160744.2376@axion.bt.co.uk> <1992Sep12.224836.17946@next.cambridge.ma.us>
- Date: 13 Sep 92 09:42:21 PST
- Organization: Not an Organization
- Lines: 24
-
- 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 ?
-
- -Matt
-
- --
-
- Matthew Dillon dillon@Overload.Berkeley.CA.US
- 1005 Apollo Way uunet.uu.net!overload!dillon
- Incline Village, NV. 89451 ham: KC6LVW (no mail drop)
- USA Sandel-Avery Engineering (702)831-8000
-
-