MSS icon indicating copy to clipboard operation
MSS copied to clipboard

qt.qpa.fonts configuration should become improved

Open ReimarBauer opened this issue 10 months ago • 4 comments

Currently on the very first start of msui it needs long to get the UI on screen. Once the fonts are available it starts fast.

The 135ms sound very small but the whole process took on my M4 five seconds.

qt.qpa.fonts: Populating font family aliases took 135 ms. Replace uses of missing font family "Sans Serif" with one that exists to avoid this cos

ReimarBauer avatar Feb 18 '25 18:02 ReimarBauer

Hi, Can you explain the issue in detail

gagan1146 avatar Feb 20 '25 16:02 gagan1146

That's all what I have by now. Someone who wants to solve this needs to read some documentations or debugs the issue and provide a solution which works on all supported OS.

You recognize it when you do an installation as described in the README and stop the time for the first start.

ReimarBauer avatar Feb 20 '25 19:02 ReimarBauer

Hi @ReimarBauer I believe this issue is caused by the "Sans Serif" font mapping in Qt5. On macOS M4, the delay might be due to Qt5's fontconfig not correctly mapping the generic "Sans Serif" font family to a native Core Text font.

anj20 avatar Mar 02 '25 14:03 anj20

@ReimarBauer can we set a common know font style like Arial , times new roman in the QApp instead of relying on Sans serif. I think on mac os , the fontconfig doesn't map to Core Text nicely hence Qt5 takes longer time to resolve it.

levi178u avatar Apr 14 '25 00:04 levi178u