Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dynamic text sizing #4

Open
KingNook opened this issue Sep 13, 2024 · 0 comments
Open

Add dynamic text sizing #4

KingNook opened this issue Sep 13, 2024 · 0 comments
Labels
feature New feature or request

Comments

@KingNook
Copy link
Owner

KingNook commented Sep 13, 2024

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 size

@KingNook KingNook added the feature New feature or request label Sep 13, 2024
@KingNook KingNook assigned KingNook and unassigned KingNook Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant