I’m posting here instead of submitting an issue because I don’t want to spam Github by submitting an issue that’s known. I searched but couldn’t find any issue similar. I also don’t know if I should submit an issue for Plots.jl or one of the backends.
GR can not embed fonts into the PDF output. You will have to provide a “Palatino” font with the corresponding UTF-8 glyphs (using the GKS_FONT_DIRS environment) and use GR’s internal text renderer (using GR.settextfontprec(..., GR.TEXT_PRECISION_OUTLINE)). I can try to provide an example next week …
ENV["GKS_FONT_DIRS"] = pwd()
using GR
beginprint("font-ex.pdf")
settextalign(GR.TEXT_HALIGN_CENTER, GR.TEXT_VALIGN_HALF)
font = loadfont("Rockness.ttf")
settextfontprec(font, GR.TEXT_PRECISION_OUTLINE)
setcharheight(0.06)
text(0.5, 0.5, "The quick brown fox jumps over the lazy dog")
font = loadfont("Palatino-Roman.ttf")
settextfontprec(font, GR.TEXT_PRECISION_OUTLINE)
setcharheight(0.03)
text(0.5, 0.4, "– The quick brown fox jumps over the lazy dog –")
updatews()
endprint()