a
    §c¢  ć                   @   s<   d Z ddlZdd Zdd Zddd	Zdd
dZdd ZdS )z Font utilities. é    Nc                 C   sH   |   ” }|  ” }|  ” }|  ” }|  ” }|  ” }t ||||||”}|S )z Clones the specified font. )ŚGetPointSizeZ	GetFamilyZGetStyleZ	GetWeightZGetUnderlinedZGetFaceNameŚwxZFont)ŚfontZ
point_sizeŚfamilyŚstyleZweightZ	underlineZ	face_nameŚclone© r   śQ/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/wx/font.pyŚ
clone_font   s    r
   c                 C   s`   |   ” }t|}| |” |  |” |  ” }|dur<| ”  |  ”  |  ” D ]}t|| qLdS )z8 Recursively sets the font size starting from 'window'. N)	ŚGetFontr
   ŚSetPointSizeŚSetFontŚGetSizerŚLayoutŚRefreshŚGetChildrenŚset_font_size)ŚwindowŚsizer   r   ŚsizerŚchildr   r   r	   r       s    

r   é   c                 C   sh   |   ” }t|}| | ” | ” |  |” |  ” }|durD| ”  |  ”  |  ” D ]}t	|| qTdS )z= Recursively increases the font size starting from 'window'. N)
r   r
   r   r   r   r   r   r   r   Śincrease_font_size)r   Śdeltar   r   r   r   r   r   r	   r   4   s    
r   c                 C   s   t | dd dS )z= Recursively decreases the font size starting from 'window'. éž’’’)r   N)r   )r   r   r   r   r	   Śdecrease_font_sizeH   s    r   c                 C   s"   |   ” }| tj” |  |” dS )z  Set 'window's font to be bold. N)r   Z	SetWeightr   ZBOLDr   )r   r   r   r   r	   Śset_bold_fontN   s    
r   )r   )r   )Ś__doc__r   r
   r   r   r   r   r   r   r   r	   Ś<module>   s   

