Getting the size of an NSFont

You’d think this would work right

[NSFont fontSize]

Well that didn’t work for me. This did:

[[[(NSFont*)[option objectForKey:kFont] fontDescriptor] objectForKey:NSFontSizeAttribute] floatValue]

May this post save your some of the frustration I experienced!

Comments (2) | Trackback