changed datatype from int to float since function returns float. otherwise kerning fraction info gets lost.