You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 is Joypixels. My ~/.config/fontconfig/fonts.conf file looks like this:
<?xml version="1.0"?>
<!DOCTYPEfontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>monospace</family>
<prefer>
<family>xos4 Terminus</family> <!-- Your preferred monospace font -->
<family>JoyPixels</family> <!-- Your preferred emoji font -->
</prefer>
</alias>
</fontconfig>
I read the part of the README re: URXVT, specifically the URxvt.letterSpace: 0 setting and the symbola 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:
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: