FONTS - Hypnootize/m0rehud GitHub Wiki

m0rehud features many alternative fonts gathered from the most popular TF2 HUDs, here is a showcase of all preinstalled fonts:

m0re_optionalfonts

Each showcased font can be enabled from the HUD's customizations menu, a game restart will be needed each time a font change is made!

[!WARNING] The HUD is built around Surface Medium therefore any alternative font might come with some slight miss-alignments

ADDING CUSTOM FONTS

If the font you are looking to use is not featured in the pre-installed fonts then you can opt to manually add it! This will require two main steps:

1) Font installation:

First of all add your font file inside resource/scheme/fonts/fonts_optional, next open resource/scheme/fonts/fonts_customization/font_paths.res, at the very end of this file you want to add the installation path to your custom font, I'll use Roboto font for this example:

m0re_custom_font

First make sure to use the dedicated font slot for custom user fonts "300" then set the path to your custom font, in this case "font" "resource/scheme/fonts/fonts_optional/roboto.ttf" depending on the font type it's extension might be either .ttf or .otf make sure to double check if you are using the correct one! Last set the font "name", you can check what your font's family name is by right clicking on the font files and selecting the details tab like shown above.

Once the font is installed it's time to open resource/scheme/fonts/fonts_customization/fonts_user.res, inside this file all you want to do it replacing each one of the "MYFONT" instances with your custom font "name" you previously set inside font_paths.res.

In my case, with roboto it will looks like this:

"m0refont9"
{
   "1"
   {
      "name"   "Roboto Bold"
   }
}

2) Set the font as active:

Your custom font should be now ready to use, open TF2 and in the font selection menu, inside the HUD Customizations panel, scroll all the way to the end and select MY FONT

m0re_user_font

Now simply restart the game. If the font was installed correctly it should now show in-game!