Anki add-on: Randomize Fonts New

Update/rewrite of my old addon: https://ankiweb.net/shared/info/1603486068 This one is "better" in that you can select which cards ought to have their fonts randomized depending on a bunch of different criteria: Note contains field with name X Note contains field with contents matching X Note contains field with contents of length X Note contains field with X many Kanji Note has tags X (and/or) Y (and/or) Z... Note's deck name matches X Note's type name matches X Card is in state X Card has a success rate <|<=|==|>=|>|!= X Card has been passed X times To configure: Go to Tools > Configure Random Fonts On the Search tab, check the box next to the criteria you would like to use, the fill out whatever values you'd like to use for that criteria On the "Configure Fonts" tab, disable any fonts which you don't want to be considered when a random font is chosen for that language. In your card template, add the name of the language that should be used as a class of the field. i.e. "<span class='Japanese'>{{Japanese}}</span>" Now, while you are reviewing, each card will be evaluated against your criteria. If it matches, the fonts will be randomized. Notes: * I do not control which fonts are available for each language, Qt does. If it decides that your font does not support Japanese characters, it will not appear under "Japanese" in the "Configure Fonts" tab. Maybe find a different language that that font does appear under and use that instead? * Forgive me if the UI/UX isn't that great. I'm not a designer and also I had this looking the way I wanted in Qt5, then the change to Qt6 changed things a lot. * If you want to see the name of the font which was randomly picked on each card, there is a hidden item with an ID of the name of the language that you can show with css. For example, "#JapaneseFontName { display: inline-block !important; }". Style this to your liking. * The full list of languages can be found in the dropdown on the "Configure Fonts" tab or here (Ignore the "QFontDatabase::" prefix): https://doc.qt.io/qt-6/qfontdatabase.html#WritingSystem-enum I'll get this up to GitHub soon. Let me know if you run into any issues or have any suggestions.