A.J.Mechelynck wrote:
I second the motion; and since the font actually used is the first one
found from the "font-family" item, I suggest (all on one line):
+ execute "normal! A\npre { font-family: 'Courier New', monospace;
color: " . s:fgc . "; background-color: " . s:bgc . "; }\e"
which will pick "Courier New" if found, and some generic "monospace"
font otherwise. (Note: I don't know how it got here, but I have "Courier
New" installed not only on my Windoze box but also on this SuSE-Linux
box where I am now.)
I beg you, please don't hardcode Courier New!
Not only is it the worst possible monospaced screen font, it is also
Microsoft specific (in spite of it finding its way onto Tony's Linux box).
(Even Microsoft has seen the light, and changed the default monospaced
font to Consolas in Windows Vista.)
The proper thing to do is to only list "font-family: monospace". That
will use the default monospaced font on any platform, which is Courier
New by default in any case on current Windows browsers. Only people who
have consciously chosen to change their monospaced font (and people on
non-Windows platforms) will not see Courier New.
- Michael