Re: Repost: NSFont userFontOfSize vs setUserFixedPitchFont
Re: Repost: NSFont userFontOfSize vs setUserFixedPitchFont
- Subject: Re: Repost: NSFont userFontOfSize vs setUserFixedPitchFont
- From: "Sven-S. Porst" <email@hidden>
- Date: Sat, 5 Jan 2002 20:03:18 +0100
>
The trick - or at least it used to be the trick under NeXTStep/OpenStep,
>
I haven't tried it lately - is to use zero for the size.
>
>
font = [NSFont userFixedPitchFontOfSize:0.0];
In <file:///Developer/Documentation/Cocoa/TasksAndConcepts/
ProgrammingTopics/FontHandling/Tasks/QueryingAquaFontVary.html> they seem
to recommend to using -1.0 as the parameter, which works for me (0.0
might work as well, though - I haven't tried it).
Cheers
Sven
--
Sven-S. Porst . PGP: 0x0085ABA3 .
http://homepage.mac.com/ssp/
Don't panic! Base 8 is just like base 10 really
- if you're missing two fingers.
-- Tom Lehrer, New Maths