【发布时间】:2018-07-24 23:03:33
【问题描述】:
当我应用font-weight:bold 样式时,与其他浏览器相比,Safari 中的字体看起来太粗了。我按照某些网站的建议尝试了下面的 css,但它仍然是一样的。
text-shadow: #000000 0 0 0px;
文字渲染截图:
Chrome
Safari
这是我的 CSS 声明:
p {
margin: 8px 5px 0 15px;
color:#D8D2CE;
font-size:11pt;
letter-spacing:-1px;
font-weight: bold;
font-family: LektonRegular;
}
@font-face {
font-family: 'LektonRegular';
src: url('myfonts/lekton-regular-webfont.eot');
src: url('myfonts/lekton-regular-webfont.eot?#iefix') format('embedded-opentype'),
url('myfonts/lekton-regular-webfont.woff') format('woff'),
url(myfonts/lekton-regular-webfont.ttf) format('truetype'),
url('myfonts/lekton-regular-webfont.svg#LektonRegular') format('svg');
font-weight: normal;
font-style: normal;
}
如何解决这个问题?
【问题讨论】:
-
此问题仅在 safari 中观察到!
-
你解决了吗?