
    
3j@                    l    S r SSKJr  SSKJr  SSKJr  SSKJrJ	r	J
r
Jr  SS jrSSS	.     SS
 jjrg)z"
Low-level text helper utilities.
    )annotations)Iterator   )_api)FT2FontCharacterCodeType
LayoutItem	LoadFlagsc           	         [         R                  " SU  S[        U 5      R                  SS5      R	                  S5       SU S35        g )NzGlyph z (asciinamereplacez) missing from font(s) .)r   warn_externalchrencodedecode)	codepoint	fontnamess     R/home/wildlama/miniconda3/lib/python3.13/site-packages/matplotlib/_text_helpers.pywarn_on_missing_glyphr      sP    
 	N!!'=9@@IJ K  ){!	-.    Nfeatureslanguagec             #     #    UR                  U [        R                  X#S9 H9  nUR                  R	                  UR
                  [        R                  S9  Uv   M;     g7f)a5  
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%      s^     4 \\&)*>*>+3 " H	&&y'<'<-6-A-A 	' 	C	H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   