Lavender-Discord/Lavender

Typing f multiple times stacks the fs.

nea89o opened this issue · 7 comments

Pictured: typing afffffe with and without this theme.

image
image
(there are more than 2 fs in this text box)

while typing out all the fs the cursor text cursor jumps back and forth between the start and the end of the place where the fs are stacked. this also happens while pasting in the entire string at once.

Here is a list of all my system fonts in case that matters.

It also happens in messages:
image

This is not a problem with the theme tho? 🤔
Like, its literally not possible to do something like that with a theme I think 🥴

image

All the fs are still there, they just stack visually (this doesnt change the actual message i send). Also im pretty confident its somehow related to this theme as uninstalling just this theme fixes it. Also this is absolutely doable with a theme, for example using ligatures.

but lavender does none of the ligature stuff, it doesnt even modify any text effects of any textarea/input area. Lavender only changes the font, that too using the variables and it works perfectly🤔, I don't see this happening just because of the theme because no one else has had this kind of issue ever. Maybe any of your plugins or custom css mess with anything in lavender that other themes dont have? 🤔

If you are so confident about it being the theme and something with ligatures and stuff, maybe try putting something like this in your custom css and see if it works? 🤔

* {
    font-variant-ligatures: <try all the values from below block one by one here>;
}
/* Keyword values */
font-variant-ligatures: normal;
font-variant-ligatures: none;
font-variant-ligatures: common-ligatures;           /* <common-lig-values> */
font-variant-ligatures: no-common-ligatures;        /* <common-lig-values> */
font-variant-ligatures: discretionary-ligatures;    /* <discretionary-lig-values> */
font-variant-ligatures: no-discretionary-ligatures; /* <discretionary-lig-values> */
font-variant-ligatures: historical-ligatures;       /* <historical-lig-values> */
font-variant-ligatures: no-historical-ligatures;    /* <historical-lig-values> */
font-variant-ligatures: contextual;                 /* <contextual-alt-values> */
font-variant-ligatures: no-contextual;              /* <contextual-alt-values> */
* {
   font-variant-ligatures: normal;
}

fixed for me. What i think happened is that my system wide fallback sans-serif font has some ligatures defined and those get applied to the source sans pro font which doesn't handle them well. Also you do seem to be setting a ligature setting in _variables. I cant test whether removing that works, because your way of importing css files from urls is a bit confusing to me.

Correction i used css font-variant-ligatures: normal;

* {
   font-variant-ligatures: normal;
}

fixed for me. What i think happened is that my system wide fallback sans-serif font has some ligatures defined and those get applied to the source sans pro font which doesn't handle them well. Also you do seem to be setting a ligature setting in _variables. I cant test whether removing that works, because your way of importing css files from urls is a bit confusing to me.

the ligature from variables file only applies to codeblocks tho, so prolly your system issue i think 👍.