Mat*_*att 5 javascript css webfonts font-face windows-phone-7
我能够在网页中嵌入并设置字体样式,以便在Android和iPhone上查看,并且工作正常.但是,它不会在Windows Phone 7.5上呈现.
我已经尝试将字体嵌入到CSS中:
@font-face {
font-family:'MyFont';
src: url(data:font/woff;charset=utf-8;base64,d09GR...
}
Run Code Online (Sandbox Code Playgroud)
...还提供了eot/ttf文件,使用适用于所有其他浏览器的声明 -
@font-face {font-family:'MyFont';src:url('../fonts/MyFont-webfont.eot');src:url('../fonts/MyFont-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/MyFont-webfont.svg#MyFontRegular') format('svg'), url('../fonts/MyFont-webfont.woff')format('woff'), url('../fonts/MyFont-webfont.ttf') format('truetype');font-weight:normal;font-style:normal;}
Run Code Online (Sandbox Code Playgroud)
......但仍然没有运气.我无法相信新的Windows手机不允许字体嵌入,只支持有限的字体列表,如下所述:
http://msdn.microsoft.com/en-us/library/hh202920%28v=vs.92%29.aspx
即使它是一个Javascript渲染解决方案,任何见解/提示或提示都会很棒......必须有某种解决方法!
Dar*_*ine -7
每当我需要自定义字体时,我都会访问http://www.fontsquirrel.com/
这是一个很棒的网站,可让您从 .ttf 文件生成字体套件,其中包括完整的 CSS 声明以及浏览器兼容性所需的技巧。
我不知道它是否适用于 Win 7 Mobile,但我认为值得一试