Quote:
Originally Posted by KevinShort
Sorry about the permission denied, I forgot to set it as public.
I really don't know why it can't load the font file. I'm looking into it.
Does it work if you change the font-loading lines in weather.py to use a default font?
Code:
tiny_font = pygame.font.Font(None, 18)
small_font = pygame.font.Font(None, 22)
font = pygame.font.Font(None, 40)
comfortaa = pygame.font.Font(None, 60)
comfortaa_small = pygame.font.Font(None, 35)
|
Yeah, I guessed about the file permission thing.
I lied in my last post, I can't leave anything alone until it's working...
It looks like it can't load the TrueType fonts. When I converted them to otf format and used those instead it worked. Then I just had to copy full_update from .python into the weather app folder (or change line 363 in the weather.py script to point to it) and it worked perfectly! Presumably full_update looks in the current directory for a file called image.png and blats it to the display?
Thanks ever so much for this. Now I've got it working I'm going to make an astronomer's version, possibly based on data from 7timer.com.
I can't quite believe that the Kobo can run Python and pygame natively - that is so cool!
Andrew