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

Displaying Unicode Thermometer (U+1F321) in i3bar causes text to be shifted up #3114

Closed
Jaulers opened this Issue Jan 8, 2018 · 4 comments

Comments

Projects
None yet
6 participants
@Jaulers

Jaulers commented Jan 8, 2018

Output of i3 --moreversion 2>&- || i3 --version:

Binary i3 version: 4.14.1 (2017-09-24) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.14.1 (2017-09-24) (pid 788) abort…)
Loaded i3 config: /home/joel/.config/i3/config (Last modified: Mon 08 Jan 2018 10:11:19 CET, 25 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3

URL to a logfile as per https://i3wm.org/docs/debugging.html:
https://pastebin.com/Hi7QAcjA
i3bar log:
https://pastebin.com/rPCDbTDZ

When displaying Unicode Thermometer, the text is shifted up by about half a line in i3bar.
example:
i3 config:

bar {
   status_command /path/to/test.sh
}

test.sh:

echo '{"version":1} ['
while true
do
	echo '[{"full_text":"asdf"},{"full_text":"🌡 temperature"},{"full_text":"asdf"}],'
	sleep 1s
done

also works with non-json input,
i.e. just echo "🌡 temperature"

@i3bot

This comment has been minimized.

Show comment
Hide comment
@i3bot

i3bot Jan 8, 2018

I don’t see a link to logs.i3wm.org. Did you follow https://i3wm.org/docs/debugging.html? (In case you actually provided a link to a logfile, please ignore me.)

i3bot commented Jan 8, 2018

I don’t see a link to logs.i3wm.org. Did you follow https://i3wm.org/docs/debugging.html? (In case you actually provided a link to a logfile, please ignore me.)

@Airblader Airblader closed this Jan 8, 2018

@Airblader Airblader reopened this Jan 8, 2018

@i3 i3 deleted a comment from Jaulers Jan 8, 2018

@Airblader Airblader added the bug label Jan 8, 2018

@magnetophon

This comment has been minimized.

Show comment
Hide comment
@magnetophon

magnetophon commented Feb 10, 2018

I have the same issue, also with other characters, as do others: https://www.reddit.com/r/i3wm/comments/7wfdlm/i3blocks_text_shifts_up_when_i_insert_certain/

@stapelberg

This comment has been minimized.

Show comment
Hide comment
@stapelberg

stapelberg Mar 5, 2018

Member

I’m not sure if we’re doing something wrong in i3bar, or if this is a problem with pango/cairo, which we use for rendering.

Member

stapelberg commented Mar 5, 2018

I’m not sure if we’re doing something wrong in i3bar, or if this is a problem with pango/cairo, which we use for rendering.

@PandorasFox

This comment has been minimized.

Show comment
Hide comment
@PandorasFox

PandorasFox Jul 29, 2018

Contributor

I'm encountering this on my new laptop, using i3bar version 4.15.0.1 (03-13-2018) from the arch repos.

The primary cause is that you can get back a height greater than savedFont->height here and that just breaks the math, since that case isn't handled.

Contributor

PandorasFox commented Jul 29, 2018

I'm encountering this on my new laptop, using i3bar version 4.15.0.1 (03-13-2018) from the arch repos.

The primary cause is that you can get back a height greater than savedFont->height here and that just breaks the math, since that case isn't handled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment