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Š d dl mZmZ ddgZG dd„ deƒZG dd„ deƒZedkr†d dlmZ eedƒdƒZ e j
dƒ e jdƒ e jddddƒ e j
ƒ dS )é )Ú FilterPenÚFilterPointPenÚTransformPenÚTransformPointPenc s` e Zd ZdZ‡ fdd„Zdd„ Zdd„ Zdd „ Zd
d„ Zdd
„ Z dd„ Z
dd„ Zdd„ Z‡ Z
S )r zePen that transforms all coordinates using a Affine transformation,
and passes them to another pen.
c sF t t| ƒ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__c C s | j j| j|ƒƒ d S )N)Ú_outPenÚmoveTor
)r Úptr r r r s zTransformPen.moveToc C s | j j| j|ƒƒ d S )N)r ÚlineTor
)r r r r r r s zTransformPen.lineToc G s | j j| j|ƒŽ d S )N)r ÚcurveToÚ_transformPoints)r Úpointsr r r r s zTransformPen.curveToc G s@ |d d kr&| j |d d… ƒd g }n
| j |ƒ}| jj|Ž d S )Né éÿÿÿÿr )r r ÚqCurveTo)r r r r r r # s
zTransformPen.qCurveToc s | j ‰ ‡ fdd„|D ƒS )Nc s g | ]}ˆ |ƒ‘qS r r )Ú.0r )r r r ú
, s z1TransformPen._transformPoints..)r
)r r r )r r r * s zTransformPen._transformPointsc C s | j jƒ d S )N)r Ú closePath)r r r r r . s zTransformPen.closePathc C s | j jƒ d S )N)r ÚendPath)r r r r r! 1 s zTransformPen.endPathc C s | j j|ƒ}| jj||ƒ d S )N)r Ú transformr ÚaddComponent)r Z glyphNamer r r r r# 4 s zTransformPen.addComponent)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r r r r r r r r! r# Ú
__classcell__r r )r r r s
c s2 e Zd ZdZ‡ fdd„Zd
dd„Zdd „ Z‡ ZS )r aÒ 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'})
c s<