§
    £”j%5  ã                  ó’   — d Z ddlmZ ddlmZmZ ddlmZ ddlm	Z	 ddl
mZmZ erddlmZ ddlmZ dd	l
mZ  G d
„ de¦  «        ZdS )zFont-related proxy objects.é    )Úannotations)ÚTYPE_CHECKINGÚAny)ÚColorFormat)ÚWD_UNDERLINE)ÚElementProxyÚEmu)ÚWD_COLOR_INDEX)ÚCT_R)ÚLengthc                  ó0  ‡ — e Zd ZdZdKdLˆ fd„ZedMd
„¦   «         Zej        dNd„¦   «         ZedMd„¦   «         Zej        dNd„¦   «         Zed„ ¦   «         Z	edMd„¦   «         Z
e
j        dNd„¦   «         Z
edMd„¦   «         Zej        dNd„¦   «         ZedMd„¦   «         Zej        dNd„¦   «         ZedMd„¦   «         Zej        dNd„¦   «         ZedMd„¦   «         Zej        dNd„¦   «         ZedMd„¦   «         Zej        dNd„¦   «         ZedOd„¦   «         Zej        dPd„¦   «         ZedMd „¦   «         Zej        dNd!„¦   «         ZedMd"„¦   «         Zej        dNd#„¦   «         ZedMd$„¦   «         Zej        dNd%„¦   «         ZedQd'„¦   «         Zej        dRd(„¦   «         ZedMd)„¦   «         Zej        dNd*„¦   «         ZedMd+„¦   «         Zej        dNd,„¦   «         ZedMd-„¦   «         Zej        dNd.„¦   «         ZedMd/„¦   «         Zej        dNd0„¦   «         ZedSd2„¦   «         Zej        dTd5„¦   «         ZedMd6„¦   «         Zej        dNd7„¦   «         ZedMd8„¦   «         Zej        dNd9„¦   «         ZedMd:„¦   «         Zej        dNd;„¦   «         ZedMd<„¦   «         Zej        dNd=„¦   «         ZedMd>„¦   «         Zej        dNd?„¦   «         ZedMd@„¦   «         Zej        dNdA„¦   «         ZedUdC„¦   «         Z e j        dVdD„¦   «         Z edMdE„¦   «         Z!e!j        dNdF„¦   «         Z!dWdI„Z"dXdJ„Z#ˆ xZ$S )YÚFontz’Proxy object for parent of a `<w:rPr>` element and providing access to
    character properties such as font name, font size, bold, and subscript.NÚrr   Úparentú
Any | Nonec                óh   •— t          ¦   «                              ||¦  «         || _        || _        d S ©N)ÚsuperÚ__init__Ú_elementÚ_r)Úselfr   r   Ú	__class__s      €ú]/var/www/finuniver-perm.ru/html/portfolio/venv/lib/python3.11/site-packages/docx/text/font.pyr   zFont.__init__   s/   ø€ Ý‰Œ×Ò˜˜FÑ#Ô#Ð#ØˆŒØˆŒˆˆó    Úreturnúbool | Nonec                ó,   — |                       d¦  «        S )zTRead/write.

        Causes text in this font to appear in capital letters.
        Úcaps©Ú_get_bool_prop©r   s    r   Úall_capszFont.all_caps   s   € ð ×"Ò" 6Ñ*Ô*Ð*r   ÚvalueÚNonec                ó2   — |                       d|¦  «         d S )Nr   ©Ú_set_bool_prop©r   r$   s     r   r#   zFont.all_caps"   s   € à×Ò˜F EÑ*Ô*Ð*Ð*Ð*r   c                ó,   — |                       d¦  «        S )zIRead/write.

        Causes text in this font to appear in bold.
        Úbr    r"   s    r   Úboldz	Font.bold&   s   € ð ×"Ò" 3Ñ'Ô'Ð'r   c                ó2   — |                       d|¦  «         d S )Nr+   r'   r)   s     r   r,   z	Font.bold.   ó   € à×Ò˜C Ñ'Ô'Ð'Ð'Ð'r   c                ó*   — t          | j        ¦  «        S )z[A |ColorFormat| object providing a way to get and set the text color for this
        font.)r   r   r"   s    r   Úcolorz
