Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configtools.font_is_installed: fix PySide2 compat. issue #74

Merged
merged 1 commit into from
May 31, 2024

Conversation

xiaodaxia-2008
Copy link

The condition for the follow code should be QT5 instead of PYQT5:

    if PYQT5:
        fontfamilies = QG.QFontDatabase().families()
    else:
        # Qt6
        fontfamilies = QG.QFontDatabase.families()
    return [fam for fam in fontfamilies if str(fam) == font]

@PierreRaybaut
Copy link
Collaborator

You are absolutely right.
Thanks for your contribution.

@PierreRaybaut PierreRaybaut merged commit 415462c into PlotPyStack:master May 31, 2024
3 checks passed
@PierreRaybaut PierreRaybaut changed the title using QT5 instead of PYQT5 configtools.font_is_installed: fix PySide2 compat. issue May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants