How can I use Helvetica Neue Condensed Bold in CSS?

前端 未结 5 2053
甜味超标
甜味超标 2020-12-23 00:16

I want to use Helvetica Neue Condensed Bold on my webpage but it doesn\'t seem to be working. I have tried this: http://jsfiddle.net/ndFTL/ but it does not work, it simply s

5条回答
  •  悲&欢浪女
    2020-12-23 00:33

    After a lot of fiddling, got it working (only tested in Webkit) using:

    font-family: "HelveticaNeue-CondensedBold";
    

    font-stretch was dropped between CSS2 and 2.1, though is back in CSS3, but is only supported in IE9 (never thought I'd be able to say that about any CSS prop!)

    This works because I'm using the postscript name (find the font in Font Book, hit cmd+I), which is non-standard behaviour. It's probably worth using:

    font-family: "HelveticaNeue-CondensedBold", "Helvetica Neue";
    

    As a fallback, else other browsers might default to serif if they can't work it out.

    Demo: http://jsfiddle.net/ndFTL/12/

提交回复
热议问题