I am currently utilizing a library that does not support the font-weight property. Instead, the font style is defined by the font CSS property as detailed here.
After trying to set the font style using the font CSS property with FontAwesome 5, I noticed that it was not working. Could it be that I am doing something incorrectly, or does FontAwesome 5 not support this method of defining the font style?
.calendar::before {
font-family: "Font Awesome 5 Free"; /* updated font-family */
font-weight: 400; /* regular style/weight */
content: "\f133";
}
.calendar2::before {
font: "400 Font Awesome 5 Free"; /* updated font-family */
content: "\f133";
}
<link href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" rel="stylesheet"/>
<div class="calendar"></div>
<div class="calendar2"></div>