1) I ran your code under Win2000 and received enough strange results.
2) Enumeration (at least, under Win2000) gives 100% correct results.
Another question, what means "correct" ...
Completely sure that windows simply takes information from font files' headers.
Three or four years ago I made own font (regular & bold).
I honestly marked Weight, but didn't worry about other fields.
If I marked a font as "Italic" (it could be), both (EnumFont & CreateFont) will accept a font as "Italic".
You talk - "Arial Rounded MT also says Weight 700 Italic 0, but can only be bold+italic".
Don't understand. Do you want to say that tm.tmItalic of created font will be non-zero ?
Guess, that it will be zero - Windows has no eyes

------------------
E-MAIL: [email protected]
Leave a comment: