# How to rotate a symbol in tikz? [duplicate]

In some of my tikz pictures I use symbols from the fontawesome package.

Screenshot

Question

How can I rotate symbols in tikz?

MWE

\documentclass[border=2mm]{standalone}
\usepackage{tikz}
\usepackage{fontawesome}

\begin{document}

\begin{tikzpicture}

% Rocket
\draw (0,0) node {\faRocket};
% Rectangle
\node [draw, thick, shape=rectangle, minimum width=3cm, minimum height=2cm, anchor=center] at (0,0) {};

\end{tikzpicture}

\end{document}


What I tried so far

\draw[rotate=45] (0,0) node {\faRocket}; doesn't do the trick.

• Maybe not the best solution, but did you try \draw (0,0) node[rotate=45] {\faRocket};? Dec 31, 2017 at 10:30
• Well, I didn't. This does the trick! Dec 31, 2017 at 10:31

To rotate the rocket symbol you could try the following:

\documentclass[border=2mm]{standalone}
\usepackage{tikz}
\usepackage{fontawesome}

\begin{document}

\begin{tikzpicture}

% Rocket
\draw (0,0) node[rotate=45] {\faRocket};
% Rectangle
\node [draw, thick, shape=rectangle, minimum width=3cm, minimum height=2cm, anchor=center] at (0,0) {};

\end{tikzpicture}

\end{document}