Description

When you use the non proportional font in a line with an other font it appears significantly smaller than the surrounding font. This looks strange.

This behaviour does not happen in the print preview. Reproduced with the default theme "modern", browser Internet Explorer 6 and Mozilla 1.4 (Linux).

Steps to reproduce

Just use the code example.

Example

Normal font, {{{non proportional font,}} } and again normal font.

produces (when you remove the additional space between the three curly brackets):

Normal font, non proportional font, and again normal font.

Details

MoinMoin Version

reproduced on 1.3.3 and this wiki

OS and Version

Python Version

Server Setup

Server Details

Workaround

Discussion

Font size depends on the fonts installed on your system and your browser.

If would only see this as moin bug if our CSS states e.g. 1.2em for proportional and 1em for monospace. Everything else is simply not moin's problem.

The common.css states font sizes in em and the print.css states font sizes in pt (and explicitly defines the font size for the pre tag (e.g. in beta 3, modern theme). Thus it is at least an inconsistency that should be checked. It seems that on some systems and browsers the "em to pt ratio" is significantly different for font-family courier. In Windows and IE you can't set different font sizes for different, you can only set diffent font types and then define the general font size. It is true that the problem described here also happens with other (non-moin) html, but the moin css could take care of it

Using EM for screen and PT for print is fine, no inconsistency.

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/MonospaceFontTooSmall (last edited 2007-10-29 19:19:35 by localhost)