CGFont.CreateWithFontName(String) Method

Definition

Creates a new CGFont representing the specified PostScript or full name.

public static CoreGraphics.CGFont? CreateWithFontName(string name);
static member CreateWithFontName : string -> CoreGraphics.CGFont

Parameters

name
String

The PostScript or full name of the font.

Returns

The new CGFont, or null if name is null or no matching font is found.

Remarks

This method looks up a font by its PostScript name or full name. If no font matching name is found, the method returns null.

Applies to