【问题标题】:Problems with accented letters on website网站上重音字母的问题
【发布时间】:2014-03-13 16:29:44
【问题描述】:

我最近推出了一个网站。它有 2 个语言版本:英语和捷克语。

由于某种原因,我在使用捷克重音字母时遇到问题 - 它们在网站上显示为粗体。 Mozilla Firefox 仅将重音字母加粗,Google Chrome 将连续几个单词加粗。

字符集是 UTF-8。
CMS:WordPress
网址:http://www.languageatelier.eu/cs/

可能是什么问题?有人知道吗?

【问题讨论】:

    标签: html wordpress fonts


    【解决方案1】:

    您的 Roboto 300 字体只有拉丁字形。 拉丁扩展子集丢失。

    你的字体在这里加载:

    <link rel="stylesheet" id="googlefonts_heading-css" href="http://fonts.googleapis.com/css?family=Roboto%3A300%2C400%2C400italic%2C700&amp;ver=3.8.1" type="text/css" media="all">
    

    并且应该像这样加载:

    <link href='http://fonts.googleapis.com/css?family=Roboto:400,300,700,700italic&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
    

    注意获取参数subset=latin,latin-ext

    见:https://www.google.com/fonts#UsePlace:use/Collection:Roboto

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-04-14
      • 2015-08-23
      • 2011-09-30
      • 1970-01-01
      • 2016-08-24
      • 1970-01-01
      • 1970-01-01
      • 2014-03-20
      相关资源
      最近更新 更多