Currently, I’m trying to export a plot to a pdf file using PlotlyJS. This works as expected as long as the fonts aren’t changed.
The following example works fine (except I’ve to rebuild Cairo every time I run julia):
using PlotlyJS p = plot(scatter(; y = rand(10))) savefig(p, "test.pdf")
However, this one doesn’t:
p = plot(scatter(; y = rand(10)), Layout(font_family = "Computer Modern")) savefig(p, "test2.pdf")
While the fonts shown in the plot figure are modified as expected, the fonts inside the exported pdf document won’t be adjusted accordingly.
Note: This issue doesn’t occur exporting to png. However, using eps or svg as the output format leads to the same result.
Thank you in advance!
EDIT: Now it seems like it doesn’t work using png either…