Answer the question
In order to leave comments, you need to log in
Why can't fonts be connected?
Goodnight!
I've never had any problems connecting fonts, but on this site font-face refuses to work.
The site is on a subdomain. CMS: Joomla 3.6.5. The template decided to take the standard one: protostar.
css file created a new one and connected to the site, all styles work fine.
I connect the font with the following code:
@font-face {
font-family: "UniNeue";
src: url("../fonts/UniNeue.eot");
src: url("../fonts/UniNeue.eot?#iefix")format("embedded-opentype"),
url("../fonts/UniNeue.woff") format("woff"),
url("../fonts/UniNeue.ttf") format("truetype"),
url("../fonts/UniNeue.woff2") format("woff2");
font-weight: normal;
font-style: normal;
}
Answer the question
In order to leave comments, you need to log in
Syntax? NOT?
@font-face {
font-family: "UniNeue";
src: url("../fonts/UniNeue.eot");
src: url("../fonts/UniNeue.eot?#iefix")format("embedded-opentype");
url("../fonts/UniNeue.woff") format("woff");
url("../fonts/UniNeue.ttf") format("truetype");
url("../fonts/UniNeue.woff2") format("woff2");
font-weight: normal;
font-style: normal;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question