答案1
需要工作(而不是 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}
答案2
问题垂直拉伸文本提供了一种应用矩形包络的解决方案,可以这么说:
使用\scalebox{⟨h-scale⟩}[⟨v-scale⟩]{⟨text⟩}
包graphics
($ texdoc grfguide
):
\documentclass[varwidth]{standalone}
\usepackage{graphics}
\begin{document}
HELLO\\[1ex]
\scalebox{2}[1]{HELLO}
\end{document}