Google Webfont无法在GAE网站上展示

时间:2022-01-29 23:12:13

So I'm trying to use a Google Webfont on a GAE site. The font works when I browse the site locally, but after I deploy and go to the .appspot.com address, the font no longer works and defaults to "cursive".

所以我试图在GAE网站上使用Google Webfont。当我在本地浏览网站时,该字体有效,但在部署并转到.appspot.com地址后,该字体不再有效,默认为“草书”。

Here's the relevant code:

这是相关的代码:

CSS:

.logo {
  font-family: 'Nothing You Could Do', cursive;
}

HTML:

<head>
    <link href='http://fonts.googleapis.com/css?family=Nothing+You+Could+Do' rel='stylesheet' type='text/css'> 
</head>
<a class="logo" href="/">Project</a>

1 个解决方案

#1


0  

I believe it is a browser issue.

我认为这是一个浏览器问题。

Quoting from here:

引自这里:

What browsers are supported? The Google Web Fonts API is compatible with the following browsers:

支持哪些浏览器? Google Web Fonts API与以下浏览器兼容:

Google Chrome: version 4.249.4+ Mozilla Firefox: version: 3.5+ Apple Safari: version 3.1+ Opera: version 10.5+ Microsoft Internet Explorer: version 6+

谷歌浏览器:版本4.249.4+ Mozilla Firefox:版本:3.5+ Apple Safari:版本3.1+ Opera:版本10.5+ Microsoft Internet Explorer:版本6+

What do unsupported browsers see? If someone using an unsupported browser visits a page that uses the Web Fonts API, then the text is displayed using the next available font in your CSS font stack.

不支持的浏览器会看到什么?如果使用不受支持的浏览器的用户访问使用Web Fonts API的页面,则使用CSS字体堆栈中的下一个可用字体显示文本。

#1


0  

I believe it is a browser issue.

我认为这是一个浏览器问题。

Quoting from here:

引自这里:

What browsers are supported? The Google Web Fonts API is compatible with the following browsers:

支持哪些浏览器? Google Web Fonts API与以下浏览器兼容:

Google Chrome: version 4.249.4+ Mozilla Firefox: version: 3.5+ Apple Safari: version 3.1+ Opera: version 10.5+ Microsoft Internet Explorer: version 6+

谷歌浏览器:版本4.249.4+ Mozilla Firefox:版本:3.5+ Apple Safari:版本3.1+ Opera:版本10.5+ Microsoft Internet Explorer:版本6+

What do unsupported browsers see? If someone using an unsupported browser visits a page that uses the Web Fonts API, then the text is displayed using the next available font in your CSS font stack.

不支持的浏览器会看到什么?如果使用不受支持的浏览器的用户访问使用Web Fonts API的页面,则使用CSS字体堆栈中的下一个可用字体显示文本。