aaa0009
V2EX  ›  问与答

如何下载 google 字体

  •  
  •   aaa0009 · Oct 6, 2016 · 2751 views
    This topic created in 3553 days ago, the information mentioned may be changed or developed.
    比如,如果这样用了, 如何下载并且使用: https://fonts.googleapis.com/css?family=Open+Sans:400,600,700
    7 replies    2016-10-07 20:44:58 +08:00
    seki
        1
    seki  
       Oct 6, 2016   ❤️ 1
    https://fonts.google.com 选了之后,右下角的小窗口的右上角有一个下载按钮
    或者直接去 google fonts 的 github 页面下 https://github.com/google/fonts/tree/master/apache
    aaa0009
        2
    aaa0009  
    OP
       Oct 6, 2016
    @seki 这个下载后是可以网站上使用的吧?
    Showfom
        3
    Showfom  
    PRO
       Oct 6, 2016 via iPhone   ❤️ 1
    @aaa0009 可以
    seki
        4
    seki  
       Oct 6, 2016
    可以
    你具体情况是怎么样,想怎么用?
    aaa0009
        5
    aaa0009  
    OP
       Oct 7, 2016
    @seki 直接引用,替换这一行代码:
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700' rel='stylesheet' type='text/css'>
    aaa0009
        6
    aaa0009  
    OP
       Oct 7, 2016
    @Showfom 下载后,如何直接引用,替换这一行代码:
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700' rel='stylesheet' type='text/css'>
    seki
        7
    seki  
       Oct 7, 2016   ❤️ 1
    你给的这个 css 里面除了字体还有 woff svg 之类的,下载回来的字体文件不能直接替换掉
    这种可以试试 font squirrel 的 webfont kit
    https://www.fontsquirrel.com/fonts/open-sans
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2640 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 15:44 · PVG 23:44 · LAX 08:44 · JFK 11:44
    ♥ Do have faith in what you're doing.