I have a TikZ/PGF file created directly by a graphing package of the form \begin{tikzpicture}{dimensions} ... \end{tikzpicture}. The file uses \pgftext[...]{\selectfont{Some text here or \boldmath$math$}} to render text.
By default, when I include the file in my document, the text is typeset in the default font for my document (Latin Modern Serif). However, I wish for all of my figures/graphs to be typeset in a sans-serif font (Latin Modern Sans). How can I go about this?
Ideally, I would like to accomplish this without having to edit the file directly (so just changing the LaTeX around where I include it).
Update: Minimal Example
\begin{tikzpicture}
\pgftext{\selectfont{Hello \boldmath$W \times orld$}}
\end{tikzpicture}
Anything which can correctly set that piece of text to be sans-serif should do the trick.

\nodewith itsfontoption instead of\pgftext(in atikzpicture!) and\selectfont... – Paul Gaborit Nov 03 '14 at 22:40