§
    ³Æjñ  ã                   ó^   — d dl Z d dlZd dlmZ dgZd	dedz  dedej        ej        z  fd„ZdS )
é    N)Ú	ImageFontÚget_fonté   Úfont_familyÚ	font_sizeÚreturnc                 ó  — | €g	 t          j        t          j        ¦   «         dk    rdnd|¦  «        }nL# t          $ r* t          j        ¦   «         }t          j        d¦  «         Y nw xY wt          j        | |¦  «        }|S )zÇResolves a compatible ImageFont for the system

    Args:
        font_family: the font family to use
        font_size: the size of the font upon rendering

    Returns:
        the Pillow font
    NÚLinuxzFreeMono.ttfz	Arial.ttfz«unable to load recommended font family. Loading default PIL font,font size issues may be expected.To prevent this, it is recommended to specify the value of 'font_family'.)r   ÚtruetypeÚplatformÚsystemÚOSErrorÚload_defaultÚloggingÚwarning)r   r   Úfonts      úT/var/www/html/Carbon-Document/venv/lib/python3.11/site-packages/doctr/utils/fonts.pyr   r      s¡   € ð Ðð	ÝÔ%½¼Ñ8IÔ8IÈWÒ8TÐ8T n nÐZeÐgpÑqÔqˆDˆDøÝð 	ð 	ð 	ÝÔ)Ñ+Ô+ˆDÝŒOð\ñô ð ð ð ð	øøøõ Ô! +¨yÑ9Ô9ˆà€Ks   „.3 ³1A'Á&A')Nr   )	r   r   ÚPILr   Ú__all__ÚstrÚintÚFreeTypeFontr   © ó    r   ú<module>r      sz   ðð €€€Ø €€€à Ð Ð Ð Ð Ð àˆ,€ðð ˜# ™*ð ¸ð ÀYÔE[Ð^gÔ^qÑEqð ð ð ð ð ð r   