Is it possible to set independently a shape scale and a label scale, individually per node, without setting the shape's minimum size or setting sizes globally? For some shapes, there is a similar dependency with rotation, because shape border rotate
does not work for them.
There seems to be some auto-fit enabled all the time, because even using labels like `{\tiny label-text}' affects the shape's scale.
For example, I would like to use logic gate symbols with size differences exactly as in the library, e.g. the NAND gate being larger than the NOT gate. I do not want any of these symbols to follow the number of characters in its label or the label's font size. Also, different symbold may need a different minimum size, so I would need to tune that to each symbol individually and the rotation problem would still be unresolved.
On the opposite, if I want to make one of two circle symbols larger, I would still want them both have labels of the same font size.
Source which shows the dependency between scale and label size:
\documentclass{standalone}
\usepackage{tikz}
\usepackage{lmodern}
\usetikzlibrary{positioning, shapes, shapes.gates.logic.US, shadows, arrows}
\usepackage{anyfontsize}
\begin{document}
\thispagestyle{empty}
\begin{tikzpicture}[
every node/.style={line width=2mm, draw}
]
\node (input1) [circle, thick, font=\fontsize{10}{0}\selectfont] at (0,0) {x};
\node (input2) [circle, thick, font=\fontsize{10}{0}\selectfont, below=5mm of input1] {\Large xyz};
\node (input3) [circle, font=\fontsize{20}{0}\selectfont, below=5mm of input2] {x};
\node (input4) [not gate US, thick, scale=1.5, below=5mm of input3] {scale 2};
\node (input5) [not gate US, thick, scale=3, below=8mm of input4] {scale 3};
\end{tikzpicture}
\end{document}
gives what is in the left column. An approximate desired output is in the right column:
minimum size
option but no maximum. There are way to obtain shapes that are completely independent of the content. Do you want that?/pgf/inner xsep
and/pgf/inner ysep
(or the maximum of that) – at least for the shapes provided by PGF/TikZ. By default, this is0.3333em
, thus this scales with the font size. However: The sizes offont
are installed too late for it to be in effect when0.3333em
gets evaluated. You will need to usenode font
for that. (That's why the really big X of your last node has the same space around it as the normal one.)