Steve Hall wrote:
Has anyone here experienced font errors in gVim lately related to the
system font "Fixedsys"? I have three separate users with relatively
new Windows installations that get an error with:
set background=light
E235: Unknown font: Fixedsys:h9:cDEFAULT
I see this font name hardcoded in os_mswin.c, just wondering if
perhaps MICROS~1 has recently changed XP to not included it by default
in some situations?
Possibility I:
Try taking advantage of the fact that the gvim 'guifont' option is supposed to
accept a comma-separated list.
Just as with the HTML <FONT FACE="..."> tag and the CSS "font-family"
attribute, the first font found is supposed to be used. If some fairly common
monospace fonts are included before Fixedsys, the latter won't be needed.
(A word of caution: I'm not sure this mechanism works properly in all GUI
flavours.)
Example (untested):
exe 'set gfn=Lucida_Console:h9:cDEFAULT,'
\ . 'Courier_New:h9:cDEFAULT,'
\ . 'Fixedsys:h9:cDEFAULT'
Possibility II:
Fixedsys is a bitmapped font, not a scalable font. Maybe it supports 8pt or
10pt but not 9pt.
Example:
:set gfn=Fixedsys:h8:cDEFAULT
Note: For Possibility II, ":set guifont=*" will tell you, for each font face,
which sizes are supported "out of the box". Bitmapped fonts will typically
have few values; the biggest one may show the bitmapped nature of the font by
the fact that the pixels of the template are expanded to square blocks.
Scalable fonts (TrueType or OpenType) can normally be set to any "reasonable"
size (i.e. not less than 1x1 pixels and small enough to have at least one
character onscreen ;-) ).
Best regards,
Tony.