C
C
Chaly952018-03-14 22:57:52
css
Chaly95, 2018-03-14 22:57:52

Why is the Gotham Pro Light font not recognized on the site?

Hello.
There is a problem, I can’t understand why the Gotham Pro Light font is not recognized on the site.
Connected via CSS
The rest of the fonts are displayed and function normally.

@font-face {
    font-family: 'Gotham Pro Light';
    src: url('../fonts/GothamPro-Light.otf?') format('opentype'),
    url('../fonts/GothamPro-Light.eot?') format('eot'),
    url('../fonts/GothamPro-Light.woff') format('woff'),
    url('../fonts/GothamPro-Light.ttf')  format('truetype');
}

Website: https://pipl.ua/bezopasnost-dla-doma/
Example
5aa97e5f1fe5e581654493.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
petyagrill, 2018-03-14
@chaly95

Most often the answers are in DevTools
Well, I would advise using a slightly different format for using fonts

@font-face {
  font-family: 'GothamPro';
  src: url('../fonts/GothamPro.eot?') format('eot'), 
       url('../fonts/GothamPro.otf')  format('opentype'),
       url('../fonts/GothamPro.woff') format('woff'), 
       url('../fonts/GothamPro.ttf')  format('truetype'),
       url('../fonts/GothamPro.svg#GothamPro') format('svg');
}
@font-face {
    font-family: 'GothamPro';
    src: url('../fonts/GothamPro-Light.otf?') format('opentype'),
    url('../fonts/GothamPro-Light.eot?') format('eot'),
    url('../fonts/GothamPro-Light.woff') format('woff'),
    url('../fonts/GothamPro-Light.ttf')  format('truetype');
    font-weight:300;
}

In this case, you can use only font-weight in the right place

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question