mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 19:18:12 +02:00
[ps] Add comments about design of output.
Add some snippets from Adrian Johnson about how and why the PS output is factored in terms of PDF operators.
This commit is contained in:
parent
ddb529a59c
commit
ab3bb369d5
1 changed files with 13 additions and 0 deletions
|
|
@ -40,6 +40,19 @@
|
|||
* Adrian Johnson <ajohnson@redneon.com>
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* Design of the PS output:
|
||||
*
|
||||
* The PS output is harmonised with the PDF operations using PS procedures
|
||||
* to emulate the PDF operators.
|
||||
*
|
||||
* This has a number of advantages:
|
||||
* 1. A large chunk of code is shared between the PDF and PS backends.
|
||||
* See cairo-pdf-operators.
|
||||
* 2. Using gs to do PS -> PDF and PDF -> PS will always work well.
|
||||
*/
|
||||
|
||||
#define _BSD_SOURCE /* for ctime_r(), snprintf(), strdup() */
|
||||
#include "cairoint.h"
|
||||
#include "cairo-ps.h"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue