Share via


CTFontDescriptor Constructors

Definition

Overloads

Name Description
CTFontDescriptor(CTFontDescriptorAttributes)

Creates a font descriptor from a set of attributes.

CTFontDescriptor(String, NFloat)

CTFontDescriptor(CTFontDescriptorAttributes)

Creates a font descriptor from a set of attributes.

public CTFontDescriptor(CoreText.CTFontDescriptorAttributes attributes);
new CoreText.CTFontDescriptor : CoreText.CTFontDescriptorAttributes -> CoreText.CTFontDescriptor

Parameters

attributes
CTFontDescriptorAttributes

Font attributes to use for the font descriptor.

Remarks

var attributes = new CTFontDescriptorAttributes () {
	FamilyName = "Times New Roman"
};

var fontDescriptor = new CTFontDescriptor (attributes);

Applies to

CTFontDescriptor(String, NFloat)

public CTFontDescriptor(string name, System.Runtime.InteropServices.NFloat size);
new CoreText.CTFontDescriptor : string * System.Runtime.InteropServices.NFloat -> CoreText.CTFontDescriptor

Parameters

name
String
size
NFloat

Applies to