Fix the loop index error in FontTypeTest