zoukankan      html  css  js  c++  java
  • iOS Font

    1. 非常棒的查看字体样貌网站: http://iosfonts.com

         1. 查看设备支持字体: 

            NSArray *familyNames = [NSMutableArray arrayWithArray:[UIFont familyNames]];

         1. 需要导入第三方字体库link? 有些字库可以从OS X中导入 https://support.apple.com/en-hk/HT201375

         1. 导入第三方库,将.otf加入bundle中,配置info.plist Fonts 'provided by application'字段。例如AppleSDGothicNeo-Medium.otf添加进bundle中,则需要在info.plist中添加此,font name便是AppleSDGothicNeo-Medium。检测字库是否被导入:例如应用中用到的所有字库,其实这些字体系统都有

             UIFont *font1 = [UIFont fontWithName:@"Avenir-Roman" size:12];

             UIFont *font2 = [UIFont fontWithName:@"Helvetica Neue" size:12];

             UIFont *font3 = [UIFont fontWithName:@"HelveticaNeue-Medium" size:12];

             UIFont *font4 = [UIFont fontWithName:@"AppleSDGothicNeo-Regular" size:12];

             UIFont *font5 = [UIFont fontWithName:@"AppleSDGothicNeo-Medium" size:12];

             UIFont *font6 = [UIFont fontWithName:@"AppleSDGothicNeo-SemiBold" size:12];

             UIFont *font7 = [UIFont fontWithName:@"AppleSDGothicNeo-Bold" size:12];

             UIFont *font8 = [UIFont fontWithName:@"AppleSDGothicNeo-UltraLight" size:12];

  • 相关阅读:
    SQL SERVER 运维日记
    openstack
    Java GC 日志详解
    突破 BTrace 安全限制
    End-to-End Tracing of Ajax/Java Applications Using DTrace
    调试工具BTrace 的使用--例子
    btrace-dtrace-for-java-ish
    DTrace Probes in HotSpot VM
    DTrace memory leak 内存泄露
    Java-JVM-GC
  • 原文地址:https://www.cnblogs.com/ouyangfang/p/4881770.html
Copyright © 2011-2022 走看看