%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/PIL/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/PIL/__pycache__/BdfFontFile.cpython-312.pyc

�

��e�
���dZddlmZddlmZddlmZmZdddd	d
dd�Zd
ddd�Z					dd�Z
Gd�dej�Zy)z*
Parse X Bitmap Distribution Format (BDF)
�)�annotations)�BinaryIO�)�FontFile�Image�Roman�Italic�ObliquezReverse ItaliczReverse Oblique�Other)�R�I�O�RI�RO�OT�Proportional�
Monospaced�Cell)�P�M�Cc���	|j�}|sy|dddk(rn�|ddj�jd�}i}	|j�}|r|dddk(rn>|jd�}||dzdjd�||d|jd�<�Yt	�}	|j�}|r|dd	d
k(rn	||ddz
}�$d�|dj�D�\}}}}	d
�|dj�D�\}
}|
|f||	|z
||z|	fdd||ff}	t
jd||f|dd�}
|t|d�||
fS#t$rt
jd||f�}
Y�5wxYw)N�	s	STARTCHAR�ascii�sBITMAP� r����sENDCHARc3�2K�|]}t|����y�w�N��int��.0�ps  �1/usr/lib/python3/dist-packages/PIL/BdfFontFile.py�	<genexpr>zbdf_char.<locals>.<genexpr>Rs����$J��S��V�$J����BBXc3�2K�|]}t|����y�wr r!r#s  r&r'zbdf_char.<locals>.<genexpr>Vs����8�1��A��8�r(�DWIDTHr�1�hex�ENCODING)�readline�strip�decode�find�	bytearray�splitr�	frombytes�
ValueError�newr")�f�s�id�props�i�bitmap�width�height�x_disp�y_disp�dwx�dwy�bbox�ims              r&�bdf_charrF)s����
�J�J�L�����R�a�5�L� ���
�1�2�����	�	�g�	&�B�
�E�
�
�J�J�L���A�b�q�E�Y�&��
�F�F�4�L��'(��Q���}�';�';�G�'D��a���e�l�l�7�#�$���[�F�
�
�J�J�L���A�b�q�E�Z�'���!�C�R�&���	�%K�U�5�\�5G�5G�5I�$J�!�E�6�6�6�9��h�� 5� 5� 7�8�H�C��

�c�
�	�&��6�!�5�6�>�F�7�;�	
�A�u�f���D�-�
�_�_�S�5�&�/�6�5�#�
F��
�s�5��$�%�t�R�/�/��	�-�
�Y�Y�s�U�F�O�
,��-�s� E
�
!E1�0E1c�$��eZdZdZd�fd�Z�xZS)�BdfFontFilez(Font file plugin for the X11 BDF format.c�F��t�|��|j�}|dddk7r
d}t|��i}g}	|j�}|r|dddk(rn|j	d�}||dzdjd�||d|jd�<|d|d	vr:|j	d
�dkr&|j
||dzdjd����	t|�}|sy|\}}	\}
}}}
d|	cxkrt|j�krnn|
|||
f|j|	<�N)N�
s
STARTFONT 2.1znot a valid BDF files
ENDPROPERTIESrrrr)sCOMMENTs	COPYRIGHTsLogicalFontDescriptionr)
�super�__init__r/�SyntaxErrorr2r1�appendrF�len�glyph)�self�fpr9�msgr;�commentsr<�cr:�ch�xy�dst�srcrE�	__class__s              �r&rLzBdfFontFile.__init__js>���
�����K�K�M���S�b�6�%�%�(�C��c�"�"���������
�A���#�2��"2�2�����t��A�+,�Q��U�R�=�+?�+?��+H�E�!�B�Q�%�,�,�w�'�(���!�u�2�2��6�6�3�4�q�8��O�O�A�a�!�e�b�M�$8�$8��$A�B������A���)*�&�B��N�R��c�B��B�(��T�Z�Z��(�!#�S�#�r�!1��
�
�2��
�)rRr)�__name__�
__module__�__qualname__�__doc__rL�
__classcell__)rZs@r&rHrHgs���2�2�2r[rHN)r8r�returnzqtuple[str, int, tuple[tuple[int, int], tuple[int, int, int, int], tuple[int, int, int, int]], Image.Image] | None)r_�
__future__r�typingr�rr�	bdf_slant�bdf_spacingrFrH�r[r&�<module>rhsh��(�#���
�	�	�
�
�
�

�	�#��F�C��;0��;0��;0�|2�(�#�#�2r[

Zerion Mini Shell 1.0