I know this is pretty basic stuff but I was wondering how I would go about including some custom fonts with my gamemode. Would I create these folders in my GM's base directory?
[code]
resource/fonts/mycustomfont.ttf
[/code]
Then just put these in the appropriate places?
[code]
resource.AddFile("resource/fonts/mynewfont.ttf")
surface.CreateFont( "mynewfont", 16, 500, true, true, "CustomFont" )
[/code]
Thanks for any input!
surface.CreateFont uses a table now.
[url]http://wiki.garrysmod.com/page/surface/CreateFont[/url]
Put the font in garrysmod/gamemodes/yourgamemode/content/resource/fonts/yourfont.ttf
Then resource.AddFile("resource/fonts/yourfont.ttf")
Glad I asked I would have forgotten the content folder. Thanks for the help JetBoom
Thanks for that example Sudoxe192, I didn't know you would do all that shit with fonts.
Sorry, you need to Log In to post a reply to this thread.