Suggestion for much better text-stroke #16
Labels
enhancement
New feature or request
good first issue
Good for newcomers
P-medium
Medium priority
v2
Not related to code in this repo (v3). See IS2511/ChatIS-v2
The webkit-text-stroke that is currently used is terrible as it puts the stroke inside of the text instead of outlining the text. This means it reduces readability especially on larger sizes. I propose you instead use a combination of drop-shadow and text-shadow filters which can replicate a text-stroke but is actually properly on the outside of the text. The drop-shadow filters go on the name to support 7tv name paints and the text-shadow filters go on the message to avoid emotes getting a stroke applied. The text-stroke has 4 more axis to properly cover the entire text.
The only downside to this method is you can only use whole number pixels and because there is essentially one on each side the size is twice the pixel value. So this means it can only replicate the stroke sizes of 2 and 4 in the current system. But this does theoretically allow as large of a stroke as you want since it isn't placed inside the text.
Here is an example css code using this method
And here is an example image comparing the current stroke method with this shadow method:


The text was updated successfully, but these errors were encountered: