+
    Bi[                         ^ RI t ^ RIt^ RIHt ^ RIHtHtHt ^ RIHtH	t	 ]! R4       Rt
 ! R R]] P                  4      t ! R	 R
]	] P                  4      t]R8X  d   ] P                  ! 4        R# R# )    N)font)requires
gc_collect	ALWAYS_EQ)AbstractTkTestAbstractDefaultRootTestguiTkDefaultFontc                   r   a  ] tR t^t o ]R 4       tR tR tR tR t	R t
R tR tR	 tR
 tR tR tRtV tR# )FontTestc                .   \         P                  P                  V 4        \        P                  ! V P
                  \        R R7      V n        R#   \        P                   d1    \        P                  ! T P
                  \        RR7      T n         R# i ; i)TrootnameexistsFN)	r   
setUpClass__func__r   Fontr   fontnametkinterTclError)clss   &2/usr/lib/python3.14/test/test_tkinter/test_font.pyr   FontTest.setUpClass   sc    !!**3/	MyychhXdKCH 	MyychhXeLCH	Ms   ,A ABBc                J   V P                   P                  4       pV P                  \        V4      0 Rm4       V F]  pV P	                  V P                   P                  V4      W,          4       V P	                  V P                   V,          W,          4       K_  	  R Fu  pV P                  W,          \        4       V P                  V P                   P                  V4      \        4       V P                  V P                   V,          \        4       Kw  	  V P                  '       d   \        M\        pR Fi  pV P                  W,          V4       V P                  V P                   P                  V4      V4       V P                  V P                   V,          V4       Kk  	  R# familyN>   sizeslantr   weight	underline
overstrike)r   r    r   )r   r!   r"   )
r   	configureassertGreaterEqualsetassertEqualcgetassertIsInstancestrwantobjectsintselfoptionskeysizetypes   &   r   test_configureFontTest.test_configure   s'   ))%%'GL	NCTYY^^C0',?TYYs^W\:  /C!!',4!!$)).."5s;!!$))C.#6 / ***34C!!',9!!$)).."5x@!!$))C.(; 5    c                &   R p \         P                  ! V P                  VRR7      pV P                  VP                  R4      V4       ?\        4        R#   \        P                   d'    \         P                  ! T P                  TRR7      p Lhi ; i)u   MS ゴシックT)r   r   r   Fr   N)r   r   r   r   r   r&   r'   r   )r-   r   fs   &  r   test_unicode_familyFontTest.test_unicode_family&   su    .	G		tyyEA 	)62	  	G		tyyFA	Gs   #A 8BBc                d   V P                   P                  4       pV P                  \        V4      0 Rm4       V F4  pV P	                  V P                   P                  V4      W,          4       K6  	  R FN  pV P                  W,          \        4       V P                  V P                   P                  V4      \        4       KP  	  V P                  '       d   \        M\        pR FF  pV P                  W,          V4       V P                  V P                   P                  V4      V4       KH  	  R# r   )	r   actualr$   r%   r&   r(   r)   r*   r+   r,   s   &   r   test_actualFontTest.test_actual0   s    ))""$GL	NCTYY--c2GLA .C!!',4!!$))"2"23"7= / ***34C!!',9!!$))"2"23"7B 5r3   c                    V P                  V P                  P                  \        4       V P                  \	        V P                  4      \        4       R # N)r&   r   r   r   r)   r-   s   &r   	test_nameFontTest.test_name>   s2    2TYY2r3   c                x   \         P                  ! V P                  \        R R7      p\         P                  ! V P                  \        R R7      pV P	                  W4       V P                  W4       V P                  WP                  4       4       V P                  V^ 4       V P                  V\        4       \        P                  ! 4       pV P                  VP                  4       \         P                  ! V\        R R7      pV P                  \        V4      \        V4      4       V P                  W4       R# )Tr   N)r   r   r   r   assertIsNotr&   assertNotEqualcopyr   r   Tk
addCleanupdestroyr)   )r-   font1font2root2font3s   &    r   test_equalityFontTest.test_equalityB   s    		tyyxE		tyyxE&&E::<0E1%	*

