Home
last modified time | relevance | path

Searched refs:otRound (Results 1 – 16 of 16) sorted by relevance

/external/fonttools/Lib/fontTools/misc/
DfixedTools.py21 def otRound(value): function
67 return otRound(value * (1<<precisionBits))
77 return otRound(value * scale) / scale
DpsCharStrings.py7 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.py3 from fontTools.misc.fixedTools import otRound
88 additionalMetrics = [otRound(sb) for _, sb in additionalMetrics]
99 allMetrics.extend([otRound(advance), otRound(sb)])
DTupleVariation.py3 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.py15 otRound,
1166 x = otRound(self.x)
1167 y = otRound(self.y)
1331 a.append(otRound(n))
/external/fonttools/Lib/fontTools/pens/
Dt2CharStringPen.py6 from fontTools.misc.fixedTools import otRound
15 rounded = otRound(number)
86 program.insert(0, otRound(self._width))
/external/fonttools/Lib/fontTools/varLib/
Dmutator.py8 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(
Dmerger.py6 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])
DvarStore.py3 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__.py24 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.py3 from fontTools.misc.fixedTools import otRound
159 assert g[0][0] == otRound(afloat)
/external/fonttools/Lib/fontTools/subset/
Dcff.py4 from fontTools.misc.fixedTools import otRound
D__init__.py7 from fontTools.misc.fixedTools import otRound
2609 avg_width = otRound(sum(widths) / len(widths))
/external/fonttools/
DNEWS.rst279 - [fixedTools] Added ``otRound`` to round floats to nearest integer towards
DPKG-INFO696 - [fixedTools] Added ``otRound`` to round floats to nearest integer towards
/external/fonttools/Lib/fonttools.egg-info/
DPKG-INFO696 - [fixedTools] Added ``otRound`` to round floats to nearest integer towards