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

add optional alignment arg to draw_text #65

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ben-wes
Copy link
Contributor

@ben-wes ben-wes commented Oct 22, 2024

closes #64

only handles the additional argument for vanilla.
opening this PR for further discussion since i'm not sure if that's "the way".

@ben-wes
Copy link
Contributor Author

ben-wes commented Oct 22, 2024

added a minor change to achieve the handling for the optional argument with luaL_optinteger.

... while looking at this, i thought that we could similarly use this or luaL_optnumber in other cases for strokewidth and fontsize to make them optional?

EDIT: those additional optional arguments would then possibly look like this: c429057

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

Successfully merging this pull request may close these issues.

Allow setting text alignment mode
1 participant