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

drawtext-rectangle missing words #19

Open
wiegell opened this issue Nov 16, 2022 · 2 comments
Open

drawtext-rectangle missing words #19

wiegell opened this issue Nov 16, 2022 · 2 comments

Comments

@wiegell
Copy link

wiegell commented Nov 16, 2022

drawtext-rectangle is skipping a word at each line break

@swharden
Copy link
Owner

Thanks for reporting this! Unfortunately this repo has many projects and thousands of files. Which file contains the bug you are describing?

@wiegell
Copy link
Author

wiegell commented Nov 16, 2022

else
{
wordY += paint.FontSpacing;
wordX = rect.Left;
}

else block at line 52 should be:

wordY += paint.FontSpacing;
wordX = rect.Left;
canvas.DrawText(word, wordX, wordY, paint);
wordX += wordWidth + spaceWidth;

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