| Server IP : 54.37.205.81 / Your IP : 216.73.216.76 Web Server : nginx/1.22.1 System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64 User : debian ( 1000) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/reportlab/graphics/__pycache__/ |
Upload File : |
�
��>c�0 � � � d Z ddlmZ ddlmZmZ ddlmZmZm Z ddl
mZmZm
Z
mZ ddlmZ G d� d e� � Zd
� Zd� Zd� Zdd�Z e� � � e� � � � ddeddddd
fd�Zd
S ))�setFont�pathNumTrunc�processGlyph�text2PathDescription� text2Path�
RenderPMError� )�
makeT1Font� )�getFont�
unicode2T1)�
open_and_read�isBytes�rl_exec)�_baseGFontName�_PATH_OP_ARG_COUNT�_PATH_OP_NAMES�
definePath)�exc_infoc � � e Zd ZdS )r N)�__name__�
__module__�__qualname__� � �:/usr/lib/python3/dist-packages/reportlab/graphics/utils.pyr r s � � � � � ��Dr r c �n � t t t t � � d d� � � � � \ }}ddlm} |j dk r�dd l}|j � |j �
|j � � d� � }t d|�d|�
|� � ��� � dD ]2}t d|�d t t ||� � � � ��� � �3d
t | � � �dt |� � �d|�d|�d
� }|dz
}t! |t# t$ �� � � � d S )N� r
)� rl_config�fontsz!!!!! z: )�T1SearchPath�
TTFSearchPathz!!!!! rl_config.z = z&raise RenderPMError("Error in setFont(�,z$) missing the T1 files?\nOriginally z")z
from None)r )�list�map�strr � reportlabr �verbose�os�path�join�dirname�__file__�print�listdir�repr�getattrr �dictr )�fontName�fontSize�s1�s2r r( �_�codes r �
_errorDumpr8 su � �
�#�c�(�*�*�R�a�R�.�)�)�
*�
*�F�B��#�#�#�#�#�#���!���� � � ��G�L�L������);�<�<�W�E�E��
�����"�*�*�Q�-�-�-�0�1�1�1�1� N� N�A��E�q�q�q��g�i��6J�6J�1K�1K�1K�L�M�M�M�M��im�nv�iw�iw�iw�iw�x|� ~F� yG� yG� yG� yG� HJ� HJ� HJ� KM� KM� KM� N�D��L��D��D��M�2�2�2�3�3�3�3�3r c � � | � ||� � d S # t $ r�}|j d � d� � st ||� � t |� � }t
||j � � � |j j
t � � n# t ||� � Y nxY w| � ||� � Y d }~d S d }~ww xY w)Nr
zCan't find font!)r �
ValueError�args�endswithr8 r r �face�
findT1File�encoding�vectorr
)�gsr2 r3 �e�fs r r r s� � �&�
�
�
�8�H�%�%�%�%�%��� &� &� &��v�a�y�!�!�"4�5�5� *��x��)�)�)� *���!�!�A��x��� 1� 1� 3� 3�A�J�4E�m�T�T�T�T�� *��x��)�)�)�)�)����
�
�
�8�H�%�%�%�%�%�%�%�%�%����� &���s- � �
C�0C�AB�C�B1�/C�Cc �f � t | � � | k rt | � � S t | d� � S )N� )�int�round)�ns r r r - s) � �
�1�v�v�q�y�y��Q���-���1�:�:�r N��freetype� _renderPMc �" � ��� �
� ddl m}m} � �� }|dk r|dk rdnd� n||v r|� nt d|�d�� � �� ft � fd�|D � � � � z }|D ]�� � dk rP dd l�n# t $ r Y �w xY wdd l� G �� fd �d
� � �ddt ddd
dd f�fd� }t |��� � c S � dk rB d
dl
m} n# t $ r Y �rw xY wdd��
ddt ddd
dd f�
fd� }t |�
�� � c S ��t
d|��� � �)Nr
)� textPaths�renderPMBackend�backendrK rJ z
textPaths=z7 should be one of 'backend', 'freetype' or '_renderPM')c 3 �( �K � | ]}|�k �|V � �
d S �Nr )�.0r6 �tps �r � <genexpr>z(__makeTextPathsCode__.<locals>.<genexpr>; s'