U
U
uzi_no_uzi2018-02-08 20:45:18
css
uzi_no_uzi, 2018-02-08 20:45:18

Why does Firefox throw an error when downloading a font?

5a7c8c7736fb2050556980.png
I created an icon font, connected it to the page. Firefox throws this error in the console:

downloadable font: download failed (font-family: "untitled-font-1" style:normal weight:normal stretch:normal src index:1): status=2152857618 source: file:///C:/Users/Lenovo/Desktop/csgosite/css/fonts/untitled-font-1.woff
downloadable font: download failed (font-family: "untitled-font-1" style:normal weight:normal stretch:normal src index:2): status=2152857618 source: file:///C:/Users/Lenovo/Desktop/csgosite/css/fonts/untitled-font-1.ttf

CSS styles:
@charset "UTF-8";

@font-face {
  font-family: "untitled-font-1";
  src:url("fonts/untitled-font-1.eot");
  src:url("fonts/untitled-font-1.eot?#iefix") format("embedded-opentype"),
    url("fonts/untitled-font-1.woff") format("woff"),
    url("fonts/untitled-font-1.ttf") format("truetype"),
    url("fonts/untitled-font-1.svg#untitled-font-1") format("svg");
  font-weight: normal;
  font-style: normal;

}

[data-icon]:before {
  font-family: "untitled-font-1" !important;
  content: attr(data-icon);
  font-style: normal !important;
  font-weight: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  speak: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[class^="icon-"]:before,
[class*=" icon-"]:before {
  font-family: "untitled-font-1" !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  speak: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-classic-icon:before {
  content: "\61";
}
.icon-copy-icon:before {
  content: "\62";
}
.icon-craft-icon:before {
  content: "\63";
}
.icon-double-icon:before {
  content: "\64";
}
.icon-crash-icon:before {
  content: "\65";
}
.icon-case-icon:before {
  content: "\66";
}
.icon-vk-icon:before {
  content: "\67";
}
.icon-youtube-icon:before {
  content: "\68";
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
uzi_no_uzi, 2018-02-08
@uzi_no_uzi

I found the solution myself, the error was in the path, which is not correctly spelled out.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question