September 24, 2004

Weird Font Bug

I was trying to show a friend of mine at Microsoft Game Studios the map browser component I developed.

He downloaded the test application, ran it, and it crashed with the following error:

An unhandled exception of type 'System.ArgumentException' occurred in system.drawing.dll
Additional information: Font 'Verdana' doesn't support style 'Regular'.

Um, what? I can't find anything on this particular error, and we haven't encountered that error on any of our internal machines. Any thoughts?

1 comment:

Anonymous said...

This happened to me on a machine, however in this case it was the 'Tahoma' font.

Turned out, the normal 'Tahoma' was somehow corrupted, so when the font was created it used 'Tahoma Bold' instead (which doesn't support Regular).

However, no uninstalling or reinstalling of the actual Tahoma font could fix it.

I think the only thing that fixed it in the end was a reinstallation of Office.

I just looked in my font directory and 'Verdana Bold' is present, so the same could be happening. Try uninstalling 'Verdana Bold' and see if the font falls back to another font.

David M. Kean