MonobjcMonobjc Documented Class Library
ConvertWeightOfFont Method (increaseFlag, aFont)
NamespacesMonobjc.AppKitNSFontManagerConvertWeightOfFont(Boolean, NSFont)

Returns an NSFont object whose weight is greater or lesser than that of the given font, if possible.

Original signature is '- (NSFont *)convertWeight:(BOOL)increaseFlag ofFont:(NSFont *)aFont'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSFont ConvertWeightOfFont(
	bool increaseFlag,
	NSFont aFont
)
Public Overridable Function ConvertWeightOfFont ( _
	increaseFlag As Boolean, _
	aFont As NSFont _
) As NSFont
public:
virtual NSFont^ ConvertWeightOfFont(
	bool increaseFlag, 
	NSFont^ aFont
)
Parameters
increaseFlag (Boolean)
If YES, a heavier font is returned; if it’s NO, a lighter font is returned.
aFont (NSFont)
The font whose weight is increased or decreased.
Return Value
A font with matching traits except for the new weight, or aFont if it can’t be converted.
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)