Düzenle

Aracılığıyla paylaş


CTFontDescriptor Constructors

Definition

Overloads

CTFontDescriptor(CTFontDescriptorAttributes)

Creates a font descriptor from a set of attributes.

CTFontDescriptor(String, nfloat)

Creates a font descriptor from a PostScript name (and optional size).

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)

Creates a font descriptor from a PostScript name (and optional size).

public CTFontDescriptor (string name, nfloat size);
new CoreText.CTFontDescriptor : string * nfloat -> CoreText.CTFontDescriptor

Parameters

name
String

PostScript name for the font to create.

size
nfloat

The desired size. If the size is zero, the font is treated as if the size had not been specified.

Applies to