Skip to content

pygame font extract from relative path #298

@arthurlutz

Description

@arthurlutz
python sys.py/run.py 
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
../skin/default/truetype/VarelaRound-Regular.ttf
Traceback (most recent call last):
  File "sys.py/run.py", line 39, in <module>
    from UI.page         import PageStack,PageSelector,Page
  File "/home/arthur/local/clockworkpi/launcher/sys.py/UI/page.py", line 22, in <module>
    from icon_pool import MyIconPool
  File "/home/arthur/local/clockworkpi/launcher/sys.py/UI/icon_pool.py", line 9, in <module>
    from skin_manager import MySkinManager
  File "/home/arthur/local/clockworkpi/launcher/sys.py/UI/skin_manager.py", line 163, in <module>
    InitMySkinManager()
  File "/home/arthur/local/clockworkpi/launcher/sys.py/UI/skin_manager.py", line 160, in InitMySkinManager
    MySkinManager = SkinManager()
  File "/home/arthur/local/clockworkpi/launcher/sys.py/UI/skin_manager.py", line 30, in __init__
    self.Init()
  File "/home/arthur/local/clockworkpi/launcher/sys.py/UI/skin_manager.py", line 41, in Init
    self.SetFonts()
  File "/home/arthur/local/clockworkpi/launcher/sys.py/UI/skin_manager.py", line 56, in SetFonts
    self._Fonts["varela%d"%i] = pygame.font.Font(fonts_path["varela"],i)
IOError: [Errno 2] No such file or directory: '../skin/default/truetype/VarelaRound-Regular.ttf'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions