Rofi: Rofi displays spaces wrong

Created on 13 Jun 2019  路  6Comments  路  Source: davatorium/rofi

Version: 1.5.2

Configuration

Launch Command

I am running rofi with a custom script I made which you can find here.

Steps to reproduce

  • Step 1: Run the command. The buggy part occurs after the line # Get memory status.
  • Step 2: Look at the output.

What behaviour you see


    • I see that the number of spaces after the memory bar is incorrect; here:

      image

(sorry it's not cropped)

What behaviour you expect to see


    • I expect to see something like this image here (in my terminal, after running getoutput from the program manually:

      image

Edit

Inserting the awk code like this:

z=0;
printf "Memory: [";
while(++z < $3/200000) printf " ";
printf "]\n";

and replacing $3 with $2 and ($3 - $2), it prints the correct number of spaces (in rofi and in the terminal). The first instance still prints the wrong amount

Bug in used library

All 6 comments

Rofi does nothing with the string and passes it directly to pango.
Is the alignment correct (when using same font/size) in programs like gedit?

Sorry for the late response. It does not show properly in gedit.

image

Then it sounds like an upstream pango bug and not a rofi issue as gedit also uses pango for rendering.

based on #977 assume this is fixed upstream. please let me know if not.

It seems pango switched rendering engine for fonts.
https://gitlab.gnome.org/GNOME/pango/issues/386 causing some issues.

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mvrozanti picture mvrozanti  路  3Comments

icf20 picture icf20  路  4Comments

orschiro picture orschiro  路  5Comments

digitalphoton picture digitalphoton  路  4Comments

herrsimon picture herrsimon  路  5Comments