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

TextOut is clipped when Canvas.Font.Orientation <> 0 #2

Open
stuartclennett opened this issue Sep 9, 2020 · 1 comment
Open

TextOut is clipped when Canvas.Font.Orientation <> 0 #2

stuartclennett opened this issue Sep 9, 2020 · 1 comment

Comments

@stuartclennett
Copy link

stuartclennett commented Sep 9, 2020

image

Text should read "Stuart Clennett"

@vintagedave
Copy link
Owner

Nice report! Font orientation was not taken into account at all in the text rendering design. It's based on (optimised around) rendering to a small rectangle, and processing the pixels. A naive implementation of rotated text would process a much larger bounding rectangle.

I suspect the path forward is to render horizontally, then rotate the image; or to draw rotated, and use some smarts to process a much smaller area (where the text actually drew.)

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