When I selected the versions of the font I wanted (normal, italic, bold, …), it gave me a stylesheet link that I can put before my own: They will provide CSS links that you can insert to get the fonts you need.įor example, I found a font “Open Sans” in Google Fonts. There are several online font repositories, most notably Google Fonts that will help you. It actually is possible to load font with CSS. It would be much nicer if we could load a font into the user's browser the same way we load an image or stylesheet… Loading Fonts The site CSS Font Stack contains suggested lists for font-family that will work well for most users. That leads to long CSS rules like font-family: "Helvetica", "Arial", sans-serif and you still don't really know if their browser will have a font you like, or simply fall back to the generic font family at the end of the list. Font ProblemsĪs mentioned in CSS Properties, the CSS font-family property should be given a list of fonts, so the user's browser can try several options to find the “best” one available on their computer. It may help you make your pages look nicer, however.
0 Comments
Leave a Reply. |