实现网站的字体? [英] Implementing font for website?

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

问题描述

我在我的CSS中使用字体AR CENA,但它不会加载字体浏览网站,对我来说它的工作很好,但我认为,因为我已经安装了字体,所以它从我的电脑,

I'm Using font "AR CENA" in my CSS but it's not loading the font when browsing the website, for me it's working well, but I think because I already install the font, so it load it from my PC,

有没有办法实现这种字体,并正常显示在用户的网站上?

Is there a way to implement this font and appear in the website normally for users ?

 #u2966-5 {
    z-index: 500;
    width: 125px;
    min-height: 16px;
    background-color: transparent;
    letter-spacing: 0px;
    font-size: 28px;
    color: #fe9d2b;
    font-family: "AR CENA", open-sans, sans-serif;
    font-weight: 300;
    position: fixed;
    top: 10px;
    left: 50%;
    margin-left: 270px;
}


推荐答案

a href =https://en.wikipedia.org/wiki/Web_typography =nofollow> @ font-face 。您可能无法使用确切的字体(您必须警惕潜在的许可问题,以及允许使用字体),但Google有一个伟大的字体存储库,您可以用来找到类似的东西,或我个人使用字体松鼠下载@ font-face套件

Look into the CSS rule @font-face. You may not be able to use that exact font (You have to wary of potential licensing issues and what you are allowed to do with a font) but Google has a great font repository that you could use to find something similar, or I personally use font squirrel to download the @font-face kits

关于@ font-face

Google字体

Font Squirrel

Font Squirrel也有一个伟大的网络字体生成器,所以如果你确信你是尊重字体EULA你可以上传它,字体鼠标生成器将其转换为网络格式(有不同的格式,因为不同的浏览器支持不同的格式),并给你的CSS准备去。

Font Squirrel also has a great web font generator, so if you are sure that you are respecting the fonts EULA you can upload it and the font squirrel generator will convert it to web formats (there is several formats as different browsers support different formats) and give you the CSS ready to go.

我使用自定义字体有点,并发现浏览器支持是非常好的,即使在一些早期版本的 Internet Explorer 。我想我记得,IE支持自定义字体回到IE 4。

I use custom fonts quite a bit and have found the browser support to be very good, even in some of the earlier versions of Internet Explorer. I think I recall reading that IE supported custom fonts back as far as IE 4.

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

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