Szerkesztés

Megosztás a következőn keresztül:


CTFont Constructors

Definition

Overloads

CTFont(CTFontDescriptor, nfloat)
CTFont(String, nfloat, CGAffineTransform, CTFontOptions)
CTFont(CTFontDescriptor, nfloat, CTFontOptions, CGAffineTransform)
CTFont(String, nfloat, CTFontOptions)
CTFont(String, nfloat, CGAffineTransform)
CTFont(CTFontUIFontType, nfloat, String)
CTFont(CGFont, nfloat, CGAffineTransform, CTFontDescriptor)
CTFont(CTFontDescriptor, nfloat, CGAffineTransform)
CTFont(CGFont, nfloat, CTFontDescriptor)
CTFont(CGFont, nfloat, CGAffineTransform)
CTFont(String, nfloat)
CTFont(CTFontDescriptor, nfloat, CTFontOptions)

CTFont(CTFontDescriptor, nfloat)

public CTFont (CoreText.CTFontDescriptor descriptor, nfloat size);
new CoreText.CTFont : CoreText.CTFontDescriptor * nfloat -> CoreText.CTFont

Parameters

descriptor
CTFontDescriptor

Font descriptor to use to create the font.

size
nfloat

The desired font size. If you specify zero, it will use the system default.

Applies to

CTFont(String, nfloat, CGAffineTransform, CTFontOptions)

public CTFont (string name, nfloat size, ref CoreGraphics.CGAffineTransform matrix, CoreText.CTFontOptions options);
new CoreText.CTFont : string * nfloat *  * CoreText.CTFontOptions -> CoreText.CTFont

Parameters

name
String
size
nfloat
options
CTFontOptions

Applies to

CTFont(CTFontDescriptor, nfloat, CTFontOptions, CGAffineTransform)

public CTFont (CoreText.CTFontDescriptor descriptor, nfloat size, CoreText.CTFontOptions options, ref CoreGraphics.CGAffineTransform matrix);
new CoreText.CTFont : CoreText.CTFontDescriptor * nfloat * CoreText.CTFontOptions *  -> CoreText.CTFont

Parameters

descriptor
CTFontDescriptor
size
nfloat
options
CTFontOptions

Applies to

CTFont(String, nfloat, CTFontOptions)

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

Parameters

name
String
size
nfloat
options
CTFontOptions

Applies to

CTFont(String, nfloat, CGAffineTransform)

public CTFont (string name, nfloat size, ref CoreGraphics.CGAffineTransform matrix);
new CoreText.CTFont : string * nfloat *  -> CoreText.CTFont

Parameters

name
String
size
nfloat

Applies to

CTFont(CTFontUIFontType, nfloat, String)

public CTFont (CoreText.CTFontUIFontType uiType, nfloat size, string language);
new CoreText.CTFont : CoreText.CTFontUIFontType * nfloat * string -> CoreText.CTFont

Parameters

size
nfloat
language
String

Applies to

CTFont(CGFont, nfloat, CGAffineTransform, CTFontDescriptor)

public CTFont (CoreGraphics.CGFont font, nfloat size, CoreGraphics.CGAffineTransform transform, CoreText.CTFontDescriptor descriptor);
new CoreText.CTFont : CoreGraphics.CGFont * nfloat * CoreGraphics.CGAffineTransform * CoreText.CTFontDescriptor -> CoreText.CTFont

Parameters

font
CGFont
size
nfloat
transform
CGAffineTransform
descriptor
CTFontDescriptor

Applies to

CTFont(CTFontDescriptor, nfloat, CGAffineTransform)

public CTFont (CoreText.CTFontDescriptor descriptor, nfloat size, ref CoreGraphics.CGAffineTransform matrix);
new CoreText.CTFont : CoreText.CTFontDescriptor * nfloat *  -> CoreText.CTFont

Parameters

descriptor
CTFontDescriptor
size
nfloat

Applies to

CTFont(CGFont, nfloat, CTFontDescriptor)

public CTFont (CoreGraphics.CGFont font, nfloat size, CoreText.CTFontDescriptor descriptor);
new CoreText.CTFont : CoreGraphics.CGFont * nfloat * CoreText.CTFontDescriptor -> CoreText.CTFont

Parameters

font
CGFont
size
nfloat
descriptor
CTFontDescriptor

Applies to

CTFont(CGFont, nfloat, CGAffineTransform)

public CTFont (CoreGraphics.CGFont font, nfloat size, CoreGraphics.CGAffineTransform transform);
new CoreText.CTFont : CoreGraphics.CGFont * nfloat * CoreGraphics.CGAffineTransform -> CoreText.CTFont

Parameters

font
CGFont
size
nfloat
transform
CGAffineTransform

Applies to

CTFont(String, nfloat)

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

Parameters

name
String

The name of the font. Use PostScript names (for example "HelveticaNeue").

size
nfloat

The desired font size. If you specify zero, it will use the system default.

Remarks

Although currently iOS this allows the "name" parameter to use aliases to the font, in addition to the Postscript name, use of non-Postscript names for this parameter has been deprecated, due to the slow and expensive fallback scan.

If you want to create fonts from other names (like the fullname "Helvetica Neue" instead of the PostScript name "HelveticaNeue") you can use C:CoreText.CTFontDescriptor(CoreText.CTFontDescriptorAttributes).

Applies to

CTFont(CTFontDescriptor, nfloat, CTFontOptions)

public CTFont (CoreText.CTFontDescriptor descriptor, nfloat size, CoreText.CTFontOptions options);
new CoreText.CTFont : CoreText.CTFontDescriptor * nfloat * CoreText.CTFontOptions -> CoreText.CTFont

Parameters

descriptor
CTFontDescriptor
size
nfloat
options
CTFontOptions

Applies to