I’m doing something similare. If the card has an ease below a certain threshold, I use the font sansforgetica
see in my repo : GitHub - thiswillbeyourgithub/Clozolkor: enhancing "cloze one by one" script by iTraveller
It works by creating
then in the styling :
span.ease1300 { font-family: “Sans Forgetica”; }
span.ease1350 { font-family: “Sans Forgetica”; }
span.ease1400 { font-family: “Sans Forgetica”; }
span.ease1500 { font-family: “Sans Forgetica”; }
span.ease1550 { font-family: “Sans Forgetica”; }
span.ease1600 { font-family: “Sans Forgetica”; }
span.ease1650 { font-family: “Sans Forgetica”; }
span.ease1700 { font-family: “Sans Forgetica”; }
span.ease1750 { font-family: “Sans Forgetica”; }
span.ease1800 { font-family: “Sans Forgetica”; }
Just figured you might be interested Your code for detecting leeches is far clearner than mine… Actually I don’t think I implemented it in the end.