| 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 : |
�
G8�cu � �� � d dl mZ d dlZd dlZd dlmZ d dlmZ dZd� Z d� Z
d� Zd � Zd
� Z
ej j ddd
g� d� � Zej j dddg� d� � Zy)� )�BytesION)�_afm)�font_managers StartFontMetrics 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} | j d� }t j |� }|| 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 �| � t t � } t j | � }|ddddddddd d
ddg d
�dd�k( sJ �y )Ng @zMyFont-Bold�FontSpecificzMy Font Boldz
Test Fonts�Boldg Fi����g�E��dL@z001.000s Copyright � 2017 No one.)r i����i� iq � )s StartFontMetricss FontNames EncodingSchemes FullName�
FamilyNames Weights ItalicAngles IsFixedPitchs UnderlinePositions UnderlineThicknesss Versions Notices FontBBoxs StartCharMetrics)r �
AFM_TEST_DATAr �
_parse_header)�fh�headers r
�test_parse_headerr . s] � � �� �B�
�
�
��
#�F�� �"�)�#�#����"�%��1�)��� � � r c �� � t t � } t j | � t j | � }|ddg d�fddg d�fddg d �fd
�ddg d�fddg d�fddg d �fd�fk( sJ �y )Ng @o@�space)r r r r g ԑ@�foo)�( �<