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

Text does not wrap when using vector (hershey) fonts #964

Open
Trantion897 opened this issue Jun 28, 2024 · 0 comments
Open

Text does not wrap when using vector (hershey) fonts #964

Trantion897 opened this issue Jun 28, 2024 · 0 comments

Comments

@Trantion897
Copy link
Contributor

When I call display.text("Lorem ipsum dolor sit amet", x, y, 20, 1), the docs say it should wrap after 20 pixels, but it doesn't wrap at all. This function isn't implemented for vector fonts:

void text(const font_t *font, rect_func rectangle, const std::string_view &t, const int32_t x, const int32_t y, const int32_t wrap, const uint8_t scale, const uint8_t letter_spacing, bool fixed_width, int32_t rotation) {

void text(const font_t* font, line_func line, std::string_view message, int32_t x, int32_t y, float s, float a) {

I don't do C++ so I haven't tried modifying that, but if there can't be support for wrapping vector fonts it should be in the readme.

Tested on an Inky Frame 7.3 with Pico W

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