Searched refs:fixedToFloat (Results 1 – 11 of 11) sorted by relevance
/external/fonttools/Tests/misc/ |
D | fixedTools_test.py | 3 from fontTools.misc.fixedTools import fixedToFloat, floatToFixed 12 self.assertEqual(value, floatToFixed(fixedToFloat(value, bits), bits)) 15 self.assertEqual(0.8, fixedToFloat(13107, 14)) 16 self.assertEqual(0.0, fixedToFloat(0, 14)) 17 self.assertEqual(1.0, fixedToFloat(16384, 14)) 18 self.assertEqual(-1.0, fixedToFloat(-16384, 14)) 19 self.assertEqual(0.99994, fixedToFloat(16383, 14)) 20 self.assertEqual(-0.99994, fixedToFloat(-16383, 14)) 23 self.assertAlmostEqual(-9.98, fixedToFloat(-639, 6)) 24 self.assertAlmostEqual(-10.0, fixedToFloat(-640, 6)) [all …]
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | _a_v_a_r.py | 5 from fontTools.misc.fixedTools import fixedToFloat, floatToFixed 70 segments[fixedToFloat(fromValue, 14)] = fixedToFloat(toValue, 14) 81 key = fixedToFloat(floatToFixed(key, 14), 14) 82 value = fixedToFloat(floatToFixed(value, 14), 14)
|
D | _f_v_a_r.py | 4 from fontTools.misc.fixedTools import fixedToFloat, floatToFixed 176 self.coordinates[axis] = fixedToFloat(value, 16)
|
D | TupleVariation.py | 3 from fontTools.misc.fixedTools import fixedToFloat, floatToFixed, otRound 188 coord[axis] = fixedToFloat(struct.unpack(">h", data[pos:pos+2])[0], 14)
|
D | _k_e_r_n.py | 6 fixedToFloat as fi2fl,
|
D | _t_r_a_k.py | 4 from fontTools.misc.fixedTools import fixedToFloat as fi2fl, floatToFixed as fl2fi
|
D | _g_l_y_f.py | 13 fixedToFloat as fi2fl,
|
D | otConverters.py | 4 fixedToFloat as fi2fl, floatToFixed as fl2fi, ensureVersionIsLong as fi2ve,
|
/external/fonttools/Lib/fontTools/misc/ |
D | fixedTools.py | 32 def fixedToFloat(value, precisionBits): function
|
D | sstruct.py | 51 from fontTools.misc.fixedTools import fixedToFloat as fi2fl, floatToFixed as fl2fi
|
D | psCharStrings.py | 7 from fontTools.misc.fixedTools import fixedToFloat, otRound 50 return fixedToFloat(value, precisionBits=16), index+4
|