[cairo] SVG to EMF quality

Adrian Johnson ajohnson at redneon.com
Fri Sep 4 07:29:45 PDT 2009


Jan Struyf wrote:
> Dear Shixin Zeng,
> 
>> I've produced some pictures with matplotlib for my paper, which 
>> prefers enhanced MetaFile (EMF). However, current maplotlib 
>> doesn't support EMF output, but svg. So I tried to convert svg 
>> to emf via cairo, as mentioned in this 
>> thread:http://lists.cairographics.org/archives/cairo/2009-January/016215.html
>>
>> But the problem is that the quality of the output emf file is 
>> pretty low. Is this caused by my badly programming or the 
>> limitation of this method itself? Thanks
> 
> I think the Cairo Win32 backend converts most operations to 
> bitmaps, which causes the poor quality EMF files.

The example code is using the win32 printing backend which uses GDI 
vector operations as much as possible.



More information about the cairo mailing list