summaryrefslogtreecommitdiff
path: root/graphics/asymptote/examples/textpath.asy
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/asymptote/examples/textpath.asy
Initial commit
Diffstat (limited to 'graphics/asymptote/examples/textpath.asy')
-rw-r--r--graphics/asymptote/examples/textpath.asy10
1 files changed, 10 insertions, 0 deletions
diff --git a/graphics/asymptote/examples/textpath.asy b/graphics/asymptote/examples/textpath.asy
new file mode 100644
index 0000000000..1fc105364b
--- /dev/null
+++ b/graphics/asymptote/examples/textpath.asy
@@ -0,0 +1,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);