I'm designing some icons with TikZ to be used in my text. As a working example for this question let's a take a simple arrow:
\tikz[->]{\draw[>=stealth] (0,0)--(1,0);}
How can I treat this picture as if it was a regular "character" in my text? So that it automatically scales to the surrounding fontsize, color, baselineskips, and so on? For example, if I put my TikZ in a \def\myArrow{\tikz{...}} and use it like
Lorem Ipsum \myArrow Dolorem \dots
I want to behave my drawn arrow just as if it was a regular character. I know that I can use scale and baseline options from the \tikz command and do a lot of my own calculation, but this seems way to complicated and error-prone.
What is the most TeX/LaTeX/TikZ conform way to automatially align and scale "inline" TikZ pictures to the surrounding text?


tikzpictures arise if you use these intikzpictureenvironments.] – cfr Jan 27 '16 at 04:00