I would like to use a Google source without needing an Internet connection. I saw that @font-face
has this power. Just drop the font in one of the formats (I preferred .EOT
because it is also accepted by IE Browser) and declare it as follows:
@font-face {
font-family: 'VT323';
font-style: normal;
font-weight: 400;
src: url('../fonts/VT323-Regular.eot');
src: url('../fonts/VT323-Regular.eot?#iefix') format('embedded-opentype'),
url(‘../fonts/VT323-Regular.ttf’) format(‘truetype’);
}
Where url
is where the source file is located.
And to make use of it you should just call font-family
, obviously, with the name declared in @font-face
:
.home-text {
font-family: 'VT323', cursive;
text-align: center;
font-size: 1.4em;
}
However, I still can not enjoy the VT323 font. The above codes are original to my project. Here is the structure of the file directories (additional information):