Adding custom fonts

Hi! Do you have any guide or advice on how to add a custom font?

Using the css @font-face rule in a theme file:

@font-face {
  font-family: "Font Name";
  src: url("fontfile.tff"); /* assuming the file is in the same directory as the session or the theme file */
}

/* apply everywhere (except code inputs/editors) */
body {
  font-family: "Font Name"
}

/* or apply to a specific selector */
.some_class  {
    font-family: "Font Name"
}
3 Likes

Oooh, this is promising.

Can you use this when creating classes? For example one button class would have a certain type of font assigned to it?