+ {
+ CPPUNIT_ASSERT( font[i].IsOk() );
+
+ const wxString facename = font[i].GetFaceName();
+ if ( !facename.empty() )
+ {
+ WX_ASSERT_MESSAGE(
+ ("font #%u: facename \"%s\" is invalid", i, facename),
+ wxFontEnumerator::IsValidFacename(facename)
+ );
+ }
+ }