Skip to content

Commit

Permalink
Merge pull request #136 from xyz2tex/improve_handle_text
Browse files Browse the repository at this point in the history
Add simple test for text
  • Loading branch information
ldevillez authored Sep 11, 2023
2 parents aae339e + cd6a399 commit a634be9
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_complete_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ def test_symbol_and_use(self):
filename = "symbol_and_use"
create_test_from_filename(filename, self)

def test_text(self):
"""Test complete convert text"""
filename = "text"
create_test_from_filename(filename, self)


if __name__ == "__main__":
unittest.main()
104 changes: 104 additions & 0 deletions tests/testfiles/text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions tests/testfiles/text.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}

\begin{document}


\def \globalscale {1.000000}
\begin{tikzpicture}[y=1cm, x=1cm, yscale=\globalscale,xscale=\globalscale, inner sep=0pt, outer sep=0pt]
\node[line width=0.0265cm,anchor=south west] (text3) at (1.0, 28.7){Normal Text};



\node[line width=0.0265cm,rotate=25.9218,anchor=south west] (text4) at (1.0, 28.7){Rotated text};




\end{tikzpicture}
\end{document}

0 comments on commit a634be9

Please sign in to comment.