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? 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