473,394 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

<tt> with "font-size: 100%" ?

Internet Explorer displays <tt>, <code> etc. in a smaller font size:
http://www.unics.uni-hannover.de/nht...monospace.html
I don't like the idea that monospaced text is displayed in a different
size. Should we state "font-size:*100%" with monospaced text?

--
Meanwhile at the Google Ranch ...
"I can't read this bloody site; it's all Falsh and JavaScrap."
"Forget it and move on! Still 2*718*281*828 pages to crawl."
Jul 20 '05 #1
7 3063
On Wed, 29 Oct 2003 20:29:36 +0100, Andreas Prilop
<nh******@rrzn-user.uni-hannover.de> wrote:
Internet Explorer displays <tt>, <code> etc. in a smaller font size:
http://www.unics.uni-hannover.de/nht...monospace.html
I don't like the idea that monospaced text is displayed in a different
size. Should we state "font-size:*100%" with monospaced text?


It's a question of preference: monospaced characters are wider than the
average character width of almost all proportional fonts, so quite a lot
of people - including myself - prefer them to be displayed at about 90%,
which is about as legible as a typical proportional font at 100%.

Which reminds me of a Netscape 4 funny: it displays <PRE> at 90% - but
if you specify PRE {font-size: 90%} it displays it at 100%.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #2
Stephen Poley <sb*****@xs4all.nl> wrote:
It's a question of preference: monospaced characters are wider than the
average character width of almost all proportional fonts, so quite a lot
of people - including myself - prefer them to be displayed at about 90%,
which is about as legible as a typical proportional font at 100%.


There's another thing too that favors somewhat reduced font size. Typically,
monospace font is used for computer code excerpts, which are technical
information, presented as examples or for reference. Being somewhat less
important than copy text in the average, it's usually OK to use smaller font
size.

But if there's some other reason for using monospace, e.g. if you use them
for artistic purposes, then suggesting font-size: 100% might be a good idea.
However the font may get subjectively rather big that way.

The choice of the monospace font face is important too. Specifically,
Courier New (a common default) looks considerably larger than Courier of the
same size. So if you set
pre, code, samp, kbd, tt { font-family : Courier, monospace; }
you will effectively reduce the subjective font size - in a manner which
seems adequate for most purposes IMHO. If copy text is conveniently
readable, then Courier, even if somewhat reduced in size by browser
defaults, should produce legible presentation for code-like text.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Jul 20 '05 #3
Jukka K. Korpela wrote:
The choice of the monospace font face is important too. Specifically,
Courier New (a common default) looks considerably larger than Courier of the
same size.


The "Courier" font on my system is a bitmap/raster font (with
predefined sizes). Strangely, Netscape/Mozilla substitutes it with
"Courier New" in the display. Aside, "Courier New" and "Courier"
display the same sizes on my system. Here's a screenshot from IE:

http://www.geocities.com/stanio/temp/Courier.png

--
Stanimir

Jul 20 '05 #4
On Thu, 30 Oct 2003, Jukka K. Korpela wrote:
The choice of the monospace font face is important too. Specifically,
Courier New (a common default) looks considerably larger than Courier of the
same size. So if you set
pre, code, samp, kbd, tt { font-family : Courier, monospace; }
you will effectively reduce the subjective font size - in a manner which
seems adequate for most purposes IMHO.


No disagreement on the purely cosmetic side of the discussion...

Just a word of warning that the regular Microsoft monospace fonts are
distinctly short in the i18n department, and differently so depending
on which font face is used. There's some discussion on my page
http://ppewww.ph.gla.ac.uk/~flavell/...ers-fonts.html
under the sub-heading "Monospace fonts", but the open issue raised
there seems to be still open.
Jul 20 '05 #5
On Thu, 30 Oct 2003 14:49:29 +0200, Stanimir Stamenkov
<s7****@netscape.net> wrote:

The "Courier" font on my system is a bitmap/raster font (with
predefined sizes). Strangely, Netscape/Mozilla substitutes it with
"Courier New" in the display.


I've found Mozilla will also subsitute Arial for Helvetica on my
system. I wonder if it "second-guesses" other font choices besides
these.

Nick

--
Nick Theodorakis
ni**************@hotmail.com
nicholas_theodorakis [at] urmc [dot] rochester [dot] edu
Jul 20 '05 #6
Stanimir Stamenkov wrote:

The "Courier" font on my system is a bitmap/raster font (with
predefined sizes). Strangely, Netscape/Mozilla substitutes it with
"Courier New" in the display.


To the bitter dismay of a game site I use. The change in font plays
havoc with the display of game maps, to the point where Mozilla is
unusable.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #7
Tim
Stanimir Stamenkov wrote:
The "Courier" font on my system is a bitmap/raster font (with
predefined sizes). Strangely, Netscape/Mozilla substitutes it with
"Courier New" in the display.


Brian <us*****@julietremblay.com.invalid-remove-this-part> wrote:
To the bitter dismay of a game site I use. The change in font plays
havoc with the display of game maps, to the point where Mozilla is
unusable.


To be brutal, that's the game's fault, not the browser. You just cant
use HTML for laying out a page. Even with CSS, it's still not a
precision language.

--
My "from" address is totally fake. The reply-to address is real, but
may be only temporary. Reply to usenet postings in the same place as
you read the message you're replying to.
Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.