Garry's Mod

Garry's Mod

Not enough ratings
[QoL] UI & Font Scaling, "4K Scale Fix" (TTT2 Compatible)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Movie, Realism
File Size
Posted
Updated
19.726 KB
14 Oct, 2024 @ 10:50am
23 Feb @ 1:42pm
12 Change Notes ( view )

Subscribe to download
[QoL] UI & Font Scaling, "4K Scale Fix" (TTT2 Compatible)

In 1 collection by Carlotta Montelli
[TTT2] VirtualLifeDE Complete Collection
645 items
Description
UI & Font Scaling
This addon allows you to scale the fonts and the UI in GMod.
After changing the UI Scale you might need to re-open the UI Window for the scale to be applied properly.
Important Note: Due to the limitations of GMod this addon cannot override the UI scale in the main menu and the console.

ConVars
ui_scale [0.5-2] Resizes the UI & Fonts with the given multiplier.
If you're using TTT2, you can use the scale slider in the TTT2 Appearance Menu.

DarkUI, PlayerModel-Selector, etc (from the screenshots) are NOT included in this mod.
You can get the addons here:

Uploaded with gmpublisher[github.com]
9 Comments
Carlotta Montelli  [author] 31 Jul @ 4:13am 
Another mod references fonts that aren't installed. So, when my mod tries to load these fonts at a bigger scale, it can't find them either.
Font errors aren't critical. If you don't mind that a few texts look different than intended by the mod author, you can ignore these errors. Otherwise, you'll need to install the missing fonts.
zedreey 30 Jul @ 11:00pm 
Couldn't find/load font 'DejaVu Sans', falling back to 'Tahoma'.. (x2)
Couldn't find/load font 'Roboto-Regular', falling back to 'Tahoma'..
Couldn't find/load font 'roboto mono', falling back to 'Tahoma'..
Couldn't find/load font 'dejavu sans mono', falling back to 'Tahoma'..
Couldn't find/load font 'Agency FB', falling back to 'Tahoma'..
Couldn't find/load font 'roboto mono', falling back to 'Tahoma'..
Diclonius LiMEONY 22 Feb @ 10:50pm 
it's nice that you can scale the ui a little, but it significantly drops my fps. i usually have around 580 fps, but with this addon, it dropped to around 60
Humyo 26 Oct, 2024 @ 3:54am 
Now it's working properly Thanks for the update:MHRISE_happy:
Humyo 21 Oct, 2024 @ 4:53pm 
8. DoClick - gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/contenttypes/custom.lua:72
9. InternalDoClick - lua/vgui/dtree_node.lua:63
10. fn - gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/contenttypes/custom.lua:230
11. Call - lua/ulib/shared/hook.lua:109
12. CallPopulateHook - gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/content.lua:58
13. Function - gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/content.lua:95
14. unknown - gamemodes/sandbox/gamemode/spawnmenu/creationmenu.lua:48 (x274)
Humyo 21 Oct, 2024 @ 4:53pm 
[[QoL] UI & Font Scaling, "4K Scale Fix" (TTT2 Compatible)] lua/vgui/spawnicon.lua:81: attempt to index field 'Icon' (a nil value)
1. unknown - lua/vgui/spawnicon.lua:81
2. SetMinimumSize - [C]:-1
3. SetText - lua/autorun/ui_scale.lua:107
4. Init - lua/vgui/spawnicon.lua:12
5. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:41
6. cp - lua/vgui/spawnicon.lua:237
7. DoPopulate - gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/contenttypes/custom.lua:162
Humyo 21 Oct, 2024 @ 4:51pm 
I've checked it now, but I'm getting a different error this time
Only the font seems to be bigger

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3352777625
Carlotta Montelli  [author] 20 Oct, 2024 @ 7:37am 
Should be fixed now.
Humyo 19 Oct, 2024 @ 11:42pm 
[[QoL] UI & Font Scaling, "4K Scale Fix" (TTT2 Compatible)] lua/autorun/ui_scale.lua:77: attempt to perform arithmetic on field 'size' (a nil value)
1. InitUIScale - lua/autorun/ui_scale.lua:77
2. unknown - lua/autorun/ui_scale.lua:88