This is a solution for using Square root (SQRT), cube root, nth root, and other roots formula in dynamic and input text field, extended from the article How to use subscript & superscript in dynamic and input text field.
- Download & install GG Root Sans N, GG Root Sans Radical, GG Root Sans Radicand fonts.
- Create a dynamic text field with Arial font embeded. Set the HTML property to true.
- Create a dynamic text field with GG Root Sans N font embeded.
- Create a dynamic text field with GG Root Sans Radical font embeded.
- Create a dynamic text field with GG Root Sans Radicand font embeded.
- Use HTML tag to set text to roots formula like below:
my_txt.html = true; my_txt.htmlText = "GG Root Sans<br>"; my_txt.htmlText += "<font face="GG Root Sans Radical"> </font><font face="GG Root Sans Radicand">2</font>"; my_txt.htmlText += "<font face="GG Root Sans Radical">n</font><font face="GG Root Sans Radicand">x</font>"; my_txt.htmlText += "<font face="GG Root Sans Radical">2</font><font face="GG Root Sans Radicand">3</font>"; my_txt.htmlText += "g = <font face="GG Root Sans N">f(d+e</font><font face="GG Root Sans Radical">)</font><font face="GG Root Sans Radicand">(ax+by)(ax-by)</font>";
Demo:
Download: