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

set_text_matrix(TextMatrix::Rotate(45.0)) rotate text only in its corner #152

Open
qarmin opened this issue Sep 28, 2023 · 0 comments
Open
Milestone

Comments

@qarmin
Copy link

qarmin commented Sep 28, 2023

    current_layer.begin_text_section();

    current_layer.set_font(&font, FONT_SIZE_COMMENTS);
    current_layer.add_line_break();
    current_layer.set_text_cursor(Mm(10.0), Mm(10.0));
    current_layer.set_line_height(10.0);
    current_layer.write_text("AAAAAAA", &font);
    current_layer.set_text_matrix(TextMatrix::Rotate(45.0));
    current_layer.write_text("All rights reserved.", &font);

    current_layer.end_text_section();

With such code, All rights reserved, should start with same position like "AAAA", but starts in corner instead.

Screenshot from 2023-09-28 15-04-07

@fschutt fschutt added this to the 0.8 milestone Nov 2, 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

No branches or pull requests

2 participants