Gerrit van Aaken
Gerrit van Aaken

@gerritvanaaken@typo.social

Webdesigner & Frontendentwickler seit 1996 | Pro Wissenschaft | Anti Faschismus | er/sein

December 17, 2023

TIL browsers will reduce the font-size when you set font-family: monospace 馃く

I've seen this but always kinda assumed the default monospace font was just small.

You can cancel this by setting a font-size on the element, or by adding a second font to the stack:

font-family: monospace, superbanana;

The second font doesn't even have to exist. Presumably the browser thinks "don't wanna scale THOSE glyphs, let's undo the font scaling"

Via: typo.social/@rebane2001@infose

Elk Logo

Welcome to Elk!

Elk is a nimble Mastodon web client. You can login to your Mastodon account and use it to interact with the fediverse.

Expect some bugs and missing features here and there. Elk is Open Source and we're actively improving it as a community project. Join us and let's build it together!

If you'd like to report a bug, help us testing, give feedback, or contribute, reach out to us on GitHub and get involved.

To boost development, you can sponsor the Team through GitHub Sponsors. We hope you enjoy Elk!

涓夊挷鏅哄瓙 Kevin DengDaniel RoePatakAnthony FuTAKAHASHI ShuujiJoaqu铆n S谩nchez

The Elk Team