CSS - 自定义字体? [英] CSS - Custom Fonts?

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

问题描述

我有一个设计,Myriad Pro是必需的。这不是问题。问题是,在Photoshop他们使用'大胆的'。我不知道这是什么,我认为这是Myriad Pro的变种之一。在网站上模拟这个的最好方法是什么?

I have a design and Myriad Pro is required. This isn't a problem. The issue is that in Photoshop they have used 'Bold Condensed'. I am not sure what this is called, I think it is one of the varients of Myriad Pro. What is the best way to emulate this on a website?

谢谢。

推荐答案

FontSquirrel 是您最好的资源。他们的@ font-face generator创建的代码将适用于所有的现代浏览器。

FontSquirrel is your best resource. Their "@font-face generator" creates code that will work with all the modern browsers.

他们做的是很好解释,但在幕后,它是相当复杂。您可以在 Paul Irish的博客上阅读CSS方面的内容。

What they do is well-explained but behind the scenes it's pretty complicated. You can read up on the CSS aspects on Paul Irish's blog.

编辑

已回答了您的真实问题...

I just realized that nobody has answered your real question...

1。) Myriad Pro Myriad Pro.otf Myriad Pro Bold.otf的字体集合实现的家庭 ,等等。 (实际名称是操作系统特有的。) Myriad Pro Bold Condensed 是这些文件之一。

1.) Myriad Pro is a family of fonts, implemented as a collection of files, with names like Myriad Pro.otf, Myriad Pro Bold.otf, and so forth. (The actual names are OS-specific.) Myriad Pro Bold Condensed is one of those files. I don't know if it comes with the standard package or whether it costs extra.

2。)您无法模仿此内容。您可以使用网页上的实际字体(通过上述@ font-face嵌入方法),也可以创建图形。设计师可能希望你创建图形,因为设计师[tirade删除],当它涉及到实现。

2.) You cannot "emulate" this. You can either use the actual font on your webpage (via the @font-face embedding method described above), or create a graphic. The designers probably expect you to create graphics, because designers [tirade deleted] when it comes to implementation.

3。)正如已经指出,嵌入假设需要一个适当的许可证,我不知道你是否可以获得这样的许可证为这个特定的面孔。 (假定,因为[tirade已删除],但我不是律师。)

3.) As has been pointed out, embedding supposedly requires an appropriate license, and I don't know if you can get such a license for this particular face. ("Supposedly", because [tirade deleted], but I'm not a lawyer.)

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

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