MonobjcMonobjc Documented Class Library
FontWithDescriptorSize Method (fontDescriptor, fontSize)
NamespacesMonobjc.AppKitNSFontFontWithDescriptorSize(NSFontDescriptor, CGFloat)

Returns a font object for the specified font descriptor and font size.

Original signature is '+ (NSFont *)fontWithDescriptor:(NSFontDescriptor *)fontDescriptor size:(CGFloat)fontSize'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSFont FontWithDescriptorSize(
	NSFontDescriptor fontDescriptor,
	CGFloat fontSize
Public Shared Function FontWithDescriptorSize ( _
	fontDescriptor As NSFontDescriptor, _
	fontSize As CGFloat _
) As NSFont
static NSFont^ FontWithDescriptorSize(
	NSFontDescriptor^ fontDescriptor, 
	CGFloat fontSize
fontDescriptor (NSFontDescriptor)
A font descriptor object.
fontSize (CGFloat)
The size in points to which the font is scaled.
Return Value
A font object for the specified descriptor 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)