ó
    ‰*£h%5  ã                  ó”   • S r SSKJr  SSKJrJr  SSKJr  SSKJ	r	  SSK
JrJr  \(       a  SSKJr  SSKJr  SS	K
Jr   " S
 S\5      rg)zFont-related proxy objects.é    )Úannotations)ÚTYPE_CHECKINGÚAny)ÚColorFormat)ÚWD_UNDERLINE)ÚElementProxyÚEmu)ÚWD_COLOR_INDEX)ÚCT_R)ÚLengthc                  óp  ^ • \ rS rSrSrS<S=U 4S jjjr\S>S j5       r\R                  S?S j5       r\S>S j5       r	\	R                  S?S j5       r	\S 5       r
\S>S	 j5       r\R                  S?S
 j5       r\S>S j5       r\R                  S?S j5       r\S>S j5       r\R                  S?S j5       r\S>S j5       r\R                  S?S j5       r\S>S j5       r\R                  S?S j5       r\S>S j5       r\R                  S?S j5       r\S@S j5       r\R                  SAS j5       r\S>S j5       r\R                  S?S j5       r\S>S j5       r\R                  S?S j5       r\S>S j5       r\R                  S?S j5       r\SBS j5       r\R                  SCS j5       r\S>S j5       r\R                  S?S  j5       r\S>S! j5       r\R                  S?S" j5       r\S>S# j5       r\R                  S?S$ j5       r\S>S% j5       r\R                  S?S& j5       r\SDS' j5       r\R                  SES( j5       r\S>S) j5       r\R                  S?S* j5       r\S>S+ j5       r\R                  S?S, j5       r\S>S- j5       r\R                  S?S. j5       r\S>S/ j5       r\R                  S?S0 j5       r\S>S1 j5       r\R                  S?S2 j5       r\S>S3 j5       r \ R                  S?S4 j5       r \SFS5 j5       r!\!R                  SGS6 j5       r!\S>S7 j5       r"\"R                  S?S8 j5       r"SHS9 jr#SIS: jr$S;r%U =r&$ )JÚFonté   zŽProxy object for parent of a `<w:rPr>` element and providing access to
character properties such as font name, font size, bold, and subscript.c                ó<   >• [         TU ]  X5        Xl        Xl        g ©N)ÚsuperÚ__init__Ú_elementÚ_r)ÚselfÚrÚparentÚ	__class__s      €ÚK/home/mande/repo/quber/.venv/lib/python3.13/site-packages/docx/text/font.pyr   ÚFont.__init__   s   ø€ Ü‰Ñ˜Ô#ØŒØ�ó    c                ó$   • U R                  S5      $ )zDRead/write.

Causes text in this font to appear in capital letters.
Úcaps©Ú_get_bool_prop©r   s    r   Úall_capsÚFont.all_caps   s   € ð ×"Ñ" 6Ó*Ð*r   c                ó(   • U R                  SU5        g )Nr   ©Ú_set_bool_prop©r   Úvalues     r   r"   r#   "   s   € à×Ñ˜F EÕ*r   c                ó$   • U R                  S5      $ )z9Read/write.

Causes text in this font to appear in bold.
Úbr   r!   s    r   ÚboldÚ	Font.bold&   s   € ð ×"Ñ" 3Ó'Ð'r   c                ó(   • U R                  SU5        g )Nr*   r%   r'   s     r   r+   r,   .   ó   € à×Ñ˜C Õ'r   c                ó,   • [        U R                  5      $ )zSA |ColorFormat| object providing a way to get and set the text color for this
font.)r   r   r!   s    r   ÚcolorÚ
Font.color2   s   € ô ˜4Ÿ=™=Ó)Ð)r   c                ó$   • U R                  S5      $ )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_scriptÚFont.complex_script8   s   € ð ×"Ñ" 4Ó(Ð(r   c                ó(   • U R                  SU5        g )Nr3   r%   r'   s     r   r4   r5   A   s   € à×Ñ˜D %Õ(r   c                ó$   • U R                  S5      $ )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_boldÚFont.cs_boldE   ó   € ð ×"Ñ" 5Ó)Ð)r   c                ó(   • U R                  SU5        g )Nr8   r%   r'   s     r   r9   r:   N   ó   € à×Ñ˜E 5Õ)r   c                ó$   • U R                  S5      $ )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_italicÚFont.cs_italicR   r;   r   c                ó(   • U R                  SU5        g )Nr?   r%   r'   s     r   r@   rA   [   r=   r   c                ó$   • U R                  S5      $ )zjRead/write tri-state value.

