Fixed it in main (replaced the "xor 2" by "and not 2" which is less of a mind-twister to me).
Thank U, Werner. Nice work!
Therefore, I extended the EnumFamilyFonts function of the example to search these key words in the style string for the Linux widgetsets
Also I found that the list of font styles is not showing for Darwin Cocoa.Yes. I guess the EnumFontFamiliesEx function is not fully implemented for the cocoa widgetset, yet. It only populates the filename and fullname members in the LogFont, and the Metric members are zero, as well. Your screenshot of the system dialog shows that the needed information does exist (of course), but I don't have the knowledge of extract it from mac's internal structures.
WP, these commits you are making wrt the Examples, there seems a lot of small fixes. I was trying to group all the changes I made into a small number of merges so it was easy to list them if and when its ultimately merged to a release. Is there a way to keep track of all these small merges ?I don't know. Of course I try to make commits of these small things as complete as possible. But it usually happens that after I committed a fix it comes to my mind that I should have checked also some other aspect. And this leads to the next commit, and so on... Sorry, that's the way it is.
Also I found that the list of font styles is not showing for Darwin Cocoa.Yes. I guess the EnumFontFamiliesEx function is not fully implemented for the cocoa widgetset, yet. It only populates the filename and fullname members in the LogFont, and the Metric members are zero, as well. Your screenshot of the system dialog shows that the needed information does exist (of course), but I don't have the knowledge of extract it from mac's internal structures.
Then best post it as a bug report and someone more knowledgable in Cocoa will take a look. :)