Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 2øªjý ã@sŠddlmZmZddgZGdd„deƒZGdd„deƒZedkr†ddlmZeedƒdƒZ e j dƒe j dƒe j ddddƒe j ƒdS)é)Ú FilterPenÚFilterPointPenÚ TransformPenÚTransformPointPencs`eZdZdZ‡fdd„Zdd„Zdd„Zdd „Zd d „Zd d „Z dd„Z dd„Z dd„Z ‡Z S)rzePen that transforms all coordinates using a Affine transformation, and passes them to another pen. csFtt|ƒj|ƒt|dƒs.ddlm}||Ž}||_|j|_g|_ dS)zÉThe 'outPen' argument is another pen object. It will receive the transformed coordinates. The 'transformation' argument can either be a six-tuple, or a fontTools.misc.transform.Transform object. ÚtransformPointr)Ú TransformN) ÚsuperrÚ__init__ÚhasattrÚfontTools.misc.transformrÚ_transformationrÚ_transformPointÚ_stack)ÚselfZoutPenÚtransformationr)Ú __class__©ú@/tmp/pip-build-_d5lkt3n/fonttools/fontTools/pens/transformPen.pyr s  zTransformPen.__init__cCs|jj|j|ƒƒdS)N)Ú_outPenÚmoveTor )rÚptrrrrszTransformPen.moveTocCs|jj|j|ƒƒdS)N)rÚlineTor )rrrrrrszTransformPen.lineTocGs|jj|j|ƒŽdS)N)rÚcurveToÚ_transformPoints)rÚpointsrrrr szTransformPen.curveTocGs@|ddkr&|j|dd…ƒdg}n |j|ƒ}|jj|ŽdS)Nééÿÿÿÿr)rrÚqCurveTo)rrrrrr#s  zTransformPen.qCurveTocs|j‰‡fdd„|DƒS)Ncsg|] }ˆ|ƒ‘qSrr)Ú.0r)rrrú ,sz1TransformPen._transformPoints..)r )rrr)rrr*szTransformPen._transformPointscCs|jjƒdS)N)rÚ closePath)rrrrr .szTransformPen.closePathcCs|jjƒdS)N)rÚendPath)rrrrr!1szTransformPen.endPathcCs|jj|ƒ}|jj||ƒdS)N)r Ú transformrÚ addComponent)rZ glyphNamerrrrr#4s zTransformPen.addComponent)Ú__name__Ú __module__Ú __qualname__Ú__doc__r rrrrrr r!r#Ú __classcell__rr)rrrs cs2eZdZdZ‡fdd„Zd dd„Zdd „Z‡ZS) raÒPointPen that transforms all coordinates using a Affine transformation, and passes them to another PointPen. >>> from fontTools.pens.recordingPen import RecordingPointPen >>> rec = RecordingPointPen() >>> pen = TransformPointPen(rec, (2, 0, 0, 2, -10, 5)) >>> v = iter(rec.value) >>> pen.beginPath(identifier="contour-0") >>> next(v) ('beginPath', (), {'identifier': 'contour-0'}) >>> pen.addPoint((100, 100), "line") >>> next(v) ('addPoint', ((190, 205), 'line', False, None), {}) >>> pen.endPath() >>> next(v) ('endPath', (), {}) >>> pen.addComponent("a", (1, 0, 0, 1, -10, 5), identifier="component-0") >>> next(v) ('addComponent', ('a', ), {'identifier': 'component-0'}) cs<tƒj|ƒt|dƒs*ddlm}||Ž}||_|j|_dS)zÖThe 'outPointPen' argument is another point pen object. It will receive the transformed coordinates. The 'transformation' argument can either be a six-tuple, or a fontTools.misc.transform.Transform object. rr)rN)rr r r rr rr )rZ outPointPenrr)rrrr Os    zTransformPointPen.__init__NFcKs |jj|j|ƒ|||f|ŽdS)N)rÚaddPointr )rrZ segmentTypeZsmoothÚnameÚkwargsrrrr)\szTransformPointPen.addPointcKs"|jj|ƒ}|jj||f|ŽdS)N)r r"rr#)rZ baseGlyphNamerr+rrrr#as zTransformPointPen.addComponent)NFN)r$r%r&r'r r)r#r(rr)rrr9s Ú__main__)Ú_TestPenNéçà?é édé2éKé<ééöÿÿÿ)r.rr/r.r6r)rr)rr1)r2r3)r4r2)r2r5)rr)ZfontTools.pens.filterPenrrÚ__all__rrr$ZfontTools.pens.basePenr-Zpenrrrr rrrrÚs2-