How to keep font size constant in Inkscape during rescaling?

General discussions about Inkscape.
cedrusvn
Posts: 1
Joined: Fri Jun 22, 2018 6:17 pm

How to keep font size constant in Inkscape during rescaling?

Postby cedrusvn » Fri Jun 22, 2018 6:23 pm

Hi all,
I came across a problem in Inkscape I couldn't solve on my own. Currently I am creating sketches etc. for a LaTex document in Inkscape. Drawing the sketches works fine and adding text to it as well. Then I would just save it as pdf (+ this tex option) and then import it in LaTex using

Code: Select all

\begin{figure}
    \centering
    \input{testfile.pdf_tex}
    \label{fig:testfile}
    \caption{This is just a testfile}
\end{figure}

The font size and type in the sketch after compiling the document remains always the same as in the rest of my LaTex document.

However, placing the text in the right position requires a lot of iterative steps, because rescaling the sketch in Inkscape (I might find the sketch too big or too small for example) would rescale the text as well - again, just in Inkscape, luckily not in LaTex.

How do I prevent the text in Inkscape to be rescaled? Everything that should change during rescaling is the absolute position of the text boxes while the relative position and font size should remain constant.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: How to keep font size constant in Inkscape during rescaling?

Postby Moini » Sat Jun 23, 2018 4:08 am

As already said on stackexchange (I think), there's no way to do that, except for reselecting the text and reapplying the font size currently. See answer there for details: https://stackoverflow.com/questions/50810466
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: How to keep font size constant in Inkscape during rescaling?

Postby prkos » Wed Jun 27, 2018 6:27 am

A workaround could be to copy the text objects, move them outside the sketch area, scale the sketch (without the duplicate original text objexts), then copy the original text objects and paste styles only (one style at a time).

The steps are: copy an original text objext, select the relevant scaled objects, paste styles with Shift + Ctrl + V (or by going to Edit > Paste Style).

Make sure your text alignments are set appropriately to keep objects in correct relative placements.
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download


Return to “General Discussions”