eXSSKrSSKrSr/SQrSrSrSrSrSSjr"S S 5r SS jr SS jr \ S :XGa\R"5r\ "SS\S9r\"\R#55 \"\R#S55 \"\R#S55 \"\R%55 \"\R'S55 \"\R'S55 \"\ "55 \"\R)S5\R+S55 \"\R+\S95 \ "SS9r\"\R)S5\R+S\S95 \R,"\S\S9r\R15 \R2"\S\R4S9r\R15 \ "\SS9R75r\R%\S9 \R%\S9 \R:"5 gg) Nz0.9)NORMALROMANBOLDITALIC nametofontFontfamiliesnamesnormalromanbolditalicc[USUS9$)zFGiven the name of a tk named font, returns a Font representation. T)nameexistsroot)r)rrs 2/opt/imh/python3.13/lib/python3.13/tkinter/font.pyrrs T$T 22c\rSrSrSr\R "S5rSrSr Sr SSjr S r S r S rS rS rSrSrSSjrSrSr\rSSjrSrSrg)raRepresents a named font. Constructor options are: font -- font specifier (name, system font, or (family, size, style)-tuple) name -- name to use for this font configuration (defaults to a unique name) exists -- does a named font by this name already exist? Creates a new named font if False, points to the existing font if True. Raises _tkinter.TclError if the assertion is false. the following are ignored if font is specified: family -- font 'family', e.g. Courier, Times, Helvetica size -- font size in points weight -- font thickness: NORMAL, BOLD slant -- font slant: ROMAN, ITALIC underline -- font underlining: false (0), true (1) overstrike -- font strikeout: false (0), true (1) c/nUR5H3up4URSU-5 UR[U55 M5 [U5$N-)itemsappendstrtuple)selfkwoptionskvs r_set Font._set2sEHHJDA NN3q5 ! NN3q6 "W~rcV/nUHnURSU-5 M [U5$r)rr)rargsr!r"s r_get Font._get9s+A NN3q5 !W~rcb0n[S[U5S5HnXS-X!USS'M U$)Nrr)rangelen)rr'r!is r_mkdict Font._mkdict?s;q#d)Q'A#'!9GGABK (rNc Uc[R"S5n[USU5nU(a#URUR SSU55nOUR U5nU(d!S[ [UR55-nX0l U(aSUl URURUR SS55;a.[RRSUR<S35eU(aUR"SS UR/UQ76 O&UR"SS UR/UQ76 S Ul X`l URUlURUlg) Nzuse fonttkfontactualFr z named font z does not already exist configurecreateT)tkinter_get_default_rootgetattr splitlistcallr$rnextcounterr delete_font_tkinterTclError_tk_split_call)rrr3rrr!r2s r__init__ Font.__init__Es <,,Z8D T4 & <<$ ?@D99W%DCT\\ 233D $D yy RWWVW-E FF&&//>BiiIKK TYY>> GGFHdii 7$ 7#D ll gg rcUR$N)rrs r__str__ Font.__str__ds yyrcSURRSURRSUR<S3$)N<.z object >) __class__ __module__ __qualname__rrHs r__repr__ Font.__repr__gs<4>>,,-Qt~~/J/J.K$))a) )rc[U[5(d[$URUR:H=(a URUR:H$rG) isinstancerNotImplementedrrA)rothers r__eq__ Font.__eq__ks:%&&! !yyEJJ&@488uyy+@@rc$URU5$rG)cget)rkeys r __getitem__Font.__getitem__psyy~rc*UR"S0X0D6 g)N)r5)rr\values r __setitem__Font.__setitem__ss &#&rcUR(aURSSUR5 gg![a gf=f)Nr3delete)r>rCr ExceptionrHs r__del__ Font.__del__vs;  68TYY7    s .2 ??cJ[UR40UR5D6$)z*Return a distinct copy of the current font)rrAr4rHs rcopy Font.copy}sDHH. ..rc SnU(aSU4nU(a(USU-4-nUR"SSUR/UQ76$URURUR"SSUR/UQ7655$)zReturn actual font attributesr` -displayofrr3r4)rCrr/rB)roption displayofr's rr4 Font.actualsy  ),D 3<**D::fh ADA A<< DJJvxJTJKM MrcDURSSURSU-5$)zGet font attributer3configr)rCr)rrns rr[ Font.cgetszz&(DIIs6zBBrc U(a/UR"SSUR/URU5Q76 gURUR URSSUR555$)zModify font attributesr3rrN)rCrr$r/rB)rr!s rrr Font.configs^  JJvx '99W% '<< DJJvxCDF FrcU4nU(aSX!4nURRUR"SSUR/UQ765$)zReturn text widthrmr3measure)rAgetintrCr)rtextror's rrw Font.measures?w  )2Dxxtzz&)TYYNNOOrcSnURSS5nU(aSU4nU(aKX0RU5-nURRUR"SSUR /UQ765$UR UR"SSUR /UQ765n0n[S[U5S5H+nURRXVS -5XUS S'M- U$) zmReturn font metrics. For best performance, create a dummy widget using this font before calling this method.r`roNrmr3metricsrr+r) popr(rArxrCrrBr,r-)rr!r r'roresr.s rr| Font.metricss FF;-  ),D ))G,,D88?? 69dii?$?A A++djjDIIMMNCG1c#h*&*hhoocA#h&?Aqr #+Nr)rCrBrAr>r)NNNFNNrG)__name__rPrQ__firstlineno____doc__ itertoolscountr=r$r(r/rDrIrRrXr]rbrgrjr4r[rrr5rwr|__static_attributes__r`rrrrss*ooa G  >)A '/ MCFIPrrcUc[R"S5nSnU(aSU4nURRURR"SS/UQ765$)zGet font families (as a tuple)zuse font.families()r`rmr3r r7r8r2r:r;)rror's rr r sS |(()>? Di( 77  TWW\\&*DtD EErcUc[R"S5nURRURR SS55$)z'Get names of defined fonts (as a tuple)zuse font.names()r3r r)rs rr r s< |(();< 77  TWW\\&': ;;r__main__times)familysizeweightrrhello linespace)ro)Courierr )r3z Hello, world)ryr3zQuit!)rycommandr3)rrGr)rr7 __version____all__rrrrrrr r rTkrfprintr4rrr[rwr|LabelwpackButtondestroyrjfbmainloopr`rrrs   6   3 [[|F< z ::