[scribus-dev] Casual PDF output

中本浩 hiroshi-n at borndigital.co.jp
Sun Feb 12 22:14:06 UTC 2012


I believe Windows build requires Freetype, if I correctly read the
document below.
http://wiki.scribus.net/canvas/Building_Scribus_on_Windows

scprintengine_ps, which I patched, is never invoked on Windows at
printing, anyway.

By the way, which platform uses scpainterex_cairo currently ?
At least, it is not used on Mac/Linux.

Currently, scprintengine_ps looks like used as
scprintengine_non_windows, and scprintengine_ps is not used on Windows
- correct me if I am wrong.

Calling the original ps printing if the output file extension is "ps"
would be easy (If you look into the patch, you can see that).
But it is more desirable to make ps output as "export to ps" for all
the supported platforms,  I believe.

Thank you for response.

2012/2/13 Jean Ghali <jghali at libertysurf.fr>:
> Hi Hiroshi,
>
> Your patch makes changes in scpainterex_cairo.cpp which assumes the
> availability of freetype font backend in cairo. This is not correct and
> won't work on Windows. Also i think a better approach would be to create a
> new print engine class (scprintengine_cairo.*) so as to preserve cmyk output
> capabilities in the postscript based print engine.
>
> Jean
>
> Le 12/02/2012 14:56, 中本浩 a écrit :
>
> I actually made cairo pdf printing work in Utunbu 11.10 and Mac.
> Just input a file name with .pdf extension in printing dialog and print.
> Though not deeply tested, both Japanese and Roman fonts get embedded
> and text search works!
> As it is a counterpart of Windows GDI printing, high-end features like
> color separation or ps passthrough are not required.
>
> Here I attach a patch for:
>
> fonts/ftface.h
> fonts/ftface.cpp
> fonts/scface.h
> fonts/scface.cpp
> scpageoutput.cpp
> scpainterex_cairo.cpp
> scpainterex_cairo.h
> scpainterexbase.cpp
> scpainterexbase.h
> scprintengine_ps.cpp
>
> Also, scpainterex_cairo.cpp must be added to CMakeLists.txt.
>
>
>
> _______________________________________________
> scribus-dev mailing list
> scribus-dev at lists.scribus.net
> http://lists.scribus.net/mailman/listinfo/scribus-dev
>
>
>
> _______________________________________________
> scribus-dev mailing list
> scribus-dev at lists.scribus.net
> http://lists.scribus.net/mailman/listinfo/scribus-dev
>



More information about the scribus-dev mailing list