Hello!
I'm trying to replace the default "Impact" font on a workshop addon (which I extracted from the .gma and uploaded to the server in the addons folder).
I navigate to the lua which draws the HUD (its a HUD addon) and find this on line 46:
[code]
surface.CreateFont( "sao", {
font = "Impact",
size = 28,
weight = 500,
} )
surface.CreateFont( "sao_small", {
font = "Impact",
size = 21,
weight = 1,
} )
[/code]
So I go to my resources/fonts folder, upload the font I want which is "sword_art_online_font.ttf" and in my files.lua file I add the necessary resource.AddFile and it download the file to the client upon connecting.
So I go back into that HUD file and change "Impact" to "Sword Art Online", which is the name of the font Windows reports.
I save everything, restart the server and connect to it. Still, the HUD is using the same old Impact font rather than the Sword Art Online font.
Is there something I'm forgetting to do?
[editline]23rd August 2015[/editline]
I've figured out the issue, the workshop version which I had subscribed to was showing up when there was an error in the console which wouldn't load the server version I had.
I fixed the error and it loaded fine and the font was correct.
I apologize for wasting anyone's time.
Sorry, you need to Log In to post a reply to this thread.