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

DrawStringWrapped draws text with offset comparing to DrawStringAnchored #198

Open
gatilisk opened this issue May 7, 2024 · 0 comments
Open

Comments

@gatilisk
Copy link

gatilisk commented May 7, 2024

DrawStringWrapped draws text at one line Y offset.

text := "hello world"
x := 10
y := 10
ax := 0
ay := 0
DrawStringAnchored(dc, text, x, y, ax, ay, ....
DrawStringWrapped(dc, text, x, y, ax, ay, ....

The coordinates are the same, but the text position is not the same.

DrawStringWrapped with ay = 0 eventually calls DrawStringAnchored with ay = 1

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

1 participant