我一直在使用自定义字体和@font-face
方面遇到很多困难。我试图在最新版本的Chrome、Safari和Firefox中实现字体的一致性(如下图所示,按照这个顺序):
我正在使用以下内容来生成这个效果:
@font-face {
font-family: 'dineng';
src: url('fonts/dineng.eot');
src: url('fonts/dineng.eot?#iefix') format('embedded-opentype'),
url('fonts/dineng.woff') format('woff'),
url('fonts/dineng.ttf') format('truetype'),
url('fonts/dineng.svg#dineng') format('svg');
font-weight: normal;
font-style: normal;
}
同时:
.menu-button a {
height:25px;
float:left;
border-bottom:2px solid white;
color:#ccccff;
text-decoration:none;
padding:8px 21px 0px 20px;
text-align:center!IMPORTANT;
background-color:#00378f;
font-size:18px;
font-family:'dineng', Arial;
text-shadow:0 0 1px rgba(0,0,0,0.3);
}
我尝试了各种字重来减轻字体的重量,但没有任何效果。我在Chrome上使用了下面的CSS3 hack来让它看起来像我的PSD文件,但这在其他浏览器上不起作用:
text-shadow:0 0 1px rgba(0,0,0,0.3);
在我跳楼之前,有没有人有什么建议!!
请注意,我无法使用FONT SQUIRREL!