Returns a font descriptor with the NSFontNameAttribute and NSFontSizeAttribute dictionary attributes set to the given values.
Original signature is '+ (NSFontDescriptor *)fontDescriptorWithName:(NSString *)fontName size:(CGFloat)size'
Available in Mac OS X v10.3 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static NSFontDescriptor FontDescriptorWithNameSize( NSString fontName, CGFloat size )
Public Shared Function FontDescriptorWithNameSize ( _ fontName As NSString, _ size As CGFloat _ ) As NSFontDescriptor
public: static NSFontDescriptor^ FontDescriptorWithNameSize( NSString^ fontName, CGFloat size )
Return Value
The new font descriptor.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)