html5 canvas - How to add subscript and superscript text in kinetic text -


i using kinetic.js create text object in canvas. need create text object subscript , superscript e.g: h2o (here '2' subscript) , not able create kinetic text object subscript.

please me if knows solution. thanks.

there's no native support subscripts/superscripts in kineticjs text objects.

option#1: use font includes subscripted characters.

option#2: use kinetic shape object. shape object used create custom objects. can use regular html canvas filltext() calls inside shape object's drawfunc function. here custom shape tutorial started: http://www.html5canvastutorials.com/kineticjs/html5-canvas-kineticjs-shape-tutorial/


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -