Loading fonts correctly with CSS | Web Design Tutorial

dcode
dcode
13.3 هزار بار بازدید - 6 سال پیش - Using this method to load
Using this method to load your web page fonts allows you to not only remove the unwanted effect of "fake" (or faux) font rendering but also lets you take advantage of the standard font-weight and font-style CSS rules.

Fake (or faux) font rendering is when the web browser tries its best to apply a weight or style to a font when it does not have the respective version loaded. For example, if a web developer has set the font-weight as "bold" for a particular element but has not provided the "bold" font file (i.e. woff, woff2 etc.) then the browser will "fake" bold it. This means you will get different looks across different browsers.

To combat this and to use the font-weight and font-style rules correctly, you can use the method described in this video.

An article on fake (or faux) bolding:
http://nimbupani.com/fake-bolding-of-...

Support me on Patreon:
Patreon: dcode - with enough funding I plan to develop a website of some sort with a new developer experience!

For your reference, check this out:
https://developer.mozilla.org/en-US/d...

Follow me on Twitter @dcode!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
6 سال پیش در تاریخ 1397/04/10 منتشر شده است.
13,364 بـار بازدید شده
... بیشتر