Skip to content

Unnecessary warning gets issued when constructing a SysFont with the default font explicitly #2643

Closed
@oddbookworm

Description

@oddbookworm

When running this line of code

pygame.font.SysFont(pygame.font.get_default_font(), font_size)

A warning gets issued to the console

/home/oddbookworm/Projects/pygame-ce/venv/lib/python3.11/site-packages/pygame/sysfont.py:492: UserWarning: The system font 'freesansbold.ttf' couldn't be found. Did you mean: 'freesansbold'? Using the default font instead.
  warnings.warn(

I don't think a warning should be emitted here

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions