Pygame - Only ONE Font found!?

Askari askari at
Mon Aug 9 04:00:59 CEST 2004

Pete Shinners <pete at> wrote in 
news:mailman.1054.1091457050.5135.python-list at

> Askari wrote:
>> print "ListFont :", pygame.font.get_fonts()
>> the resultat is:
>>     ListFont : ['netropaosdicon']
> On Windows, Pygame finds its system fonts in the registry. It looks 
> under one of these locations. I'd say load up regedit and see if your 
> fonts are in there.
>      "SOFTWARE\Microsoft\Windows\CurrentVersion\Fonts"
>      "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts"

Thanks!  :-)   I fixed my problem to copy the times.tff in a directory and 
I can have my font with the function :

I find only one font in:
and a lot fonts (and my font, times) in:
     "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts"

Pygame go see in the both key or just the first finded?
And, I export the keys (from "SOFTWARE\Microsoft\Windows NT\CurrentVersion
\Fonts" to "SOFTWARE\Microsoft\Windows\CurrentVersion\Fonts") and, now, 
pygame list(find) more fonts with :
but, "times"  isn't in the list...    :-(


More information about the Python-list mailing list