Emerrias
Emerrias

Reputation: 15

CSS Custom fonts not showing

I have also tried the .ttf version of this font without any results. For some reason the font is not showing up. The url to the font is correct.

@font-face {
font-family: EagleLake; /*a name to be used later*/
src: url('EagleLake.otf'); /*URL to font*/
}


h1{
font-family: EagleLake;
}

Upvotes: 0

Views: 58

Answers (1)

Akash Magoon
Akash Magoon

Reputation: 899

Try this format instead, it definitely works:

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

Your h1 style attribution should then be of font EagleLake.

Upvotes: 3

Related Questions