bostrom/text-to-image

Alignment issue with multiple space to format as table.

Closed this issue · 2 comments

Hi, Pls check this is not looking good when i have used spaces to show my strings as table.

This is what looking on terminal.
image

This is what image i got.
image

So seems spaces are being altered.

It's because the font in the image is not a fixed-width font like in the terminal. So different characters have different width and that's why the pipe characters end up in different places.

Try setting the fontFamily to "consolas" or "courier".

Thnx buddy!! U knocked the right bell.