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

Finish MOAIDraw.drawText #948

Open
ludamad opened this issue Jul 3, 2014 · 1 comment
Open

Finish MOAIDraw.drawText #948

ludamad opened this issue Jul 3, 2014 · 1 comment

Comments

@ludamad
Copy link
Contributor

ludamad commented Jul 3, 2014

Currently it's sitting mostly written and commented out. What would be required to finish it?

@ludamad
Copy link
Contributor Author

ludamad commented Jul 5, 2014

Check out my gist for a stab at a solution (also has some drawTexture changes), that needs cleaning up:
https://gist.github.com/ludamad/943edfa4efe4b3dc1417

The main fix is lines 95-96 it seems. The blend mode caused text to appear as blocks.

It also adds originX and originY members that determine how the text is aligned, eg 1,1 can draw text aligned to a right-bottom corner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants