css font

编程入门 行业动态 更新时间:2024-10-28 06:24:03
css font-face显示引用网站的不同字体样式?(css font-face showing different font style from referenced site?)

在我的一个网站中,我使用了“Bree Serif”字体。 为此,我使用了字体生成器 。 现在生成所有字体和正确的字体大小后,我可以看到我在我的网站样式中使用的字体与引用的网站字体有点不同。 现在有人可以告诉我这里的问题是什么吗? 任何帮助和建议都会非常适用。 谢谢...

这是字体生成的代码

@font-face { font-family: 'BreeSerifRegular'; src: url('breeserif-regular.eot'); src: url('breeserif-regular.eot') format('embedded-opentype'), url('breeserif-regular.woff') format('woff'), url('breeserif-regular.ttf') format('truetype'), url('breeserif-regular.svg#BreeSerifRegular') format('svg'); }

In one of my site I have used "Bree Serif" font. For that I have used font face generator. Now after generating all the fonts and proper font size I can see that I have used font in my site style is little bit different from the referenced site font. Now can someone tell me what's the issue here? Any help and suggestions will be really apprexciable. Thanks...

Here is the font face generated codes

@font-face { font-family: 'BreeSerifRegular'; src: url('breeserif-regular.eot'); src: url('breeserif-regular.eot') format('embedded-opentype'), url('breeserif-regular.woff') format('woff'), url('breeserif-regular.ttf') format('truetype'), url('breeserif-regular.svg#BreeSerifRegular') format('svg'); }

最满意答案

你确定你的css文件中breeserif-regular.eot的路径是否正确?

Are you sure that the path to breeserif-regular.eot in your css file is correct?

更多推荐

本文发布于:2023-07-30 23:54:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1340281.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:css   font

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!