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[ ã@sLddlmZmZddlmZddlmZddlmZm Z Gdd„deƒZ dS)é)ÚotRoundÚ roundFunc)Ú T2CharString)ÚBasePen)ÚspecializeCommandsÚcommandsToProgramcs\eZdZdZd‡fdd„ Zdd„Zdd „Zd d „Zd d „Zdd„Z dd„Z ddd„Z ‡Z S)Ú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. çà?Fcs6tt|ƒj|ƒt|ƒ|_||_||_g|_d|_dS)Nr)rr) ÚsuperrÚ__init__rÚroundÚ_CFF2Ú_widthÚ _commandsÚ_p0)ÚselfÚwidthZglyphSetZroundToleranceZCFF2)Ú __class__©úC/tmp/pip-build-_d5lkt3n/fonttools/fontTools/pens/t2CharStringPen.pyr s  zT2CharStringPen.__init__cCsH|j}|j|dƒ|j|dƒf}|_|d|d|d|dgS)Nré)rr )rÚptZp0rrrÚ_ps"zT2CharStringPen._pcCs|jjd|j|ƒfƒdS)NZrmoveto)rÚappendr)rrrrrÚ_moveTo"szT2CharStringPen._moveTocCs|jjd|j|ƒfƒdS)NZrlineto)rrr)rrrrrÚ_lineTo%szT2CharStringPen._lineTocCs.|j}|jjd||ƒ||ƒ||ƒfƒdS)NZ rrcurveto)rrr)rZpt1Zpt2Zpt3rrrrÚ _curveToOne(szT2CharStringPen._curveToOnecCsdS)Nr)rrrrÚ _closePath,szT2CharStringPen._closePathcCsdS)Nr)rrrrÚ_endPath/szT2CharStringPen._endPathNTcCs||j}|r&|jsdnd}t|d|d�}t|ƒ}|jdk rZ|j sHtdƒ‚|jdt|jƒƒ|jsj|jdƒt |||d�}|S) Né0iF)ZgeneralizeFirstÚmaxstackz7CFF2 does not allow encoding glyph width in CharString.rÚendchar)ÚprogramÚprivateÚ globalSubrs) rr rrrÚAssertionErrorÚinsertrrr)rr#r$ÚoptimizeÚcommandsr r"Z charStringrrrÚ getCharString2s   zT2CharStringPen.getCharString)r F)NNT) Ú__name__Ú __module__Ú __qualname__Ú__doc__r rrrrrrr)Ú __classcell__rr)rrr s rN) ZfontTools.misc.roundToolsrrZfontTools.misc.psCharStringsrZfontTools.pens.basePenrZfontTools.cffLib.specializerrrrrrrrÚs