CTFontDescriptor Constructors
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.
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.