On Mon, Jun 12, 2023 at 06:41:59PM +0900, Akira Yokosawa wrote: > Depending on fontconfig setting of a build system, it chooses > one of available sans-serif font families for generic font in > SVG files while SVG --> PDF conversion by Inkscape. > > utilities/fixsvgfonts{-urwps}.sh scripts explicitly converted it > into "Nimbus Sans", which is a clone of Helvetica. > > "DejaVu Sans", which originated from "Bitstream Vera", is slightly > wider than Helvetica and it is the fallback of Paul's setting. > > Update fixsvgfonts{-urwps}.sh so that the explicit conversion meets > Paul's expectation. > > Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx> > --- > Hi Paul, > > This change assumes "fc-match sans-serif" returns "DejaVu Sans" > under your setting. The slight width mismatch causes texts you > centered inside boxes to be left shifted slightly. > > If you don't see "DejaVu Sans" from the command above, what does > it say? $ fc-match sans-serif DejaVuSans.ttf: "DejaVu Sans" "Book" So it appears you assumption is correct. You know, I distinctly recall a time when the concern was a lack of machine-usable fonts. ;-) Queued and pushed, thank you!!! The new look of Figure 15.2 is much improved, very good! Thanx, Paul > Thanks, Akira > -- > utilities/fixsvgfonts-urwps.sh | 2 +- > utilities/fixsvgfonts.sh | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/utilities/fixsvgfonts-urwps.sh b/utilities/fixsvgfonts-urwps.sh > index 21eb15349063..5af10514a4d8 100644 > --- a/utilities/fixsvgfonts-urwps.sh > +++ b/utilities/fixsvgfonts-urwps.sh > @@ -8,7 +8,7 @@ > sed -e 's+:Helvetica+:Nimbus Sans+g' \ > -e 's+="Helvetica+="Nimbus Sans+g' \ > -e 's+:Sans+:Nimbus Sans+g' \ > - -e 's+:sans-serif+:Nimbus Sans+g' \ > + -e 's+:sans-serif+:DejaVu Sans+g' \ > -e 's+:Courier+:Nimbus Mono PS+g' \ > -e 's+="Courier+="Nimbus Mono PS+g' \ > -e 's+:monospace+:DejaVu Sans Mono+g' \ > diff --git a/utilities/fixsvgfonts.sh b/utilities/fixsvgfonts.sh > index 1fa4fedb2829..d75becdeef81 100644 > --- a/utilities/fixsvgfonts.sh > +++ b/utilities/fixsvgfonts.sh > @@ -8,7 +8,7 @@ > sed -e 's+:Helvetica+:Nimbus Sans L+g' \ > -e 's+="Helvetica+="Nimbus Sans L+g' \ > -e 's+:Sans+:Nimbus Sans L+g' \ > - -e 's+:sans-serif+:Nimbus Sans L+g' \ > + -e 's+:sans-serif+:DejaVu Sans+g' \ > -e 's+:Courier+:Nimbus Mono L+g' \ > -e 's+="Courier+="Nimbus Mono L+g' \ > -e 's+:monospace+:DejaVu Sans Mono+g' \ > -- > 2.25.1 > >