字体系列和大小 [英] font family and size

查看:114
本文介绍了字体系列和大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的网站上使用非网络安全字体,以便在用户没有该字体时备份,我有最接近的匹配网页安全字体作为字体中的第二个选项家庭。

我使用的字体是一个非常小的字体,网络安全备份更大,所以如果屏幕恢复到网络安全字体,它会搞砸我的布局。有没有办法为字体系列中的每个选项设置单独的大小或类似的东西?


如果需要,我愿意使用JavaScript。

解决方案

你可以试试CSS3的@ font-face。首先你可以看一下: http://codechirps.com/how-to-safely-...eb-safe-fonts/


我试过了,它停止使用字体我即使在安装了字体的计算机上也需要。你建议的网站是我去过的网站。

如果你知道任何其他网站显示如何做,我可能可以解决它。


< blockquote>在 http://www.miltonbayer查看@调整字体大小部分.com / font-face /

希望,帮助:)


I''m trying to use a non web safe font on my website so as a backup if users don''t have that font, I''ve got the closest match web safe font as the second option in the font family.
The font I''m using is quite a small font and the web safe backup is larger so if the screen reverts to the web safe font, it screws up my layout. Is there a way to set a separate size to each option in the font family or something like that?

I''m willing to use JavaScript if I need to.

解决方案

you might try the CSS3′s @font-face. for a start you might have a look at: http://codechirps.com/how-to-safely-...eb-safe-fonts/


I tried that out and it stopped useing the font I wanted even on computers that had the font installed. The site you suggested is the one I went to.
If you know any other site that shows how to do it, I may be able to sort it out.


Have a look @ Adjust font-size section in http://www.miltonbayer.com/font-face/

Hope, helps :)


这篇关于字体系列和大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