gulullu
V2EX  ›  macOS

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

  •  
  •   gulullu · Jun 10, 2015 · 7136 views
    This topic created in 4171 days ago, the information mentioned may be changed or developed.
    14 replies  •  2015-06-11 13:30:00 +08:00
    cielpy
    cielpy
    Jun 10, 2015
    1
    新字体叫Pingfang吧?
    cielpy
    cielpy
    Jun 10, 2015
    2
    哦。似乎是中文有新字体,英文没听说换字体了呀。
    thedevil5032
    thedevil5032
    Jun 10, 2015
    4
    Why not Inconsolata or Source Code Pro?
    gulullu
    gulullu
    OP
    Jun 10, 2015
    5
    @cielpy Pingfang 貌似也没找到
    Vanson
    Vanson
    Jun 10, 2015
    6
    我也没有找到San Francisco Font,系统已经是10.11
    gulullu
    gulullu
    OP
    Jun 10, 2015
    7
    @insraq 谢谢,验证可用
    zikkeung
    zikkeung
    Jun 10, 2015
    8
    Pingfang去哪下载尼,San Francisco Font只是英文的
    alexlur
    alexlur
    Jun 10, 2015❤️2
    9
    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
    jjgod
    Jun 10, 2015
    10
    San Francisco 不是等宽字体……
    bsfx2
    bsfx2
    Jun 10, 2015
    11
    用 FontForge 查看了从 OS X El Capitan 中提取出来的“苹方”字体与 San Francisco,这些字体的名称都以“.”开头,各种属性的字段中甚至还有“System Font”、“系统字体”的字样出现。

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

    姑且做下面的猜测:

    Apple 仅允许 App 使用苹方与 San Francisco 作为界面字体,不允许作为创造内容的字体。
    clippit
    clippit
    Jun 10, 2015
    12
    @Satelli 我也发现了,字体名称是.开头的,装到 Yosemite 里面不会显示(就像隐藏文件),但是重复安装,又会提示字体重复
    zander
    zander
    Jun 11, 2015
    13
    因为是隐藏字体,“.”开头的
    lguan
    lguan
    Jun 11, 2015
    14
    用“.PingFang-SC-Regular”
    参考: http://bitinn.net/11280/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   929 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 20:56 · PVG 04:56 · LAX 12:56 · JFK 15:56
    ♥ Do have faith in what you're doing.