70599
V2EX  ›  macOS

El Capitan 新的系统英文字体家族名叫什么?为什么字体册里找不到?

  •  
  •   70599 · Oct 8, 2015 · 3593 views
    This topic created in 3911 days ago, the information mentioned may be changed or developed.
    El Capitan 使用了圣弗朗西斯科做新的系统英文字体,可是为什么字体册中找不到这个字体?
    想要在 css 中本地调用这个字体,家族名该怎么写?
    13 replies    2015-10-11 14:01:19 +08:00
    chyiz
        1
    chyiz  
       Oct 8, 2015   ❤️ 1
    就是找不到的,不知道苹果怎么想的。
    css 里面 font family 要用 -apple-system
    https://www.webkit.org/blog/3709/using-the-system-font-in-web-content/
    70599
        2
    70599  
    OP
       Oct 8, 2015
    感谢回复。

    测试结果:
    火狐:失败
    Safari :成功

    看来只支持 webkit 浏览器。
    有朋友知道火狐的解决方案吗?
    (我想在火狐的样式(地址栏、搜索栏)中使用此字体)
    chyiz
        3
    chyiz  
       Oct 8, 2015
    nino
        4
    nino  
       Oct 8, 2015
    ".SFNSDisplay-Regular"
    70599
        5
    70599  
    OP
       Oct 9, 2015
    @chyiz
    Nightly ( 20151008 版)地址栏和搜索栏也还是 Helvetica ,-apple-system 也无效。

    @nino
    火狐、 Safari 都不认。
    t895
        6
    t895  
       Oct 9, 2015
    -apple-system
    chyiz
        7
    chyiz  
       Oct 9, 2015
    @70599 哈,貌似那个 bug 是今天才修掉的。所以……等到明天再试试?
    ffffwh
        8
    ffffwh  
       Oct 9, 2015
    /System/Library/Fonts 里有
    FontBook 里确实没有,原因不明
    icylord
        9
    icylord  
       Oct 9, 2015
    @ffffwh otf 导致的?
    IanPeverell
        10
    IanPeverell  
       Oct 9, 2015
    font book 还要手动添加?
    70599
        11
    70599  
    OP
       Oct 11, 2015
    @chyiz
    20151010 版 Nightly 的界面字体变成 San Fransisco 了。
    70599
        12
    70599  
    OP
       Oct 11, 2015
    -apple-system 也认了。
    m0yBPjyX3475syS4
        13
    m0yBPjyX3475syS4  
       Oct 11, 2015
    系統內建隱藏版本,至於非隱藏版本需要到 Apple Developer Center 手動下載。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3227 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 55ms · UTC 11:41 · PVG 19:41 · LAX 04:41 · JFK 07:41
    ♥ Do have faith in what you're doing.