| Server IP : 35.80.110.71 / Your IP : 216.73.216.52 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�c� � �$ � d dl mZ g d�Zd� Zd� Zy)� )�FontProperties)�
get_family� get_style�get_variant�
get_weight�get_sizec �6 � d} t � }t |� }t |� }t D ]/ } t ||� � t ||� � k( r�'J | |z � � d} t ddd�� }t |� }t |� }t D ]/ } t ||� � t ||� � k( r�'J | |z � � d} t dd d
ddd
�� }t |� }t |� }t D ]/ } t ||� � t ||� � k( r�'J | |z � � y)z5Test converting a FontProperties to string then back.� defaults zbasic �serif� �italic)�family�size�style�full z
sans-serif� �bold�oblique�
small-caps�expanded�r r �weightr �variant�stretchN)r �str�keys�getattr)�test�f1�s�f2�ks �J/usr/lib/python3/dist-packages/matplotlib/tests/test_fontconfig_pattern.py�test_fontconfig_patternr$ s4 � � �D� � �B��B��A� �� �B�
� >���w�r�1�~��>�7�2�q�>�#3�3�=�T�A�X�=�3�>� �D� �w�R�x� @�B��B��A� �� �B�
� >���w�r�1�~��>�7�2�q�>�#3�3�=�T�A�X�=�3�>� �D� �|�"�V�'�� *�
,�B� �B��A� �� �B�
� >���w�r�1�~��>�7�2�q�>�#3�3�=�T�A�X�=�3�>� c �V � d} d}t |� }t � }t D ]/ } t ||� � t ||� � k( r�'J | |z � � d} d}t |� }t ddddd d
�� }t D ]/ } t ||� � t ||� � k( r�'J | |z � � y)
z7Test FontProperties string conversions for correctness.r
zNsans\-serif:style=normal:variant=normal:weight=normal:stretch=normal:size=12.0r zKserif:size=24:style=oblique:variant=small-caps:weight=bold:stretch=expandedr r r r r r r N)r r r )r r �font�rightr"