0

Objective: be able to select all instances of a font in an SVG and replace it in situ with a different font and have the resulting text maintain the exact same size and relative positioning.

When operating on a single group or object, I can copy it, change the font, then paste size and it more or less accomplishes the above (it does tend to shift the object's position sometimes). However, utilizing the "select all text with this font-family" breaks this. It doesn't copy the size correctly it seems and even working around that, pasting size across multiple objects just doesn't seem to work to maintain the text objects' position relative to each other.

Is there something I'm missing? I'm fairly new to design and inkscape so very likely I'm not doing something considered basic

Before (text spaced in various container shapes): text spaced in various container shapes Select all font-family: changing font-family After: after switch Paste Size (does not maintain size relative to container): pasting size does not maintain size relative to container

  • Hi. Welcome to GDSE. What do you mean by "to maintain the text objects' position relative to each other"? Any chance you could share an example image showing what you are trying to achieve, or what is going wrong? Pictures are often better than words here. – Billy Kerr Apr 22 at 12:22
  • Thanks. examples added to hopefully show. In words, I mean that generally I've been organizing text on top of or aligned with other groups for visual clarity. And it relies on the text being certain HxW not just on an individual char but between each text group on the page. – user16565 Apr 22 at 17:08
  • The font you are changing to has much wider characters than the one being replaced and so the text won't fit in the same space. Also you seem to using Inkscape to do page layout when it's simply not designed for that purpose. It has no features for creating text tables, nor is there a way to automate the resizing of text within a text box. Inkscape has very limited text handling capabilities. You might be better using DTP software such as Scribus (which is also free). It has support for tables. Or perhaps use a word processor, or spreadsheet software.. – Billy Kerr Apr 22 at 17:26
  • Thanks. That's what I figured sadly but was hoping there was some way of doing it since "copy-change font-paste size" works pretty much perfectly for individual groups. Unfortunately I haven't found anything that does what I want to do w/r/t layout with a mix of svg graphics and text. Easiest solution for me may be just to write some secondary scripts to handle editing the entire svg page file itself since it's just xml – user16565 Apr 22 at 18:14
  • You can import SVG graphics into other software, and if not SVG, then you can export graphics as PNG form Inkscape for use in almost any software. I don't think there's any need to do the actual layout in Inkscape. – Billy Kerr Apr 22 at 19:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.