greshake / i3status-rust

Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
GNU General Public License v3.0
2.88k stars 474 forks source link

The < separators don't render correctly #246

Closed axper closed 6 years ago

axper commented 6 years ago

A picture is worth a thousand words:

2018-09-02-115516_1180x46_scrot

As you can see the < separators between blocks look kinda ugly and broken, which is not the case in the screenshots I have seen other people have.

MaxVerevkin commented 2 years ago

One extremely hacky way to avoid these gaps is to use a specific font with disabled antialiasing. For example:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
  <match target="font">
    <test qual="any" name="family">
      <string>NotoSans Nerd Font</string>
    </test>
    <edit mode="assign" name="antialias">
      <bool>false</bool>
    </edit>
  </match>
</fontconfig>
separator = "<span font_family='NotoSans Nerd Font'>\ue0b2</span>"

Not sure if it's worth it though, as the result is just as ugly.

MaxVerevkin commented 2 years ago

Hey, I managed to fix those gaps in i3bar-river by 1) rendering left to right 2) having one pixel overlap between blocks (but this should probably be optional). I wonder if something like this would be accepted upstream.