【问题标题】:CSS3 @font-face causes the font file to output its sample textCSS3 @font-face 使字体文件输出其示例文本
【发布时间】:2013-07-04 14:32:17
【问题描述】:

我是这样使用@font-face的

@font-face {
font-family: 'SteelTongs';
src: url('../fonts/SteelTongs.ttf') format('truetype');
font-weight: normal;
font-style: normal;
 }

section.page_heading .logo a {
        font-size: 40px;
        font-family: 'SteelTongs';
        text-shadow: 0px 2px rgba(0,0,0,0.36);
        color: #fff;
        text-decoration: none;
        float: left;
        margin-right: 25px;

现在,.ttf 文件中的示例文本通常会显示在徽标容器中

编辑: 见http://www.had.omarsalim.biz

这是一个屏幕截图:

注意标题

请帮忙

我在 chrome 和 firefox 中测试过

【问题讨论】:

  • .ttf 文件不包含示例文本。你到底有什么问题?
  • 确定你使用了正确的字体吗?
  • 感谢您抽出宝贵时间提供帮助 :) 我使用了正确的字体您可以查看had.omarsalim.biz 了解我在说什么

标签: css font-face truetype


【解决方案1】:

我也在firefox和chrome中测试了SteelTongs网络字体,不支持,字体链接是

abstractfonts- steeltongs ,你换个字体就好了。

【讨论】:

  • 嗯,我改了字体,没问题,我猜是字体支持的问题
猜你喜欢
  • 2012-10-23
  • 2011-12-28
  • 2011-11-14
  • 1970-01-01
  • 2013-09-20
  • 1970-01-01
  • 2013-02-13
  • 2015-12-26
  • 2012-09-16
相关资源
最近更新 更多