HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

Loading fonts correctly with CSS | Web Design Tutorial

13,663 views October 29, 2018 11:40

Watch on YouTube
Channeldcode

Description from the creator

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:
nimbupani.com/fake-bolding-of-web-fonts.html

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

For your reference, check this out:
developer.mozilla.org/en-US/docs/Web/CSS/@font-…

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!

About this tutorial

dcode published this 11:40 video tutorial on October 29, 2018. It has been watched 13,663 times on YouTube.

Channel
dcode
Category
Education
Duration
11:40
Published
October 29, 2018
Views
13,663
Likes
178

Share

This tutorial in other languages