
    ^j@                    f    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y)z"
Low-level text helper utilities.
    )annotations)Iterator   )_api)FT2FontCharacterCodeType
LayoutItem	LoadFlagsc           	         t        j                  d|  dt        |       j                  dd      j	                  d       d| d       y )NzGlyph z (asciinamereplacez) missing from font(s) .)r   warn_externalchrencodedecode)	codepoint	fontnamess     Q/opt/ringagent/.cad-venv/lib/python3.12/site-packages/matplotlib/_text_helpers.pywarn_on_missing_glyphr      sP    
 	N!!'=9@@IJ K  ){!	-.    Nfeatureslanguagec             #     K   |j                  | t        j                  ||      D ];  }|j                  j	                  |j
                  t        j                         | = yw)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)stringfontr   r   	raqm_items        r   layoutr%      se     4 \\&)*>*>+3h " H 	&&y'<'<-6-A-A 	' 	C	s   A#A%)r   r   r   str)
r"   r&   r#   r   r   ztuple[str] | Noner   z-str | tuple[tuple[str, int, int], ...] | NonereturnzIterator[LayoutItem])__doc__
__future__r   collections.abcr    r   ft2fontr   r   r	   r
   r   r%    r   r   <module>r.      sG    # $  F F. *.EI&B %r   