J
J
JohnDoe1162019-06-16 13:58:38
css
JohnDoe116, 2019-06-16 13:58:38

Has anyone downloaded these fonts?

I'm making a layout. The layout contains fonts that I can’t find on the Internet, or rather I found them, but they don’t connect. Has anyone used this PFEncoreSansPro font ever? Here is my way of connecting. Maybe I'm doing something wrong. Tried everything -format("otf") prescribed, tried all quotes, apostrophes (in all combinations. Other fonts are perfectly connected with the same syntax.

@font-face {
  font-family: 'PFEncoreSansPro-Thin', Arial, sans-serif;
  src: url(../assets/fonts/PFEncoreSansPro-Thin.otf);
  font-weight: 200;
}

@font-face {
  font-family: 'PFEncoreSansPro-Light', Arial, sans-serif;
  src: url(../assets/fonts/PFEncoreSansPro-Light.otf);
  font-weight: 300;
}

@font-face {
  font-family: 'PFEncoreSansPro-Medium', Arial, sans-serif;
  src: url(../assets/fonts/PFEncoreSansPro-Medium.otf);
  font-weight: 600;
}

@font-face {
  font-family: 'PFEncoreSansPro-Bold', Arial, sans-serif;
  src: url(../assets/fonts/PFEncoreSansPro-Bold.otf);
  font-weight: 700;
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex Glebov, 2019-06-16
@JohnDoe116

font-face does not specify spare fonts, only plug-in.
it is also possible that the paths are not correct, or when you use you do not specify font-weight.
also, the font may not support Cyrillic.
and in woff/woff2 here you can convert
https://www.fontsquirrel.com/tools/webfont-generator

L
lukoie, 2019-06-16
@lukoie

upd and where do you have styles, in what way? Have you tried using the absolute path to the font?
Look in another browser, at least. Maybe yours cannot display this format for some reason.
It is necessary to specify fonts with a fallback, if that.

@font-face {
    font-family: 'font, Arial, sans-serif';
    src:  url('fonts/font.otf') format('otf'),
            url('fonts/font.woff') format('woff'),
            url('fonts/font.woff2') format('woff2'),
            url('fonts/font.ttf') format('ttf');
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question