a
    ¥Q•h�'  ã                   @   sî  d Z dZddlZddlZi Zi Zi ZdZddddd	d
dddddddddœZdddddddddddddd d!œZ	ej
d"v rÐd#d$d%d&d'd(d)d*d+d,d-d.d/d0d!œZeZe ¡ D ]$\ZZee	 ¡ v r¤e	e e	e ¡ < q¤[[ne	Zd1d2„ Zdd3lmZ dd4lmZ eefd5d6„Z[[dQd8d9„Zd:ZG d;d<„ d<eƒZeƒ Zdd=lmZ dd>lm Z  dd?l!m"Z" dd@l#m$Z$ ddAl%m&Z& ddBl'm(Z( ddCl)m*Z* e +ee e"e$e&e(e*d:œ¡ dDdEdEdDdFdFdFdFdGdHdIdJdKdKdLœZ,ddl-Z.ddl/Z.ddl0Z.ddl1Z.ddl2Z.ddl3Z.ddl4Z.ddl5Z.ddl6Z.ddl7Z.ddl8Z.ddl9Z.ddl:Z.ddl;Z.e.j<j=j>e.j<j?j>e.j<j@j>e.j<jAj>e.j<jBj>e.j<jCj>e.j<jDj>e.j<jEj>e.j<jFj>e.j<jGj>e.j<jHj>e.j<jIj>e.j<jJj>e.j<jKj>dœZLee, M¡ e M¡ e M¡ e M¡ e M¡ eL M¡ dM�fdNdO„ZNddPlmOZO eOeNƒ [OdS )Rz3.3.0a±  Database of font related things

    - standardFonts - tuple of the 14 standard string font names
    - standardEncodings - tuple of the known standard font names
    - encodings - a mapping object from standard encoding names (and minor variants)
      to the encoding vectors ie the tuple of string glyph names
    - widthsByFontGlyph - fontname x glyphname --> width of glyph
    - widthVectorsByFont - fontName -> vector of widths 
    
    This module defines a static, large data structure.  At the request
    of the Jython project, we have split this off into separate modules
    as Jython cannot handle more than 64k of bytecode in the 'top level'
    code of a Python module.  
é    N)ÚCourierúCourier-BoldúCourier-ObliqueúCourier-BoldObliqueÚ	HelveticaúHelvetica-BoldúHelvetica-ObliqueúHelvetica-BoldObliqueúTimes-Romanú
Times-BoldúTimes-ItalicúTimes-BoldItalicÚSymbolÚZapfDingbats)r   r   r   )r   é   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r
   r   r   )r
   r   r   )r
   r   r   )r
   r   r   )r   r   r   )r   r   r   Zsy______Zzd______Z_a______Z_ab_____Z_abi____Z_ai_____Z_eb_____Z_ebi____Z_ei_____Z_er_____Zcob_____Zcobo____Zcom_____Zcoo_____)ÚsymbolÚzapfdingbatsÚ	helveticazhelvetica-boldzhelvetica-boldobliquezhelvetica-obliquez
times-boldztimes-bolditalicztimes-italicztimes-romanzcourier-boldzcourier-boldobliqueÚcourierzcourier-oblique©Zlinux2r   r   ZArialz
Arial-BoldzArial-BoldItaliczArial-ItaliczTimesNewRoman-BoldzTimesNewRoman-BoldItaliczTimesNewRoman-ItalicZTimesNewRomanr   r   r   r   c                 C   s   t |  ¡  S ©N)Ú_font2fnrMapÚlower)ÚfontName© r   úT/var/www/sistema_ama/venv/lib/python3.9/site-packages/reportlab/pdfbase/_fontdata.pyÚ_findFNRb   s    r   )ÚT1SearchPath)Ú	rl_isfilec                 C   s<   |g ksJ dƒ‚|D ]"}t j || ¡}||ƒr|  S qd S )NzNo Type-1 font search path)ÚosÚpathÚjoin)Únr   r   ÚdÚfr   r   r   Ú_searchT1Dirsg   s
    r%   ú.pfbc                 C   sz   t jdv rj|dkrjztt| ƒƒ}|r*|W S W n   Y n0 z"tt|  ¡  | ƒ}|rZ|W S W n   Y n0 tt| ƒ| ƒS )Nr   r&   )ÚsysÚplatformr%   r   Ú_font2fnrMapWin32r   )r   Úextr$   r   r   r   Ú
