Optimization of font files filtering

Replaced fnmatch with faster set membership checking
Also, fixed one test