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[ ã @ sL d dl mZmZ d dlmZ d dlmZ d dlmZm Z G dd„ deƒZ
dS )é )ÚotRoundÚ roundFunc)ÚT2CharString)ÚBasePen)ÚspecializeCommandsÚcommandsToProgramc s\ e Zd ZdZd‡ fdd„ Zdd„ Zdd „ Zd
d„ Zdd
„ Zdd„ Z dd„ Z
ddd„Z‡ ZS )ÚT2CharStringPenaÉ Pen to draw Type 2 CharStrings.
The 'roundTolerance' argument controls the rounding of point coordinates.
It is defined as the maximum absolute difference between the original
float and the rounded integer value.
The default tolerance of 0.5 means that all floats are rounded to integer;
a value of 0 disables rounding; values in between will only round floats
which are close to their integral part within the tolerated range.
ç à?Fc s6 t t| ƒj|ƒ t|ƒ| _|| _|| _g | _d| _d S )Nr )r r ) Úsuperr Ú__init__r ÚroundÚ_CFF2Ú_widthÚ _commandsÚ_p0)ÚselfÚwidthZglyphSetZroundToleranceZCFF2)Ú __class__© úC/tmp/pip-build-_d5lkt3n/fonttools/fontTools/pens/t2CharStringPen.pyr s
zT2CharStringPen.__init__c C sH | j }| j|d ƒ| j|d ƒf }| _ |d |d |d |d gS )Nr é )r r )r ÚptZp0r r r Ú_p s "zT2CharStringPen._pc C s | j jd| j|ƒfƒ d S )NZrmoveto)r Úappendr )r r r r r Ú_moveTo" s zT2CharStringPen._moveToc C s | j jd| j|ƒfƒ d S )NZrlineto)r r r )r r r r r Ú_lineTo% s zT2CharStringPen._lineToc C s. | j }| jjd||ƒ||ƒ ||ƒ fƒ d S )NZ rrcurveto)r r r )r Zpt1Zpt2Zpt3r r r r Ú_curveToOne( s zT2CharStringPen._curveToOnec C s d S )Nr )r r r r Ú
_closePath, s zT2CharStringPen._closePathc C s d S )Nr )r r r r Ú_endPath/ s zT2CharStringPen._endPathNTc C s| | j }|r&| jsdnd}t|d|d�}t|ƒ}| jd k rZ| j sHtdƒ‚|jdt| jƒƒ | jsj|jdƒ t |||d�}|S ) Né0 i F)ZgeneralizeFirstÚmaxstackz7CFF2 does not allow encoding glyph width in CharString.r Úendchar)ÚprogramÚprivateÚglobalSubrs)
r r
r r r ÚAssertionErrorÚinsertr r r )r r# r$ ÚoptimizeÚcommandsr r" Z
charStringr r r Ú
getCharString2 s
zT2CharStringPen.getCharString)r F)NNT)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r r r r r r r r) Ú
__classcell__r r )r r r
s r N)ZfontTools.misc.roundToolsr r ZfontTools.misc.psCharStringsr ZfontTools.pens.basePenr ZfontTools.cffLib.specializerr r r r r r r Ú s