findT1Fileo   s    r+   )ÚWinAnsiEncodingÚMacRomanEncodingÚStandardEncodingÚSymbolEncodingÚZapfDingbatsEncodingÚPDFDocEncodingÚMacExpertEncodingc                   @   s4   e Zd ZdZdddddddd	œZd
d„ Zdd„ ZdS )Ú_Name2StandardEncodingMapz*Trivial fake dictionary with some [] magicr,   r-   r.   r/   r0   r1   r2   )ZwinansiÚmacromanZstandardr   r   ÚpdfdocZ	macexpertc                 C   sT   |  ¡ }|dd … dkr$|d d… }| j| }|| v rBtd| ƒ‚t | ||¡ d S )NéøÿÿÿÚencodingzEncoding %s is already set)r   Ú_XMapÚ
IndexErrorÚdictÚ__setitem__)ÚselfÚxÚvÚyr   r   r   r;   ˆ   s
    
z%_Name2StandardEncodingMap.__setitem__c                 C   s:   |  ¡ }|dd … dkr$|d d… }| j| }t | |¡S )Nr6   r7   )r   r8   r:   Ú__getitem__)r<   r=   r?   r   r   r   r@   �   s    
z%_Name2StandardEncodingMap.__getitem__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r8   r;   r@   r   r   r   r   r3   …   s   r3   )r,   )r-   )r.   )r/   )r0   )r1   )r2   )iu  icÿÿÿ)ir  irÿÿÿ)iÎ  i1ÿÿÿ)é«  i'ÿÿÿ)i¤  é3ÿÿÿ)i»  rF   )rE   rF   )r   r   )r   r   r   r   r   r   r	   r   r
   r   r   r   r   r   )Úascent_descentÚfontsByBaseEncÚfontsByNameÚstandardFontAttributesÚwidthVectorsByFontÚwidthsByFontGlyphc                 C   s2   |   ¡ D ]$\}}tƒ | }| ¡  | |¡ qd S r   )ÚitemsÚglobalsÚclearÚupdate)Úinitial_dictsÚkr>   r#   r   r   r   Ú_resetî   s    

rS   )Úregister_reset)r&   )PÚ__version__rD   r   r'   rK   rI   rH   ÚstandardFontsrJ   r)   r(   Z_font2fnrMapLinux2r   rM   rR   r>   Úkeysr   r   Úreportlab.rl_configr   Úreportlab.lib.utilsr   r%   r+   ÚstandardEncodingsr:   r3   Ú	encodingsZ'reportlab.pdfbase._fontdata_enc_winansir,   Z(reportlab.pdfbase._fontdata_enc_macromanr-   Z(reportlab.pdfbase._fontdata_enc_standardr.   Z&reportlab.pdfbase._fontdata_enc_symbolr/   Z,reportlab.pdfbase._fontdata_enc_zapfdingbatsr0   Z&reportlab.pdfbase._fontdata_enc_pdfdocr1   Z)reportlab.pdfbase._fontdata_enc_macexpertr2   rP   rG   Z*reportlab.pdfbase._fontdata_widths_courierÚ	reportlabZ.reportlab.pdfbase._fontdata_widths_courierboldZ1reportlab.pdfbase._fontdata_widths_courierobliqueZ5reportlab.pdfbase._fontdata_widths_courierboldobliqueZ,reportlab.pdfbase._fontdata_widths_helveticaZ0reportlab.pdfbase._fontdata_widths_helveticaboldZ3reportlab.pdfbase._fontdata_widths_helveticaobliqueZ7reportlab.pdfbase._fontdata_widths_helveticaboldobliqueZ-reportlab.pdfbase._fontdata_widths_timesromanZ,reportlab.pdfbase._fontdata_widths_timesboldZ.reportlab.pdfbase._fontdata_widths_timesitalicZ2reportlab.pdfbase._fontdata_widths_timesbolditalicZ)reportlab.pdfbase._fontdata_widths_symbolZ/reportlab.pdfbase._fontdata_widths_zapfdingbatsÚpdfbaseZ_fontdata_widths_courierÚwidthsZ_fontdata_widths_courierboldZ_fontdata_widths_courierobliqueZ#_fontdata_widths_courierboldobliqueZ_fontdata_widths_helveticaZ_fontdata_widths_helveticaboldZ!_fontdata_widths_helveticaobliqueZ%_fontdata_widths_helveticaboldobliqueZ_fontdata_widths_timesromanZ_fontdata_widths_timesboldZ_fontdata_widths_timesitalicZ _fontdata_widths_timesbolditalicZ_fontdata_widths_symbolZ_fontdata_widths_zapfdingbatsrL   ÚcopyrS   rT   r   r   r   r   Ú<module>   s  îò
ò
ùòä"úÿ
