improve exiting logic
fix#18 adding support for css3 font definition