Each time I run my python script I'm facing this warning:
qt.qpa.fonts: Unable to enumerate family
What can be the cause of this warning? How do I fix this warning? If this warning can't be fixed, how can this hide or silenced?
Edit: I've tried to install all the fonts in the warning but it still persists.
The warning is on the left side of the picture and the list of fonts installed in my Windows 10 system is on the right side.
I finally found what's wrong! The fonts listed in the warning are somehow incompatible with PyQt5, so I just need to delete them. This is the link on how to delete fonts in Windows 10 (From www.tenforums.com).
Press the Win+R keys to open Run, type regedit into Run, and click/tap on OK to open Registry Editor.
Navigate to the key below in the left pane of Registry Editor. (see screenshot below)
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Fonts
In the right pane of the Fonts key, right click on the string value for the font (ex: "Agency FB Bold (TrueType)") you want to delete, and click/tap on Delete. (see screenshot above)
Be sure to make note of the font file name (ex: "AGENCYB.TTF") you are deleting before you delete the string value.
Click/tap on Yes to confirm. (see screenshot below)
When finished deleting fonts, close Registry Editor.
Sign out and sign in again to the same account.
Open File Explorer (Win+E).
Copy and paste %LocalAppData%\Microsoft\Windows\Fonts
into the address bar of File Explorer, and press Enter.
Delete the same font(s) (ex: "AGENCYB.TTF") referenced from step 3 above. (see screenshot below)
You can now close File Explorer if you like.