Answer the question
In order to leave comments, you need to log in
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
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
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 questionAsk a Question
731 491 924 answers to any question