Home
last modified time | relevance | path

Searched refs:fixedToFloat (Results 1 – 11 of 11) sorted by relevance

/external/fonttools/Tests/misc/
DfixedTools_test.py3 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.py5 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.py4 from fontTools.misc.fixedTools import fixedToFloat, floatToFixed
176 self.coordinates[axis] = fixedToFloat(value, 16)
DTupleVariation.py3 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.py6 fixedToFloat as fi2fl,
D_t_r_a_k.py4 from fontTools.misc.fixedTools import fixedToFloat as fi2fl, floatToFixed as fl2fi
D_g_l_y_f.py13 fixedToFloat as fi2fl,
DotConverters.py4 fixedToFloat as fi2fl, floatToFixed as fl2fi, ensureVersionIsLong as fi2ve,
/external/fonttools/Lib/fontTools/misc/
DfixedTools.py32 def fixedToFloat(value, precisionBits): function
Dsstruct.py51 from fontTools.misc.fixedTools import fixedToFloat as fi2fl, floatToFixed as fl2fi
DpsCharStrings.py7 from fontTools.misc.fixedTools import fixedToFloat, otRound
50 return fixedToFloat(value, precisionBits=16), index+4