Font.color2   s   € õ ˜4œ=Ñ)Ô)Ð)r   c                ó,   — |                       d¦  «        S )z§Read/write tri-state value.

        When |True|, causes the characters in the run to be treated as complex script
        regardless of their Unicode values.
        Úcsr    r"   s    r   Úcomplex_scriptzFont.complex_script8   s   € ð ×"Ò" 4Ñ(Ô(Ð(r   c                ó2   — |                       d|¦  «         d S )Nr2   r'   r)   s     r   r3   zFont.complex_scriptA   s   € à×Ò˜D %Ñ(Ô(Ð(Ð(Ð(r   c                ó,   — |                       d¦  «        S )z”Read/write tri-state value.

        When |True|, causes the complex script characters in the run to be displayed in
        bold typeface.
        ÚbCsr    r"   s    r   Úcs_boldzFont.cs_boldE   ó   € ð ×"Ò" 5Ñ)Ô)Ð)r   c                ó2   — |                       d|¦  «         d S )Nr6   r'   r)   s     r   r7   zFont.cs_boldN   ó   € à×Ò˜E 5Ñ)Ô)Ð)Ð)Ð)r   c                ó,   — |                       d¦  «        S )z–Read/write tri-state value.

        When |True|, causes the complex script characters in the run to be displayed in
        italic typeface.
        ÚiCsr    r"   s    r   Ú	cs_italiczFont.cs_italicR   r8   r   c                ó2   — |                       d|¦  «         d S )Nr<   r'   r)   s     r   r=   zFont.cs_italic[   r:   r   c                ó,   — |                       d¦  «        S )zzRead/write tri-state value.

        When |True|, causes the text in the run to appear with double strikethrough.
        Údstriker    r"   s    r   Údouble_strikezFont.double_strike_   ó   € ð ×"Ò" 9Ñ-Ô-Ð-r   c                ó2   — |                       d|¦  «         d S )Nr@   r'   r)   s     r   rA   zFont.double_strikeg   ó   € à×Ò˜I uÑ-Ô-Ð-Ð-Ð-r   c                ó,   — |                       d¦  «        S )zŒRead/write tri-state value.

        When |True|, causes the text in the run to appear as if raised off the page in
        relief.
        Úembossr    r"   s    r   rF   zFont.embossk   ó   € ð ×"Ò" 8Ñ,Ô,Ð,r   c                ó2   — |                       d|¦  «         d S )NrF   r'   r)   s     r   rF   zFont.embosst   ó   € à×Ò˜H eÑ,Ô,Ð,Ð,Ð,r   c                ó,   — |                       d¦  «        S )z´Read/write tri-state value.

        When |True|, causes the text in the run to be hidden from display, unless
        applications settings force hidden text to be shown.
        Úvanishr    r"   s    r   ÚhiddenzFont.hiddenx   rG   r   c                ó2   — |                       d|¦  «         d S )NrK   r'   r)   s     r   rL   zFont.hidden�   rI   r   úWD_COLOR_INDEX | Nonec                ó0   — | j         j        }|€dS |j        S )z:Color of highlighing applied or |None| if not highlighted.N)r   ÚrPrÚhighlight_val©r   rP   s     r   Úhighlight_colorzFont.highlight_color…   s!   € ð ŒmÔˆØˆ;Ø�4ØÔ Ð r   c                óF   — | j                              ¦   «         }||_        d S r   )r   Úget_or_add_rPrrQ   ©r   r$   rP   s      r   rS   zFont.highlight_color�   s#   € àŒm×*Ò*Ñ,Ô,ˆØ!ˆÔÐÐr   c                ó,   — |                       d¦  «        S )z¿Read/write tri-state value.

        When |True|, causes the text of the run to appear in italics. |None| indicates
        the effective value is inherited from the style hierarchy.
        Úir    r"   s    r   ÚitaliczFont.italic’   s   € ð ×"Ò" 3Ñ'Ô'Ð'r   c                ó2   — |                       d|¦  «         d S )NrX   r'   r)   s     r   rY   zFont.italic›   r.   r   c                ó,   — |                       d¦  «        S )z|Read/write tri-state value.

        When |True|, causes the text in the run to appear as if pressed into the page.
        Úimprintr    r"   s    r   r\   zFont.imprintŸ   rB   r   c                ó2   — |                       d|¦  «         d S )Nr\   r'   r)   s     r   r\   zFont.imprint§   rD   r   c                ó,   — |                       d¦  «        S )z Read/write tri-state value.

        When |True|, specifies this run contains WML that should be handled as though it
        was Office Open XML Math.
        ÚoMathr    r"   s    r   Úmathz	Font.math«   s   € ð ×"Ò" 7Ñ+Ô+Ð+r   c                ó2   — |                       d|¦  «         d S )Nr_   r'   r)   s     r   r`   z	Font.math´   s   € à×Ò˜G UÑ+Ô+Ð+Ð+Ð+r   ú
