black
I'm sorry.
This commit is contained in:
parent
9983ffe27a
commit
4ae0a93692
@ -415,7 +415,6 @@ class table__g_l_y_f(DefaultTable.DefaultTable):
|
|||||||
controls = []
|
controls = []
|
||||||
|
|
||||||
for component in glyph.components:
|
for component in glyph.components:
|
||||||
|
|
||||||
(
|
(
|
||||||
componentCoords,
|
componentCoords,
|
||||||
componentControls,
|
componentControls,
|
||||||
@ -1445,7 +1444,10 @@ class Glyph(object):
|
|||||||
p1 = contour[i]
|
p1 = contour[i]
|
||||||
p2 = contour[i + 1]
|
p2 = contour[i + 1]
|
||||||
p4 = contour[i + 2 if i + 2 < count else 0]
|
p4 = contour[i + 2 if i + 2 < count else 0]
|
||||||
p3 = (maybeInt((p2[0] + p4[0]) * 0.5), maybeInt((p2[1] + p4[1]) * 0.5))
|
p3 = (
|
||||||
|
maybeInt((p2[0] + p4[0]) * 0.5),
|
||||||
|
maybeInt((p2[1] + p4[1]) * 0.5),
|
||||||
|
)
|
||||||
pen.curveTo(p1, p2, p3)
|
pen.curveTo(p1, p2, p3)
|
||||||
else:
|
else:
|
||||||
# There is not a single on-curve point on the curve,
|
# There is not a single on-curve point on the curve,
|
||||||
@ -1489,7 +1491,10 @@ class Glyph(object):
|
|||||||
p1 = contour[i]
|
p1 = contour[i]
|
||||||
p2 = contour[i + 1]
|
p2 = contour[i + 1]
|
||||||
p4 = contour[i + 2]
|
p4 = contour[i + 2]
|
||||||
p3 = (maybeInt((p2[0] + p4[0]) * 0.5), maybeInt((p2[1] + p4[1]) * 0.5))
|
p3 = (
|
||||||
|
maybeInt((p2[0] + p4[0]) * 0.5),
|
||||||
|
maybeInt((p2[1] + p4[1]) * 0.5),
|
||||||
|
)
|
||||||
lastOnCurve = p3
|
lastOnCurve = p3
|
||||||
pen.curveTo(p1, p2, p3)
|
pen.curveTo(p1, p2, p3)
|
||||||
pen.curveTo(*contour[count - 3 : count])
|
pen.curveTo(*contour[count - 3 : count])
|
||||||
@ -1930,7 +1935,6 @@ VAR_COMPONENT_TRANSFORM_MAPPING = {
|
|||||||
|
|
||||||
|
|
||||||
class GlyphVarComponent(object):
|
class GlyphVarComponent(object):
|
||||||
|
|
||||||
MIN_SIZE = 5
|
MIN_SIZE = 5
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -2166,7 +2170,6 @@ class GlyphVarComponent(object):
|
|||||||
return count
|
return count
|
||||||
|
|
||||||
def getCoordinatesAndControls(self):
|
def getCoordinatesAndControls(self):
|
||||||
|
|
||||||
coords = []
|
coords = []
|
||||||
controls = []
|
controls = []
|
||||||
|
|
||||||
|
@ -774,7 +774,6 @@ class GlyphCubicTest:
|
|||||||
glyph.program = ttProgram.Program()
|
glyph.program = ttProgram.Program()
|
||||||
|
|
||||||
for i in range(2):
|
for i in range(2):
|
||||||
|
|
||||||
if i == 1:
|
if i == 1:
|
||||||
glyph.compile(None)
|
glyph.compile(None)
|
||||||
|
|
||||||
@ -801,7 +800,6 @@ class GlyphCubicTest:
|
|||||||
glyph.program = ttProgram.Program()
|
glyph.program = ttProgram.Program()
|
||||||
|
|
||||||
for i in range(2):
|
for i in range(2):
|
||||||
|
|
||||||
if i == 1:
|
if i == 1:
|
||||||
glyph.compile(None)
|
glyph.compile(None)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user