I am using VS C# 2008 Express.
I am adding the capability to store and retrieve a user's font selection to my app using the standard FontDialog control.
During my testing I have noticed that certain fonts do not initialize the dialog fully -- the name does not appear in the "Font" box, and the sample is blank.
These are fonts in which part of the name appears in the "Font Style" list on the dialog: "Arial Black", "Segoe UI Light", "Segoe UI Semibold", etc. (Although, interestingly, "Arial Narrow" does work as expected.)
I see the same problem whether I initialize the dialog's font in code or if I set the properties of the FontDialog control to one of the above problem fonts in the IDE.
It is easy to reproduce by just creating a simple form, adding a FontDialog control launched by a button, and setting its font property to "Arial Black" and size to 16.
Any way to resolve this?
Added information: This problem exhibits on a Windows 7 64-bit system. On Vista and XP, Arial Black and Arial Narrow are listed as separate fonts, rather than just Arial with Black and Narrow styles. So it seems Microsoft is doing something different with the common font dialog in Win7.