@ font-face连接gotham冷凝不工作 [英] @font-face linking with gotham condensed not working

查看:118
本文介绍了@ font-face连接gotham冷凝不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图链接Gotham字体文件到我的网页,但我不能让它的工作!我错过了什么?这些是CSS使用:

Im trying to link Gotham font files to my page but i cant make it work! Am i missing something? These is the css im using:

@font-face {
font-family: 'Gotham Condensed';
src: url('Gotham/GothamCond-Black.otf')  format('opentype');
}


推荐答案

OpenType字体格式在大多数浏览器中 - 但是,在Internet Explorer(所有版本)中,如果文件资源管理器设置中的权限未设置为可安装( look here )。有设置这个设置的字体作者,很难改变它 - 因为它是关于版权的东西。有些软件做到了,但是,我有一些问题。

The OpenType font format should work in most browsers - however, in Internet Explorer (all versions) it won't work if the "Permission" in the File Explorer settings is not set to "Installable" (look here). There's the font authors who set this setting, and it's hard to change it - as it is regarding copyright stuff. Some software do it, however - but I've had some issues with it.

你最好的做法是使用字体转换器在线转换为WOFF格式(适用于所有现代浏览器)和EOT格式,如果你需要以支持IE 8及更早版本。这些字体格式不包含版权信息,如OTF文件,所以它应该工作。您还应该考虑转换为SVG和TTF字体格式,以支持更多的旧浏览器。

The best thing you could do is to use a font converter online to convert it to the WOFF format (works in all modern browsers) and the EOT format, if you need to support IE 8 and older. These font formats does not contain copyright information like OTF files does, so it should work. You should also consider converting to the SVG and TTF font formats to support even more old browsers.

在Gotham上发布的FontSquirrel生成器不会工作,因为它是一个商业字体,你需要一个webfont许可证。使用字体转换器。

The FontSquirrel generator posted over here won't work on Gotham, because it's a commercial font, and you need a webfont license for that. Use a font convertor.

这篇关于@ font-face连接gotham冷凝不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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