2

我已经使用font-feature-settingsand启用了连字(添加了所有特定于浏览器的行,font-variant-ligatures-moz-、和),但连字不会显示在 Blogger 中。我尝试将 CSS 从 html 移动到 body,但这没有区别。字体正确导入,¹并且看起来很棒,但缺少最后的润色。作为参考,博客的地址是mdvuit.blogspot.com,我在 Win10 x64 和 Chrome 52.0.2743.116 m (64-bit) 上查看它。-ms--webkit--o-

这是用于启用连字的我的htmlbody行(连接,仅显示没有浏览器前缀的行):

html {
    font-size: 65%;
}

body {
    font-size: 1.3rem;
    line-height: 2.3;

    /* here, also -moz-, -ms-, -o- and -webkit- are included */
    font-variant-ligatures: common-ligatures;

    /* here, also -moz-, -ms-, -o- and -webkit- are included */
    font-variant-ligatures: normal;

    /* here, also -moz-, -ms-, -o- and -webkit- are included */
    font-feature-settings: "liga", "clig";
}

另外,我是否在liga(等)之后添加 1 是否重要?即:"liga" 1"clig" 1而不是如上所示。

如果需要更多信息,请告诉我。

¹ 使用@import 'https://fonts.googleapis.com/css?family=Alegreya+SC:400,400i,700,700i,900,900i|Alegreya+Sans+SC:100,100i,500,500i,800,800i|Alegreya+Sans:100,100i,500,500i,800,800i|Alegreya:400,400i,700,700i,900,900i|Cutive+Mono&subset=latin-ext';

4

0 回答 0