Using the SciSnap! library, I found the set cursor block. Now me, being the silly teenager I am, I decided to look into the code and find something interesting!
The code for the cursor defaults to url("...")
if it's not an actual cursor name, like auto, pointer, text, etc., and the cursor style supports SVG! Now that's not the oversight part. The oversight part is the image offset (url("...") 8 8
) so that the image fits the cursor hotspot perfectly. Again, since the code defaults to url("...")
, I added some bypassing that adds the offset!
The text essentially does this:
It creates an image from the SVG using URI component stuff, then adds a ")
to the text, basically closing the url("
part. Then it adds the numbers, making it ") 8 8
. Finally, like the oversight in my formatting library, it basically repeats the initial part of the code, finally making it ") 8 8, url("
. This ends up looking like $$\texttt{\color{dodgerblue}url("}\texttt{\color{limegreen}...") 8 8, url("}\texttt{\color{dodgerblue}")}$$, which is correct syntax, making it work perfectly!
(blue: original contents, green: added text)
Have fun styling your cursor to your heart's content!