【发布时间】:2013-12-03 12:01:06
【问题描述】:
所以我有 2 种字体。
@font-face {
font-family: 'helvetica neue black condensed';
src: url('/wcsstore/Html/Static/fonts/HelveticaNeueBlackCondensed/HelveticaNeueBlackCondensed.eot');
src: url('/wcsstore/Html/Static/fonts/HelveticaNeueBlackCondensed/HelveticaNeueBlackCondensed?#iefix') format('embedded-opentype'),
url('/wcsstore/Html/Static/fonts/HelveticaNeueBlackCondensed/HelveticaNeueBlackCondensed.woff') format("woff"),
url('/wcsstore/Html/Static/fonts/HelveticaNeueBlackCondensed/HelveticaNeueBlackCondensed.ttf') format("truetype");
font-style: normal;
font-weight: normal;
}
@font-face {
font-family: 'helvetica neue black condensed oblique';
src: url('/wcsstore/Html/Static/fonts/HelveticaNeueBlackCondensed/HelveticaNeueBlackCondensed.eot');
src: url('/wcsstore/Html/Static/fonts/HelveticaNeueBlackCondensed/HelveticaNeueBlackCondensed?#iefix') format('embedded-opentype'),
url('/wcsstore/Html/Static/fonts/HelveticaNeueBlackCondensed/HelveticaNeueBlackCondensed.woff') format("woff"),
url('/wcsstore/Html/Static/fonts/HelveticaNeueBlackCondensed/HelveticaNeueBlackCondensed.ttf') format("truetype");
font-style: oblique;
font-weight: normal;
}
如您所见,它们都引用同一个文件。第一个是正常的,第二个是倾斜的。 “helvetica neue black condensed”工作正常,但由于某种原因,浏览器无法识别“helvetica neue black condensed oblique”。我有大约 50 种字体,倾斜的字体不起作用。这是巧合吗?
请不要告诉我某些字体的使用。我有执照。 不要告诉我要使字体样式:倾斜;在 main.css 我想要一个默认倾斜的字体系列。
【问题讨论】:
-
这就像试图在'oblique'中显示一个gif图像......不会工作。获取字体集的 OBLIQUE 变体。
-
那么为什么当我在检查器中放置 font-style: oblique 时它会起作用?如果我保持字体样式正常,它甚至不会显示,并且除了名称之外的所有内容都匹配“helvetica neue black condensed”
-
您的检查器正在覆盖字体并显示除“HelveticaNeueBlackCondensed”之外的其他内容。同时,在网上搜索'helveticaNeue' BUG...google.ca/…