MonobjcMonobjc Documented Class Library
ConvertFontToFamily Method (aFont, family)
NamespacesMonobjc.AppKitNSFontManagerConvertFontToFamily(NSFont, NSString)

Returns a font whose traits are as similar as possible to those of the given font except for the font family, which is changed to the given family.

Original signature is '- (NSFont *)convertFont:(NSFont *)aFont toFamily:(NSString *)family'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSFont ConvertFontToFamily(
	NSFont aFont,
	NSString family
)
Public Overridable Function ConvertFontToFamily ( _
	aFont As NSFont, _
	family As NSString _
) As NSFont
public:
virtual NSFont^ ConvertFontToFamily(
	NSFont^ aFont, 
	NSString^ family
)
Parameters
aFont (NSFont)
The font whose traits are matched.
family (NSString)
The new font famliy; a generic font name, such as Helvetica or Times.
Return Value
A font with matching traits and the given family, 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)