| Server IP : 35.80.110.71 / Your IP : 216.73.216.170 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/__pycache__/ |
Upload File : |
�
G8�c� � �h � d Z ddlZddlmZ ddlmZmZ ej dg d�� Zd� Z ed �d
�Z
y)z"
Low-level text helper utilities.
� N� )�_api)�KERNING_DEFAULT�LOAD_NO_HINTING�
LayoutItem)� ft_object�char� glyph_idx�x� prev_kernc �Z � t j dj | t | � j dd� j d� � � d| cxk rdk rn ndn�d| cxk rdk rn nd n�d
| cxk rdk rn ndn�d
| cxk rdk rn ndn�d| cxk rdk rn ndnqd| cxk rdk rn ndnad| cxk rdk rn ndnQd| cxk rdk rn ndnAd| cxk rdk rn ndn1d| cxk rd k rn nd!n!d"| cxk rd#k rn nd$nd%| cxk rd&k rn nd'nd }|rt j d(|� d)�� y y )*Nz(Glyph {} ({}) missing from current font.�ascii�namereplacei� i� �Hebrewi i� �Arabici i �
Devanagarii� i� �Bengalii
i
�Gurmukhii�
i�
�Gujaratii i �Oriyai� i� �Tamili i �Telugui� i� �Kannadai
i
� Malayalami�
i�
�Sinhalaz&Matplotlib currently does not support z
natively.)r �
warn_external�format�chr�encode�decode)� codepoint�blocks �:/usr/lib/python3/dist-packages/matplotlib/_text_helpers.py�warn_on_missing_glyphr$ s% � ����2�9�9��� �N�!�!�'�=�9�@�@��I� K�L� �9�6��6�X��9�6��6�X�#�y�:�F�:�\� �I�7��7�Y�!�Y�8�&�8�Z�!�Y�8�&�8�Z��)�5�v�5�W��)�5�v�5�W��9�6��6�X� �I�7��7�Y�"�i�9�6�9�[� �I�7��7�Y�
�
�
����4�U�G�:�F� H�
� )� kern_modec # �V K � d}d}|j | � }|}| D ]� }|j ||� }|j t |� � }|�|j |||� dz nd} || z
}|j |t �� }
t ||||| � �� ||
j dz z
}|}�� y�w)a�
Render *string* with *font*. For each character in *string*, yield a
(glyph-index, x-position) pair. When such a pair is yielded, the font's
glyph is set to the corresponding character.
Parameters
----------
string : str
The string to be rendered.
font : FT2Font
The font.
kern_mode : int
A FreeType kerning mode.
Yields
------
glyph_index : int
x_position : float
r N�@ g )�flagsi ) �_get_fontmap�get�get_char_index�ord�get_kerning�
load_glyphr r �linearHoriAdvance)�string�fontr&