Skip to content

Space gets displayed incorrectly #5

@dderjoel

Description

@dderjoel

When I was using this project with the Iconic Fonts (Font Awesome 5), I had the space-char rendered incorrectly looking like this.
image

Apparently, this is related to Pango as mentioned here, but the fix somehow did not work.
Anachron/i3blocks#53

However, using a workaround of having a transparent space (or any other char), has the same effect.
I changed https://github.com/mh21/i3-renameworkspaces/blob/master/i3-renameworkspaces.pl#L64
from
$newname = join(': ', $num, join(' ', @{$$ws{'windows'}}) || ());
to
$newname = join(': ', $num, join('<span foreground=\'#00000001\'> <span>', @{$$ws{'windows'}}) || ());

Please consider adding a comment above this line which mentions this issue/workaround.

Also, a note in the readme file referring to the PangoMarkupFormat which is available, would be helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions