space on font

how can i remove that space on the bottom of the word, i tried everything, its because the font ? im using Josefin Sans Variable, in montserrat happend the same to me
No description
23 Replies
ἔρως
ἔρως2w ago
set the line height to 1 if it doesn't work, you're sol find a better font
Trazos
TrazosOP2w ago
already tried that T_T, man i fall in love with that font
ἔρως
ἔρως2w ago
then use it
Trazos
TrazosOP2w ago
thanks anyway ajjaja the thing in the other side i have a buttum and it look not balanced in my eyes
ἔρως
ἔρως2w ago
yeah, it will look a little bad if you absolutely need it to absolutely be absolutely centered to the absolute center, you can try using svg
13eck
13eck2w ago
The @font-face directive has the brand new descent override you can use to remove the decender space Not available everywhere, though, as it's new :p
ἔρως
ἔρως2w ago
which is sad 😦
13eck
13eck2w ago
Oh, never mind. It's not new it's Apple being dumb
ἔρως
ἔρως2w ago
would have been really useful from the beginning oh really? 😮
13eck
13eck2w ago
Chrome since 2020, FF since 2021 🙄 Safari since 🤣
ἔρως
ἔρως2w ago
at least it should work for everything else
13eck
13eck2w ago
Yeah, it should The reason setting line height to 1 doesn't work is because the descender/ascender space is part of the line height
ἔρως
ἔρως2w ago
is it part of line height or part of the font?
Trazos
TrazosOP2w ago
What I did was reduce the line-height a bit more, just to those H2s. I think it'll be the temporary solution. If it doesn't affect the rest in the future, I'll just leave it like that. Thanks!!! P.S.: I had to leave it at line-height: 0.5
ἔρως
ἔρως2w ago
that sounds like a scary brittle hack
Trazos
TrazosOP2w ago
khahahaha just temporary soluton just that blink blink
13eck
13eck2w ago
It's based on the font size…so both?
Trazos
TrazosOP2w ago
font size
ἔρως
ἔρως2w ago
i will try to remember it in the future, and try to use this looks super interesting
Trazos
TrazosOP2w ago
ahhah As I said, it will stay like this (for the moment), it will not affect me at all and it remains well with the responsive at least, thanks!
No description
ἔρως
ἔρως2w ago
hey, if it works, then it works
13eck
13eck2w ago
It's only a kludge if it breaks 🤣
ἔρως
ἔρως2w ago
🤣 it won't break for 10 years, hopefully

Did you find this page helpful?