Sorry for the harsh phrasing but I was thinking about this issue a bit more and concluded: I rank root plots being out of the box unfit for thesis printing as very severe. In submission stress, one does not want to encounter last minute that all plots need to be re-rendered (if self made in the first place, they might be citations from someone else, who can’t provide updated versions immediately) and I doubt every copy shop catches this type of issue (let alone provides fixes). In that perspective I would even opt for embed fonts by default, and sacrifice a possible size benefit for portability of the pdf.
Beyond that, the issue with non embedded fonts is visible on lxplus, so that’s somehow cern software not behaving correctly on cern computers …
ssh -X lxplus
unalias 'grep'
unset GREP_OPTIONS
source /cvmfs/sft.cern.ch/lcg/views/LCG_93/x86_64-slc6-gcc7-opt/setup.sh
root -n -l
TH1F* h = new TH1F("h","h",100,-5,5)
h->GetXaxis()->SetTitle("#mu#epsilon#pi")
h->FillRandom("gaus",500)
TCanvas* c = new TCanvas()
h->Draw()
c->SaveAs("b0rken.pdf")
.q
gs -o repaired.pdf -dPDFSETTINGS=/prepress -sDEVICE=pdfwrite b0rken.pdf
gs -quiet -dSAFER -dNOPLATFONTS -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dUseCIEColor \
-dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dCompatibilityLevel=1.4 \
-dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -sOutputFile=repaired2.pdf -f b0rken.pdf
ls -rlt *.pdf | tail -3
outputs:
-rw-r--r--. 1 pseyfert z5 14430 May 25 11:59 b0rken.pdf
-rw-r--r--. 1 pseyfert z5 9383 May 25 12:00 repaired.pdf
-rw-r--r--. 1 pseyfert z5 9651 May 25 12:00 repaired2.pdf
(fixed pdfs here are smaller than the original)
evince b0rken.pdf repaired.pdf repaired2.pdf