Rev 15760 | Rev 16827 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 15760 | Rev 16722 | ||
---|---|---|---|
Line 683... | Line 683... | ||
683 | if( typeof(text_abc[p]) === 'undefined'){\ |
683 | if( typeof(text_abc[p]) === 'undefined'){\ |
684 | var txt = conv_to_unicode(document.getElementById('input_text_r').value);\ |
684 | var txt = conv_to_unicode(document.getElementById('input_text_r').value);\ |
685 | text_abc.push(txt);\ |
685 | text_abc.push(txt);\ |
686 | };\ |
686 | };\ |
687 | half = 0.5*( context_text.measureText(text_abc[p]).width );\ |
687 | half = 0.5*( context_text.measureText(text_abc[p]).width );\ |
- | 688 | if(text_abc[p].indexOf('_') > 0 || text_abc[p].indexOf('^') > 0 ){\ |
|
688 | context_text.fillText(text_abc[p],text_x[p] - half,text_y[p] + height);\ |
689 | draw_subsup(context_text,text_x[p],text_y[p],text_abc[p],4);}else{context_text.fillText(text_abc[p],text_x[p] - half,text_y[p] + height);};\ |
689 | };\ |
690 | };\ |
690 | };var canvas_text = create_canvas%d(10%d,xsize,ysize);\ |
691 | };var canvas_text = create_canvas%d(10%d,xsize,ysize);\ |
691 | var context_text = canvas_text.getContext(\"2d\");\ |
692 | var context_text = canvas_text.getContext(\"2d\");\ |
692 | context_text.font = multifont_family;\ |
693 | context_text.font = multifont_family;\ |
693 | context_text.fillStyle = \"rgba(\"+multifont_color+\",\"+multistrokeopacity[%d]+\")\";\ |
694 | context_text.fillStyle = \"rgba(\"+multifont_color+\",\"+multistrokeopacity[%d]+\")\";\ |