Searched refs:otRound (Results 1 – 21 of 21) sorted by relevance
/external/fonttools/Lib/fontTools/misc/ |
D | fixedTools.py | 20 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))
|
D | roundTools.py | 21 def otRound(value): function 44 def maybeRound(v, tolerance, round=otRound): 48 def roundFunc(tolerance, round=otRound):
|
D | arrayTools.py | 5 from fontTools.misc.roundTools import otRound 26 def calcIntBounds(array, round=otRound):
|
/external/fonttools/Lib/fontTools/colorLib/ |
D | geometry.py | 4 from fontTools.misc.roundTools import otRound 12 return (otRound(pt[0]), otRound(pt[1])) 65 return Circle(_round_point(self.centre), otRound(self.radius))
|
D | table_builder.py | 25 from fontTools.misc.roundTools import otRound 118 value = otRound(value)
|
/external/fonttools/Lib/fontTools/pens/ |
D | roundingPen.py | 1 from fontTools.misc.roundTools import otRound 31 def __init__(self, outPen, roundFunc=otRound): 90 def __init__(self, outPen, roundFunc=otRound):
|
D | ttGlyphPen.py | 2 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:])
|
D | t2CharStringPen.py | 4 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.py | 1 from fontTools.misc.roundTools import otRound 86 additionalMetrics = [otRound(sb) for _, sb in additionalMetrics] 97 allMetrics.extend([otRound(advance), otRound(sb)])
|
D | TupleVariation.py | 7 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.py | 16 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):
|
D | otTables.py | 12 from fontTools.misc.roundTools import otRound 1292 _value_mapper = otRound
|
/external/fonttools/Lib/fontTools/varLib/ |
D | mutator.py | 7 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(
|
D | merger.py | 7 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__.py | 22 from fontTools.misc.roundTools import noRound, otRound 846 weight_class = otRound(max(1, min(location["wght"], 1000))) 854 widthClass = otRound(
|
D | varStore.py | 1 from fontTools.misc.roundTools import noRound, otRound
|
/external/fonttools/Tests/ttLib/tables/ |
D | _g_l_y_f_test.py | 1 from fontTools.misc.fixedTools import otRound 173 assert g[0][0] == otRound(afloat)
|
/external/fonttools/Lib/fontTools/varLib/instancer/ |
D | __init__.py | 72 otRound, 394 cvt[i] += otRound(delta) 424 getattr(varfont[tableTag], itemName) + otRound(delta),
|
/external/fonttools/Lib/fontTools/subset/ |
D | cff.py | 4 from fontTools.misc.roundTools import otRound
|
D | __init__.py | 5 from fontTools.misc.roundTools import otRound 2830 avg_width = otRound(sum(widths) / len(widths))
|
/external/fonttools/ |
D | NEWS.rst | 669 table's glyphs) now uses ``otRound`` instead of ``round3`` (#1566). 956 - [fixedTools] Added ``otRound`` to round floats to nearest integer towards
|