css font face declaration in html with multi options
Jumat, 25 Mei 2018
Add Comment
![]() |
font face |
Font face in HTML CSS
to create cool fonts in html, you can use font face in your css.
There so many kind of fonts, including graffiti, helvetica, dan papyrus font.
There so many kind of fonts, including graffiti, helvetica, dan papyrus font.
create these css script in your html or include css file :
@font-face {
font-family: "DejaVu Sans";
src: url("fonts/DejaVuSans.ttf");
}
@font-face {
font-family: "DejaVu Sans";
src: url("fonts/DejaVuSans-Bold.ttf");
font-weight: bold;
}
@font-face {
font-family: "DejaVu Sans";
src: url("fonts/DejaVuSans-Oblique.ttf");
font-style: italic, oblique;
}
@font-face {
font-family: "DejaVu Sans";
src: url("fonts/DejaVuSans-BoldOblique.ttf");
font-weight: bold;
font-style: italic, oblique;
}
0 Response to "css font face declaration in html with multi options"
Posting Komentar