Inkscape.org
Beginners' Questions Displaying old Inkscape documents - font size.
  1. #1
    Cartoholic Cartoholic @Cartoholic

    Some of my maps created a few years ago with carefully arranged text at point sizes 4.5 and 5.6 display OK with my latest Inkscape version, but the lettering is all slightly enlarged, which ruins the positioning - although the programme assures me they are still at the correct size.  I have a vague recollection of being told a while ago about an update which affected older documents.

    Is there a way to change them en bloc or (heaven forbid) will I have to address each one manually?  If so should I calculate the difference and use new reduced font sizes?

  2. #2
    Paddy_CAD Paddy_CAD @Paddy_CAD

    Select a text block you want to adjust. Open the XML Editor [Edit > XML Editor...] or [shift+ctrl+x].

    The upper panel highlights the selected text object. In my case, <text id="text7">. In the lower panel you'll see object properties (or XML attributes) and their values. 

    Look for the style property and click the value to open an editing window. One entry in my list is font-size: 4.9389px;. Select and copy this line.

    Now open the Find dialog [Edit > Find/Replace...] or [ctrl+f]. Go to [Find: xxxx] and paste the text you copied. Delete the space in the middle. (Inkscape added this for readability. It doesn't appear in the svg code.) [Search in:Properties] [Find]. You should see on the canvas a selection containing all objects with this font size. 

    Back to the Find dialog. [Replace: font-size:4px;] [Replace All].

  3. #3
    Paddy_CAD Paddy_CAD @Paddy_CAD

    This demonstrates once again that Inkscape is not only a vector drawing application, but equally an SVG text editor with a graphical user interface.

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Displaying old Inkscape documents - font size.