;ņ v0@c@s©dZdkZdkZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d „Z d „Z hZ hZ d „Zd d d „Zd„Zd d d„ZdS(s5sysfont, used in the font module to find system fontsNcCs[x dD]}|i|dƒ}qW|iƒ}|iddƒ}|iddƒ}|SdS(Ns_ -ss-s'(scharsnamesreplaceslower(snameschar((sG/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/mysysfont.pys _simplenames cCs7|i|ƒ oh|| Font create a pygame Font from system font resources This will search the system fonts for the given font name. You can also enable bold or italic styles, and the appropriate system font will be selected if available. This will always return a valid Font object, and will fallback on the builtin pygame font if the given font is not found. Name can also be a comma separated list of names, in which case set of names will be searched in order. Pygame uses a small set of common font aliases, if the specific font you ask for is not available, a reasonable alternative may be used. Ns,ii(s pygame.fontspygamesSysfontss initsysfontssNonesfontnamesnamesallnamesssplitsboldsorigboldsitalics origitalics _simplenamesgetsstylessSysaliassvaluessfontsFontssizesset_bolds set_italic( snamessizesboldsitalicsstylessfontnamesfontsorigboldsallnamesspygames origitalic((sG/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/mysysfont.pysSysFontŃsL      cCs!t o tƒntiƒSdS(s"pygame.font.get_fonts() -> list get a list of system font names Returns the list of all found system fonts. Note that the names of the fonts will be all lowercase with spaces removed. This is how pygame internally stores the font names for matching. N(sSysfontss initsysfontsskeys(((sG/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/mysysfont.pys get_fonts s cCsńt o tƒnt}|}xĒ|idƒD]¶}t|ƒ}ti|ƒ}| ot i|ƒ}n|ogxd| oW|i||fƒ}|o d}qu|o d}qu| o|i ƒd}ququWn|oPq/q/W|SdS(szpygame.font.match_font(name, bold=0, italic=0) -> name find the filename for the named system font This performs the same font search as the SysFont() function, only it returns the path to the TTF file that would be loaded. The font name can be a comma separated list of font names to try. If no match is found, None is returned. s,iN(sSysfontss initsysfontssNonesfontnamesnamesallnamesssplits _simplenamesgetsstylessSysaliassboldsitalicsvalues(snamesboldsitalicsstylessfontnamesallnames((sG/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/mysysfont.pys match_fonts0      (s__doc__sosssyss _simplenames_addfontsinitsysfonts_win32sinitsysfonts_darwinsread_unix_fontscachesread_unix_fontsdirs _fontwalksinitsysfonts_unixscreate_aliasessSysfontssSysaliass initsysfontssSysFonts get_fontss match_font(s match_fonts initsysfontssSysFontsinitsysfonts_darwins _simplenamesread_unix_fontscaches get_fontssinitsysfonts_win32ssyssSysaliassSysfontssread_unix_fontsdirs _fontwalks_addfontsossinitsysfonts_unixscreate_aliases((sG/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/mysysfont.pys?s   0     ;