Does @font-face work in all browsers ?
How can i use @font-face?
All major browsers support WOFF/WOFF2 (Web Open Font Format versions 1 and 2). Even older browsers such as IE9 (released in 2011) support the WOFF format. WOFF2 supports the entirety of the TrueType and OpenType specifications, including variable fonts, chromatic fonts, and font collections.
Web Open Font Format (WOFF) WOFF is basically OTF or TTF with metadata and compression supported by all major browsers.
A lot of the differences are more to do with the fact browsers add or omit different default weights / styles to fonts. To stop this happening make sure in your CSS you have font-weight: normal and font-style: normal in your @fontface code block. You then need to apply the necessary styles to the HTML elements.
What does <font face=""> do? Was used to specify a typeface. Deprecated. Use CSS instead.
Check out: @font-face browser support
Webkit/Safari
Opera
Internet Explorer
Mozilla/Firefox
Google Chrome
Netscape
As for usage, check this out:
Not all browsers but all of the big ones (Chrome, IE, FireFox, Opera, Safari). Sarfraz's post shows which it will work with.
Here's an example of how to use it:
@font-face {
font-family: DeliciousRoman;
src: url(/Delicious-Roman.otf);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With