Summary: | Filenames containing CJK characters are wrongly padded resulting in excessive whitespace | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | hch12907 <haochengho12907> |
Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | kfm-devel, nathroset, public.paul.meier+kde |
Priority: | NOR | ||
Version: | 24.05.2 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Screenshot of the bug
attempt to replicate the bug Red line show unequal line heights Same directory with a font designed for CJK characters and additional scripts |
Can confirm, this also happens for me with some files and directories Created attachment 172443 [details]
attempt to replicate the bug
attempt to replicate the issue using the same font, same font size and same scaling factor
Comment on attachment 172443 [details]
attempt to replicate the bug
Hello I've tried to replicate the issue using the same font, same font size and same scaling factor but I'm unable to locate the issue. This was taken using the current development session with recent build of Dolphin. Could you please provide more context about what the issue seems to be ?
Created attachment 172449 [details]
Red line show unequal line heights
Your screenshot has the bug too.
I made an illustration showing the problem more clearly.
Created attachment 172571 [details] Same directory with a font designed for CJK characters and additional scripts I can see the discrepancy when using Inter but it seems to disappear when using a font that was designed to handle CJK characters, such as the Noto Sans CJK family of fonts. Additionally, looking at the Inter website (https://rsms.me/inter/#languages), it seems that they do not cover any CJK characters. Therefore I don't think KDE can do anything about it unfortunately. |
Created attachment 171495 [details] Screenshot of the bug SUMMARY I noticed that filenames containing CJK characters are not vertical-centrally aligned in details mode, it looks like they are overly padded from the top. In icons view mode, when the files are selected, the selection box of CJK-containing filenames looks taller than the selection box of Latin-only filenames. As you can see from the screenshot, when those files are mixed with other Latin-only filenames there is excessive whitespace, which looks jarring. For example, look at Main.txt and Name 名字.txt. STEPS TO REPRODUCE 1. Create a directory containing files with Latin-only filename and mixed CJK-Latin filename. 2. In any view (icons, details, compact) you should notice the CJK-containing filenames look odd. OBSERVED RESULT Filenames wrongly rendered, with excessive whitespace EXPECTED RESULT Filenames correctly rendered SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.1.2 KDE Frameworks Version: 6.3.0 Qt Version: 6.7.2 Kernel Version: 6.9.7-arch1-1 (64-bit) Graphics Platform: Wayland Scaling factor: 125% @ 1080p ADDITIONAL INFORMATION Since this is related to text, I figured I should note the fonts used are Inter 10.5px for Latin and Source Han Sans SC for CJK. Changing to other fonts like FreeSans 11px doesn't resolve the issue, though.