Skip to content

add set_default_font and a small example #923

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

Merged
merged 1 commit into from
Mar 24, 2025

Conversation

cyrgani
Copy link
Contributor

@cyrgani cyrgani commented Mar 24, 2025

As a complement to get_default_font, this PR adds set_default_font as well as a small example to demonstrate that it works:

image

This makes it much easier to set the default font once before the main loop and then use the regular text drawing APIs, rather than having to explicitly use draw_text_ex with the font each time.

@not-fl3
Copy link
Owner

not-fl3 commented Mar 24, 2025

Thanks for all the PRs! 👍

@not-fl3 not-fl3 merged commit ed23373 into not-fl3:master Mar 24, 2025
6 checks passed
@cyrgani cyrgani deleted the set-default-font branch March 24, 2025 14:48
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.

2 participants