Fix font family lookup calculation

As reported in mailing list thread "font setting in matplotlib 1.3.1"