• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSFont and determining the advancement of a given string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: WebView keyboard events
  • Next by Date: Compositing a CIImage to NSBitmapImage planar problems
  • Previous by thread: Re: NSFont and determining the advancement of a given string
  • Next by thread: The buttons at the bottom of a list
  • Index(es):
    • Date
    • Thread