How can one change the font/fontfamily for the text of a tikz node? I can't seem to find it anywhere.
\begin{tikzpicture}[font=\ttfamily]
\node[text centered, color=white, rotate=-90, shape=rectangle, fill=black,
font=\huge, inner sep=3pt,minimum height=1cm] at (0,0) {\textbf{Some Text}}
...Another node goes here that is "snapped" to the next one along one of its
sides and not hard coded...
\end{tikzpicture}
I'd like to put some text right next to the first node without having to hard code the distance(as some text may change)
Best Answer
TikZ is very well integrated to TeX and you can use the same methods to modify some texts. For example you can use TeX's groups outside the tikzpicture environment or inside. You can use specific options inside a tikzpicture environment or inside a node. The main rule is that the text inside a node used the font defined outside if you don't use a specific option to change the font.
Now to put some text right the main node, you can use
label= ...
to define a label node or you can use thepositioning
library or you can useanchor=