Ë
    íÍ: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     úm/home/mcse/projects/srt_converter/srt-converter-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 —\‘\ &¬)×*>Ñ*>Ø+3¸hð "ó 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   