【问题标题】:how to download google fonts in version bold如何下载粗体版的谷歌字体
【发布时间】:2014-11-28 16:37:12
【问题描述】:

我正在使用 SourceSansPro-Bold。我下载了一个文件 ttf,并且我将其他格式声明为 google 链接。但我的问题是这些链接是否正确?

问题是谷歌链接声明了单词'V4,可能是版本4,但我需要版本“粗体”的字体。

如何检查是否有相同的字体(都是粗体)?

或者如何修改谷歌链接以确保获得粗体?

Css字体定义:

@font-face {
  font-family: 'source sans pro';
  font-style: normal;
  font-weight: bold;
  src: font-url('SourceSansPro-Bold.ttf');
  src: font-url('SourceSansPro-Bold.ttf') format('truetype'),
       local('Source Sans Pro Bold'), local('SourceSansPro-Bold'),
       url(http://themes.googleusercontent.com/static/fonts/sourcesanspro/v4/toadOcfmlt9b38dHJxOBGBlTL9oEQvYTI0YAW1-Ysv0.eot) format('embedded-opentype'),
       url(http://themes.googleusercontent.com/static/fonts/sourcesanspro/v4/toadOcfmlt9b38dHJxOBGNbE_oMaV8t2eFeISPpzbdE.woff) format('woff');
}

内含 V4 字符串的 Google 字体声明:

http://themes.googleusercontent.com/static/fonts/sourcesanspro/v4/toadOcfmlt9b38dHJxOBGBlTL9oEQvYTI0YAW1-Ysv0.eo

【问题讨论】:

    标签: css fonts google-font-api


    【解决方案1】:

    您可以在此处选择所需的字体粗细: https://www.google.com/fonts#UsePlace:use/Collection:Source+Sans+Pro.

    如果您想在本地下载这些文件。

    1. <link> 访问href
    2. 从您需要的字体的@font-face 访问url:
    3. 这将下载字体。

    【讨论】:

    • 看起来很好:),我只有一个问题:这样的导入链接是否会下载几种格式的字体,例如:ttf、woff、eof 或其他?我需要所有浏览器都完全支持它们,对吗?
    • 刚刚好。大多数现代浏览器和设备都支持 Woff。您需要对旧浏览器的支持吗?
    • 支持一些旧的也很好...我可以做类似@font-face { font-family: 'source sans pro';字体样式:正常;字体粗细:粗体; src: font-url('SourceSansPro-Bold.ttf'); src: font-url('SourceSansPro-Bold.ttf') 格式('truetype'), local('Source Sans Pro Bold'), local('SourceSansPro-Bold'), url(fonts.googleapis.com/css?family=Source+Sans+Pro:700); }
    • 将这个 google 链接从您的工具放到字体系列定义中是否正确?
    • Google 只发货。如果您想使用其他类型,则需要转换它们或使用不同的提供程序。
    猜你喜欢
    • 2014-12-16
    • 2018-04-13
    • 1970-01-01
    • 2015-09-24
    • 2016-10-08
    • 2022-01-12
    • 1970-01-01
    • 2017-08-19
    • 2013-08-10
    相关资源
    最近更新 更多