大佬教程收集整理的这篇文章主要介绍了@ font-face不嵌入移动Safari(iPhone / iPad),大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
@font-face { font-family: 'JotTingRegular'; src: url('../fonts/jotTing_regular-webfont.eot'); src: local('☺'),url('../fonts/jotTing_regular-webfont.woff') format('woff'),url('../fonts/jotTing_regular-webfont.ttf') format('truetype'),url('../fonts/jotTing_regular-webfont.svg#webfonttEfFltbI') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'JotTingBold'; src: url('../fonts/jotTing_bold-webfont.eot'); src: local('☺'),url('../fonts/jotTing_bold-webfont.woff') format('woff'),url('../fonts/jotTing_bold-webfont.ttf') format('truetype'),url('../fonts/jotTing_bold-webfont.svg#webfontJpUFTHYS') format('svg'); font-weight: normal; font-style: normal; }
所以,在:
url('../fonts/jotTing_regular-webfont.svg#webfonttEfFltbI') format('svg')
webfonttEfFltbI是字体编号.我在文本编辑器中打开SVG字体文件,并在文件顶部附近的下一行找到新的ID.
<font id="webfontC6xdxB57" horiz-adv-x="972" >
在CSS中替换哈希标签后的id修复了问题.
以上是大佬教程为你收集整理的@ font-face不嵌入移动Safari(iPhone / iPad)全部内容,希望文章能够帮你解决@ font-face不嵌入移动Safari(iPhone / iPad)所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。