str | Nonec                ó0   — | j         j        }|€dS |j        S )z×The typeface name for this |Font|.

        Causes the text it controls to appear in the named font, if a matching font is
        found. |None| indicates the typeface is inherited from the style hierarchy.
        N)r   rP   ÚrFonts_asciirR   s     r   Únamez	Font.name¸   s!   € ð ŒmÔˆØˆ;Ø�4ØÔÐr   c                óT   — | j                              ¦   «         }||_        ||_        d S r   )r   rU   rd   ÚrFonts_hAnsirV   s      r   re   z	Font.nameÄ   s+   € àŒm×*Ò*Ñ,Ô,ˆØ ˆÔØ ˆÔÐÐr   c                ó,   — |                       d¦  «        S )z¾Read/write tri-state value.

        When |True|, specifies that the contents of this run should not report any
        errors when the document is scanned for spelling and grammar.
        ÚnoProofr    r"   s    r   Úno_proofzFont.no_proofÊ   s   € ð ×"Ò" 9Ñ-Ô-Ð-r   c                ó2   — |                       d|¦  «         d S )Nri   r'   r)   s     r   rj   zFont.no_proofÓ   rD   r   c                ó,   — |                       d¦  «        S )zòRead/write tri-state value.

        When |True| causes the characters in the run to appear as if they have an
        outline, by drawing a one pixel wide border around the inside and outside
        borders of each character glyph.
        Úoutliner    r"   s    r   rm   zFont.outline×   s   € ð ×"Ò" 9Ñ-Ô-Ð-r   c                ó2   — |                       d|¦  «         d S )Nrm   r'   r)   s     r   rm   zFont.outlineá   rD   r   c                ó,   — |                       d¦  «        S )z{Read/write tri-state value.

        When |True| causes the text in the run to have right-to-left characteristics.
        Úrtlr    r"   s    r   rp   zFont.rtlå   s   € ð ×"Ò" 5Ñ)Ô)Ð)r   c                ó2   — |                       d|¦  «         d S )Nrp   r'   r)   s     r   rp   zFont.rtlí   r:   r   c                ó,   — |                       d¦  «        S )z‰Read/write tri-state value.

        When |True| causes the text in the run to appear as if each character has a
        shadow.
        Úshadowr    r"   s    r   rs   zFont.shadowñ   rG   r   c                ó2   — |                       d|¦  «         d S )Nrs   r'   r)   s     r   rs   zFont.shadowú   rI   r   úLength | Nonec                ó0   — | j         j        }|€dS |j        S )aä  Font height in English Metric Units (EMU).

        |None| indicates the font size should be inherited from the style hierarchy.
        |Length| is a subclass of |int| having properties for convenient conversion into
        points or other length units. The :class:`docx.shared.Pt` class allows
        convenient specification of point values::

            >>> font.size = Pt(24)
            >>> font.size
            304800
            >>> font.size.pt
            24.0

        N)r   rP   Úsz_valrR   s     r   Úsizez	Font.sizeþ   s    € ð  ŒmÔˆØˆ;Ø�4ØŒzÐr   Úemuúint | Length | Nonec                óh   — | j                              ¦   «         }|€d nt          |¦  «        |_        d S r   )r   rU   r	   rw   )r   ry   rP   s      r   rx   z	Font.size  s.   € àŒm×*Ò*Ñ,Ô,ˆØ ˜[�T�T­c°#©h¬hˆŒ
ˆ
ˆ
r   c                ó,   — |                       d¦  «        S )zÆRead/write tri-state value.

        When |True| causes the lowercase characters in the run to appear as capital
        letters two points smaller than the font size specified for the run.
        Ú	smallCapsr    r"   s    r   Ú
small_capszFont.small_caps  ó   € ð ×"Ò" ;Ñ/Ô/Ð/r   c                ó2   — |                       d|¦  «         d S )Nr}   r'   r)   s     r   r~   zFont.small_caps!  ó   € à×Ò˜K¨Ñ/Ô/Ð/Ð/Ð/r   c                ó,   — |                       d¦  «        S )zÑRead/write tri-state value.

        When |True| causes the run to use the document grid characters per line settings
        defined in the docGrid element when laying out the characters in this run.
        Ú
snapToGridr    r"   s    r   Úsnap_to_gridzFont.snap_to_grid%  s   € ð ×"Ò" <Ñ0Ô0Ð0r   c                ó2   — |                       d|¦  «         d S )Nrƒ   r'   r)   s     r   r„   zFont.snap_to_grid.  ó   € à×Ò˜L¨%Ñ0Ô0Ð0Ð0Ð0r   c                ó,   — |                       d¦  «        S )u\  Read/write tri-state value.

        When |True|, specifies that the given run shall always behave as if it is
        hidden, even when hidden text is being displayed in the current document. The
        property has a very narrow, specialized use related to the table of contents.
        Consult the spec (Â§17.3.2.36) for more details.
        Ú
