在myfonts.com上,我购买了 Didot字体,它包括常规、粗体、斜体和粗斜体四种样式(每种样式都有一个单独的文件)。
当我的WordPress用户编写带有粗体和斜体字符的文章时,我希望使用相应的字体样式。
但到目前为止,即使是斜体或粗体,仍然使用常规字体。结果,我在网站上看到的斜体似乎是我的常规字体的“斜体版本”。但这个结果与myfonts.com上宣传的真正斜体不同。
根据他们的客户服务,“开发问题”无法解决。如何在我的WordPress网站上为每种样式使用正确的字体文件?
以下是myfonts.com提供的要添加到CSS中的代码:
当我的WordPress用户编写带有粗体和斜体字符的文章时,我希望使用相应的字体样式。
但到目前为止,即使是斜体或粗体,仍然使用常规字体。结果,我在网站上看到的斜体似乎是我的常规字体的“斜体版本”。但这个结果与myfonts.com上宣传的真正斜体不同。
根据他们的客户服务,“开发问题”无法解决。如何在我的WordPress网站上为每种样式使用正确的字体文件?
以下是myfonts.com提供的要添加到CSS中的代码:
@import url("//hello.myfonts.net/count/xxxxx");
@font-face {font-family: 'LinotypeDidoteTextPro';font-weight: normal;font-style: normal;src: url('webfonts/xxxxxxx1.eot');src: url('webfonts/xxxxxxx1.eot?#iefix') format('embedded-opentype'),url('webfonts/xxxxxxx1.woff') format('woff'),url('webfonts/xxxxxxx1.ttf') format('truetype');}
@font-face {font-family: 'LinotypeDidoteTextPro';font-weight: bold;font-style: italic;src: url('webfonts/xxxxxxx2.eot');src: url('webfonts/xxxxxxx2.eot?#iefix') format('embedded-opentype'),url('webfonts/xxxxxxx2.woff') format('woff'),url('webfonts/xxxxxxx2.ttf') format('truetype');}
@font-face {font-family: 'LinotypeDidoteTextPro';font-weight: normal;font-style: italic;src: url('webfonts/xxxxxxx3.eot');src: url('webfonts/xxxxxxx3.eot?#iefix') format('embedded-opentype'),url('webfonts/xxxxxxx3.woff') format('woff'),url('webfonts/xxxxxxx3.ttf') format('truetype');}
@font-face {font-family: 'LinotypeDidoteTextPro';font-weight: bold;font-style: normal;src: url('webfonts/xxxxxxx4.eot');src: url('webfonts/xxxxxxx4.eot?#iefix') format('embedded-opentype'),url('webfonts/xxxxxxx.woff') format('woff'),url('webfonts/xxxxxxx4.ttf') format('truetype');}