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
| Name | Description |
|---|---|
| CTFontDescriptor(CTFontDescriptorAttributes) |
Creates a font descriptor from a set of attributes. |
| CTFontDescriptor(String, NFloat) |
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);