放大 tikz 图像中的字母

放大 tikz 图像中的字母

我想在该 tikz 图像中使用更大的字体:我已经使用 \LARGE 解决了字体问题,但是它仍然太小。

在此处输入图片描述

\documentclass[tikz, border=1cm]{standalone}
\begin{document}

\begin{tikzpicture}
\fill[cyan, rounded corners] (0,0) -- (1,5) -- (3,6) -- (5,5) -- (6,0) -- cycle;
\begin{scope}[even odd rule]
\clip[rounded corners] (10,0) -- (0,0) -- (1,5) -- (3,6) -- (5,5) -- (6.4,-2) -- ([turn]0:1) -| (11,0) -- cycle;
\draw[green!80!black, line width=50pt, rounded corners] (15,0) -- (0,0) -- (1,5) -- (3,6) -- (5,5) -- (6.4,-2);
\end{scope}
\begin{scope}[even odd rule]
\clip[rounded corners] (10,0) -- (0,0) -- (1,5) -- (3,6) -- (5,5) -- (6.4,-2) -- ([turn]0:1) -| (11,0) -- cycle (-1,-3) rectangle (11,7);
\draw[red, line width=50pt, rounded corners] (15,0) -- (0,0) -- (1,5) -- (3,6) -- (5,5) -- (6.4,-2);
\end{scope}
\draw[white, line width=15pt, rounded corners] (15,0) -- (0,0) -- (1,5) -- (3,6) -- (5,5) -- (6.4,-2);
\node at (3,4.4) {\LARGE \texttt{A}};
\node at (3,2.9) {\LARGE \texttt{I}};
\node at (3,1.4) {\LARGE \texttt{S}};
\end{tikzpicture}
\end{document}

答案1

您可以使用以下密钥scale

\documentclass[tikz, border=1cm]{standalone}
\begin{document}

\begin{tikzpicture}
\fill[cyan, rounded corners] (0,0) -- (1,5) -- (3,6) -- (5,5) -- (6,0) -- cycle;
\begin{scope}[even odd rule]
\clip[rounded corners] (10,0) -- (0,0) -- (1,5) -- (3,6) -- (5,5) -- (6.4,-2) -- ([turn]0:1) -| (11,0) -- cycle;
\draw[green!80!black, line width=50pt, rounded corners] (15,0) -- (0,0) -- (1,5) -- (3,6) -- (5,5) -- (6.4,-2);
\end{scope}
\begin{scope}[even odd rule]
\clip[rounded corners] (10,0) -- (0,0) -- (1,5) -- (3,6) -- (5,5) -- (6.4,-2) -- ([turn]0:1) -| (11,0) -- cycle (-1,-3) rectangle (11,7);
\draw[red, line width=50pt, rounded corners] (15,0) -- (0,0) -- (1,5) -- (3,6) -- (5,5) -- (6.4,-2);
\end{scope}
\draw[white, line width=15pt, rounded corners] (15,0) -- (0,0) -- (1,5) -- (3,6) -- (5,5) -- (6.4,-2);
\node[scale=4] at (3,4.4) {\texttt{A}};
\node[scale=4] at (3,2.9) {\texttt{I}};
\node[scale=4] at (3,1.4) {\texttt{S}};
\end{tikzpicture}
\end{document}

在此处输入图片描述

相关内容