[interpolatable] Remove use of perimeter again
This commit is contained in:
parent
c935118072
commit
63c283a3c8
@ -9,7 +9,6 @@ from __future__ import print_function, division, absolute_import
|
||||
from fontTools.misc.py23 import *
|
||||
|
||||
from fontTools.pens.basePen import BasePen
|
||||
from fontTools.pens.perimeterPen import PerimeterPen
|
||||
from fontTools.pens.statisticsPen import StatisticsPen
|
||||
import itertools
|
||||
|
||||
@ -175,12 +174,9 @@ def test(glyphsets, glyphs=None, names=None):
|
||||
allVectors.append(contourVectors)
|
||||
for contour in contourPens:
|
||||
stats = StatisticsPen(glyphset=glyphset)
|
||||
perim = PerimeterPen(glyphset=glyphset)
|
||||
tee = TeePen([stats, perim])
|
||||
contour.draw(tee)
|
||||
contour.draw(stats)
|
||||
size = abs(stats.area) ** .5 * .5
|
||||
vector = (
|
||||
int(perim.value),
|
||||
int(size),
|
||||
int(stats.meanX),
|
||||
int(stats.meanY),
|
||||
|
Loading…
x
Reference in New Issue
Block a user