Fixes off by one error in match_font function