&		u8DAUSZ0E)r3   c                d    V P                  V P                  P                  R 4      \        4       R# )abcN)r(   r   measurer+   r>   s   &r   test_measureFontTest.test_measureR   s!    dii//6<r3   c                ~   V P                   P                  4       pV P                  \        V4      0 Rm4       V F  pV P	                  V P                   P                  V4      W,          4       V P                  W,          \        4       V P                  V P                   P                  V4      \        4       K  	  R# )ascentN>   fixedrT   descent	linespace)r   metricsr$   r%   r&   r(   r+   )r-   rX   r/   s   &  r   test_metricsFontTest.test_metricsU   s    ))##%G7	9CTYY..s3W\B!!',4!!$))"3"3C"8#> r3   c                    \         P                  ! V P                  4      pV P                  V\        4       V P                  V4       V F*  pV P                  V\        4       V P                  V4       K,  	  R # r=   )r   familiesr   r(   tuple
assertTruer)   )r-   r\   r   s   &  r   test_familiesFontTest.test_families^   sV    ==+h.!F!!&#.OOF# r3   c                    \         P                  ! V P                  4      pV P                  V\        4       V P                  V4       V F*  pV P                  V\        4       V P                  V4       K,  	  V P                  \        V4       R # r=   )	r   namesr   r(   r]   r^   r)   assertInr   )r-   rb   r   s   &  r   
test_namesFontTest.test_namesf   sf    

499%eU+D!!$,OOD!  	h&r3   c                    \         P                  ! \        V P                  R 7      pV P	                  V\         P
                  4       V P                  VP                  \        4       R# ))r   N)r   
nametofontr   r   r(   r   r&   r   )r-   testfonts   & r   test_nametofontFontTest.test_nametofonto   s>    ??8$))<h		21r3   c                b    V P                  \        V P                  4      R \        : R24       R# )z<tkinter.font.Font object >N)r&   reprr   r   r>   s   &r   	test_reprFontTest.test_reprt   s'    O9(QG	
r3    N)__name__
__module____qualname____firstlineno__classmethodr   r1   r6   r:   r?   rL   rQ   rY   r_   rd   ri   rn   __static_attributes____classdictcell____classdict__s   @r   r   r      sV     M M<"C3* =?$'2

 
r3   r   c                   2   a  ] tR t^zt o R tR tR tRtV tR# )DefaultRootTestc                   V P                  \        \        P                  4       \        P
                  ! 4       p\        P                  ! 4       pV P                  V\        4       V P                  V4       V F*  pV P                  V\        4       V P                  V4       K,  	  VP                  4        \        P                  ! 4        V P                  \        \        P                  4       R # r=   )assertRaisesRuntimeErrorr   r\   r   rE   r(   r]   r^   r)   rG   NoDefaultRoot)r-   r   r\   r   s   &   r   r_   DefaultRootTest.test_families|   s    ,6zz|==?h.!F!!&#.OOF#  	,6r3   c                   V P                  \        \        P                  4       \        P
                  ! 4       p\        P                  ! 4       pV P                  V\        4       V P                  V4       V F*  pV P                  V\        4       V P                  V4       K,  	  V P                  \        V4       VP                  4        \        P                  ! 4        V P                  \        \        P                  4       R # r=   )r}   r~   r   rb   r   rE   r(   r]   r^   r)   rc   r   rG   r   )r-   r   rb   r   s   &   r   rd   DefaultRootTest.test_names   s    ,

3zz|

eU+D!!$,OOD!  	h&,

3r3   c                   V P                  \        \        P                  \        4       \
        P                  ! 4       p\        P                  ! \        4      pV P                  V\        P                  4       V P                  VP                  \        4       VP                  4        \
        P                  ! 4        V P                  \        \        P                  \        4       R # r=   )r}   r~   r   rg   r   r   rE   r(   r   r&   r   rG   r   )r-   r   rh   s   &  r   ri   DefaultRootTest.test_nametofont   s    ,Bzz|??8,h		21,Br3   rp   N)	rq   rr   rs   rt   r_   rd   ri   rv   rw   rx   s   @r   r{   r{   z   s     74C Cr3   r{   __main__)unittestr   r   test.supportr   r   r   test.test_tkinter.supportr   r   r   TestCaser   r{   rq   mainrp   r3   r   <module>r      sj       8 8 M l
~x00 l
^%C-x/@/@ %CP zMMO r3   