-
-
Notifications
You must be signed in to change notification settings - Fork 90
Adding Custom Fonts
- A font of your choice
- A decent amount of HUD experience
- Notepad or Notepad++ (Notepad++ preferred)
Please note, this will replace the default HUD's font everywhere it is used. Though this process is actually really easy once you've done it once or twice, it does still have a lengthy initial explanation.
In addition to this, finding fonts that have both good numbers as well as letters can be quite tricky, so be sure to look at both when selecting a new font!
The following are the three main directories and/or files you'll need to be concerned with:
-
../budhud/resource/fonts
- Contains the actual font file -
../budhud/resource/clientscheme.res
- Points to the custom font definition file -
../budhud/_budhud/resource/clientscheme_fontentries.res
- Defines and loads the custom font file -
../budhud/_budhud/resource/clientscheme_lato.res
- Defines the font definitions
For this example, I'll be adding a font called Product Sans.
-
Place your font file (.ttf or .otf) in
../budhud/resource/fonts
. -
Right click the font and go to properties. Then, swap over to the
Details
tab and note theTitle
. The title may not always match the name of the font exactly, so it's important to check this.
-
Navigate to
../budhud/resource/clientscheme.res
and open the file. -
Comment out
#base "../budhud/_budhud/resource/clientscheme_lato.res"
. Then, add a new line below it containing#base "bh_product_sans.res"
. This can be named whatever you want; it'll just need to match the name you will use for the file in Step 6. -
Navigate to
../budhud/_budhud/resource/clientscheme_fontentries.res
and open the file. -
Scroll to the bottom of the file and add a new entry as shown in the image below. For the "name" field, use the name you found in the
Details
tab of the font in step 2. For the number, just increment the last value used by one.
-
Navigate to
../_budhud/resource
and duplicate the fileclientscheme_lato.res
. Rename your new file to whatever name you used in Step 4. In this case, we'll be renaming ours tobh_product_sans.res
. -
Open your new file. Assuming you have Notepad++ or VSCode installed, hit
CTRL
+F
on Windows to open up theFind
window. Next, switch to theReplace
tab. UnderFind what:
, set it to"Lato Semibold"
. UnderReplace with:
, set it to the name you found in theDetails
tab of the font in step 2 and hitReplace All
.
The HUD should now work properly with the new font.
Problem: My screen is white.
Solution: In your modified clientscheme, verify that there isn't a space between the #
and base
in #base
.
- Correct:
#base "fonts/bh_lato.res"
- Incorrect:
# base "fonts/bh_lato.res"
YouTube Tutorial - Outdated, last updated 4/14/19
- ⭐ Popular topics
- ⚡ Quick customizations
- Home
- Installation
- HUD Troubleshooting
- Downloading Older Versions
- Translating budhud
- FAQs
- Credits
- Known Issues
- Lore Zone
- budhud Dev Reference
- 🔗 Screenshots
- 🔗 Discord
- 🔗 huds.tf
- 🔗 Steam
- ⭐⚡ 3D Player Class Model
- ⭐⚡ Closed Captions
- ⭐⚡ YouTube/Twitch #User HUDs
- ⭐ Crosshairs
- ⭐ Modifying Colors
- ⚡ Speedometer
- ⚡ Chat Location
- ⚡ Streamer HUD
- ⚡ Transparent Viewmodels
- Damage Numbers