change text in multiple textboxes at once?

Post questions on how to use or achieve an effect in Inkscape.
linebender
Posts: 57
Joined: Fri Feb 11, 2011 3:46 am

change text in multiple textboxes at once?

Postby linebender » Wed Sep 07, 2011 8:20 am

I have a bunch of text that I need to be the same..font, size, etc. but these little bits of text are each in their own text box. I have been doing each one by hand..be SO nice if I could get them en masse.

Is there a way?

thank you!

lb

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

Re: change text in multiple textboxes at once?

Postby prkos » Wed Sep 07, 2011 10:11 am

You can use the Paste Style option. Edit one of the object to your desired style, copy it (Ctrl + C), select all of the objects you want changed and do Paste Style (Shift + Ctrl + V).
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

linebender
Posts: 57
Joined: Fri Feb 11, 2011 3:46 am

Re: change text in multiple textboxes at once?

Postby linebender » Wed Sep 07, 2011 10:19 am

sweet!

thank you, prkos!

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: change text in multiple textboxes at once?

Postby ~suv » Wed Sep 07, 2011 6:13 pm

linebender wrote:I have a bunch of text that I need to be the same..font, size, etc. but these little bits of text are each in their own text box. I have been doing each one by hand..be SO nice if I could get them en masse.

Is there a way?

  1. With the Select tool (s or <F1>) select all the text objects you want to change
    (to share the same font family, font size and color).
  2. Switch to the Text tool (keyboard shortcut: t).
  3. In the Text tool context, use the options on the controls bar to change the attributes (family, size, style, alignment).
    The changes will apply to all text objects selected in step 1.
  4. Switch back to the Select tool (click on the icon in the tool box).

malonzo47
Posts: 3
Joined: Thu Jun 19, 2014 4:39 am

Re: change text in multiple textboxes at once?

Postby malonzo47 » Thu Jun 19, 2014 4:43 am

Hello --

I have tried both of the solutions suggested above with no success. The "shift" + "ctrl" + "V" seemed promising but didn't do anything for me. As for the other solution: it seems that as soon as I switch to the text tool, there is no longer any meaningful connection to the text boxes I previously selected. Yes, they are still individually outlined by dashed lines, but adjusting ANY of the text properties does nothing.

Does anyone have any thoughts? Is this a bug or something that I'm possibly doing wrong?

Thanks,
Mike

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: change text in multiple textboxes at once?

Postby ragstian » Thu Jun 19, 2014 1:42 pm

Hi.

Can we have a look at one of your files?

You might be able to use the 'replace' function in a text-editor.
In some editors you can use 'regular expressions' to find almost anything containing some text and replace it with something else.

Failing that a small program will work for you as well.
To write such a program we need one of your files!

RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

malonzo47
Posts: 3
Joined: Thu Jun 19, 2014 4:39 am

Re: change text in multiple textboxes at once?

Postby malonzo47 » Sat Jun 21, 2014 2:58 am

Hi Ragnar --

Here is an example file where I cannot bulk change the text.

Thanks for your help!
Mike
Attachments
structural_metrics_against_UFORE_analogs.svg
I'd like to change the font size of all the numbers.
(214.65 KiB) Downloaded 454 times

malonzo47
Posts: 3
Joined: Thu Jun 19, 2014 4:39 am

Re: change text in multiple textboxes at once?

Postby malonzo47 » Sat Jun 21, 2014 3:07 am

Hi again --

Ragnar -- Good point on the text editor thing. I can see that working. BUT: here's a new wrinkle that I don't understand. The file I generated (Matlab --> PDF) initially specified a font size of 9. When I look at the "font-size" attribute in the svg opened in a text editor, the size is indeed very near 9. However, when I highlight the text in Inkscape, I see that the size is 7.54. What does this discrepancy imply? Is one "true" and one not?

Thanks again,
Mike

EDIT: Nevermind. I see that this issue is different. Seems that Inkscape measures in pixels rather than points for fonts. Quite confusing.

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: change text in multiple textboxes at once?

Postby ragstian » Sat Jun 21, 2014 5:42 am

Hi.

I reckon the 'change' in font size comes from the fact that the DPI (Dots Per Inch) of the PDF file is 72 versus the Inkscape default is 90.
You can set your import to import as 72 DPI or have your matlab save the PDF with 90 DPI.
( Or you can select all and scale by (90/72) - you can type the expression direct in the scale dialog - no need to calculate)

I can change the text size- in your file - all at once - by;
Select one text object, go to edit; Select Same Object Type, shortcut - (Shift Alt A),
Change to text mode (F8)
Change font type and/or size.

I am using Developers version of Inkscape; 0.48+devel r13425

RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

ila.gina
Posts: 1
Joined: Fri Jan 11, 2013 12:35 am

Re: change text in multiple textboxes at once?

Postby ila.gina » Sat Nov 24, 2018 2:19 am

I also tried solution 1 and 2, but they don't seem to work.

I may have problems with the selection process. I'm selecting the text by clicking on all the boxes I want to include. But when I open the text editor, another text box is actually displayed. Any clue?

Alternatively, how do I implement solution 3?

Thanks!!
Ilaria

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: change text in multiple textboxes at once?

Postby tylerdurden » Sat Nov 24, 2018 1:49 pm

It may be better to use the text-tool in the lefthand toolbox, not the Font/Text dialog.

For more in-depth help, please upload an example file.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/


Return to “Help with using Inkscape”