Skip to content

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

Merged
dalthviz merged 1 commit intospyder-ide:masterfrom
kumattau:nohinting
Feb 28, 2022
Merged

PR: Disable font hinting to mitigate tremulous spinning to some extent#203
dalthviz merged 1 commit intospyder-ide:masterfrom
kumattau:nohinting

Conversation

@kumattau
Copy link
Copy Markdown
Contributor

Hi @dalthviz.

This PR is to mitigate #39 to some extent.

As #202 (comment), 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

Copy link
Copy Markdown
Member

@dalthviz dalthviz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kumattau for keep checking into this! I left a comment to add a reference to the issue here. Otherwise this LGTM 👍

Comment thread qtawesome/iconic_font.py

painter.setFont(iconic.font(prefix, draw_size))
font = iconic.font(prefix, draw_size)
if animation is not None:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a comment here referencing the issue?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the comment "Disable font hinting to mitigate tremulous spinning to some extent".
Is it as expected?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds good 👍 it's just missing the addition of something like See spyder-ide/qtawesome#39 at the end

Copy link
Copy Markdown
Contributor Author

@kumattau kumattau Feb 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added more See spyder-ide/qtawesome#39 at the end.

@dalthviz dalthviz added this to the v1.2.0 milestone Feb 28, 2022
@dalthviz dalthviz changed the title [PR] Disable font hinting to mitigate tremulous spinning to some extent PR: Disable font hinting to mitigate tremulous spinning to some extent Feb 28, 2022
Copy link
Copy Markdown
Member

@dalthviz dalthviz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kumattau !

@dalthviz dalthviz merged commit 9af5b13 into spyder-ide:master Feb 28, 2022
@kumattau kumattau deleted the nohinting branch February 28, 2022 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants