mς %U²Ic@sΝdZdkZdZdZdZdZd„Zdfd„ƒYZdd „Z dd „Z e d joaei ƒZ ed d dddeƒZeiƒGHeid ƒGHeidƒGHeiƒGHeid ƒGHeidƒGHe ƒGHeidƒGeidƒGHeiƒGHeddƒZeidƒGeidƒGHeie dddeƒZeiƒeie ddde iƒZeiƒededƒiƒZeideƒeideƒeiƒndS(s0.9NtnormaltromantboldtitaliccCstd|dtƒS(sFGiven the name of a tk named font, returns a Font representation. tnametexistsN(tFontRtTrue(R((t*/data/zmath/lib/python2.4/lib-tk/tkFont.pyt nametofontsRcBsͺtZdZd„Zd„Zd„Zeeeed„Zd„Z d„Z d„Z d„Z d „Z d „Zed „Zd „Zd „ZeZd„Zd„ZRS(sφRepresents 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) cCsQg}x>|iƒD]0\}}|id|ƒ|it|ƒƒqWt|ƒS(Nt-(toptionstkwtitemstktvtappendtstrttuple(tselfR RR R((Rt_set8s  cCs2g}x|D]}|id|ƒq Wt|ƒS(NR (R targsRRR(RRRR ((Rt_get?s cCsGh}x:tdt|ƒdƒD] }||d|||d((RRs!cCs|idd|id|ƒS(sGet font attributeRtconfigR N(RR-RR>(RR>((RR3ŠscKsY|o&|idd|i|i|ƒŒn)|i|i|idd|iƒƒƒSdS(sModify font attributesRR?N(R RR-RRRR,(RR ((RR?Žs&cCst|idd|i|ƒƒS(sReturn text widthRtmeasureN(tintRR-Rttext(RRB((RR@šscGs₯|o,t|idd|i|i|ƒƒƒSno|i|idd|iƒƒ}h}x@tdt |ƒdƒD]&}t||dƒ|||d  Ž