§ Ê)Ejø ãó.—ddlmZGd„de¦«ZdS)é)ÚContourFilterPencó—eZdZdZd„ZdS)ÚExplicitClosingLinePena‰ A filter pen that adds an explicit lineTo to the first point of each closed contour if the end point of the last segment is not already the same as the first point. Otherwise, it passes the contour through unchanged. >>> from pprint import pprint >>> from fontTools.pens.recordingPen import RecordingPen >>> rec = RecordingPen() >>> pen = ExplicitClosingLinePen(rec) >>> pen.moveTo((0, 0)) >>> pen.lineTo((100, 0)) >>> pen.lineTo((100, 100)) >>> pen.closePath() >>> pprint(rec.value) [('moveTo', ((0, 0),)), ('lineTo', ((100, 0),)), ('lineTo', ((100, 100),)), ('lineTo', ((0, 0),)), ('closePath', ())] >>> rec = RecordingPen() >>> pen = ExplicitClosingLinePen(rec) >>> pen.moveTo((0, 0)) >>> pen.lineTo((100, 0)) >>> pen.lineTo((100, 100)) >>> pen.lineTo((0, 0)) >>> pen.closePath() >>> pprint(rec.value) [('moveTo', ((0, 0),)), ('lineTo', ((100, 0),)), ('lineTo', ((100, 100),)), ('lineTo', ((0, 0),)), ('closePath', ())] >>> rec = RecordingPen() >>> pen = ExplicitClosingLinePen(rec) >>> pen.moveTo((0, 0)) >>> pen.curveTo((100, 0), (0, 100), (100, 100)) >>> pen.closePath() >>> pprint(rec.value) [('moveTo', ((0, 0),)), ('curveTo', ((100, 0), (0, 100), (100, 100))), ('lineTo', ((0, 0),)), ('closePath', ())] >>> rec = RecordingPen() >>> pen = ExplicitClosingLinePen(rec) >>> pen.moveTo((0, 0)) >>> pen.curveTo((100, 0), (0, 100), (100, 100)) >>> pen.lineTo((0, 0)) >>> pen.closePath() >>> pprint(rec.value) [('moveTo', ((0, 0),)), ('curveTo', ((100, 0), (0, 100), (100, 100))), ('lineTo', ((0, 0),)), ('closePath', ())] >>> rec = RecordingPen() >>> pen = ExplicitClosingLinePen(rec) >>> pen.moveTo((0, 0)) >>> pen.curveTo((100, 0), (0, 100), (0, 0)) >>> pen.closePath() >>> pprint(rec.value) [('moveTo', ((0, 0),)), ('curveTo', ((100, 0), (0, 100), (0, 0))), ('closePath', ())] >>> rec = RecordingPen() >>> pen = ExplicitClosingLinePen(rec) >>> pen.moveTo((0, 0)) >>> pen.closePath() >>> pprint(rec.value) [('moveTo', ((0, 0),)), ('closePath', ())] >>> rec = RecordingPen() >>> pen = ExplicitClosingLinePen(rec) >>> pen.closePath() >>> pprint(rec.value) [('closePath', ())] >>> rec = RecordingPen() >>> pen = ExplicitClosingLinePen(rec) >>> pen.moveTo((0, 0)) >>> pen.lineTo((100, 0)) >>> pen.lineTo((100, 100)) >>> pen.endPath() >>> pprint(rec.value) [('moveTo', ((0, 0),)), ('lineTo', ((100, 0),)), ('lineTo', ((100, 100),)), ('endPath', ())] cóü—|r7|dddks%|dddkst|¦«dkrdS|ddd}|dd}|r||dkrd|ffd g|dd…<dSdSdS) NrÚmoveToéÿÿÿÿÚ closePathéééþÿÿÿÚlineTo)r ©)Úlen)ÚselfÚcontourÚmovePtÚlastSegs úWC:\PYTHON\MyICR_Suite\python\Lib\site-packages\fontTools/pens/explicitClosingLinePen.pyÚ filterContourz$ExplicitClosingLinePen.filterContourZs¬€àð àqŒz˜!Œ} Ò(Ð(ØrŒ{˜1Œ~ Ò,Ð,Ý7‰|Œ|˜aÒÐà ˆFؘ”˜A”˜qÔ!ˆØ˜"”+˜a”.ˆØ ð Fv ¨¤Ò,Ð,Ø%¨ yÐ1Ð3DÐEˆGBCC‰LˆLˆLð Fð FÐ,Ð,óN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrrrrs5€€€€€ðSðSðj Fð Fð Fð Fð FrrN)ÚfontTools.pens.filterPenrrrrrúrs`ðØ5Ð5Ð5Ð5Ð5Ð5ðaFðaFðaFðaFðaFÐ-ñaFôaFðaFðaFðaFr