Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/114.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 文本工具箱:旧金山大写的数学符号_Ios_Fonts_Textkit_System Font - Fatal编程技术网

Ios 文本工具箱:旧金山大写的数学符号

Ios 文本工具箱:旧金山大写的数学符号,ios,fonts,textkit,system-font,Ios,Fonts,Textkit,System Font,在介绍新系统字体时,显示了以下屏幕截图。哪个UIFontDescriptorFeatureSettingsAttribute用于启用此行为 如果其他人对此感到困扰,我发现的一个功能将激活它: let descriptor = UIFont.systemFontOfSize(24.0, weight: UIFontWeightLight).fontDescriptor() let adjusted = descriptor.fontDescriptorByAddingAttributes(

在介绍新系统字体时,显示了以下屏幕截图。哪个UIFontDescriptorFeatureSettingsAttribute用于启用此行为


如果其他人对此感到困扰,我发现的一个功能将激活它:

let descriptor = UIFont.systemFontOfSize(24.0, weight: UIFontWeightLight).fontDescriptor()
let adjusted = descriptor.fontDescriptorByAddingAttributes(
    [
        UIFontDescriptorFeatureSettingsAttribute: [
            [
                UIFontFeatureTypeIdentifierKey: kCaseSensitiveLayoutType,
                UIFontFeatureSelectorIdentifierKey: kCaseSensitiveLayoutOnSelector
            ]
        ]
    ]
)
return UIFont(descriptor: adjusted, size: 24.0)