Skip to content

add set_default_font and a small example#923

Merged
not-fl3 merged 1 commit intonot-fl3:masterfrom
cyrgani:set-default-font
Mar 24, 2025
Merged

add set_default_font and a small example#923
not-fl3 merged 1 commit intonot-fl3:masterfrom
cyrgani:set-default-font

Conversation

@cyrgani
Copy link
Copy Markdown
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
Copy Markdown
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