Is this the right way to set custom font?

I have a font in /static/font/input_regular.ttf that i want to use for code tags, and i have this in my styles.css:

@font-face {
  font-family: "Input_reg";
  src: url("/font/input_regular.ttf") format("truetype");
}

pre, code {
  font-family: "Input_reg", monospace;
  font-size: inherit;
}

It doesn’t work, what am i doing wrong here?