mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
4.2.2 breaks font fallback on macOS #9985
Labels
No labels
Accessibility
AppImage
Bounty
Build system
CI
Can't reproduce
Code cleanup
Confirmed bug
Confirmed bug
Core
Crash
Data loss
Discussion
Docker
Documentation
Duplicate
Feature
Feature request
Feature request
Feature request
Filters
Flatpak
GUI
Has workaround
I2P
Invalid
Libtorrent
Look and feel
Meta
NSIS
Network
Not an issue
OS: *BSD
OS: Linux
OS: Windows
OS: macOS
PPA
Performance
Project management
Proxy/VPN
Qt bugs
Qt6 compat
RSS
Search engine
Security
Temp folder
Themes
Translations
Triggers
Waiting diagnosis
Waiting info
Waiting upstream
Waiting web implementation
Watched folders
WebAPI
WebUI
autoCloseOldIssue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/qBittorrent#9985
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iichttt on GitHub (Mar 27, 2020).
Please provide the following information
qBittorrent version and Operating System
qBittorrent 4.2.2
macOS 10.15.4
What is the problem
In 4.2.2, font fallback no longer follows system rules. Kanji characters always fall back to PingFang first, whatever the system preferred language is. 4.2.1 doesn’t have this issue. And oddly, kana characters seem fine.
↓ This is 4.2.2

↓ This is 4.2.1

What is the expected behavior
When Japanese is the system preferred language, all CJK characters should fall back to Hiragino Sans first, then Hiragino Sans GB, then PingFang, a behavior hardcoded in CoreText.
Extra info (if any)
Though in 4.2.1 the issue mentioned above doesn’t occur, still font fallback is broken. It should follow CoreText rules as described above.
↓ The 2nd and 4th characters are visually larger than the 1st and 3rd ones.

@maboroshin commented on GitHub (Mar 27, 2020):
I didn't develop this software. But I'm creating a theme.
I don't have a Mac. In the theme, I can specify a font-family. Can you write the font-family as CSS? Please let me know if you can.
And, Are you using a 4K screen? Related issue : https://github.com/qbittorrent/qBittorrent/issues/12295
@iichttt commented on GitHub (Mar 30, 2020):
It’s recommended by Apple to always use the -apple-system alias, so a standard implementation for macOS would be:
font-family: -apple-system, sans-serif;. But it probably won’t work in Qt’s style sheets, since -apple-system is specific to WebKit.So to mimic -apple-system’s behavior, an acceptable implementation would be:
font-family: ".SFNS-Regular", ".HiraKakuInterface-W3”, ".HiraginoSansGBInterface-W3", sans-serif;, as far as font weights are not considered.Chinese (simplified and traditional) users may not prefer this flavor, so for them it should be:
font-family: ".SFNS-Regular", "PingFang SC", sans-serif;andfont-family: ".SFNS-Regular", "PingFang TC", sans-serif;, respectively. But I’m not sure whether a language-specific implementation like this can be achieved.No, I’m using a 2K screen. The issue I mentioned is not related to HiDPI, AFAIK.
@maboroshin commented on GitHub (Apr 2, 2020):
Thank you. This issue maybe related to: Improve Transfer list architecture. And 4.2.3 is released. You can also try it.
I created:
It is a theme in the options. The program's CSS is not "Modern". So, "-apple-system" may not work. Please try 2 themes (jp and sys).
@iichttt commented on GitHub (May 2, 2020):
Actually the issue is not limited to the transfer list. All GUI elements are affected.
Can confirm that 4.2.3-4.2.5 didn’t fix the issue.
The theme files didn’t work either.
It’s quite odd that only kanjis are affected, so some mechanism similar to
unicode-rangemust’ve been specified.@maboroshin commented on GitHub (May 2, 2020):
Thanks for the test. I can't support you any more.
@luzpaz commented on GitHub (Nov 18, 2023):
@cheeexq can you still reproduce on latest stable ?