[Tex/LaTex] Preserving font size in scalebox

boxesfontsizescaling

I'm using a scalebox around a picture. There's text inside it. I'd like the text size to keep constant even if I change the scale factor.

\scalebox{0.5}{
  \begin{picture}(360,255)(0,0)%
  \put(0,0){\includegraphics{figures/basic_flow1.pdf}}
  \put(80,180){$\phi_Q$}
  \end{picture}
}

What's the best way to do this? I know that shrinking 24 pt to 12pt doesn't produce an exact copy of the usual 12pt. So just using a larger font isn't necesarily a good option.

Best Answer

So here's the solution:

\scalebox{0.5}{
  \begin{picture}(360,255)(0,0)%
  \put(0,0){\includegraphics{figures/basic_flow1.pdf}}
  \put(80,180){\scalebox{2}{$\phi_Q$}}
  \end{picture}
}

Just put a new scalebox around the text to undo the scaling.

Related Question