Skip to content

font declaration error #72

Description

@Python-Sargent

You seem to have called 'Font' incorrectly:

File "C:\Users\user\Documents\Masendor\Masendor-0.7.3.1\engine\game\loading_screen.py", line 12, in loading_screen
    font = pygame.Font(self.ui_font["main_button"], int(60 * self.screen_scale[1]))
AttributeError: module 'pygame' has no attribute 'Font'

(full traceback not included)

EDIT: this is how I would normally do it:

font = pygame.font.Font(fontFile, fontSize)

doesn't crash with:

font = pygame.font.Font(self.ui_font["main_button"], int(60 * self.screen_scale[1]))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions