Skip to content

Conversation

@ryanlua
Copy link
Contributor

@ryanlua ryanlua commented Jan 12, 2026

Corrects setTextFont to use the proper enum for fontStyle. Previously, it would use Enum.FontSize, which would trigger a type warning if you were using Enum.FontStyle, which is the correct type.

I reviewed the rest of the code, which properly uses Enum.FontStyle is it's just a type on the types and not code.

Corrects setTextFont's FontStyle parameter to use the proper FontStyle Enum instead of FontSize
Copilot AI review requested due to automatic review settings January 12, 2026 11:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a type definition error in the setTextFont method where the fontStyle parameter was incorrectly typed as Enum.FontSize instead of Enum.FontStyle.

Changes:

  • Corrected the type annotation for the fontStyle parameter in the setTextFont method signature from Enum.FontSize to Enum.FontStyle

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant