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

Characters do not always fit inside the div #10

Closed
samysammour opened this issue Aug 12, 2022 · 1 comment
Closed

Characters do not always fit inside the div #10

samysammour opened this issue Aug 12, 2022 · 1 comment

Comments

@samysammour
Copy link

samysammour commented Aug 12, 2022

Thanks for the Package, however, the characters are sometimes not fully displayed and they don't fit in the frame.
I set the number of characters to 5.

Only 4 are displayed instead of 5:
image

The letter x is very hard to read:
image

@nub1604
Copy link

nub1604 commented Aug 24, 2022

I also had the problem. My approach was to rewrite the drawing method.
I struggled a lot with rotation and positioning until I changed the following lines to Captcha.cs >BuildRenderTree
canvas.Save();
canvas.Translate(x, y);
canvas.RotateDegrees(l.Angle);
canvas.DrawText(l.Value, x, y, paint);
canvas.Restore();

into

canvas.Save();
canvas.RotateDegrees(l.Angle, x, y);
canvas.DrawText(l.Value, x, y, paint);
canvas.Restore();

tossnet pushed a commit that referenced this issue Feb 5, 2023
@tossnet tossnet closed this as completed Feb 5, 2023
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

3 participants