Home
last modified time | relevance | path

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

/external/fonttools/Lib/fontTools/misc/
DfixedTools.py20 from .roundTools import otRound
81 return otRound(value * (1 << precisionBits))
110 return otRound(value * scale) / scale
176 return otRound(value * (1 << precisionBits))
208 return otRound(value * scale) / scale
230 fixed = otRound(value * (1 << precisionBits))
DroundTools.py21 def otRound(value): function
44 def maybeRound(v, tolerance, round=otRound):
48 def roundFunc(tolerance, round=otRound):
DarrayTools.py5 from fontTools.misc.roundTools import otRound
26 def calcIntBounds(array, round=otRound):
/external/fonttools/Lib/fontTools/colorLib/
Dgeometry.py4 from fontTools.misc.roundTools import otRound
12 return (otRound(pt[0]), otRound(pt[1]))
65 return Circle(_round_point(self.centre), otRound(self.radius))
Dtable_builder.py25 from fontTools.misc.roundTools import otRound
118 value = otRound(value)
/external/fonttools/Lib/fontTools/pens/
DroundingPen.py1 from fontTools.misc.roundTools import otRound
31 def __init__(self, outPen, roundFunc=otRound):
90 def __init__(self, outPen, roundFunc=otRound):
DttGlyphPen.py2 from fontTools.misc.fixedTools import MAX_F2DOT14, otRound, floatToFixedToFloat
3 from fontTools.misc.roundTools import otRound
136 component.x, component.y = (otRound(v) for v in transformation[4:])
Dt2CharStringPen.py4 from fontTools.misc.roundTools import otRound, roundFunc
60 program.insert(0, otRound(self._width))
/external/fonttools/Lib/fontTools/ttLib/tables/
D_h_m_t_x.py1 from fontTools.misc.roundTools import otRound
86 additionalMetrics = [otRound(sb) for _, sb in additionalMetrics]
97 allMetrics.extend([otRound(advance), otRound(sb)])
DTupleVariation.py7 otRound,
380 stream.write(struct.pack('b', otRound(deltas[i])))
414 stream.write(struct.pack('>h', otRound(deltas[i])))
486 else otRound(d)
488 else (otRound(d[0]), otRound(d[1]))
D_g_l_y_f.py16 otRound,
393 horizontalAdvanceWidth = otRound(rightSideX - leftSideX)
398 leftSideBearing = otRound(glyph.xMin - leftSideX)
402 verticalAdvanceWidth = otRound(topSideY - bottomSideY)
405 topSideBearing = otRound(topSideY - glyph.yMax)
1346 x = otRound(self.x)
1347 y = otRound(self.y)
1509 def toInt(self, *, round=otRound):
1629 def __round__(self, *, round=otRound):
DotTables.py12 from fontTools.misc.roundTools import otRound
1292 _value_mapper = otRound
/external/fonttools/Lib/fontTools/varLib/
Dmutator.py7 from fontTools.misc.roundTools import otRound
49 pd.rawDict[key] = otRound(value[0] + delta)
58 delta += otRound(interpolateFromDeltas(vsindex,
95 charstring.program[argi] += otRound(delta)
129 width_delta = otRound(varStoreInstancer[width_idx])
224 cvt[i] += otRound(delta)
250 delta = otRound(varStoreInstancer[rec.VarIdx])
374 varfont["OS/2"].usWeightClass = otRound(
Dmerger.py7 from fontTools.misc.roundTools import otRound
871 self.Coordinate = otRound(model.interpolateFromMastersAndScalars(Coords, scalars))
880 self.XCoordinate = otRound(model.interpolateFromMastersAndScalars(XCoords, scalars))
881 self.YCoordinate = otRound(model.interpolateFromMastersAndScalars(YCoords, scalars))
897 value = otRound(model.interpolateFromMastersAndScalars(values, scalars))
932 delta = otRound(instancer[varidx])
960 delta = otRound(instancer[varidx])
990 delta = otRound(instancer[varidx])
D__init__.py22 from fontTools.misc.roundTools import noRound, otRound
846 weight_class = otRound(max(1, min(location["wght"], 1000)))
854 widthClass = otRound(
DvarStore.py1 from fontTools.misc.roundTools import noRound, otRound
/external/fonttools/Tests/ttLib/tables/
D_g_l_y_f_test.py1 from fontTools.misc.fixedTools import otRound
173 assert g[0][0] == otRound(afloat)
/external/fonttools/Lib/fontTools/varLib/instancer/
D__init__.py72 otRound,
394 cvt[i] += otRound(delta)
424 getattr(varfont[tableTag], itemName) + otRound(delta),
/external/fonttools/Lib/fontTools/subset/
Dcff.py4 from fontTools.misc.roundTools import otRound
D__init__.py5 from fontTools.misc.roundTools import otRound
2830 avg_width = otRound(sum(widths) / len(widths))
/external/fonttools/
DNEWS.rst669 table's glyphs) now uses ``otRound`` instead of ``round3`` (#1566).
956 - [fixedTools] Added ``otRound`` to round floats to nearest integer towards