use OTF fonts in CSS

use OTF fonts in CSS

In order to import our otf files we need to use property @font-face which should be provided by a font name and an url.

@font-face {
  font-family: Yamicode;
  src: url("path/to/file.otf") format("opentype");
}

@font-face {
  font-family: yamicode;
  font-weight: bold;
  src: url("path/to/file-bold.otf") format("opentype");
}

html, body {
  font-family: 'yamicode', sans-serif;
}