考虑以下 MWE
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\node[anchor=west, inner sep=0pt, draw, very thin, rectangle] (a) at (0,0) {\scalebox{15}{\sffamily LARGE}};
\node[anchor=west, inner sep=0pt, draw, very thin, rectangle] (b) at (0,-4) {\scalebox{3}{\sffamily smaller text}};
\draw[blue] (a.west) ++ (0,-2cm) -- ++(0,4cm);
\draw[red] (a.west) ++ (-0.2cm,0) -- ++(0.4cm,0);
\draw[red] (a.west) ++ (0,-0.2cm) -- ++(0,0.4cm);
\draw[blue] (b.west) ++ (0,-2cm) -- ++(0,4cm);
\draw[red] (b.west) ++ (-0.2cm,0) -- ++(0.4cm,0);
\draw[red] (b.west) ++ (0,-0.2cm) -- ++(0,0.4cm);
\end{tikzpicture}
\end{document}
其结果如下:
为什么“边界框”和字母 L 之间有一些空格?我想精确删除文本周围的空白,以便 L 的垂直线和下方较小的文本完美对齐。
此外,我想缩放较小的文本,使其宽度与顶部文本完全相同。这怎么可能呢?