fix font detection: regular expression bug.