add ttf testcase, update some formulas