Article View: comp.sys.next.programmer
Article #1012Re: PSsetfont
From: Robert D. Nicholson
Date: Mon, 14 Sep 1992 09:48
Date: Mon, 14 Sep 1992 09:48
20 lines
1134 bytes
1134 bytes
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"
Technical Details
Message-ID:
<1992Sep14.094813.8334@monu6.cc.monash.edu.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!ede978eReferences:
<1992Sep11.160744.2376@axion.bt.co.uk> <1992Sep12.224836.17946@next.cambridge.ma.us> <dillon.0nol@overload.Berkeley.CA.US>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!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