Re: Set font for whole file without losing other formatting (in SVG?)

Tyler Durden <[email protected]> Sun, 5 May 2019 17:50:50 -0400
Newsgroups gmane.comp.graphics.inkscape.user
Message-ID <CAG0esdVZN3_x+_kvOQfakyXVhze0ytQwM8spBj-4xFTaEni5LQ@mail.gmail.com>
--===============5135054233237659588==
Content-Type: multipart/alternative; boundary="000000000000bad85305882afa28"

--000000000000bad85305882afa28
Content-Type: text/plain; charset="UTF-8"

Did you try using the text formatting controls in the controls bar? Family
and size can be controlled there without clobbering size, super/sub etc.

http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Text-Formatting.html

Have a nice day.
TD

On Sun, May 5, 2019 at 2:02 PM BPJ <[email protected]> wrote:

> It seems I cannot change the font family globally in all text
> objects in the GUI using the font dialog. It also seems that when
> I change the font family for an individual object through the font
> dialog subscript and size formatting for parts of the text is
> lost. Thus I'm looking to change the font by editing the SVG
> produced by Inkscape in a text editor, but that seems to be more
> complicated than I expected. Upon inspecting the SVG produced by
> Inkscape I see that each `<text>` *and* `<tspan>` element has a
> `style` attribute with comprehensive font style info ---
> essentially all the font formatting properties.  This seems a bit
> wasteful since I use the same font at the same size throughout the
> drawing, only adding the occasional bold weight and some
> subscripts here and there.  It may make little difference given
> the (many) paths in the drawing, but is there any way to set
> things up so that most font properties are inherited from/set once
> in as high a node as possible? I'm looking to change the font face
> used and changing it by search&replace in lots of places --- the
> font name appears twice in each `<text>` or `<tspan>` `style`
> attribute! --- seems like a heavy-handed way to do it.
>
> /bpj
>
>
>
> _______________________________________________
> Inkscape-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/inkscape-user
>

--000000000000bad85305882afa28
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Did you try using the text formatting controls in the cont=
rols bar? Family and size can be controlled there without clobbering size, =
super/sub etc.<div><br></div><div><a href=3D"http://tavmjong.free.fr/INKSCA=
PE/MANUAL/html/Text-Formatting.html">http://tavmjong.free.fr/INKSCAPE/MANUA=
L/html/Text-Formatting.html</a>=C2=A0=C2=A0<br></div><div><br></div>Have a =
nice day.<div>TD</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr"=
 class=3D"gmail_attr">On Sun, May 5, 2019 at 2:02 PM BPJ &lt;<a href=3D"mai=
lto:[email protected]">[email protected]</a>&gt; wrote:<br></div><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid r=
gb(204,204,204);padding-left:1ex">It seems I cannot change the font family =
globally in all text <br>
objects in the GUI using the font dialog. It also seems that when <br>
I change the font family for an individual object through the font <br>
dialog subscript and size formatting for parts of the text is <br>
lost. Thus I&#39;m looking to change the font by editing the SVG <br>
produced by Inkscape in a text editor, but that seems to be more <br>
complicated than I expected. Upon inspecting the SVG produced by <br>
Inkscape I see that each `&lt;text&gt;` *and* `&lt;tspan&gt;` element has a=
 <br>
`style` attribute with comprehensive font style info --- <br>
essentially all the font formatting properties.=C2=A0 This seems a bit <br>
wasteful since I use the same font at the same size throughout the <br>
drawing, only adding the occasional bold weight and some <br>
subscripts here and there.=C2=A0 It may make little difference given <br>
the (many) paths in the drawing, but is there any way to set <br>
things up so that most font properties are inherited from/set once <br>
in as high a node as possible? I&#39;m looking to change the font face <br>
used and changing it by search&amp;replace in lots of places --- the <br>
font name appears twice in each `&lt;text&gt;` or `&lt;tspan&gt;` `style` <=
br>
attribute! --- seems like a heavy-handed way to do it.<br>
<br>
/bpj<br>
<br>
<br>
<br>
_______________________________________________<br>
Inkscape-user mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">In=
[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/inkscape-user" rel=
=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/listi=
nfo/inkscape-user</a><br>
</blockquote></div>

--000000000000bad85305882afa28--


--===============5135054233237659588==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============5135054233237659588==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Inkscape-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/inkscape-user

--===============5135054233237659588==--