qtawesome icon indicating copy to clipboard operation
qtawesome copied to clipboard

Create a default fallback icon to show in case a entry for a font is removed after a font update

Open dalthviz opened this issue 3 years ago • 2 comments

After font updates the respective *-charmap.json can have missing entries previously available. In case of complete removal of an icon from the font, QtAwesome should not throw an exception with a Invalid icon name "x" in font "y" message but show a default icon

dalthviz avatar Oct 19 '21 15:10 dalthviz

Well, I think you need to select a fallback icon in the font itself and add the corresponding entries to the font's charmap.json.

ccordoba12 avatar Oct 19 '21 15:10 ccordoba12

I was thinking in a default icon for any icon set but I guess we could add a predefined name for the default icon to be added in the corresponding *-charmap.json (something like qta-default or something like that). Although if the addition in the charmap is forgotten then we should have a default icon or the exception should be still be thrown?

Maybe we should have a fallback chain like icon from the set > defined default icon from set > default qtawesome icon ?

dalthviz avatar Oct 19 '21 16:10 dalthviz