Mac Guides | Samples

MonoMac.CoreText.CTFont Constructor

Creates a CTFont from a CoreGraphics CGFont.

Syntax

public CTFont (CGFont font, Single size, CTFontDescriptor descriptor)

Parameters

font
The CoreGraphics CGFont.
size
The desired font size. If you specify zero, it will use the system default.
descriptor
Font descriptor to use to create the font.

Requirements

Namespace: MonoMac.CoreText
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0