Skip to content
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
fawaf opened this issue Aug 22, 2017 · 11 comments
Closed

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

fawaf opened this issue Aug 22, 2017 · 11 comments
Labels
4.13 bug reproducible A bug that has been reviewed and confirmed by a project contributor

Comments

@fawaf
Copy link

fawaf 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
Copy link

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 as completed Aug 22, 2017
@ixjlyons
Copy link
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

@fawaf
Copy link
Author

fawaf commented Aug 22, 2017

Indeed I am

@fawaf
Copy link
Author

fawaf 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
Copy link
Member

Are you using a pango font?

@ixjlyons
Copy link
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.

@fawaf
Copy link
Author

fawaf commented Aug 22, 2017

yep, i am using the pango font.

@fawaf
Copy link
Author

fawaf commented Aug 22, 2017

can this issue be re-opened?

notwaf added a commit to fawaf/dotfiles that referenced this issue Aug 22, 2017
@Airblader
Copy link
Member

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

@stapelberg
Copy link
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.

@stapelberg stapelberg added the reproducible A bug that has been reviewed and confirmed by a project contributor label Aug 30, 2017
@orestisfl
Copy link
Member

Should be fixed by #3340.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.13 bug reproducible A bug that has been reviewed and confirmed by a project contributor
Projects
None yet
Development

No branches or pull requests

6 participants