preferredFontForTextStyle中各个字体大小备忘

目前有的preferredFontForTextStyle各个字体输出

  • 设置系统字体大小的方法:设置-》辅助功能-》显示与文字大小-》更大字体-》打开“更大的辅助功能字体”,调整大小
  • preferredFontForTextStyle中各个字体大小备忘_第1张图片
    //UIKIT_EXTERN UIFontTextStyle const UIFontTextStyleLargeTitle API_AVAILABLE(ios(11.0), watchos(5.0)) API_UNAVAILABLE(tvos);
    //UIKIT_EXTERN UIFontTextStyle const UIFontTextStyleTitle1 API_AVAILABLE(ios(9.0));
    //UIKIT_EXTERN UIFontTextStyle const UIFontTextStyleTitle2 API_AVAILABLE(ios(9.0));
    //UIKIT_EXTERN UIFontTextStyle const UIFontTextStyleTitle3 API_AVAILABLE(ios(9.0));
    //UIKIT_EXTERN UIFontTextStyle const UIFontTextStyleHeadline API_AVAILABLE(ios(7.0));
    //UIKIT_EXTERN UIFontTextStyle const UIFontTextStyleSubheadline API_AVAILABLE(ios(7.0));
    //UIKIT_EXTERN UIFontTextStyle const UIFontTextStyleBody API_AVAILABLE(ios(7.0));
    //UIKIT_EXTERN UIFontTextStyle const UIFontTextStyleCallout API_AVAILABLE(ios(9.0));
    //UIKIT_EXTERN UIFontTextStyle const UIFontTextStyleFootnote API_AVAILABLE(ios(7.0));
    //UIKIT_EXTERN UIFontTextStyle const UIFontTextStyleCaption1 API_AVAILABLE(ios(7.0));
    //UIKIT_EXTERN UIFontTextStyle const UIFontTextStyleCaption2 API_AVAILABLE(ios(7.0));
        NSLog(@"%@ ", [UIFont preferredFontForTextStyle:UIFontTextStyleTitle1]);
        NSLog(@"%@ ", [UIFont preferredFontForTextStyle:UIFontTextStyleTitle2]);
        NSLog(@"%@ ", [UIFont preferredFontForTextStyle:UIFontTextStyleTitle3]);
        NSLog(@"%@ ", [UIFont preferredFontForTextStyle:UIFontTextStyleHeadline]);
        NSLog(@"%@ ", [UIFont preferredFontForTextStyle:UIFontTextStyleSubheadline]);
        NSLog(@"%@ ", [UIFont preferredFontForTextStyle:UIFontTextStyleBody]);
        NSLog(@"%@ ", [UIFont preferredFontForTextStyle:UIFontTextStyleFootnote]);
        NSLog(@"%@ ", [UIFont preferredFontForTextStyle:UIFontTextStyleCaption1]);
        NSLog(@"%@ ", [UIFont preferredFontForTextStyle:UIFontTextStyleCaption2]);

默认没有修改的字体大小

 font-family: "UICTFontTextStyleTitle1"; font-weight: normal; font-style: normal; font-size: 28.00pt 
 font-family: "UICTFontTextStyleTitle2"; font-weight: normal; font-style: normal; font-size: 22.00pt 
 font-family: "UICTFontTextStyleTitle3"; font-weight: normal; font-style: normal; font-size: 20.00pt 
 font-family: "UICTFontTextStyleHeadline"; font-weight: bold; font-style: normal; font-size: 17.00pt 
 font-family: "UICTFontTextStyleSubhead"; font-weight: normal; font-style: normal; font-size: 15.00pt 
 font-family: "UICTFontTextStyleBody"; font-weight: normal; font-style: normal; font-size: 17.00pt 
 font-family: "UICTFontTextStyleFootnote"; font-weight: normal; font-style: normal; font-size: 13.00pt 
 font-family: "UICTFontTextStyleCaption1"; font-weight: normal; font-style: normal; font-size: 12.00pt 
 font-family: "UICTFontTextStyleCaption2"; font-weight: normal; font-style: normal; font-size: 11.00pt 

改为最大字体后的字体大小

 font-family: "UICTFontTextStyleTitle1"; font-weight: normal; font-style: normal; font-size: 58.00pt 
 font-family: "UICTFontTextStyleTitle2"; font-weight: normal; font-style: normal; font-size: 56.00pt 
 font-family: "UICTFontTextStyleTitle3"; font-weight: normal; font-style: normal; font-size: 55.00pt 
 font-family: "UICTFontTextStyleHeadline"; font-weight: bold; font-style: normal; font-size: 53.00pt 
 font-family: "UICTFontTextStyleSubhead"; font-weight: normal; font-style: normal; font-size: 49.00pt 
 font-family: "UICTFontTextStyleBody"; font-weight: normal; font-style: normal; font-size: 53.00pt 
 font-family: "UICTFontTextStyleFootnote"; font-weight: normal; font-style: normal; font-size: 44.00pt 
 font-family: "UICTFontTextStyleCaption1"; font-weight: normal; font-style: normal; font-size: 43.00pt 
 font-family: "UICTFontTextStyleCaption2"; font-weight: normal; font-style: normal; font-size: 40.00pt 

你可能感兴趣的:(ios,ios)