MonobjcMonobjc Documented Class Library
FontWithNameSize Method (fontName, fontSize)
NamespacesMonobjc.AppKitNSFontFontWithNameSize(NSString, CGFloat)

Creates a font object for the specified font name and font size.

Original signature is '+ (NSFont *)fontWithName:(NSString *)fontName size:(CGFloat)fontSize'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSFont FontWithNameSize(
	NSString fontName,
	CGFloat fontSize
Public Shared Function FontWithNameSize ( _
	fontName As NSString, _
	fontSize As CGFloat _
) As NSFont
static NSFont^ FontWithNameSize(
	NSString^ fontName, 
	CGFloat fontSize
fontName (NSString)
The fully specified family-face name of the font.
fontSize (CGFloat)
The size in points to which the font is scaled.
Return Value
A font object for the specified name and size.
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)