V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
gulullu
V2EX  ›  macOS

怎么在 Xcode 的 Fonts& Colors 里把代码的字体设置为 OSX 10.11 和 iOS 9 的系统默认字体? 网上说新字体叫叫 San Francisco, 找了半天在 All Fonts 里没找到啊

  •  
  •   gulullu · 2015-06-10 12:13:41 +08:00 · 5903 次点击
    这是一个创建于 3251 天前的主题,其中的信息可能已经有所发展或是发生改变。
    14 条回复    2015-06-11 13:30:00 +08:00
    cielpy
        1
    cielpy  
       2015-06-10 12:18:40 +08:00
    新字体叫Pingfang吧?
    cielpy
        2
    cielpy  
       2015-06-10 12:19:11 +08:00
    哦。似乎是中文有新字体,英文没听说换字体了呀。
    insraq
        3
    insraq  
       2015-06-10 12:21:10 +08:00
    thedevil5032
        4
    thedevil5032  
       2015-06-10 12:33:27 +08:00
    Why not Inconsolata or Source Code Pro?
    gulullu
        5
    gulullu  
    OP
       2015-06-10 12:51:51 +08:00
    @cielpy Pingfang 貌似也没找到
    Vanson
        6
    Vanson  
       2015-06-10 12:53:55 +08:00
    我也没有找到San Francisco Font,系统已经是10.11
    gulullu
        7
    gulullu  
    OP
       2015-06-10 12:59:19 +08:00
    @insraq 谢谢,验证可用
    zikkeung
        8
    zikkeung  
       2015-06-10 14:08:50 +08:00
    Pingfang去哪下载尼,San Francisco Font只是英文的
    alexlur
        9
    alexlur  
       2015-06-10 16:00:48 +08:00   ❤️ 2
    Hi there,

    You can use “-apple-system-font” as a generic reference to the system font, and if it doesn’t work, try “.SFNSText-Regular” (with the dot in front).
    jjgod
        10
    jjgod  
       2015-06-10 16:17:42 +08:00
    San Francisco 不是等宽字体……
    Satelli
        11
    Satelli  
       2015-06-10 18:11:21 +08:00
    用 FontForge 查看了从 OS X El Capitan 中提取出来的“苹方”字体与 San Francisco,这些字体的名称都以“.”开头,各种属性的字段中甚至还有“System Font”、“系统字体”的字样出现。

    将这些字体在 OS X Yosemite 与 Mavericks 中使用字体册安装过程中并不会弹出像其他字体那样的预览框,且不会出现在字体册中,Photoshop、Pages 等软件也不会在字体列表中将这些字体列出。

    姑且做下面的猜测:

    Apple 仅允许 App 使用苹方与 San Francisco 作为界面字体,不允许作为创造内容的字体。
    clippit
        12
    clippit  
       2015-06-10 18:24:52 +08:00
    @Satelli 我也发现了,字体名称是.开头的,装到 Yosemite 里面不会显示(就像隐藏文件),但是重复安装,又会提示字体重复
    zander
        13
    zander  
       2015-06-11 00:10:19 +08:00
    因为是隐藏字体,“.”开头的
    lguan
        14
    lguan  
       2015-06-11 13:30:00 +08:00
    用“.PingFang-SC-Regular”
    参考: http://bitinn.net/11280/
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2490 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 08:29 · PVG 16:29 · LAX 01:29 · JFK 04:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.