MonobjcMonobjc Documented Class Library
FontDescriptorWithNameSize Method (fontName, size)
NamespacesMonobjc.AppKitNSFontDescriptorFontDescriptorWithNameSize(NSString, CGFloat)

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 BasicVisual C++
public static NSFontDescriptor FontDescriptorWithNameSize(
	NSString fontName,
	CGFloat size
Public Shared Function FontDescriptorWithNameSize ( _
	fontName As NSString, _
	size As CGFloat _
) As NSFontDescriptor
static NSFontDescriptor^ FontDescriptorWithNameSize(
	NSString^ fontName, 
	CGFloat size
fontName (NSString)
The value for NSFontNameAttribute.
size (CGFloat)
The value for NSFontSizeAttribute.
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)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)