-1

How can I inplement a deffault fonts to my web page. I have file with fonts, all I need to know is how to implement it?

Best wishes and thanks !!!

  • I am still doing my reasearch – Nikola Milojic Jan 17 '20 at 07:47
  • Search about font-face and you will find a lot of tutorials how about use it [https://stackoverflow.com/questions/47340584/downloaded-font-wont-display-properly/47345855#47345855](https://stackoverflow.com/questions/47340584/downloaded-font-wont-display-properly/47345855#47345855) for example – Sfili_81 Jan 17 '20 at 07:53
  • Does this answer your question? [Downloaded font won't display properly](https://stackoverflow.com/questions/47340584/downloaded-font-wont-display-properly) – MarkusEgle Jan 17 '20 at 08:11

2 Answers2

2

correct you can use this css

@font-face {
  font-family: myFirstFont;      
  src: url(sansation_light.woff);
}  

also, for complete code usage please refer to this link

all the best

Nick Parsons
  • 45,728
  • 6
  • 46
  • 64
0

You can use this CSS code to define a new font face (using truetype fonts as an example).

@font-face {
  font-family:'Your Font Name Here';
  src:url('path-to-your-font.ttf') format('truetype');
}

Then, you can use your font as you normally would in CSS.

avedati
  • 11
  • 2
  • I alredy have file with fonts on my machine. One file is fonts.TrueType font file and the other is fonts condensed.TrueType font file – Nikola Milojic Jan 17 '20 at 07:50