specVanishr    r"   s    r   Úspec_vanishzFont.spec_vanish2  s   € ð ×"Ò" <Ñ0Ô0Ð0r   c                ó2   — |                       d|¦  «         d S )Nrˆ   r'   r)   s     r   r‰   zFont.spec_vanish=  r†   r   c                ó,   — |                       d¦  «        S )z¤Read/write tri-state value.

        When |True| causes the text in the run to appear with a single horizontal line
        through the center of the line.
        Ústriker    r"   s    r   rŒ   zFont.strikeA  rG   r   c                ó2   — |                       d|¦  «         d S )NrŒ   r'   r)   s     r   rŒ   zFont.strikeJ  rI   r   c                ó0   — | j         j        }|€dS |j        S )z½Boolean indicating whether the characters in this |Font| appear as subscript.

        |None| indicates the subscript/subscript value is inherited from the style
        hierarchy.
        N)r   rP   Ú	subscriptrR   s     r   r�   zFont.subscriptN  s    € ð ŒmÔˆØˆ;Ø�4ØŒ}Ðr   c                óF   — | j                              ¦   «         }||_        d S r   )r   rU   r�   rV   s      r   r�   zFont.subscriptZ  s    € àŒm×*Ò*Ñ,Ô,ˆØˆŒˆˆr   c                ó0   — | j         j        }|€dS |j        S )zÉBoolean indicating whether the characters in this |Font| appear as
        superscript.

        |None| indicates the subscript/superscript value is inherited from the style
        hierarchy.
        N)r   rP   ÚsuperscriptrR   s     r   r’   zFont.superscript_  s    € ð ŒmÔˆØˆ;Ø�4ØŒÐr   c                óF   — | j                              ¦   «         }||_        d S r   )r   rU   r’   rV   s      r   r’   zFont.superscriptl  s    € àŒm×*Ò*Ñ,Ô,ˆØˆŒˆˆr   úbool | WD_UNDERLINE | Nonec                ó    — | j         j        }|€dS |j        }|t          j        k    rdn%|t          j        k    rdn|t          j        k    rdn|S )a©  The underline style for this |Font|.

        The value is one of |None|, |True|, |False|, or a member of :ref:`WdUnderline`.

        |None| indicates the font inherits its underline value from the style hierarchy.
        |False| indicates no underline. |True| indicates single underline. The values
        from :ref:`WdUnderline` are used to specify other outline styles such as double,
        wavy, and dotted.
        NTF)r   rP   Úu_valr   Ú	INHERITEDÚSINGLEÚNONE)r   rP   Úvals      r   Ú	underlinezFont.underlineq  sl   € ð ŒmÔˆØˆ;Ø�4ØŒiˆð •lÔ,Ò,Ð,ð ˆDð •lÔ)Ò)Ð)ð �ð •lÔ'Ò'Ð'ð �àð	
r   c                óŠ   — | j                              ¦   «         }|du rt          j        n|du rt          j        n|}||_        d S )NTF)r   rU   r   r˜   r™   r–   )r   r$   rP   rš   s       r   r›   zFont.underlineŠ  sN   € àŒm×*Ò*Ñ,Ô,ˆð
 $)¨D = =�LÔÐÈ5ÐTYÈ>È>µlÔ6GÐ6GÐ_dð 	ð ˆŒ	ˆ	ˆ	r   c                ó,   — |                       d¦  «        S )z«Read/write tri-state value.

        When |True|, specifies that the contents of this run shall be hidden when the
        document is displayed in web page view.
        Ú	webHiddenr    r"   s    r   Ú
