CGFont.CreateWithFontName(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.