1

This question already has an answer here:

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

Screenshot

enter image description here

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.

marked as duplicate by Bobyandbob, egreg tikz-pgf Dec 31 '17 at 10:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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

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}

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.