NRasterizer icon indicating copy to clipboard operation
NRasterizer copied to clipboard

Support for Tabs while rendering text

Open tocsoft opened this issue 9 years ago • 2 comments

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.

tocsoft avatar Dec 21 '16 17:12 tocsoft

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.

vidstige avatar Dec 21 '16 18:12 vidstige

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.

tocsoft avatar Dec 21 '16 19:12 tocsoft