MonobjcMonobjc Documented Class Library
WeightOfFont Method (aFont)
NamespacesMonobjc.AppKitNSFontManagerWeightOfFont(NSFont)

Returns a rough numeric measure the weight of the given font.

Original signature is '- (NSInteger)weightOfFont:(NSFont *)aFont'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSInteger WeightOfFont(
	NSFont aFont
)
Public Overridable Function WeightOfFont ( _
	aFont As NSFont _
) As NSInteger
public:
virtual NSInteger WeightOfFont(
	NSFont^ aFont
)
Parameters
aFont (NSFont)
The font whose weight is returned.
Return Value
A rough numeric measure the weight of the given font, where 0 indicates the lightest possible weight, 5 indicates a normal or book weight, and 9 or more indicates a bold or heavier weight.
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)