From fd50d9ed360b3653589c10a9ea6973bc7b842f24 Mon Sep 17 00:00:00 2001 From: Leon Drexhage Date: Fri, 17 Nov 2023 17:42:18 +0100 Subject: [PATCH] Add test cases for text-anchor --- tests/testfiles/text.svg | 36 ++++++++++++++++++++++++++++++++++++ tests/testfiles/text.tex | 12 ++++++++++++ 2 files changed, 48 insertions(+) diff --git a/tests/testfiles/text.svg b/tests/testfiles/text.svg index a5547a4..c891317 100644 --- a/tests/testfiles/text.svg +++ b/tests/testfiles/text.svg @@ -100,5 +100,41 @@ style="stroke-width:0.264583" x="4.6224823" y="13.365354">Rotated text + Start Text + Middle Text + End Text diff --git a/tests/testfiles/text.tex b/tests/testfiles/text.tex index 3d98fcb..2d872e3 100644 --- a/tests/testfiles/text.tex +++ b/tests/testfiles/text.tex @@ -16,6 +16,18 @@ + \node[anchor=south west,line width=0.0265cm] (text5) at (1.0, 28.2){Start Text}; + + + + \node[anchor=south,line width=0.0265cm] (text6) at (1.0, 27.7){Middle Text}; + + + + \node[anchor=south east,line width=0.0265cm] (text7) at (1.0, 27.2){End Text}; + + + \end{tikzpicture} \end{document}