[Tex/LaTex] How to scale text in SVG

inkscapesvg

I use Inkscape to convert an SVG to pdf latex, after the conversion I want to scale the image so it matches the second image. But the text does not scale accordingly to the boxes. I use the following code to render the first image. Does anyone know how I can scale the boxes and the text, so it matches the second image?

\usepackage{svg}


\begin{figure}[ht] 
    \centering 
    \includesvg[width=0.7\textwidth]{someimage} 
    \caption{foo} 
    \label{bar} 
\end{figure}

Wrongly Scaled image

Image should scale to this

Best Answer

There are a few different possibilities:

  • \fontsize{8}{10}\selectfont (or whatever size is appropriate) to use a smaller font size.

  • use the same font size as in your document already during the design process in inkscape

  • or, as Harald Hanche-Olsen pointed out in his comment include the graphic with a larger size and scale it down using \scalebox or similar tools.

Related Question