§
    õŽ’jr  ã                  ó^   — 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     úFC:\Projects\DSCons\.venv\Lib\site-packages\matplotlib\_text_helpers.pyÚwarn_on_missing_glyphr      su   € ÝÔð	-�ð 	-ð 	-Ý�	‰NŒN×!Ò! '¨=Ñ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 —\’\ &­)Ô*>Ø+3¸hð "ñ 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   