0
Do we need to add font file along with CSS? or just mention in the code only needed?
4 Antworten
+ 4
You have to add the font files to your project and refer to them using CSS.
For example:
@font-face {
font-family: "My Custom Font";
src: url(http://www.example.org/mycustomfont.ttf) format("truetype");
}
p.customfont {
font-family: "My Custom Font", Verdana, Tahoma;
}
In the above example the mycustomfont.ttf file is used, which is uploaded to the coresponding URL used for the font-face.
+ 2
its not mandatory.
But if viewer do not have installed the font you choose, we won't see it.
0
We need to add it as the first guy gave an example
0
just add it bru