+ // if the call to SetFaceName() below fails on your system/port,
+ // consider adding another branch to this #if
+#if defined(__WXMSW__) || defined(__WXOSX__)
+ static const char *knownGoodFaceName = "Arial";
+#else
+ static const char *knownGoodFaceName = "Monospace";
+#endif
+
+ WX_ASSERT_MESSAGE
+ (
+ ("failed to set face name \"%s\" for test font #%u\n"
+ "(this failure is harmless if this face name is not "
+ "available on this system)", knownGoodFaceName, n),
+ test.SetFaceName(knownGoodFaceName)
+ );