;ō v0@c@stdZdkZdkZdkZeidjodklZn eiiZhZd„Z dfd„ƒYZ dS(s-text and font classes, helps everyone to textNs1.6.1(sSysFontcCstiiƒdSdS(Ni(spygamesfontsinit(((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/txt.pys initializes sFontcBs°tZddd„Zd„Zd„Zd„Zd„Zd„Zdddfd„Zd „Z d „Z e d dddfd „Z e d d „Z e d d„Zdd„ZRS(NicCss||f}ti|ƒot|}n t||||ƒ}|t|<||_|djo|i |_ ndS(Ni( snamessizesvalsFontPoolshas_keysfontsSysFontsboldsitalicsselfs textshadowedstext(sselfsnamessizesboldsitalicsfontsval((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/txt.pys__init__s    cGs|ii|ŒSdS(N(sselfsfontsrendersargs(sselfsargs((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/txt.pysrender!scGs|ii|ŒSdS(N(sselfsfonts set_underlinesargs(sselfsargs((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/txt.pys set_underline$scGs|ii|ŒSdS(N(sselfsfonts set_italicsargs(sselfsargs((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/txt.pys set_italic'scGs|ii|ŒSdS(N(sselfsfontsset_boldsargs(sselfsargs((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/txt.pysset_bold*scCs/|iƒ}|ot|||ƒn|SdS(N(simgsget_rectsrscenterssetattrspos(sselfsimgscenterspossr((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/txt.pys _positionrect-s cCstSdS(N(simg(sselfstextscolorsbgd((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/txt.pys_render3scCs|iiƒSdS(N(sselfsfonts get_height(sself((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/txt.pys get_height6scCs|iiƒSdS(N(sselfsfonts get_linesize(sself((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/txt.pys get_linesize9sscentercCsÞ|tjo d}nydtiiƒdjo2|ii|d||ƒ}|i |t i ƒn|ii|d|ƒ}Wn1t itfj ot iddfƒ}nX|iƒ}|i|||ƒ}||gSdS(Ns iii (stextsNonesgfxssurfaces get_bytesizesselfsfontsrenderscolorsbgdsimgs set_colorkeyspygamesRLEACCELserrors TypeErrorsSurfacesconverts _positionrectscenterspossr(sselfscolorstextscenterspossbgdsimgsr((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/txt.pystext<s  c Csęgi}|D]}|t|dƒƒq~} |tjo d}ny‚ti i ƒdjo4|i i |d|ƒ} |i i |d| ƒ} n5|i i |d|ƒ} } |i i |d| ƒ} Wn5titfj o tiddfƒ} } nX| iƒd| iƒdf}ti|ƒ}|i| ddfƒ|i| ddfƒ|i| ddfƒ|i| ddfƒ|i| ddfƒ|iƒ}|idddftiƒ|i|||ƒ} || gSdS(Nis iii i( sappends_[1]scolorscsints darkcolorstextsNonesgfxssurfaces get_bytesizesselfsfontsrendersimg1simg2spygameserrors TypeErrorsSurfaces get_widths get_heightsnewsizesimgsblitsconverts set_colorkeysRLEACCELs _positionrectscenterspossr( sselfscolorstextscentersposscsnewsizesimgs_[1]srs darkcolorsimg2simg1((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/txt.pys textlinedKs,1   c CsĻgi}|D]}|t|dƒƒq~} |tjo d}ny‚ti i ƒdjo4|i i |d|ƒ} |i i |d| ƒ} n5|i i |d|ƒ} } |i i |d| ƒ} Wn5titfj o tiddfƒ} } nX| iƒd| iƒdf}ti|ƒ}|i| ddfƒ|i| ddfƒ|iƒ}|idddftiƒ|i|||ƒ} || gSdS(Nis iii ( sappends_[1]scolorscsints darkcolorstextsNonesgfxssurfaces get_bytesizesselfsfontsrendersimg1simg2spygameserrors TypeErrorsSurfaces get_widths get_heightsnewsizesimgsblitsconverts set_colorkeysRLEACCELs _positionrectscenterspossr( sselfscolorstextscentersposscsnewsizesimgs_[1]srs darkcolorsimg2simg1((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/txt.pys textshadowedes&1   icCs~d}g} xĶ|iƒD]˜}d} d}xv|iƒD]h}|d} |i i | ƒd}|| |jo| i|ƒ|} | }q8|| 7}| |7} q8W| i|ƒqW|i iƒ}t| ƒ|||} ||d7}ti|| fƒ}|i|ƒ|} xa| D]Y}|oB|i i|d||ƒ}|i|ƒ|i||| fƒn| |7} qW|SdS(Niiss ii(s sidemarginslinesstexts splitlinesslinescursizesbuildssplitswords wordspacesselfsfontssizeswidthsappends get_linesizes lineheightslens topmarginsheightspygamesSurfacessurfsfillsbgcolorspossrenderscolorsimgs set_colorkeysblit(sselfscolorstextswidthsbgcolors topmarginssurfswordsimgs wordspaceslinessposscursizesheights sidemargins lineheightslinessizesbuild((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/txt.pystextbox~s>        (s__name__s __module__s__init__srenders set_underlines set_italicsset_bolds _positionrects_renders get_heights get_linesizesNonestexts textlineds textshadowedstextbox(((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/txt.pysFonts       ( s__doc__spygames pygame.fontsgfxsvers mysysfontsSysFontsfontsFontPools initializesFont(sFontPoolsgfxsFontspygames initializesSysFont((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/txt.pys?s