When |True|, causes the text in the run to appear with double strikethrough.
Údstriker   r!   s    r   Údouble_strikeÚFont.double_strike_   ó   € ð ×"Ñ" 9Ó-Ð-r   c                ó(   • U R                  SU5        g )NrD   r%   r'   s     r   rE   rF   g   ó   € à×Ñ˜I uÕ-r   c                ó$   • U R                  S5      $ )ztRead/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   rK   ÚFont.embossk   ó   € ð ×"Ñ" 8Ó,Ð,r   c                ó(   • U R                  SU5        g )NrK   r%   r'   s     r   rK   rL   t   ó   € à×Ñ˜H eÕ,r   c                ó$   • U R                  S5      $ )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   ÚhiddenÚFont.hiddenx   rM   r   c                ó(   • U R                  SU5        g )NrQ   r%   r'   s     r   rR   rS   �   rO   r   c                óN   • U R                   R                  nUc  gUR                  $ )z:Color of highlighing applied or |None| if not highlighted.N)r   ÚrPrÚhighlight_val©r   rV   s     r   Úhighlight_colorÚFont.highlight_color…   s'   € ð �m‰m×ÑˆØ‰;ØØ× Ñ Ð r   c                óD   • U R                   R                  5       nXl        g r   )r   Úget_or_add_rPrrW   ©r   r(   rV   s      r   rY   rZ   �   s   € à�m‰m×*Ñ*Ó,ˆØ!Õr   c                ó$   • U R                  S5      $ )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   ÚitalicÚFont.italic’   s   € ð ×"Ñ" 3Ó'Ð'r   c                ó(   • U R                  SU5        g )Nr_   r%   r'   s     r   r`   ra   ›   r.   r   c                ó$   • U R                  S5      $ )zlRead/write tri-state value.

When |True|, causes the text in the run to appear as if pressed into the page.
Úimprintr   r!   s    r   rd   ÚFont.imprintŸ   rG   r   c                ó(   • U R                  SU5        g )Nrd   r%   r'   s     r   rd   re   §   rI   r   c                ó$   • U R                  S5      $ )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   ÚmathÚ	Font.math«   s   € ð ×"Ñ" 7Ó+Ð+r   c                ó(   • U R                  SU5        g )Nrh   r%   r'   s     r   ri   rj   ´   s   € à×Ñ˜G UÕ+r   c                óN   • U R                   R                  nUc  gUR                  $ )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   rV   ÚrFonts_asciirX   s     r   ÚnameÚ	Font.name¸   s'   € ð �m‰m×ÑˆØ‰;ØØ×ÑÐr   c                óP   • U R                   R                  5       nXl        Xl        g r   )r   r\   rm   ÚrFonts_hAnsir]   s      r   rn   ro   Ä   s    € à�m‰m×*Ñ*Ó,ˆØ ÔØ Õr   c                ó$   • U R                  S5      $ )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_proofÚFont.no_proofÊ   s   € ð ×"Ñ" 9Ó-Ð-r   c                ó(   • U R                  SU5        g )Nrs   r%   r'   s     r   rt   ru   Ó   rI   r   c                ó$   • U R                  S5      $ )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   rx   ÚFont.outline×   s   € ð ×"Ñ" 9Ó-Ð-r   c                ó(   • U R                  SU5        g )Nrx   r%   r'   s     r   rx   ry   á   rI   r   c                ó$   • U R                  S5      $ )zkRead/write tri-state value.

