ChatIS icon indicating copy to clipboard operation
ChatIS copied to clipboard

Custom font size

Open xQuai opened this issue 11 months ago • 3 comments

Hello everyone,

would it be possible to set individual font size per pixel instead of the three given options for font size? We currently need an option between normal and medium. Unfortunately, this is currently not possible.

xQuai avatar Dec 12 '24 07:12 xQuai

I got a random surge of motivation and put together all the stuff needed for a custom font size to work (9b80357). But now I'm too lazy to rework the size option UI to add support for custom size...

I can suggest a workaround for the lack of UI option for now. OBS supports custom CSS.

Screenshot of the OBS Custom CSS input box (spoiler)

Screenshot at 2024-12-30 00-05-18

In there you can add:

:root {
    /* Round numbers are recommended. Value is in pixels, do not add 'px' suffix. */
    /* Options from the menu: small - 20, medium - 34, large - 48. */
    --chat-font-size: 20;
}

IS2511 avatar Dec 30 '24 00:12 IS2511

Thank you for your commitment. I will try it out later.

xQuai avatar Dec 30 '24 05:12 xQuai

Funny story. I just had to roll back the change that makes --chat-font-size work. Apparently something I used in that change isn't supported on older OBS versions and it breaks badge and emote size for a sizeable amount of users... Whoops! Gonna see what I can do to make it work on older OBS versions...

IS2511 avatar Dec 30 '24 06:12 IS2511