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

Support for Tabs while rendering text #38

Open
tocsoft opened this issue Dec 21, 2016 · 2 comments
Open

Support for Tabs while rendering text #38

tocsoft opened this issue Dec 21, 2016 · 2 comments

Comments

@tocsoft
Copy link
Contributor

tocsoft commented Dec 21, 2016

calling Renderer.Render(x, y, text, size. resolution) doesn't support drawing tabs.

As a simple first pass it could be updated to just switch on tabs and advance xx by n spaces widths.

@vidstige
Copy link
Owner

Hmm, I wonder how this works with GDI+ and similar? You would like to advance to an the space character advance width times an even multiple of a tabstop, e.g. 4.

@tocsoft
Copy link
Contributor Author

tocsoft commented Dec 21, 2016

Yeah that make sense... recon the tab width should be definable with some configuration options passed into the Renderer instance, could even hoist size and resolution to class wide values with it.

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