403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.221
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/matplotlib/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/matplotlib/tests/__pycache__/test_afm.cpython-312.pyc
�

G8�cu����ddlmZddlZddlZddlmZddlmZdZd�Z	d�Z
d�Zd	�Zd
�Z
ejjddd
g�d��Zejjdddg�d��Zy)�)�BytesION)�_afm)�font_managersStartFontMetrics 2.0
Comment Comments are ignored.
Comment Creation Date:Mon Nov 13 12:34:11 GMT 2017
FontName MyFont-Bold
EncodingScheme FontSpecific
FullName My Font Bold
FamilyName Test Fonts
Weight Bold
ItalicAngle 0.0
IsFixedPitch false
UnderlinePosition -100
UnderlineThickness 56,789
Version 001.000
Notice Copyright � 2017 No one.
FontBBox 0 -321 1234 369
StartCharMetrics 3
C 0 ; WX 250 ; N space ; B 0 0 0 0 ;
C 42 ; WX 1141 ; N foo ; B 40 60 800 360 ;
C 99 ; WX 583 ; N bar ; B 40 -10 543 210 ;
EndCharMetrics
EndFontMetrics
c�b�d}|jd�}tj|�}||k(sJ�y)Nuпривет�utf8)�encoder�_to_str)�inp_str�byte_str�rets   �;/usr/lib/python3/dist-packages/matplotlib/tests/test_afm.py�test_nonascii_strr$s1���G��~�~�f�%�H�
�,�,�x�
 �C��'�>��>�c�|�tt�}tj|�}|ddddddddd	d
ddgd
�dd�k(sJ�y)Ng@zMyFont-Bold�FontSpecificzMy Font Boldz
Test Fonts�BoldgFi����g�E��dL@z001.000sCopyright � 2017 No one.)ri����i�iq�)sStartFontMetricssFontNamesEncodingSchemesFullName�
FamilyNamesWeightsItalicAnglesIsFixedPitchsUnderlinePositionsUnderlineThicknesssVersionsNoticesFontBBoxsStartCharMetrics)r�
AFM_TEST_DATAr�
_parse_header)�fh�headers  r
�test_parse_headerr.s]��	��	�B�
�
�
��
#�F�� �"�)�#�#����"�%��1�)�����rc���tt�}tj|�tj|�}|ddgd�fddgd�fddgd	�fd
�ddgd�fddgd�fddgd	�fd�fk(sJ�y)Ng@o@�space)rrrrgԑ@�foo)�(�<i ihg8�@�bar)ri����i��)r�*�c)rrr)rrrr�_parse_char_metrics)r�metricss  r
�test_parse_char_metricsr%Cs���	��	�B����r���&�&�r�*�G��
�G�\�*��e�/�
0��U�/�
0�	��'�<�0��� 2�3���2�3�	����rc��tt�}tj|�}|jd=|j�dk(sJ�y)NrzMy Font)rrr�AFM�_header�get_familyname)r�fonts  r
�test_get_familyname_guessedr+Rs<��	��	�B��8�8�B�<�D����]�#���� �I�-�-�-rc��tjttj	dd���}tjd|�jdk(sJ�y)NsWeight Bold
sWeight Custom
��normal)rr'rr�replace�fm�afmFontProperty�weight)r*s r
�&test_font_manager_weight_normalizationr3YsL���8�8�G����.�0B�C�E�F�D�
���b�$�'�.�.�(�:�:�:r�afm_datasnope
really nopes�StartFontMetrics 2.0
Comment Comments are ignored.
Comment Creation Date:Mon Nov 13 12:34:11 GMT 2017
FontName MyFont-Bold
EncodingScheme FontSpecificc��t|�}tjt�5t	j
|�ddd�y#1swYyxYw)N)r�pytest�raises�RuntimeErrorrr)r4rs  r
�test_bad_afmr9_s=��
��	�B�	���|�	$�����2�����s�A�A
s�StartFontMetrics 2.0
Comment Comments are ignored.
Comment Creation Date:Mon Nov 13 12:34:11 GMT 2017
Aardvark bob
FontName MyFont-Bold
EncodingScheme FontSpecific
StartCharMetrics 3s�StartFontMetrics 2.0
Comment Comments are ignored.
Comment Creation Date:Mon Nov 13 12:34:11 GMT 2017
ItalicAngle zero degrees
FontName MyFont-Bold
EncodingScheme FontSpecific
StartCharMetrics 3c���t|�}|jtj�5t	j
|�ddd�t
|j�dk(sJ�y#1swY�$xYw)N�)r�at_level�logging�ERRORrr�len�records)r4�caplogrs   r
�test_malformed_headerrBqsZ��(
��	�B�	������	'�����2����v�~�~��!�#�#�#���s�A$�$A-)�iorr6r=�
matplotlibrrr0rrrr%r+r3�mark�parametrizer9rB�rr
�<module>rHs����
���)��
�0��*�.�;�������	�	������������	�	���&$�'�&$r

Youez - 2016 - github.com/yon3zu
LinuXploit