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

Can I set the text color, opacity and rotation angle when using drawString? #623

Open
kjxbyz opened this issue Mar 20, 2024 · 3 comments
Open

Comments

@kjxbyz
Copy link

kjxbyz commented Mar 20, 2024

Can I set the text color, opacity and rotation angle when using drawString?

like this

2024-03-20 20 28 45
@brendan-duncan
Copy link
Owner

Unfortunately no, the text drawing capabilities of this library are very limited.

@kjxbyz
Copy link
Author

kjxbyz commented Apr 1, 2024

Can this feature be supported?

@brendan-duncan
Copy link
Owner

No, sorry, I won't be adding any more text rendering to the library. Text color and opacity can be done, but not rotation, and the font and text layout support is extremely limited.

For rotation, you could draw the text into a separate image, rotate that image, and then composite the text image onto the the background image.

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