You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to add a function to alter the size of the text based off the size of the text in comparison to the size of the intended container
Thoughts / Challenges
Either requires a change to monospace font or some trial n error to figure out numbers
Method
Probably a function that takes the string text and the container dimensions (width, height) then returns either a pygame font object or a number representing the maximum font size
The text was updated successfully, but these errors were encountered:
Context
I would like to add a function to alter the size of the text based off the size of the text in comparison to the size of the intended container
Thoughts / Challenges
Either requires a change to monospace font or some trial n error to figure out numbers
Method
Probably a function that takes the string
text
and the container dimensions(width, height)
then returns either a pygame font object or a number representing the maximum font sizeThe text was updated successfully, but these errors were encountered: