
    h                        S SK Jr  S SKJr  S/r " S S\5      r\S:X  Gai  S SKr\" \R                  5      S:  a2  \
" S5        \
" S	5        \
" S
5        \
" S5        \R                  " S 5        S SKJr  S SKJr  \R                  S   r\R                  S   r\" \R                  5      S:  a  \R                  S   rOS\-  r\" \5      r\R)                  5       r\" \\" \R,                  SS95      r\\   r\R3                  \5        \R4                  SsrrS SKJr  S SKJrJ r J!r!  \" \R                   5      r\RE                  S S5        \RC                  SS5        \ " \\5      r#\#RI                  \5        \RJ                  " \#\SS9  gg)    )BasePen)PathReportLabPenc                   :    \ rS rSrSrS
S jrS rS rS rS r	S	r
g)r      zCA pen for drawing onto a ``reportlab.graphics.shapes.Path`` object.Nc                 V    [         R                  " X5        Uc
  [        5       nX l        g N)r   __init__r   path)selfglyphSetr   s      M/var/www/html/env/lib/python3.13/site-packages/fontTools/pens/reportLabPen.pyr
   ReportLabPen.__init__   s!    (<6D	    c                 B    Uu  p#U R                   R                  X#5        g r	   )r   moveTor   pxys       r   _moveToReportLabPen._moveTo       		r   c                 B    Uu  p#U R                   R                  X#5        g r	   )r   lineTor   s       r   _lineToReportLabPen._lineTo   r   r   c                 V    Uu  pEUu  pgUu  pU R                   R                  XEXgX5        g r	   )r   curveTo)
r   p1p2p3x1y1x2y2x3y3s
             r   _curveToOneReportLabPen._curveToOne   s-    		"""1r   c                 8    U R                   R                  5         g r	   )r   	closePath)r   s    r   
_closePathReportLabPen._closePath   s    		r   )r   r	   )__name__
__module____qualname____firstlineno____doc__r
   r   r   r)   r-   __static_attributes__ r   r   r   r      s    M2r   __main__N   zJUsage: reportLabPen.py <OTF/TTF font> <glyphname> [<image file to create>]zJ  If no image file name is created, by default <glyphname>.png is created.z/  example: reportLabPen.py Arial.TTF R test.pngzK  (The file format will be PNG, regardless of the image file name supplied))TTFont)colors      z%s.png   )	fillColorstrokeWidthi  )renderPM)GroupDrawingscale   g333333?PNG)fmt)&fontTools.pens.basePenr   reportlab.graphics.shapesr   __all__r   r/   syslenargvprintexitfontTools.ttLibr8   reportlab.libr9   r   	glyphName	imageFilefontgetGlyphSetgsredpengdrawwidthwhreportlab.graphicsr?   r@   rA   rB   	translatedadd
drawToFiler5   r   r   <module>ra      ss   * * 
7 6 z
388}qX	
 	X	
 	?@Y	
 	&$88A;DI
388}qHHQK	y(	$<D				B
r4&**!D
EC
9AFF3K77DDAq+?? 	chhAKK3GGC1AEE!H9%0Y r   