[cairo] SVG & PS/EPS surfaces

Tomas By tomas at basun.net
Sun Aug 2 07:33:51 PDT 2015


Hi,

Thanks for the reply. I find EPS tends to work best with Latex. 
Guile-cairo does not seem to support EPS, hence PS instead.

Have experimented a bit and thought maybe SVG would be the most 
compatible format, which seems to not be the case in reality.

I then tried to do everything in PDF but I still get raster images, not 
vectors. I did all the drawing in 100x100, so it does not look very 
nice, with very unclear edges even in unzoomed display.

As I only use move-to, line-to, arc, over operator, no alpha channel, it 
seems to be a little mystery why I cannot get vector output even with 
PDF?

/Tomas



On 2015-08-02 16:19, Stefan Salewski wrote:
> On Sun, 2015-08-02 at 12:27 +0200, Tomas By wrote:
>> Hi all,
>> 
>> I am making simple drawings (lines/arcs) on SVG surfaces and then
>> painting those on PS surfaces which I inlcude in a Latex document.
> 
> Why first SVG, and then painting to PS? Maybe that is the problem. 
> There
> is a PDF example at http://zetcode.com/gfx/cairo/cairobackends/ -- I
> think PS is very similar. Do you really still need PS for your LaTeX?
> PDF import should work, at least for pdflatex.



More information about the cairo mailing list