Hello!
I have a font called "Haddley.ttf"...
When I put the font in this source : C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\r esource\fonts
And when I run the game the font do not change ...
What should I do ?
I have read the file readme.txt in fonts file "Fonts in this folder will automatically get loaded into the engine." but nothing happend.
I want to change the fonts in the start menu because does not support Arabic language. And I want to translate the game into this language.
Thanks!
[IMG]http://www.wiremod.com/forum/attachments/expression-2-discussion-help/11478d1431682774-how-do-i-add-font-into-garrys-mod-ggimtet.jpg[/IMG]
Can you post the code you are using to create and set the font?
[QUOTE=code_gs;47732421]Can you post the code you are using to create and set the font?[/QUOTE]
code?
its just a font .ttf
should I write a code ?
[QUOTE=stevenking10;47732453]code?
its just a font .ttf
should I write a code ?[/QUOTE]
Adding a font won't automatically replace all fonts. You have to [URL="http://wiki.garrysmod.com/page/surface/CreateFont"]create it[/URL] in a lua environment then use it in a certain context, aka drawing text or in a panel, etc.
[QUOTE=code_gs;47732576]Adding a font won't automatically replace all fonts. You have to [URL="http://wiki.garrysmod.com/page/surface/CreateFont"]create it[/URL] in a lua environment then use it in a certain context, aka drawing text or in a panel, etc.[/QUOTE]
Aah okay, then where should I put it ? in which source ?
[QUOTE=thejjokerr;47732794][URL]http://wiki.garrysmod.com/page/Beginner_Tutorial_Intro[/URL]
Go to the "Auto running the script" section.
In your case it would be:
{Steam Folder}\steamapps\common\garrysmod\garrysmod\lua\autorun\client
But don't be confused about how this works, just creating a font won't apply it anywhere. You will have to put it to use on a GUI or menu yourself somewhere.
[editline]15th May 2015[/editline]
Actually, I found this, it may be of help you you:
[url]http://steamcommunity.com/sharedfiles/filedetails/?l=dutch&id=255271262[/url][/QUOTE]
Thanks!
I will try to make one and will see if its work like what I want...
Sorry, you need to Log In to post a reply to this thread.