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
Emoji spacing in nwg-wrapper #939
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First of all, very nice job on wttr.in; I rely on it every day! I am currently using nwg-wrapper and ansifilter to display v1 and v2 forecast, and was wondering if you could give me some tips on character spacing with emoji fonts, as it is rather important for v2 layout to appear legible.
My current issue is that whenever emoji symbols appear, line height and character width is slightly larger than a standard monospace character. This in turn throws things off alignment, and causes an overflow in the right. In addition, I do not really understand why but sometimes a monospace font symbol is used instead of emoji. Both of these symptoms can be seen for instance on the weather symbols line or moon phases line in the following screenshot:
The picture above was generated using the following script:
As a monospace font, I am using
Terminus
but I verified that the same result can be reproduced using any other monospace font. My emoji font isJoypixels
. My~/.config/fontconfig/fonts.conf
file looks like this:I read the part of the README re: URXVT, specifically the
URxvt.letterSpace: 0
setting and thesymbola
font workaround. I was wondering if you are aware of an equivalent setting for pango, or something similar that could help me squeeze those emojis into their bounding box, so that the table does not spill over. Thank you for any ideas you can share!The text was updated successfully, but these errors were encountered: