S&box Wiki

Custom Fonts

Using fonts

You can use custom fonts in razor by placing .otf or .ttf files in a folder named fonts.

To use your font, set font-family in your CSS to the name of your font.

font-family: Font Family Name;
This differs from normal CSS syntax, this should be a single font name and not multiple.

Uploading fonts

For your players to download your fonts you need to configure your resource paths to include fonts/* in the addon manager like so:

image.png