Added more sophisticated rules for font property. Fixes #35