Revision Difference
Fonts#563215
<cat>UI.Intro</cat>
<title>Custom Fonts</title>
# Using fonts
You can use custom fonts in razor by placing `.otf` or `.ttf` files in a folder named `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.
```
font-family: Font Family Name;
```
<note>This differs from normal CSS syntax, this should be a single font name and not multiple.</note>
# 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:⤶
⤶
<upload src="a5727/8da5e66e76161a6.png" size="5741" name="image.png" />
For your players to download your fonts you may need to configure your Resource Files manually.⤶
⤶
Open the [Project Settings](https://wiki.facepunch.com/sbox/Games/ProjectSettings) > 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.⤶
⤶
<upload src="2a1e9/8dd341b6d249fbe.png" size="41632" name="image.png" />