Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom font size #37

Open
xQuai opened this issue Dec 12, 2024 · 3 comments
Open

Custom font size #37

xQuai opened this issue Dec 12, 2024 · 3 comments
Labels
enhancement New feature or request P-low Low priority v2 Not related to code in this repo (v3). See IS2511/ChatIS-v2

Comments

@xQuai
Copy link

xQuai commented Dec 12, 2024

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.

@IS2511 IS2511 added enhancement New feature or request v2 Not related to code in this repo (v3). See IS2511/ChatIS-v2 P-low Low priority labels Dec 29, 2024
@IS2511
Copy link
Owner

IS2511 commented Dec 30, 2024

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 IS2511 changed the title Individual font size Custom font size Dec 30, 2024
@xQuai
Copy link
Author

xQuai commented Dec 30, 2024

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

@IS2511
Copy link
Owner

IS2511 commented Dec 30, 2024

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P-low Low priority v2 Not related to code in this repo (v3). See IS2511/ChatIS-v2
Projects
None yet
Development

No branches or pull requests

2 participants