i3 / i3

A tiling window manager for X11
https://i3wm.org/
BSD 3-Clause "New" or "Revised" License
9.57k stars 779 forks source link

i3 title with Paragraph Separator splits in two lines and gets cut off (depending on font) #5391

Open miallo opened 1 year ago

miallo commented 1 year ago

I'm submitting a…

[x] Bug
[ ] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)

Current Behavior

When the title of a window contains a paragraph separator unicode character depending on the chosen font the string might be shown with the paragraph inserted (so a linebreak is shown), which makes the text unreadable. (This might also apply to other characters as well...)

Expected Behavior

The title should be readable and the control characters should probably be replaced by spaces or a replacement character ("�") for display in the title no matter which font is chosen.

Reproduction Instructions

Environment

Output of i3 --moreversion 2>&-:

> i3 --moreversion 2>&-
Binary i3 version:  4.22 (2023-01-02) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.22 (2023-01-02) (pid 2498)
Loaded i3 config:
  /home/user/.config/i3/config (main) (last modified: Mon 23 Jan 2023 10:07:57 AM CET, 13555 seconds ago)

The i3 binary you just called: /nix/store/cv2z6jr3mb1mpcq8fqw79yygps0n7z6h-i3-4.22/bin/i3
The i3 binary you are running: /nix/store/cv2z6jr3mb1mpcq8fqw79yygps0n7z6h-i3-4.22/bin/i3

Config file

# It depends on the font - with the default font I get rendered an empty box (it might depend on the font and be a replacement character as well 􏿾)
font pango:System San Francisco Display 11

System information

- Linux Distribution & Version: NixOS (unstable) 23.05.20230123.d32728b (Stoat)
- Are you using a compositor (e.g., xcompmgr or compton): no
i3bot commented 1 year ago

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.)