From: Antoine Musso Date: Thu, 5 Jan 2012 15:06:49 +0000 (+0000) Subject: explanations by Erwin Dokter on bug 33496 X-Git-Tag: 1.31.0-rc.0~25509 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=616ff7b66c8672d515974bdaeede97f40245872b;p=lhc%2Fweb%2Fwiklou.git explanations by Erwin Dokter on bug 33496 --- diff --git a/docs/uidesign/monospace.html b/docs/uidesign/monospace.html index 7978571cda..84ec13a47c 100644 --- a/docs/uidesign/monospace.html +++ b/docs/uidesign/monospace.html @@ -9,12 +9,32 @@ margin: 1em 10%; padding: 0.5em; } + blockquote { + font-style: italic; + }

This page let you test the rendering font-family declaration for monospaced fonts. TODO: add some references here :-)

+

+Erwin Dokter had the following explanation on Bugzilla #33496: +

+
+By default, a (Windows) browser has it's default font-sizes set at 16px for +serif and sans-serif, and 13px for monospace. Except in IE, where you cannot +set any font-sizes... it uses 16px for all fonts. +
+Vector has a base font-size of 0.8em, and most browsers *correctly* scale down +all fonts, including the monospace font, accordingly. So monospace is shown at +0.8 x 13px = 10px (which is perceived as 'too small'). But when you assign any +font besides just "monospace", those browsers will no longer treat it as +monospace and use 0.8 x 16px = 13px instead. +
+

+Below are various rendering: +