Bug 360630 - Incorrect position of text of name of window with fullwidth character
Summary: Incorrect position of text of name of window with fullwidth character
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-16 20:54 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2016-03-17 10:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot (83.83 KB, image/png)
2016-03-16 20:54 UTC, Arfrever Frehtes Taifersar Arahesis
Details
Example with proper font (35.67 KB, image/png)
2016-03-17 10:24 UTC, Eike Hein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2016-03-16 20:54:58 UTC
Created attachment 97928 [details]
Screenshot

If there is at least 1 fullwidth character (e.g. hiragana, katakana, kanji, hanzi, fullwidth latin etc.) in name of window, then text of name of this window is moved downward.

Examples of how to have window with such character:
- Open e.g. https://en.wiktionary.org/wiki/%E3%81%82 in web browser.
- Set format of name of active tab in Konsole to e.g. "a".

I attach screenshot showing this problem for text of name of window of Firefox.
Comment 1 Eike Hein 2016-03-17 10:24:31 UTC
Created attachment 97935 [details]
Example with proper font

This probably just happens because your main UI font doesn't have those glyphs, so the text rendering stack fetches them from a different font, which will change the metrics for a given line to be the union of the metrics of the two fonts and can also lead to text layout problems. To avoid problems like this I recommend using a UI font with wide character coverage, e.g. Plasma 5's default font Noto Sans, which was chosen for reasons like this. I've attached a screenshot of Plasma 5.6 using Noto Sans as an example.