Article View: comp.sys.next.programmer
Article #1008Re: PSsetfont
From: Matthew Dillon
Date: Sun, 13 Sep 1992 17:42
Date: Sun, 13 Sep 1992 17:42
23 lines
1082 bytes
1082 bytes
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
Technical Details
Message-ID:
<dillon.0nol@overload.Berkeley.CA.US>Path:
arc1-ca.pugleaf.net!sparky!uunet!overload!dillonReferences:
<1992Sep11.160744.2376@axion.bt.co.uk> <1992Sep12.224836.17946@next.cambridge.ma.us>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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