I'm trying to make a diagram using Tikz
, however I have trouble combining; fixed text widths, centered text and font=[\large,\bf
, etc].
When the font command is used the text has a slight offset to the right.
the only idea I had, font=\noindent
has no effect.
MWE:
\documentclass[a4paper,landscape]{article}
\usepackage{tikz}
\usetikzlibrary{shapes,shadows,arrows,positioning,graphs}
\begin{document}
\centering
\begin{tikzpicture}
\thispagestyle{empty}
\tikzstyle{fontbf} = [draw,rectangle,text width=11em,text centered,font=\bf]
\tikzstyle{textbf} = [draw,rectangle,text width=11em,text centered]
\node[fontbf] (1) {centered bold text};
\node[textbf, below of=1] (2) {\textbf{centered bold text}};
\end{tikzpicture}
\end{document}