Select fonts, indicating the weights you need at boot
Font families consist of several separate fonts.
For example, extra-bold will make the font look completely different, say, in Photoshop, because you choose a different font. The same goes for italics, which can look very different. Installing font-weight:800 or font-style:italic can cause your web browser to make every effort to increase or decrease the normal font in the family.
Although you are downloading a font family, you must specify the weight and styles required by some web browsers to allow you to select a different font in the family using font-weight and font-style .
Example
This example specifies light, normal, regular italic, bold, and especially bold fonts in the Open Sans font family:
<html> <head> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:100,400,400i,600,800"> <style> body { font-family: 'Open Sans', serif; font-size: 48px; } </style> </head> <body> <div style="font-weight:400">Didn't work with all the fonts</div> <div style="font-weight:600">Didn't work with all the fonts</div> <div style="font-weight:800">Didn't work with all the fonts</div> </body> </html>
Link
(Quora warning, please remove if not permitted.)
https://www.quora.com/How-do-I-make-Open-Sans-extra-bold-once-imported-from-Google-Fonts
Testing
Tested to work on Firefox 66.0.3 on Mac and Firefox 36.0.1 on Windows.
Non-Google Fonts
Other fonts must be uploaded to the server, their style and weight are indicated by their individual names.
System fonts
Saying nothing about fonts, about which device is visiting your site or which fonts are installed in its OS.
(You can use fallback options with serifs and sans serifs, but you will get a font mapped to them depending on the version of the web browser used, within the fonts available in the version of the OS in which it works, and not in accordance with what you developed.)
Testing should be done with a temporarily removed font from your system to make sure your design works.
Henrik Erlandsson Apr 24 '19 at 13:35 2019-04-24 13:35
source share