summaryrefslogtreecommitdiff
path: root/examples/color.drv
diff options
context:
space:
mode:
Diffstat (limited to 'examples/color.drv')
-rw-r--r--examples/color.drv44
1 files changed, 44 insertions, 0 deletions
diff --git a/examples/color.drv b/examples/color.drv
new file mode 100644
index 000000000..69984c4b9
--- /dev/null
+++ b/examples/color.drv
@@ -0,0 +1,44 @@
+// Include standard font and media definitions
+#include <font.defs>
+#include <media.defs>
+
+// List the fonts that are supported, in this case all standard
+// fonts...
+Font *
+
+// Manufacturer and version
+Manufacturer "Foo"
+Version 1.0
+
+// Each filter provided by the driver...
+Filter application/vnd.cups-raster 100 rastertofoo
+
+// Supported page sizes
+*MediaSize Letter
+MediaSize A4
+
+{
+ // Supported resolutions
+ *Resolution k 8 0 0 0 "600dpi/600 DPI"
+
+ // Specify the model name and filename...
+ ModelName "FooJet 2000"
+ PCFileName "foojet2k.ppd"
+}
+
+{
+ // Supports color printing
+ ColorDevice true
+
+ // Supported colorspaces
+ ColorModel Gray/Grayscale w chunky 0
+ *ColorModel RGB/Color rgb chunky 0
+
+ // Supported resolutions
+ *Resolution - 8 0 0 0 "300dpi/300 DPI"
+ Resolution - 8 0 0 0 "600dpi/600 DPI"
+
+ // Specify the model name and filename...
+ ModelName "FooJet Color"
+ PCFileName "foojetco.ppd"
+}