We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I'm using DrawText to draw text on a Drawable panel. Example:
g.DrawText(new Font("Arial", 9, FontStyle.Bold), new SolidBrush(Color.FromArgb(87, 171, 39)), new RectangleF(0, 0, 200, 100), "Food", FormattedTextWrapMode.None, FormattedTextAlignment.Right, FormattedTextTrimming.None);
The text on the rectangle should be right aligned.
The text is left aligned.
This also happens with Center alignment.
My system:
The text was updated successfully, but these errors were encountered:
Thanks for reporting the issue! Alignment appears to work with multi-lines, but not a single line.. Works fine with WPF and other platforms.
Sorry, something went wrong.
WinForms: Fix DrawText alignment
f4d25dd
Fixes picoe#1921
Successfully merging a pull request may close this issue.
Hi, I'm using DrawText to draw text on a Drawable panel.
Example:
Expected Behavior
The text on the rectangle should be right aligned.
Actual Behavior
The text is left aligned.
This also happens with Center alignment.
My system:
The text was updated successfully, but these errors were encountered: