P
P
PKPG2017-04-22 02:25:15
css
PKPG, 2017-04-22 02:25:15

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;
}

The path to the file is 100% correct.
I have already read a lot of articles, I have not found anywhere what could be the reason ... Maybe because of the subdomain? Does anyone have any idea why the font is not loading?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2017-04-22
@politon

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;
}

Or the paths are crooked.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question