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

addApplicationFont Locks fonts from reading #125

Closed
listyque opened this issue Oct 16, 2019 · 3 comments · Fixed by #138
Closed

addApplicationFont Locks fonts from reading #125

listyque opened this issue Oct 16, 2019 · 3 comments · Fixed by #138
Assignees
Labels
Milestone

Comments

@listyque
Copy link
Contributor

When app using qtawesome executed another process can't access ttf files to read or delete.

Possible fix:

with open(os.path.join(directory, ttf_filename), 'rb') as font_data:
    id_ = QFontDatabase.addApplicationFontFromData(QByteArray(font_data.read()))
font_data.close()

@ccordoba12
Copy link
Member

Please submit a pull request for this. Thanks!

@listyque
Copy link
Contributor Author

Hi. I've been busy last days. Will make PR in a few days. Thanks

@ccordoba12
Copy link
Member

Great!! Thanks a lot for your help!

@goanpeca goanpeca self-assigned this Feb 10, 2020
@goanpeca goanpeca added this to the v0.7.0 milestone Feb 10, 2020
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 a pull request may close this issue.

3 participants