web_hiddenzFont.web_hidden•  r   r   c                ó2   — |                       d|¦  «         d S )Nrž   r'   r)   s     r   rŸ   zFont.web_hiddenž  r�   r   re   Ústrc                óL   — | j         j        }|€dS |                     |¦  «        S )z;Return the value of boolean child of `w:rPr` having `name`.N)r   rP   Ú_get_bool_val)r   re   rP   s      r   r!   zFont._get_bool_prop¢  s*   € àŒmÔˆØˆ;Ø�4Ø× Ò  Ñ&Ô&Ð&r   c                ód   — | j                              ¦   «         }|                     ||¦  «         dS )z6Assign `value` to the boolean child `name` of `w:rPr`.N)r   rU   Ú_set_bool_val)r   re   r$   rP   s       r   r(   zFont._set_bool_prop©  s1   € àŒm×*Ò*Ñ,Ô,ˆØ×Ò˜$ Ñ&Ô&Ð&Ð&Ð&r   r   )r   r   r   r   )r   r   )r$   r   r   r%   )r   rN   )r$   rN   )r   rb   )r$   rb   r   r%   )r   ru   )ry   rz   r   r%   )r   r”   )r$   r”   r   r%   )re   r¡   r   r   )re   r¡   r$   r   )%Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr#   Úsetterr,   r0   r3   r7   r=   rA   rF   rL   rS   rY   r\   r`   re   rj   rm   rp   rs   rx   r~   r„   r‰   rŒ   r�   r’   r›   rŸ   r!   r(   Ú__classcell__)r   s   @r   r   r      s[  ø€ € € € € ðOð Oðð ð ð ð ð ð ð
 ð+ð +ð +ñ „Xð+ð „_ð+ð +ð +ñ „_ð+ð ð(ð (ð (ñ „Xð(ð 
„[ð(ð (ð (ñ „[ð(ð ð*ð *ñ „Xð*ð
 ð)ð )ð )ñ „Xð)ð Ôð)ð )ð )ñ Ôð)ð ð*ð *ð *ñ „Xð*ð „^ð*ð *ð *ñ „^ð*ð ð*ð *ð *ñ „Xð*ð Ôð*ð *ð *ñ Ôð*ð ð.ð .ð .ñ „Xð.ð Ôð.ð .ð .ñ Ôð.ð ð-ð -ð -ñ „Xð-ð „]ð-ð -ð -ñ „]ð-ð ð-ð -ð -ñ „Xð-ð „]ð-ð -ð -ñ „]ð-ð ð!ð !ð !ñ „Xð!ð Ôð"ð "ð "ñ Ôð"ð ð(ð (ð (ñ „Xð(ð „]ð(ð (ð (ñ „]ð(ð ð.ð .ð .ñ „Xð.ð „^ð.ð .ð .ñ „^ð.ð ð,ð ,ð ,ñ „Xð,ð 
„[ð,ð ,ð ,ñ „[ð,ð ð	 ð 	 ð 	 ñ „Xð	 ð 
„[ð!ð !ð !ñ „[ð!ð
 ð.ð .ð .ñ „Xð.ð „_ð.ð .ð .ñ „_ð.ð ð.ð .ð .ñ „Xð.ð „^ð.ð .ð .ñ „^ð.ð ð*ð *ð *ñ „Xð*ð 	„Zð*ð *ð *ñ „Zð*ð ð-ð -ð -ñ „Xð-ð „]ð-ð -ð -ñ „]ð-ð ðð ð ñ „Xðð( 
„[ð7ð 7ð 7ñ „[ð7ð ð0ð 0ð 0ñ „Xð0ð Ôð0ð 0ð 0ñ Ôð0ð ð1ð 1ð 1ñ „Xð1ð Ôð1ð 1ð 1ñ Ôð1ð ð1ð 1ð 1ñ „Xð1ð Ôð1ð 1ð 1ñ Ôð1ð ð-ð -ð -ñ „Xð-ð „]ð-ð -ð -ñ „]ð-ð ð	ð 	ð 	ñ „Xð	ð Ôðð ð ñ Ôðð ð
ð 
ð 
ñ „Xð
ð Ôð ð  ð  ñ Ôð ð ð
ð 
ð 
ñ „Xð
ð0 Ôðð ð ñ Ôðð ð0ð 0ð 0ñ „Xð0ð Ôð0ð 0ð 0ñ Ôð0ð'ð 'ð 'ð 'ð'ð 'ð 'ð 'ð 'ð 'ð 'ð 'r   r   N)r©   Ú
__future__r   Útypingr   r   Údocx.dml.colorr   Údocx.enum.textr   Údocx.sharedr   r	   r
   Údocx.oxml.text.runr   r   r   © r   r   ú<module>r´      sí   ðØ !Ð !à "Ð "Ð "Ð "Ð "Ð "à %Ð %Ð %Ð %Ð %Ð %Ð %Ð %à &Ð &Ð &Ð &Ð &Ð &Ø 'Ð 'Ð 'Ð 'Ð 'Ð 'Ø )Ð )Ð )Ð )Ð )Ð )Ð )Ð )àð #Ø-Ð-Ð-Ð-Ð-Ð-Ø'Ð'Ð'Ð'Ð'Ð'Ø"Ð"Ð"Ð"Ð"Ð"ð['ð ['ð ['ð ['ð ['ˆ<ñ ['ô ['ð ['ð ['ð ['r   