Problem importing CSS fonts

Asked

Viewed 186 times

0

Guys, I’m having a little problem importing fonts, when I put the native fonts works, with the exception of Helvetica, and when I import a local font or by url it’s like I can’t access the source and then the browser uses the default.

@font-face {
  font-family: 'Futura';
  src: local('../../../css/font/Futura/Futura.ttc'), url('http://www.projetogiulia.com.br/assets/css/font/Futura/Futura.ttc') !important;
}

There’s something wrong with my code?

Thanks in advance

  • in place of local place url and remove the url with the link. (removing Important as well)

1 answer

0

Try importing and then adding, like this:

@import url('http://www.projetogiulia.com.br/assets/css/font/Futura/Futura.ttc');
font-family: 'Futura', sans-serif;

another way would be instead of using the import url use a link

<link href="http://www.projetogiulia.com.br/assets/css/font/Futura/Futura.ttc" rel="stylesheet">

Browser other questions tagged

You are not signed in. Login or sign up in order to post.