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

Also accept char* pointer for fonts #393

Merged
merged 2 commits into from
Mar 18, 2024

Conversation

ropg
Copy link
Contributor

@ropg ropg commented Mar 10, 2024

The squix.ch tool mentioned in the README maybe provided a uint8_t array at one point, or maybe we switched, but as it is now it provides a char array, so the font files from there don't work. This patch fixes that by converting the pointer we get.

@marcelstoer
Copy link
Member

(thought I had commented before)

This looks sane to me and I'd merge it, but IMO it's for @squix78 to decide what the best course of action is at this point.

Instead of duplication functionality. Because setFont might do more. In fact: it does for in my print fixes: it resets the logBuffer for new number of lines/chars.
@ropg
Copy link
Contributor Author

ropg commented Mar 14, 2024

Any word? I think this should go in. As it is now you're pointing people to a site to make font files, and then they come back with files that don't work. It's so trivial to make both work.

Note that I changed it to point to the uint8_t version of setFont instead of just doing the work itself: that way #399 can just reset the logBuffer in one place.

@marcelstoer marcelstoer merged commit 906d0c5 into ThingPulse:master Mar 18, 2024
6 checks passed
@ropg ropg deleted the accept_char_font_array branch March 18, 2024 09:34
@ropg
Copy link
Contributor Author

ropg commented Mar 18, 2024

👍

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.

None yet

3 participants