It is working on AnkiDesktop but due to character encoding It is not working in Ankidroid. I have tried many solutions but It is failed to load. In Anki Desktop character length is correct but in Ankidroid same character length is incorrect. Ex:- '比如' In Anki Desktop Length is 2, In Ankidroid Length is 7
So may be there is error due to character encoding. GitHub link to code
Finally I have implemented it using existing js library HanziWriter. https://github.com/infinyte7/Anki-xiehanzi