summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples/textpath.asy
blob: 1fc105364beaf1e802cce27c1cb1642b924e8eb3 (plain)
1
2
3
4
5
6
7
8
9
10
size(300);

fill(texpath(Label("test",TimesRoman())),pink);
fill(texpath(Label("test",fontcommand('.fam T\n.ps 12')),tex=false),red);

pair z=10S;

fill(texpath(Label("$ \sqrt{x^2} $",z,TimesRoman())),pink);
fill(texpath(Label("$ sqrt {x sup 2} $",z,fontcommand('.fam T\n.ps 12')),
             tex=false),red);