To duplicate the answer I gave on the LaTeX Community site...
You could try \resizebox from the graphicx package. See its documentation, page 7:
\resizebox{1in}{!}{Some text}
This will give "Some text" which is exactly 1 inch long. The !
for the second argument means to vary the height by whatever it needs to in order to maintain the aspect ratio. If you did {!}{1in}
it would be 1 inch tall instead. If you specify both parameters, it'll be stretched disproportionally so that it is exactly a rectangle of that size, and so on.
Needs work (and not a TiKZ text effect
):
\documentclass[border=5pt, tikz, mult]{standalone}
\usetikzlibrary{positioning,calc}
\begin{document}
\begin{tikzpicture}
\coordinate (o) at (0,0);
\def\j{o}
\foreach \i [count=\ino] in {T,E,X,T,-,E,F,F,E,C,T}
{
\node (\ino) [scale=\ino*\ino, right=0pt of \j, inner sep=0pt, outer sep=0pt] {\i};
\global\let\j\ino
}
\path [draw] (1.north east) -- (\j.north west) -| (\j.south east) -- (\j.south west) -- (1.south west) -- cycle;
\end{tikzpicture}
Best Answer
A version with
expl3
and looping of\str
variable.