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

Spacing for Unicode Block characters is off #98

Closed
nnuel opened this issue Feb 19, 2022 · 2 comments
Closed

Spacing for Unicode Block characters is off #98

nnuel opened this issue Feb 19, 2022 · 2 comments

Comments

@nnuel
Copy link

nnuel commented Feb 19, 2022

Spacing for Unicode Block characters is off

Input

SHAPES {
nw ("██") n ("█") ne ("██")
w ("██") e ("██")
sw ("██") s ("█") se ("██")
}

My font has widthxheight ratio of 1x2, so I'd need to block character for a square block.

The output is:

echo "boxes" | boxes
███████
██         ██
██  boxes  ██
██         ██
███████

This is on Linux in the foot terminal, with fish shell. But it occurs similarly in other terminals and shells.
Boxes 2.1.1

In foot/fish
image

In kitty/bash
image

It must be something with unicode-encoding and spaces and tabs, but I can't seem to get it working. I really like the idea of this program, so I'd like to help out to get it working, but this is as far as I could get on my own.

@nnuel
Copy link
Author

nnuel commented Feb 19, 2022

if I double the characters in N and S, then it would just push the East border even further:

image

@tsjensen
Copy link
Member

Right, the config file is currently ASCII. We aim to change this, but it's a lot of work, see #72.

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