Re: NSFont and determining the advancement of a given string
Re: NSFont and determining the advancement of a given string
- Subject: Re: NSFont and determining the advancement of a given string
- From: Matt Neuburg <email@hidden>
- Date: Sun, 15 Oct 2006 17:20:01 -0700
- Thread-topic: NSFont and determining the advancement of a given string
On Sun, 15 Oct 2006 16:51:06 +1000, "A Blossom of Paradise"
<email@hidden> said:
>dear fellow cocoa developers!,
>
>mr. new-to-cocoa here.
>
>can someone give me some advice how to get a Helvetica 12.0pt bold NSFont? i
can [NSFont fontWithName : @"Helvetica" size: 12.0], but where is the bold!!!???
Got archives!!!!!?????
<http://www.cocoabuilder.com/search/archive/cocoa?words=nsfont+fontwithname+
bold>
The very first hit tells you the answer.
> how can i find how much space (advancement) an arbitrary string will take to
> display
Got docs!!!!!????
<http://developer.apple.com/cgi-bin/search.pl?q=nsstring+size&num=10&site=de
fault_collection>
The second hit tells you the answer.
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden