• GarrysMod Lua | draw.Simpletext increase size?
    5 replies, posted
Is there any possible way of increasing the size of a text? because oh my god, its small.. [CODE]draw.SimpleText("Level: "..client:Health(), "DermaDefaultBold", 10, ScrH() - 480, Color(255, 255, 255, 255), 0, 0)[/CODE] how on earth, do I make the text displayed bigger? I've seen it somewere else? but I can't seem to increase the size. Do I have to remake a font or something?
Yes, you would need to create a new font.
[QUOTE=Gmod4phun;50788939]Yes, you would need to create a new font.[/QUOTE] Ok, how may I do this? I know there is one on the wiki, but its just confusing.. surface.CreateFont?
What's confusing about that? [URL="http://wiki.garrysmod.com/page/surface/CreateFont"]The page[/URL] has great examples
[CODE]surface.CreateFont( "TheDefaultSettings", { font = "Arial", -- Use the font-name which is shown to you by your operating system Font Viewer, not the file name extended = false, size = 15, weight = 500, blursize = 0, scanlines = 0, antialias = true, underline = false, italic = false, strikeout = false, symbol = false, rotary = false, shadow = false, additive = false, outline = false, } ) [/CODE] I tried it, it works thanks for the reply :D
[QUOTE=jacobcooper18;50788920]Is there any possible way of increasing the size of a text? because oh my god, its small.. [CODE]draw.SimpleText("Level: "..client:Health(), "DermaDefaultBold", 10, ScrH() - 480, Color(255, 255, 255, 255), 0, 0)[/CODE] how on earth, do I make the text displayed bigger? I've seen it somewere else? but I can't seem to increase the size. Do I have to remake a font or something?[/QUOTE] The [URL="http://wiki.garrysmod.com/"]Garry's Mod Wiki[/URL] is a very useful resource. It has a search feature which would have helped you to find a list of the[url=http://wiki.garrysmod.com/page/Default_Fonts]Default Fonts[/url] or [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/surface/CreateFont]surface.CreateFont[/url]. Either use a different default font, create your own.
Sorry, you need to Log In to post a reply to this thread.