When |True| causes the text in the run to have right-to-left characteristics.
Úrtlr   r!   s    r   r|   ÚFont.rtlå   s   € ð ×"Ñ" 5Ó)Ð)r   c                ó(   • U R                  SU5        g )Nr|   r%   r'   s     r   r|   r}   í   r=   r   c                ó$   • U R                  S5      $ )zqRead/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   r€   ÚFont.shadowñ   rM   r   c                ó(   • U R                  SU5        g )Nr€   r%   r'   s     r   r€   r�   ú   rO   r   c                óN   • U R                   R                  nUc  gUR                  $ )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   rV   Úsz_valrX   s     r   ÚsizeÚ	Font.sizeþ   s%   € ð  �m‰m×ÑˆØ‰;ØØ�z‰zÐr   c                ón   • U R                   R                  5       nUc  S Ul        g [        U5      Ul        g r   )r   r\   r	   r„   )r   ÚemurV   s      r   r…   r†     s)   € à�m‰m×*Ñ*Ó,ˆØ ™[�Tˆ�
¬c°#«hˆ�
r   c                ó$   • U R                  S5      $ )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_capsÚFont.small_caps  ó   € ð ×"Ñ" ;Ó/Ð/r   c                ó(   • U R                  SU5        g )NrŠ   r%   r'   s     r   r‹   rŒ   !  ó   € à×Ñ˜K¨Õ/r   c                ó$   • U R                  S5      $ )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_gridÚFont.snap_to_grid%  s   € ð ×"Ñ" <Ó0Ð0r   c                ó(   • U R                  SU5        g )Nr‘   r%   r'   s     r   r’   r“   .  ó   € à×Ñ˜L¨%Õ0r   c                ó$   • U R                  S5      $ )u4  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_vanishÚFont.spec_vanish2  s   € ð ×"Ñ" <Ó0Ð0r   c                ó(   • U R                  SU5        g )Nr—   r%   r'   s     r   r˜   r™   =  r•   r   c                ó$   • U R                  S5      $ )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œ   ÚFont.strikeA  rM   r   c                ó(   • U R                  SU5        g )Nrœ   r%   r'   s     r   rœ   r�   J  rO   r   c                óN   • U R                   R                  nUc  gUR                  $ )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   rV   Ú	subscriptrX   s     r   r    ÚFont.subscriptN  s%   € ð �m‰m×ÑˆØ‰;ØØ�}‰}Ðr   c                óD   • U R                   R                  5       nXl        g r   )r   r\   r    r]   s      r   r    r¡   Z  s   € à�m‰m×*Ñ*Ó,ˆØ�r   c                óN   • U R                   R                  nUc  gUR                  $ )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   rV   ÚsuperscriptrX   s     r   r¤   ÚFont.superscript_  s%   € ð �m‰m×ÑˆØ‰;ØØ�‰Ðr   c                óD   • U R                   R                  5       nXl        g r   )r   r\   r¤   r]   s      r   r¤   r¥   l  s   € à�m‰m×*Ñ*Ó,ˆØ�r   c                óÖ   • U R                   R                  nUc  gUR                  nU[        R                  :X  a  S$ U[        R
                  :X  a  S$ U[        R                  :X  a  S$ U$ )ay  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   rV   Úu_valr   Ú	INHERITEDÚSINGLEÚNONE)r   rV   Úvals      r   Ú	underlineÚFont.underlineq  s|   € ð �m‰m×ÑˆØ‰;ØØ�i‰iˆð ”l×,Ñ,Ó,ð ð	
ð ”l×)Ñ)Ó)ð ð	
ð ”l×'Ñ'Ó'ð ð	
ð ð	
r   c                óœ   • U R                   R                  5       nUSL a  [        R                  OUSL a  [        R                  OUnX2l        g )NTF)r   r\   r   rª   r«   r¨   )r   r(   rV   r¬   s       r   r­   r®   Š  sC   € à�m‰m×*Ñ*Ó,ˆð
 $)¨D¢=ŒL×ÒÈ5ÐTYÊ>´l×6GÒ6GÐ_dð 	ð �	r   c                ó$   • U R                  S5      $ )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_hiddenÚFont.web_hidden•  r�   r   c                ó(   • U R                  SU5        g )Nr±   r%   r'   s     r   r²   r³   ž  r�   r   c                óX   • U R                   R                  nUc  gUR                  U5      $ )z;Return the value of boolean child of `w:rPr` having `name`.N)r   rV   Ú_get_bool_val)r   rn   rV   s      r   r    ÚFont._get_bool_prop¢  s*   € à�m‰m×ÑˆØ‰;ØØ× Ñ  Ó&Ð&r   c                óZ   • U R                   R                  5       nUR                  X5        g)z6Assign `value` to the boolean child `name` of `w:rPr`.N)r   r\   Ú_set_bool_val)r   rn   r(   rV   s       r   r&   ÚFont._set_bool_prop©  s"   € à�m‰m×*Ñ*Ó,ˆØ×Ñ˜$Õ&r   )r   r   r   )r   r   r   z
