My @font-face not working at all

40 views Asked by At

I'm using a separate stylesheet to load my @font-family, but when I test locally it's not working.

font-face {
    font-family: HelvNeueBold;
    src: url(HelvNeueBold.otf);
}

The otf files are in the same folder my stylesheet is stored:

<link href='css/lpfonts.css' rel="stylesheet" >

Any ideas why it would be failing?

Thanks

1

There are 1 answers

3
vlad1918 On

Try this:

@font-face {
    font-family: 'Helvetica Neue Bold';
    src: url('HelvNeueBold.otf');
}