Set Font Size of FPS counter
Steam Overlays FPS counter on 4k and in VR is tiny. Please allow a way to set it's font size in options to make it easier to see for people with vision problems.

Thanks.
< >
Showing 1-15 of 33 comments
Sounds like a fair request, I would like that too.
I've seen the fps counter and it is kinda small. I hardly use it but I'd like to be able to change the size of it when I want if I use it.
Ridiculous you can't set font size. Valve totally sucks.

Here's a hack:
edit "C:\Program Files (x86)\Steam\resource\layout\ingamefpsbanner.layout"
and change font sizes.
24 seems the max size: above 24 font will be cropped by the invisible box containing the counter.
Last edited by hexaae; Jan 12, 2019 @ 3:12am
Originally posted by hexaae:
Ridiculous you can't set font size. Valve totally sucks.

Here's a hack:
edit "C:\Program Files (x86)\Steam\resource\layout\ingamefpsbanner.layout"
and change font sizes.
24 seems the max size: above 24 font will be cropped by the invisible box containing the counter.
Thank you so much for this solution. I have been going nuts with the small font.
One question. Why does it have three font sizes if it is a set size? Just curious.
Probably auto-scales in case of smaller resolutions...
Edit "C:\Program Files (x86)\Steam\resource\layout\ingamefpsbanner.layout"
14, 16, 18 still fits all text and won't truncate "xxx fps":
{ controls { TextLabel { controlname=Label labeltext="99" } } styles { CounterTextSmall { font-size="14" } CounterTextMedium { font-size="16" } CounterTextLarge { font-size="18" } HighContrast { bgcolor="0 0 0 60" textcolor="0 255 0 255" } LowContrast { bgcolor="0 0 0 0" textcolor="128 128 128 255" } } layout { place { control="TextLabel" margin=4 align=center } } }
Last edited by hexaae; Apr 1, 2019 @ 4:56am
Originally posted by hexaae:
Edit "C:\Program Files (x86)\Steam\resource\layout\ingamefpsbanner.layout"
14, 16, 18 still fits all text and won't truncate "xxx fps":
{ controls { TextLabel { controlname=Label labeltext="99" } } styles { CounterTextSmall { font-size="14" } CounterTextMedium { font-size="16" } CounterTextLarge { font-size="18" } HighContrast { bgcolor="0 0 0 60" textcolor="0 255 0 255" } LowContrast { bgcolor="0 0 0 0" textcolor="128 128 128 255" } } layout { place { control="TextLabel" margin=4 align=center } } }

Thanks for this insight! You're the only source on the internet that actually showed me this notepad trick. I used it to increase the size of the FPS counter.

I wanted to ask: Do you know how to change the FPS counter from "xxx fps" to "xxx"? I hope my question makes sense and thanks again!
No sorry can't find it anywhere... maybe it's hardcoded.
if you change the margin to a lower number you can increase the font size above 24, I gotten my font size to a 35 with a margin of 0.. and align to the oppesite site of where your counter is.. so if you fps counter is in the right side of the screen align=left
Last edited by Crysal; Dec 17, 2020 @ 2:11am
Originally posted by Crysal:
if you change the margin to a lower number you can increase the font size above 24, I gotten my font size to a 35 with a margin of 0.. and align to the oppesite site of where your counter is.. so if you fps counter is in the right side of the screen align=left

Which margin? how do you change margin?
Originally posted by shak59:
Originally posted by Crysal:
if you change the margin to a lower number you can increase the font size above 24, I gotten my font size to a 35 with a margin of 0.. and align to the oppesite site of where your counter is.. so if you fps counter is in the right side of the screen align=left

Which margin? how do you change margin?

Late reply, but he's referring to the last line in the code below...
layout { place { control="TextLabel" margin=4 align=center } }
You change the items in bold above. Margin to 0, and align to opposite of where your FPS counter is placed (i.e. if your FPS counter is on the left side of the screen, then set "align=right" and vice versa.

Originally posted by hexaae:
Edit "C:\Program Files (x86)\Steam\resource\layout\ingamefpsbanner.layout"
14, 16, 18 still fits all text and won't truncate "xxx fps":
{ controls { TextLabel { controlname=Label labeltext="99" } } styles { CounterTextSmall { font-size="14" } CounterTextMedium { font-size="16" } CounterTextLarge { font-size="18" } HighContrast { bgcolor="0 0 0 60" textcolor="0 255 0 255" } LowContrast { bgcolor="0 0 0 0" textcolor="128 128 128 255" } } layout { place { control="TextLabel" margin=4 align=center } } }
Originally posted by hexaae:
Ridiculous you can't set font size. Valve totally sucks.

Here's a hack:
edit "C:\Program Files (x86)\Steam\resource\layout\ingamefpsbanner.layout"
and change font sizes.
24 seems the max size: above 24 font will be cropped by the invisible box containing the counter.

AMAZING! THANK YOU hexaae!!
< >
Showing 1-15 of 33 comments
Per page: 1530 50

Date Posted: Mar 6, 2017 @ 3:02am
Posts: 33