Any | None)Úreturnúbool | None)r(   r¼   r»   ÚNone)r»   úWD_COLOR_INDEX | None)r(   r¾   )r»   ú
str | None)r(   r¿   r»   r½   )r»   zLength | None)rˆ   zint | Length | Noner»   r½   )r»   úbool | WD_UNDERLINE | None)r(   rÀ   r»   r½   )rn   Ústrr»   r¼   )rn   rÁ   r(   r¼   )'Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Úpropertyr"   Úsetterr+   r0   r4   r9   r@   rE   rK   rR   rY   r`   rd   ri   rn   rt   rx   r|   r€   r…   r‹   r’   r˜   rœ   r    r¤   r­   r²   r    r&   Ú__static_attributes__Ú__classcell__)r   s   @r   r   r      sÄ  ø† ñO÷ñ ð
 ó+ó ð+ð ‡_�_ó+ó ð+ð ó(ó ð(ð 
‡[�[ó(ó ð(ð ñ*ó ð*ð
 ó)ó ð)ð ×Ñó)ó ð)ð ó*ó ð*ð ‡^�^ó*ó ð*ð ó*ó ð*ð ×Ñó*ó ð*ð ó.ó ð.ð ×Ñó.ó ð.ð ó-ó ð-ð ‡]�]ó-ó ð-ð ó-ó ð-ð ‡]�]ó-ó ð-ð ó!ó ð!ð ×Ñó"ó ð"ð ó(ó ð(ð ‡]�]ó(ó ð(ð ó.ó ð.ð ‡^�^ó.ó ð.ð ó,ó ð,ð 
‡[�[ó,ó ð,ð ó	 ó ð	 ð 
‡[�[ó!ó ð!ð
 ó.ó ð.ð ‡_�_ó.ó ð.ð ó.ó ð.ð ‡^�^ó.ó ð.ð ó*ó ð*ð 	‡Z�Zó*ó ð*ð ó-ó ð-ð ‡]�]ó-ó ð-ð óó ðð( 
‡[�[ó7ó ð7ð ó0ó ð0ð ×Ñó0ó ð0ð ó1ó ð1ð ×Ñó1ó ð1ð ó1ó ð1ð ×Ñó1ó ð1ð ó-ó ð-ð ‡]�]ó-ó ð-ð ó	ó ð	ð ×Ñóó ðð ó
ó ð
ð ×Ñó ó ð ð ó
ó ð
ð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Ò      s1   ðÙ !å "ç %å &Ý 'ß )æÝ-Ý'Ý"ô['ˆ<õ ['r   