I've been trying to get a custom font into the gamemode I'm working on for a while now, but nothing I do seems to work. Right now, the font is located at:
gamemodes\team-jetpacks\content\resource\fonts\whiskey.ttf
Whereas the script that attempts to do this:
[lua]surface.CreateFont ( "whiskey", ScreenScale(32), 500, true, false, "WhiskeyHUD", false, false)[/lua]
Is at:
gamemodes\team-jetpacks\gamemode\cl_hud.lua
What am I missing here?
Errors?
[editline]27th November 2010[/editline]
Is cl_hud included by cl_init?
[editline]27th November 2010[/editline]
Is the file cl_hud included by the file cl_init.lua
Yes, it is. There are no errors, and the text draws fine, it's just not using the font I'm trying to use.
EDIT: Found it. You have to use the font's name, not the file name.
^That, and also are you sure that even though the file is named "whiskey" that the font is named "whiskey", versus "Whiskey" or "WhiskeyBold" or something?
Oop, ninja'd by half an hour.
Sorry, you need to Log In to post a reply to this thread.