Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Showcard Gothic font won't appear in Firefox. How do I change website code to preload a font for Firefox browsers?

  • 3 个回答
  • 1 人有此问题
  • 9 次查看
  • 最后回复者为 cor-el

more options

I wrote my websites a few years ago. I found out how to preload unusual fonts in the "common.css" file so that Showcard Gothic would appear for people who don't happen to have that font in their Windows / Fonts directory. I think it's working when Internet Explorer users call up my website... www.retrosportsgames.com. I tried using Firefox for the first time today and that font defaults out to Times Roman. Can I get a link to a PDF that describes how I need to amend my "common.css" file to preload Showcard Gothic?

I wrote my websites a few years ago. I found out how to preload unusual fonts in the "common.css" file so that Showcard Gothic would appear for people who don't happen to have that font in their Windows / Fonts directory. I think it's working when Internet Explorer users call up my website... www.retrosportsgames.com. I tried using Firefox for the first time today and that font defaults out to Times Roman. Can I get a link to a PDF that describes how I need to amend my "common.css" file to preload Showcard Gothic?

所有回复 (3)

more options

The problem is a trailing ',' in the @font-face rule.

@font-face {
	font-family: Showcard Gothic;
	src: url('SHOWG.eot'); /* IE9 Compat Modes */
	src: url('SHOWG.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
	     url('SHOWG.ttf')  format('truetype'), /* Safari, Android, iOS */
}

This works for me:

@font-face {
	font-family: Showcard Gothic;
	src: url('SHOWG.eot'); /* IE9 Compat Modes */
	src: url('SHOWG.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
	     url('SHOWG.ttf')  format('truetype') /* Safari, Android, iOS */
}
more options

I tried it and it worked for one page in the website (when I entered using the Index page), but not when I entered the site via one of the other pages (the Nostalgia page). Check out www.retrosportsgames.com on a Firefox browser and let me know what you see.

more options

Works for me on www.retrosportsgames.com and www.retrosportsgames.com/Current_Select_Chicago.htm

You can try these steps in case of issues with web pages:

You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.

  • Hold down the Shift key and left-click the Reload button
  • Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
  • Press "Command + Shift + R" (Mac)

Clear the cache and remove the cookies from websites that cause problems via the "3-bar" Firefox menu button (Options/Preferences).

"Clear the cache":

  • Firefox/Options/Preferences -> Advanced -> Network -> Cached Web Content: "Clear Now"

"Remove the cookies" from websites that cause problems.

  • Firefox/Options/Preferences -> Privacy -> "Use custom settings for history" -> Cookies: "Show Cookies"

由cor-el于修改