3 ms·
>> You should respect the user's preferred font size. >This is impossible because what's desired depends on the font. I'm confused by this statement. Let's sa
by dutchCourage 3y ago
>> You should respect the user's preferred font size.
>This is impossible because what's desired depends on the font.
I'm confused by this statement. Let's say I'm using a font that looks smaller than average. To compensate for that I (the developer/designer) set the font-size of my body text to 20px instead of 16px. Using rem, it'll be 1.25rem.
Now when someone with bad eyesight comes on my website and they have their default font-size set to 18px instead of 16px, the body text is 18*1.25=22.5
They will still see a larger text (22.5px) than the average person (20px), regardless of the font I picked.
If I had set the font-size in px, everyone would get the same size regardless of their preference.