In our test, we use PhantomJS to perform some PDF rendering task, recently I found a bug within the PhantomJS on Ubuntu which is the CircleCI OS. The bug is that if I use any remote font in my pdf template html, the PhantomJS won’t embed this font in the pdf file, instead it will rasterize the text, this led to huge pdf size than normal.
And I found some workaround for now is to use local fonts rather than remote, hence I need to install the fonts I need to CI OS.
So I want to know if there is any way to add custom font to CI environment?