spyder-ide / qtawesome

Iconic fonts in PyQt and PySide applications
https://qtawesome.readthedocs.io/en/latest/index.html
MIT License
802 stars 105 forks source link

PR: Disable font hinting to mitigate tremulous spinning to some extent #203

Closed kumattau closed 2 years ago

kumattau commented 2 years ago

Hi @dalthviz.

This PR is to mitigate #39 to some extent.

As https://github.com/spyder-ide/qtawesome/pull/202#issuecomment-1031631561, the method using QRawFont and QPainterPath does not support all fonts supported by QFont. So, I think the method is optional.

Even if QFont is used, by disabling font hinting, the tremulous spinning seems to be mitigated to some extent. So, I think it is better that the font hinting is disabled as default when animation.

left: default (enable) hinting, right: disable hinting Animation