Robin Dunn wrote:> Stefan Csomor wrote:>> Hi Robin>>>>> apparently comes from the fact that "Times" and a few other>>> names>>> are explicitly used in wxFontRefData::MacFindFont. Stefan, is it>>> supposed to be guaranteed that these fonts are installed, or is there>>> some API way to find what should be used for the default facename for>>> the various font families?>>>> They are installed by default IIRC, but the user can uninstall them.>> There is no concept of font families in the wx sense on OSX. But I could>> preflight the name chosen and switch to the system font, in case the>> better fit is not available. What level can I use for indication about>> such an error, without wxPython throwing an exception.> > The Python exception is coming from a wxASSERT (or wxFAIL, wxCHECK, > etc.) failing. So as long as that can be avoided then wxPython will be > happy.Some more info:It's the assert at the end of wxFontRefData::MacFindFont, and it is being called from wxPython via it calling wxStockGDI::instance().GetFont(wxStockGDI::FONT_ITALIC)