S
S
Sasha Misnik2015-10-19 18:25:25
css
Sasha Misnik, 2015-10-19 18:25:25

Why is the font not working?

In general, I connected the font, but it does not work, what could be the problem?

@font-faca{
  font-family:athelas;
  src(fonts/athelas.ttf);
}

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
chigoe, 2015-10-19
@chigoe

font-fac e

P
petyagrill, 2015-10-19
@petyagrill

it's bad practice to connect fonts this way, it 's
better this way
To convert fonts, I use www.web-font-generator.com Otherwise

@font-face{
  font-family:'athelas';
  src: ('fonts/athelas.ttf');
}

T
timtimIT, 2015-10-20
@timtimIT

In order to enter the fonts folder you must exit the css folder. Try like this:

@font-face{
  font-family:athelas;
  src:url(../fonts/athelas.ttf);
}

Of course, this is if your fonts folder is not in the css folder...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question