Custom Fonts
Using fonts
You can use custom fonts in razor by placing .otf
or .ttf
files in Assets/fonts
.
To use your font, set font-family
in your CSS to the name of your font.
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 may need to configure your Resource Files manually.
Open the Project Settings > Resource Files, and add a wildcard fonts/*
.
After you've added that wildcard, you should see your font highlighted in a brighter color on the right side.