Custom font size for SteamDeck inspired by UCommonTextBlock::MobileFontSizeMultiplier

Hello,

We would like to slightly increase our texts sizing for the Steam Deck platform.

After having digged Common UI, I couldn’t find any kind of custom override in the text styles or any configuration that could do the job.

However, I see that UCommonTextBlock::MobileFontSizeMultiplier is used for mobile platforms (Android/iOS) to apply a custom size ratio on the texts.

I intend to do a light engine modification inspired by this field for the Steam Deck platform, and I was curious if there would be another way to handle this?

Best regards,

Baptiste P.

Steps to Reproduce

Hi,

We ran into a similar problem, and added some new CVars in CL#48482715 to address this. If you want to grab our solution instead of rolling your own, you could backport that change and use the CommonUI.TextGlobalScaling cvar on platforms where you need it to provide a global text scale factor.

Best,

Cody

Hi Cody,

Thank you for your answer, we retrieved your CL and it works perfectly in our case.

Best regards,

Baptiste P.