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

Allow "by hand" enabling of right-to-left text rendering. #43

Open
kurron opened this issue Aug 15, 2013 · 1 comment
Open

Allow "by hand" enabling of right-to-left text rendering. #43

kurron opened this issue Aug 15, 2013 · 1 comment

Comments

@kurron
Copy link

kurron commented Aug 15, 2013

I've built a solution based on the rel-060 branch and its support for RTL. Our system has information about the text being processed, including if it needs RTL enabled. What I did was to add a simple method on the WordCram object that sets the renderOptions.rightToLeft field to true (I'd send you a pull-request but I'm struggling with GitHub to only pick up that one change). Just prior to calling draw we enable the RTL flag if needed. I'm thinking that others might be in a similar situation and could make use of this functionality. Please think about adding it to a future release.

@danbernier
Copy link
Owner

This sounds like a much better approach! IIRR, I'm setting a global property in the RenderOptions, and then passing that around. I think this will work better. I'll take a look at it for the next release.

Thanks!

@danbernier danbernier mentioned this issue Dec 1, 2013
5 tasks
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

2 participants