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

title bar text not centered if rendering east-asian text #2871

Closed
gnowxilef opened this Issue Aug 22, 2017 · 11 comments

Comments

Projects
None yet
6 participants
@gnowxilef

gnowxilef commented Aug 22, 2017

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

Binary i3 version:  4.11 (2015-09-30, branch "4.11") © 2009 Michael Stapelberg and contributors
Running i3 version: 4.11 (2015-09-30, branch "4.11") (pid 2398)
Loaded i3 config: /home/waf/.config/i3/config (Last modified: Mon 21 Aug 2017 02:40:56 PM PDT, 18103 seconds ago)

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

URL to a logfile as per http://i3wm.org/docs/debugging.html:
http://logs.i3wm.org/logs/5726911808405504.bz2

What I did:
use any program that renders a title bar with east-asian text

What I saw:
title bar text is not centered

What I expected instead:
title bar text should be centered like ascii text

@i3bot

This comment has been minimized.

Show comment
Hide comment
@i3bot

i3bot Aug 22, 2017

Sorry, we can only support the latest major version. Please upgrade from 4.11 to 4.13, verify the bug still exists, and re-open this issue.

i3bot commented Aug 22, 2017

Sorry, we can only support the latest major version. Please upgrade from 4.11 to 4.13, verify the bug still exists, and re-open this issue.

@i3bot i3bot closed this Aug 22, 2017

@ixjlyons

This comment has been minimized.

Show comment
Hide comment
@ixjlyons

ixjlyons Aug 22, 2017

Contributor

Are you referring to text not being centered vertically in the window titlebar? If so, this seems to occur if there are any non-ASCII characters and it affects current master.

Screenshot showing the issue, where the "middle dot" (·) character seems to be the culprit:

screenshot_2017-08-21_21-32-05

Contributor

ixjlyons commented Aug 22, 2017

Are you referring to text not being centered vertically in the window titlebar? If so, this seems to occur if there are any non-ASCII characters and it affects current master.

Screenshot showing the issue, where the "middle dot" (·) character seems to be the culprit:

screenshot_2017-08-21_21-32-05

@gnowxilef

This comment has been minimized.

Show comment
Hide comment
@gnowxilef

gnowxilef Aug 22, 2017

Indeed I am

gnowxilef commented Aug 22, 2017

Indeed I am

@gnowxilef

This comment has been minimized.

Show comment
Hide comment
@gnowxilef

gnowxilef Aug 22, 2017

I don't seem to see the issue if the text is non-ascii and non east Asian text, but the screen shot you posted is definitely what I am seeing

gnowxilef commented Aug 22, 2017

I don't seem to see the issue if the text is non-ascii and non east Asian text, but the screen shot you posted is definitely what I am seeing

@Airblader

This comment has been minimized.

Show comment
Hide comment
@Airblader

Airblader Aug 22, 2017

Member

Are you using a pango font?

Member

Airblader commented Aug 22, 2017

Are you using a pango font?

@ixjlyons

This comment has been minimized.

Show comment
Hide comment
@ixjlyons

ixjlyons Aug 22, 2017

Contributor

@Airblader for me, yes -- I was using font pango: Tamzen 10 (Tamzen is a bitmap font). Switching to font -misc-tamzen-medium-r-normal--13-94-100-100-c-70-iso8859-1 and the title is now centered.

Contributor

ixjlyons commented Aug 22, 2017

@Airblader for me, yes -- I was using font pango: Tamzen 10 (Tamzen is a bitmap font). Switching to font -misc-tamzen-medium-r-normal--13-94-100-100-c-70-iso8859-1 and the title is now centered.

@gnowxilef

This comment has been minimized.

Show comment
Hide comment
@gnowxilef

gnowxilef Aug 22, 2017

yep, i am using the pango font.

gnowxilef commented Aug 22, 2017

yep, i am using the pango font.

@gnowxilef

This comment has been minimized.

Show comment
Hide comment
@gnowxilef

gnowxilef Aug 22, 2017

can this issue be re-opened?

gnowxilef commented Aug 22, 2017

can this issue be re-opened?

waf-okta added a commit to gnowxilef/dotfiles that referenced this issue Aug 22, 2017

@Airblader

This comment has been minimized.

Show comment
Hide comment
@Airblader

Airblader Aug 23, 2017

Member

I'll reopen for now, but there's a good chance this is an issue with the font or pango.

Member

Airblader commented Aug 23, 2017

I'll reopen for now, but there's a good chance this is an issue with the font or pango.

@Airblader Airblader reopened this Aug 23, 2017

@stapelberg

This comment has been minimized.

Show comment
Hide comment
@stapelberg

stapelberg Aug 30, 2017

Member

I can reproduce this with font pango:DejaVu Sans Mono 8 by using mkdir 有 && cd 有 (my terminal shows the current working directory in the window title) — the font will be positioned a little bit higher than when only latin characters are displayed.

Member

stapelberg commented Aug 30, 2017

I can reproduce this with font pango:DejaVu Sans Mono 8 by using mkdir 有 && cd 有 (my terminal shows the current working directory in the window title) — the font will be positioned a little bit higher than when only latin characters are displayed.

@orestisf1993

This comment has been minimized.

Show comment
Hide comment
@orestisf1993

orestisf1993 Sep 5, 2018

Member

Should be fixed by #3340.

Member

orestisf1993 commented Sep 5, 2018

Should be fixed by #3340.

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