How to add custom fonts in React js

preview_player
Показать описание
Here you will see an easy method for adding custom fonts with HTML and CSS in a React js application
Рекомендации по теме
Комментарии
Автор

Thanks for the help. I'd suggest having a ../public/fonts folder though for all the fonts

stevemcqueen
Автор

Thnak you bro, I was having trouble adding my custom fonts, it was because at the end of the src line i was typing "format('ttf')", and well, basically it was causing trouble.

LuiferGomez
Автор

how do we add a specific font for a header?

NormaAndrianna
Автор

What if i downloaded multiple fonts, like bold, black, light, meduim, regular. Do i have to make different font-face for every font, or doing only changing font weight works?

kegzgfe
Автор

After deploying the website, the font is not displayed in other laptop/device. How can i fix that

gnanavelpremnath
Автор

Accessing public files should not be done as ../public/Ultra-Regular.ttf but rather just /Ultra-Regular.ttf.
The public folder points to root in production.

Drayken
Автор

good video! But please stop eating or chewing haha

RomanHajdarov
Автор

why do u show longer way instead of shorter?

kacperkepinski
Автор

poderia fazer o video sem estar chupando balinha de cafe tmj...

laboratoriocortes
Автор

thanks but the damn chewing had my nerves high

axelsantiago