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

ILI943x and GFXfont usage #2

Open
probso opened this issue May 27, 2024 · 0 comments
Open

ILI943x and GFXfont usage #2

probso opened this issue May 27, 2024 · 0 comments

Comments

@probso
Copy link

probso commented May 27, 2024

Please can you provide some simple documentation on the expected/normal parameters of these functions:
void drawChar(uint16_t x, uint16_t y, char c, uint16_t colour, GFXfont *font);
void charBounds(char c, int16_t *x, int16_t *y, int16_t *minx, int16_t *miny, int16_t *maxx, int16_t *maxy, GFXfont *font);
void textBounds(const char *str, int16_t x, int16_t y, int16_t *x1, int16_t *y1, uint16_t *w, uint16_t *h, GFXfont *font);

Specifically,

  • what is passed for the GFXfont variable to access the font library?
  • how are charBounds and textBounds used?
  • Is it possible to pass a string to textBounds rather than single charecters?

Many thanks

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

No branches or pull requests

1 participant