fix for regex bug
fixed fontType bug