Added a fix for functions returning wxFont objects