View Single Post
  #65  
Old August 11th, 2004, 09:08 AM
Esben Mose Hansen's Avatar

Esben Mose Hansen Esben Mose Hansen is offline
Second Lieutenant
 
Join Date: Jan 2004
Location: Copenhagen, Denmark
Posts: 410
Thanks: 0
Thanked 0 Times in 0 Posts
Esben Mose Hansen is on a distinguished road
Default Re: The New Forum Software!

Quote:
Quote:

Ouch! Never, ever, under any condition, specify font sizes in px. It is the only totally surefire way of making the pages unreadable for somebody. Could you please kill that line? Or replace it with font-size: small; or something like that.
Actually, specifying font sizes in px is the best way to do it, because it guarantees that the fonts will be the same size in all browsers across all platforms. pt is a very arbitrary measurement that varies from OS to OS and even browser to browser. You can still increase the text size in the View menu, however.
Oh man, that is so wrong, as pixel-size is different from screen to screen(!). The font is unreadable for me; as I said about 2mm high. I've studied HTML rendering to some depth, even contributed to Mozilla in a small way, so I do now a little.

Let me summarize each font-sizing specification method, and the individual pro/cons.
  • px. The font is chosen to be as close to the specified height in pixels as possible. Most browsers forces a minimum size on fonts, though, so it is no guarantee. The advantage is that you can mix images and fonts in a (semi)-predictable way; the disadvantage is that the font will be unreadable for some people and/or too large for other people.
  • pt, mm, in, etc. In theory the font is chosen some the font height is the length specified. However, at the very least this requires the DPI-setting to be correct. This is usually true for linuxboxes, but in general this setting is wrong (usually 72DPI; for comparison mine is about 112.) From this is can be calculated that 11px~2.5mm for my monitor; and 3.9mm for a 72 DPI monitor. Even if these problems are ignored, this is almost never the best option, as it doesn't take into account such aspects as the user's eyesight, distance to the monitor, personal preference and so on.
  • em, ex, xx% Relative to the parent (element's) font. Used right, this works well, but requires skilled stylesheet author to use correctly --- e.g. the main text should be exactly the size specified as normal from the browser's (or system's) settings. Another con is that the user has to configure his preferred size correctly.
  • small, normal, +1, -1 etc Absolute sizes with reference point to the user's preferences. Usually the best option by far. The con is that the user has to configure his preferred size correctly, but the style sheet author only needs to know that the main text should be set with font-size: normal.

And yes, I can zoom in on the text, and do, but it is wildly annoying thing to do every time I visit the forums. Why not just do it correctly? It can't be that difficult to replace "font-size: 11px" with "font-size: normal". Or at least make a style-sheet which is not broken in this regard.

Sorry for being so brash. We all have sensitive spots; this is one of mine
__________________
"It makes you wonder if there is anything to astrology after all. "Oh, there is," said Susan, "Delusion, wishful thinking and gullibility." (T. Pratchett)