CTFontDescriptor 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CTFontDescriptor(CTFontDescriptorAttributes) |
从一组属性创建字体描述符。 |
CTFontDescriptor(String, nfloat) |
根据 PostScript 名称 (和可选大小) 创建字体描述符。 |
CTFontDescriptor(CTFontDescriptorAttributes)
从一组属性创建字体描述符。
public CTFontDescriptor (CoreText.CTFontDescriptorAttributes attributes);
new CoreText.CTFontDescriptor : CoreText.CTFontDescriptorAttributes -> CoreText.CTFontDescriptor
参数
- attributes
- CTFontDescriptorAttributes
用于字体描述符的字体属性。
注解
var attributes = new CTFontDescriptorAttributes () {
FamilyName = "Times New Roman"
};
var fontDescriptor = new CTFontDescriptor (attributes);