
    l0j@                    ^    d Z ddlmZ ddlmZ ddlmZ ddlmZm	Z	m
Z
mZ ddZdddddZdS )z"
Low-level text helper utilities.
    )annotations)Iterator   )_api)FT2FontCharacterCodeType
LayoutItem	LoadFlags	codepointr   	fontnamesstrc           	         t          j        d|  dt          |                               dd                              d           d| d           d S )NzGlyph z (asciinamereplacez) missing from font(s) .)r   warn_externalchrencodedecode)r   r   s     [/home/wildlama/miniconda3/envs/lam/lib/python3.11/site-packages/matplotlib/_text_helpers.pywarn_on_missing_glyphr      su    	- 	- 	-	NN!!'=99@@II	- 	- )	- 	- 	-. . . . .    Nfeatureslanguagestringfontr   r   tuple[str] | Noner   -str | tuple[tuple[str, int, int], ...] | NonereturnIterator[LayoutItem]c             #     K   |                     | t          j        ||          D ]1}|j                            |j        t          j                   |V  2dS )a}  
    Render *string* with *font*.

    For each character in *string*, yield a LayoutItem instance. When such an instance
    is yielded, the font's glyph is set to the corresponding character.

    Parameters
    ----------
    string : str
        The string to be rendered.
    font : FT2Font
        The font.
    features : tuple of str, optional
        The font features to apply to the text.
    language : str, optional
        The language of the text in a format accepted by libraqm, namely `a BCP47
        language code <https://www.w3.org/International/articles/language-tags/>`_.

    Yields
    ------
    LayoutItem
    r   )flagsN)_layoutr
   
NO_HINTING	ft_object
load_glyphglyph_index)r   r   r   r   	raqm_items        r   layoutr*      s{      4 \\&)*>+3h " H H  	&&y'<-6-A 	' 	C 	C 	C	 r   )r   r   r   r   )
r   r   r   r   r   r   r   r   r    r!   )__doc__
__future__r   collections.abcr    r   ft2fontr   r   r	   r
   r   r*    r   r   <module>r1      s     # " " " " " $ $ $ $ $ $       F F F F F F F F F F F F. . . . *.EI       r   