Searched refs:otRound (Results 1 – 16 of 16) sorted by relevance
/external/fonttools/Lib/fontTools/misc/ |
D | fixedTools.py | 21 def otRound(value): function 67 return otRound(value * (1<<precisionBits)) 77 return otRound(value * scale) / scale
|
D | psCharStrings.py | 7 from fontTools.misc.fixedTools import fixedToFloat, otRound 219 value = otRound(f * 65536) # convert the float to fixed point
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | _h_m_t_x.py | 3 from fontTools.misc.fixedTools import otRound 88 additionalMetrics = [otRound(sb) for _, sb in additionalMetrics] 99 allMetrics.extend([otRound(advance), otRound(sb)])
|
D | TupleVariation.py | 3 from fontTools.misc.fixedTools import fixedToFloat, floatToFixed, otRound 377 stream.write(struct.pack('b', otRound(deltas[i]))) 411 stream.write(struct.pack('>h', otRound(deltas[i])))
|
D | _g_l_y_f.py | 15 otRound, 1166 x = otRound(self.x) 1167 y = otRound(self.y) 1331 a.append(otRound(n))
|
/external/fonttools/Lib/fontTools/pens/ |
D | t2CharStringPen.py | 6 from fontTools.misc.fixedTools import otRound 15 rounded = otRound(number) 86 program.insert(0, otRound(self._width))
|
/external/fonttools/Lib/fontTools/varLib/ |
D | mutator.py | 8 from fontTools.misc.fixedTools import floatToFixedToFloat, otRound, floatToFixed 50 pd.rawDict[key] = otRound(value[0] + delta) 59 delta += otRound(interpolateFromDeltas(vsindex, 91 charstring.program[argi] += otRound(delta) 125 width_delta = otRound(varStoreInstancer[width_idx]) 221 cvt[i] += otRound(delta) 247 delta = otRound(varStoreInstancer[rec.VarIdx]) 377 varfont["OS/2"].usWeightClass = otRound(
|
D | merger.py | 6 from fontTools.misc.fixedTools import otRound 796 self.Coordinate = otRound(model.interpolateFromMastersAndScalars(Coords, scalars)) 805 self.XCoordinate = otRound(model.interpolateFromMastersAndScalars(XCoords, scalars)) 806 self.YCoordinate = otRound(model.interpolateFromMastersAndScalars(YCoords, scalars)) 822 value = otRound(model.interpolateFromMastersAndScalars(values, scalars)) 863 delta = otRound(instancer[varidx]) 889 delta = otRound(instancer[varidx]) 918 delta = otRound(instancer[varidx])
|
D | varStore.py | 3 from fontTools.misc.fixedTools import otRound 89 base = otRound(deltas.pop(0)) 96 deltas = [otRound(d) for d in deltas] 121 deltas = [otRound(d) for d in deltas]
|
D | __init__.py | 24 from fontTools.misc.fixedTools import otRound 300 horizontalAdvanceWidth = otRound(rightSideX - leftSideX) 305 leftSideBearing = otRound(glyph.xMin - leftSideX) 460 delta = [otRound(d) for d in delta]
|
/external/fonttools/Tests/ttLib/tables/ |
D | _g_l_y_f_test.py | 3 from fontTools.misc.fixedTools import otRound 159 assert g[0][0] == otRound(afloat)
|
/external/fonttools/Lib/fontTools/subset/ |
D | cff.py | 4 from fontTools.misc.fixedTools import otRound
|
D | __init__.py | 7 from fontTools.misc.fixedTools import otRound 2609 avg_width = otRound(sum(widths) / len(widths))
|
/external/fonttools/ |
D | NEWS.rst | 279 - [fixedTools] Added ``otRound`` to round floats to nearest integer towards
|
D | PKG-INFO | 696 - [fixedTools] Added ``otRound`` to round floats to nearest integer towards
|
/external/fonttools/Lib/fonttools.egg-info/ |
D | PKG-INFO | 696 - [fixedTools] Added ``otRound`` to round floats to nearest integer towards
|