CQ-editor icon indicating copy to clipboard operation
CQ-editor copied to clipboard

Fonts need updated to new scope

Open dirtdigger opened this issue 6 months ago • 3 comments

When running with the latest cadquery from pip and the latest cq-editor from git, I get the following error:

Exception: Invalid font prefix "fa"

qtawesome has removed the "fa" prefix for fontawesome 4 in favor of fa5 or fa6, see here: https://github.com/spyder-ide/qtawesome/issues/279

Replacing "fa" with "fa5" or "fa6" using grep/sed is not enough to fix this. It looks like most of the icon names have changed.

dirtdigger avatar May 25 '25 16:05 dirtdigger

@dirtdigger What OS are you on? I don't see that issue on Linux.

I concur with the user in that linked issue who said that they never saw the deprecation warnings.

jmwright avatar May 25 '25 16:05 jmwright

Thanks for the fast reply. I'm using Linux as well. According to pip, my installed qtawesome is 1.4.0, which was released in late February.

I can't recall having seen any deprecation warnings myself ¯_(ツ)_/¯

I was able to go through and match icons to the new fa5 and fa6 scopes. I've attached a patch if that's helpful.

fonts.patch.txt

dirtdigger avatar May 25 '25 16:05 dirtdigger

Thanks for the patch, that is helpful.

jmwright avatar May 25 '25 17:05 jmwright