cairo 1.12.9-x86-mingw32 → 1.14.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of cairo might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/NEWS +27 -0
- data/README.rdoc +7 -7
- data/Rakefile +72 -23
- data/ext/cairo/extconf.rb +3 -3
- data/ext/cairo/rb_cairo.h +3 -3
- data/ext/cairo/rb_cairo_constants.c +8 -0
- data/ext/cairo/rb_cairo_context.c +63 -1
- data/ext/cairo/rb_cairo_exception.c +17 -0
- data/ext/cairo/rb_cairo_font_face.c +13 -0
- data/ext/cairo/rb_cairo_private.c +14 -1
- data/ext/cairo/rb_cairo_private.h +12 -1
- data/ext/cairo/rb_cairo_surface.c +47 -23
- data/lib/2.0/cairo.so +0 -0
- data/lib/2.1/cairo.so +0 -0
- data/lib/2.2/cairo.so +0 -0
- data/lib/cairo/surface.rb +3 -1
- data/test/cairo-test-utils.rb +5 -0
- data/test/test_constants.rb +11 -0
- data/test/test_context.rb +1 -1
- data/test/test_exception.rb +9 -0
- data/test/test_font_face.rb +1 -1
- data/test/test_quartz_image_surface.rb +13 -0
- data/test/test_surface.rb +10 -0
- data/vendor/local/bin/fc-cache.exe +0 -0
- data/vendor/local/bin/fc-cat.exe +0 -0
- data/vendor/local/bin/fc-list.exe +0 -0
- data/vendor/local/bin/fc-match.exe +0 -0
- data/vendor/local/bin/fc-pattern.exe +0 -0
- data/vendor/local/bin/fc-query.exe +0 -0
- data/vendor/local/bin/fc-scan.exe +0 -0
- data/vendor/local/bin/fc-validate.exe +0 -0
- data/vendor/local/bin/freetype-config +6 -6
- data/vendor/local/bin/libcairo-2.dll +0 -0
- data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
- data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
- data/vendor/local/bin/libfontconfig-1.dll +0 -0
- data/vendor/local/bin/libfreetype-6.dll +0 -0
- data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
- data/vendor/local/bin/libpixman-1-0.dll +0 -0
- data/vendor/local/bin/libpng-config +2 -2
- data/vendor/local/bin/libpng16-16.dll +0 -0
- data/vendor/local/bin/libpng16-config +2 -2
- data/vendor/local/bin/libstdc++-6.dll +0 -0
- data/vendor/local/bin/libwinpthread-1.dll +0 -0
- data/vendor/local/bin/libxml2-2.dll +0 -0
- data/vendor/local/bin/png-fix-itxt.exe +0 -0
- data/vendor/local/bin/pngfix.exe +0 -0
- data/vendor/local/bin/xml2-config +2 -2
- data/vendor/local/bin/xmlcatalog.exe +0 -0
- data/vendor/local/bin/xmllint.exe +0 -0
- data/vendor/local/bin/zlib1.dll +0 -0
- data/vendor/local/include/cairo/cairo-version.h +2 -2
- data/vendor/local/include/cairo/cairo.h +36 -0
- data/vendor/local/include/libpng16/png.h +38 -24
- data/vendor/local/include/libpng16/pngconf.h +3 -3
- data/vendor/local/include/libpng16/pnglibconf.h +2 -3
- data/vendor/local/include/libxml2/libxml/SAX2.h +4 -2
- data/vendor/local/include/libxml2/libxml/entities.h +3 -3
- data/vendor/local/include/libxml2/libxml/globals.h +12 -5
- data/vendor/local/include/libxml2/libxml/relaxng.h +6 -2
- data/vendor/local/include/libxml2/libxml/tree.h +49 -42
- data/vendor/local/include/libxml2/libxml/xmlIO.h +1 -1
- data/vendor/local/include/libxml2/libxml/xmlerror.h +1 -1
- data/vendor/local/include/libxml2/libxml/xmlversion.h +4 -4
- data/vendor/local/include/pixman-1/pixman-version.h +2 -2
- data/vendor/local/include/png.h +38 -24
- data/vendor/local/include/pngconf.h +3 -3
- data/vendor/local/include/pnglibconf.h +2 -3
- data/vendor/local/lib/cmake/libxml2/libxml2-config.cmake +50 -0
- data/vendor/local/lib/libcairo-gobject.a +0 -0
- data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
- data/vendor/local/lib/libcairo-gobject.la +6 -6
- data/vendor/local/lib/libcairo-script-interpreter.a +0 -0
- data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
- data/vendor/local/lib/libcairo-script-interpreter.la +6 -6
- data/vendor/local/lib/libcairo.a +0 -0
- data/vendor/local/lib/libcairo.dll.a +0 -0
- data/vendor/local/lib/libcairo.la +6 -6
- data/vendor/local/lib/libfontconfig.dll.a +0 -0
- data/vendor/local/lib/libfontconfig.la +2 -2
- data/vendor/local/lib/libfreetype.a +0 -0
- data/vendor/local/lib/libfreetype.dll.a +0 -0
- data/vendor/local/lib/libfreetype.la +2 -2
- data/vendor/local/lib/libpixman-1.a +0 -0
- data/vendor/local/lib/libpixman-1.dll.a +0 -0
- data/vendor/local/lib/libpixman-1.la +3 -3
- data/vendor/local/lib/libpng.a +0 -0
- data/vendor/local/lib/libpng.dll.a +0 -0
- data/vendor/local/lib/libpng.la +4 -4
- data/vendor/local/lib/libpng16.a +0 -0
- data/vendor/local/lib/libpng16.dll.a +0 -0
- data/vendor/local/lib/libpng16.la +4 -4
- data/vendor/local/lib/libxml2.a +0 -0
- data/vendor/local/lib/libxml2.dll.a +0 -0
- data/vendor/local/lib/libxml2.la +3 -3
- data/vendor/local/lib/libz.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/cairo-fc.pc +2 -2
- data/vendor/local/lib/pkgconfig/cairo-ft.pc +2 -2
- data/vendor/local/lib/pkgconfig/cairo-gobject.pc +3 -3
- data/vendor/local/lib/pkgconfig/cairo-pdf.pc +2 -2
- data/vendor/local/lib/pkgconfig/cairo-png.pc +2 -2
- data/vendor/local/lib/pkgconfig/cairo-ps.pc +2 -2
- data/vendor/local/lib/pkgconfig/cairo-script.pc +2 -2
- data/vendor/local/lib/pkgconfig/cairo-svg.pc +2 -2
- data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +2 -2
- data/vendor/local/lib/pkgconfig/cairo-win32.pc +2 -2
- data/vendor/local/lib/pkgconfig/cairo.pc +3 -3
- data/vendor/local/lib/pkgconfig/fontconfig.pc +3 -3
- data/vendor/local/lib/pkgconfig/freetype2.pc +4 -4
- data/vendor/local/lib/pkgconfig/libpng.pc +2 -2
- data/vendor/local/lib/pkgconfig/libpng16.pc +2 -2
- data/vendor/local/lib/pkgconfig/libxml-2.0.pc +3 -3
- data/vendor/local/lib/pkgconfig/pixman-1.pc +2 -2
- data/vendor/local/lib/pkgconfig/zlib.pc +3 -3
- data/vendor/local/lib/xml2Conf.sh +3 -3
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/Copyright +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/examples/testHTML.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/examples/testSAX.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/examples/testXPath.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/examples/xmllint.c +35 -10
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/DOM.gif +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/FAQ.html +34 -17
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/Libxml2-Logo-180x168.gif +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/Libxml2-Logo-90x34.gif +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/encoding.html +20 -10
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/examples.xml +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/examples.xsl +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/book1.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/home.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/index.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/left.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-DOCBparser.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-HTMLparser.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-HTMLtree.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-SAX.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-SAX2.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-c14n.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-catalog.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-chvalid.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-debugXML.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-dict.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-encoding.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-entities.html +4 -4
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-globals.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-hash.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-lib.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-list.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-nanoftp.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-nanohttp.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-parser.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-parserInternals.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-pattern.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-relaxng.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-schemasInternals.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-schematron.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-threads.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-tree.html +72 -72
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-uri.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-valid.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xinclude.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xlink.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlIO.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlautomata.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlerror.html +1 -1
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlexports.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlmemory.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlmodule.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlreader.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlregexp.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlsave.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlschemas.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlschemastypes.html +2 -2
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlstring.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlunicode.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlversion.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlwriter.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xpath.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xpathInternals.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xpointer.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xzlib.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/right.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/up.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/index.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/io1.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/io1.res +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/io2.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/io2.res +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/libxml.gif +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/parse1.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/parse2.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/parse3.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/parse4.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader1.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader1.res +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader2.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader3.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader3.res +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader4.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader4.res +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/redhat.gif +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/smallfootonly.gif +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/structure.gif +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/test1.xml +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/test2.xml +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/test3.xml +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/testWriter.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tree1.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tree1.res +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tree2.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tree2.res +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tst.xml +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apa.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apb.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apc.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apd.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ape.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apf.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apg.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/aph.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/api.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s02.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s03.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s04.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s05.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s06.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s07.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s08.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s09.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/blank.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/1.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/10.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/2.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/3.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/4.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/5.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/6.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/7.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/8.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/9.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/caution.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/draft.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/home.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/important.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/next.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/note.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/prev.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/tip.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/toc-blank.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/toc-minus.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/toc-plus.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/up.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/warning.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includeaddattribute.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includeaddkeyword.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includeconvert.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includegetattribute.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includekeyword.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includexpath.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/index.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ix01.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/xmltutorial.pdf +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/w3c.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/writer.xml +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xml.html +284 -4
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xpath1.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xpath1.res +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xpath2.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xpath2.res +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +11 -3
- data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +12 -29
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +11 -27
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +22 -3
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +43 -100
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +26 -51
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html +4 -13
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Recording-Surfaces.html +10 -23
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +8 -8
- data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +3 -3
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Types.html +7 -17
- data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +14 -14
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Version-Information.html +342 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +1 -1
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +5 -5
- data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +2 -2
- data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-XRender-Backend.html +1 -1
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html +86 -49
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +4 -4
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html +2 -2
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html +71 -119
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +72 -159
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +146 -58
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +22 -46
- data/vendor/local/share/gtk-doc/html/cairo/cairo-support.html +3 -1
- data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +11 -11
- data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +25 -0
- data/vendor/local/share/gtk-doc/html/cairo/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +9 -0
- data/vendor/local/share/gtk-doc/html/cairo/index-all.html +47 -0
- data/vendor/local/share/gtk-doc/html/cairo/index.html +4 -1
- data/vendor/local/share/gtk-doc/html/cairo/index.sgml +26 -0
- data/vendor/local/share/gtk-doc/html/cairo/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-entities.html +4 -4
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-tree.html +73 -73
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlerror.html +1 -1
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlschemastypes.html +2 -2
- data/vendor/local/share/license/cairo/AUTHORS +5 -1
- data/vendor/local/share/license/cairo/README +20 -10
- data/vendor/local/share/license/libpng/README +20 -7
- data/vendor/local/share/man/man1/xmllint.1 +2 -5
- data/vendor/local/share/man/man3/libpng.3 +92 -220
- data/vendor/local/share/man/man3/libpngpf.3 +2 -2
- data/vendor/local/share/man/man5/png.5 +1 -1
- metadata +254 -248
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
8
|
<link rel="up" href="cairo-support.html" title="Utilities">
|
9
9
|
<link rel="prev" href="cairo-cairo-matrix-t.html" title="cairo_matrix_t">
|
10
|
-
<link rel="next" href="cairo-
|
10
|
+
<link rel="next" href="cairo-Version-Information.html" title="Version Information">
|
11
11
|
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<td><a accesskey="u" href="cairo-support.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
19
19
|
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
20
20
|
<th width="100%" align="center">Cairo: A Vector Graphics Library</th>
|
21
|
-
<td><a accesskey="n" href="cairo-
|
21
|
+
<td><a accesskey="n" href="cairo-Version-Information.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
22
22
|
</tr>
|
23
23
|
<tr><td colspan="5" class="shortcuts">
|
24
24
|
<a href="#cairo-Error-handling.synopsis" class="shortcut">Top</a>
|
@@ -102,6 +102,7 @@ code is required before or after each individual cairo function call.
|
|
102
102
|
CAIRO_STATUS_DEVICE_ERROR,
|
103
103
|
CAIRO_STATUS_INVALID_MESH_CONSTRUCTION,
|
104
104
|
CAIRO_STATUS_DEVICE_FINISHED,
|
105
|
+
CAIRO_STATUS_JBIG2_GLOBAL_MISSING,
|
105
106
|
|
106
107
|
CAIRO_STATUS_LAST_STATUS
|
107
108
|
} cairo_status_t;
|
@@ -157,7 +158,7 @@ to get a human-readable representation of an error message.
|
|
157
158
|
<tr>
|
158
159
|
<td><p><a name="CAIRO-STATUS-NULL-POINTER:CAPS"></a><span class="term"><code class="literal">CAIRO_STATUS_NULL_POINTER</code></span></p></td>
|
159
160
|
<td>
|
160
|
-
<code class="literal">NULL</code> pointer (Since 1.0)
|
161
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> pointer (Since 1.0)
|
161
162
|
</td>
|
162
163
|
</tr>
|
163
164
|
<tr>
|
@@ -314,6 +315,13 @@ to get a human-readable representation of an error message.
|
|
314
315
|
</td>
|
315
316
|
</tr>
|
316
317
|
<tr>
|
318
|
+
<td><p><a name="CAIRO-STATUS-JBIG2-GLOBAL-MISSING:CAPS"></a><span class="term"><code class="literal">CAIRO_STATUS_JBIG2_GLOBAL_MISSING</code></span></p></td>
|
319
|
+
<td>
|
320
|
+
<a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JBIG2-GLOBAL-ID:CAPS" title="CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID"><code class="literal">CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID</code></a> has been used on at least one image
|
321
|
+
but no image provided <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JBIG2-GLOBAL:CAPS" title="CAIRO_MIME_TYPE_JBIG2_GLOBAL"><code class="literal">CAIRO_MIME_TYPE_JBIG2_GLOBAL</code></a> (Since 1.14)
|
322
|
+
</td>
|
323
|
+
</tr>
|
324
|
+
<tr>
|
317
325
|
<td><p><a name="CAIRO-STATUS-LAST-STATUS:CAPS"></a><span class="term"><code class="literal">CAIRO_STATUS_LAST_STATUS</code></span></p></td>
|
318
326
|
<td>this is a special value indicating the number of
|
319
327
|
status values defined in this enumeration. When using this value, note
|
@@ -111,35 +111,18 @@ the FreeType face object to the <a class="link" href="cairo-cairo-font-face-t.ht
|
|
111
111
|
</p>
|
112
112
|
<p>
|
113
113
|
</p>
|
114
|
-
<div class="informalexample">
|
115
|
-
|
116
|
-
<tbody>
|
117
|
-
<tr>
|
118
|
-
<td class="listing_lines" align="right"><pre>1
|
119
|
-
2
|
120
|
-
3
|
121
|
-
4
|
122
|
-
5
|
123
|
-
6
|
124
|
-
7
|
125
|
-
8
|
126
|
-
9
|
127
|
-
10</pre></td>
|
128
|
-
<td class="listing_code"><pre class="programlisting"><span class="gtkdoc kwb">static const</span> cairo_user_data_key_t key<span class="gtkdoc opt">;</span>
|
129
|
-
|
130
|
-
font_face <span class="gtkdoc opt">=</span> <span class="function"><a href="../cairo/cairo-FreeType-Fonts.html#cairo-ft-font-face-create-for-ft-face">cairo_ft_font_face_create_for_ft_face</a></span> <span class="gtkdoc opt">(</span>ft_face<span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">);</span>
|
131
|
-
status <span class="gtkdoc opt">=</span> <span class="function"><a href="../cairo/cairo-cairo-font-face-t.html#cairo-font-face-set-user-data">cairo_font_face_set_user_data</a></span> <span class="gtkdoc opt">(</span>font_face<span class="gtkdoc opt">, &</span>key<span class="gtkdoc opt">,</span>
|
132
|
-
ft_face<span class="gtkdoc opt">, (</span>cairo_destroy_func_t<span class="gtkdoc opt">)</span> FT_Done_Face<span class="gtkdoc opt">);</span>
|
133
|
-
<span class="keyword">if</span> <span class="gtkdoc opt">(</span>status<span class="gtkdoc opt">) {</span>
|
134
|
-
<span class="function"><a href="../cairo/cairo-cairo-font-face-t.html#cairo-font-face-destroy">cairo_font_face_destroy</a></span> <span class="gtkdoc opt">(</span>font_face<span class="gtkdoc opt">);</span>
|
135
|
-
<span class="function">FT_Done_Face</span> <span class="gtkdoc opt">(</span>ft_face<span class="gtkdoc opt">);</span>
|
136
|
-
<span class="keyword">return</span> ERROR<span class="gtkdoc opt">;</span>
|
137
|
-
<span class="gtkdoc opt">}</span></pre></td>
|
138
|
-
</tr>
|
139
|
-
</tbody>
|
140
|
-
</table>
|
141
|
-
</div>
|
114
|
+
<div class="informalexample"><pre class="programlisting">
|
115
|
+
static const cairo_user_data_key_t key;
|
142
116
|
|
117
|
+
font_face = cairo_ft_font_face_create_for_ft_face (ft_face, 0);
|
118
|
+
status = cairo_font_face_set_user_data (font_face, &key,
|
119
|
+
ft_face, (cairo_destroy_func_t) FT_Done_Face);
|
120
|
+
if (status) {
|
121
|
+
cairo_font_face_destroy (font_face);
|
122
|
+
FT_Done_Face (ft_face);
|
123
|
+
return ERROR;
|
124
|
+
}
|
125
|
+
</pre></div>
|
143
126
|
<p>
|
144
127
|
</p>
|
145
128
|
<div class="variablelist"><table border="0">
|
@@ -296,7 +279,7 @@ FreeType backend font face (see <a class="link" href="cairo-FreeType-Fonts.html#
|
|
296
279
|
<tr>
|
297
280
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
298
281
|
<td>The <span class="type">FT_Face</span> object for <em class="parameter"><code>font</code></em>, scaled appropriately,
|
299
|
-
or <code class="literal">NULL</code> if <em class="parameter"><code>scaled_font</code></em> is in an error state (see
|
282
|
+
or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>scaled_font</code></em> is in an error state (see
|
300
283
|
<a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-status" title="cairo_scaled_font_status ()"><code class="function">cairo_scaled_font_status()</code></a>) or there is insufficient memory.</td>
|
301
284
|
</tr>
|
302
285
|
</tbody>
|
@@ -165,33 +165,17 @@ within cairo. Typical usage will be of the form:
|
|
165
165
|
</p>
|
166
166
|
<p>
|
167
167
|
</p>
|
168
|
-
<div class="informalexample">
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
<td class="listing_lines" align="right"><pre>1
|
173
|
-
2
|
174
|
-
3
|
175
|
-
4
|
176
|
-
5
|
177
|
-
6
|
178
|
-
7
|
179
|
-
8
|
180
|
-
9</pre></td>
|
181
|
-
<td class="listing_code"><pre class="programlisting"><span class="gtkdoc kwb">int</span> stride<span class="gtkdoc opt">;</span>
|
182
|
-
<span class="gtkdoc kwb">unsigned char</span> <span class="gtkdoc opt">*</span>data<span class="gtkdoc opt">;</span>
|
183
|
-
<span class="gtkdoc opt"><</span>a <span class="gtkdoc kwc">class</span><span class="gtkdoc opt">=</span><span class="string">"link"</span> href<span class="gtkdoc opt">=</span><span class="string">"cairo-cairo-surface-t.html#cairo-surface-t"</span> title<span class="gtkdoc opt">=</span><span class="string">"cairo_surface_t"</span><span class="gtkdoc opt">></span>cairo_surface_t<span class="gtkdoc opt"></</span>a<span class="gtkdoc opt">> *</span>surface<span class="gtkdoc opt">;</span>
|
184
|
-
|
185
|
-
stride <span class="gtkdoc opt">=</span> <span class="function"><a href="../cairo/cairo-Image-Surfaces.html#cairo-format-stride-for-width">cairo_format_stride_for_width</a></span> <span class="gtkdoc opt">(</span>format<span class="gtkdoc opt">,</span> width<span class="gtkdoc opt">);</span>
|
186
|
-
data <span class="gtkdoc opt">=</span> <span class="function">malloc</span> <span class="gtkdoc opt">(</span>stride <span class="gtkdoc opt">*</span> height<span class="gtkdoc opt">);</span>
|
187
|
-
surface <span class="gtkdoc opt">=</span> <span class="function"><a href="../cairo/cairo-Image-Surfaces.html#cairo-image-surface-create-for-data">cairo_image_surface_create_for_data</a></span> <span class="gtkdoc opt">(</span>data<span class="gtkdoc opt">,</span> format<span class="gtkdoc opt">,</span>
|
188
|
-
width<span class="gtkdoc opt">,</span> height<span class="gtkdoc opt">,</span>
|
189
|
-
stride<span class="gtkdoc opt">);</span></pre></td>
|
190
|
-
</tr>
|
191
|
-
</tbody>
|
192
|
-
</table>
|
193
|
-
</div>
|
168
|
+
<div class="informalexample"><pre class="programlisting">
|
169
|
+
int stride;
|
170
|
+
unsigned char *data;
|
171
|
+
cairo_surface_t *surface;
|
194
172
|
|
173
|
+
stride = cairo_format_stride_for_width (format, width);
|
174
|
+
data = malloc (stride * height);
|
175
|
+
surface = cairo_image_surface_create_for_data (data, format,
|
176
|
+
width, height,
|
177
|
+
stride);
|
178
|
+
</pre></div>
|
195
179
|
<p>
|
196
180
|
</p>
|
197
181
|
<div class="variablelist"><table border="0">
|
@@ -352,7 +336,7 @@ the data is modified.
|
|
352
336
|
</tr>
|
353
337
|
<tr>
|
354
338
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
355
|
-
<td>a pointer to the image data of this surface or <code class="literal">NULL</code>
|
339
|
+
<td>a pointer to the image data of this surface or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
356
340
|
if <em class="parameter"><code>surface</code></em> is not an image surface, or if <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-finish" title="cairo_surface_finish ()"><code class="function">cairo_surface_finish()</code></a>
|
357
341
|
has been called.</td>
|
358
342
|
</tr>
|
@@ -63,6 +63,25 @@ const <span class="returnvalue">char</span> * <a class="link" href="cairo
|
|
63
63
|
The PDF surface is used to render cairo graphics to Adobe
|
64
64
|
PDF files and is a multi-page vector surface backend.
|
65
65
|
</p>
|
66
|
+
<p>
|
67
|
+
The following mime types are supported: <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JPEG:CAPS" title="CAIRO_MIME_TYPE_JPEG"><code class="literal">CAIRO_MIME_TYPE_JPEG</code></a>,
|
68
|
+
<a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JP2:CAPS" title="CAIRO_MIME_TYPE_JP2"><code class="literal">CAIRO_MIME_TYPE_JP2</code></a>, <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-UNIQUE-ID:CAPS" title="CAIRO_MIME_TYPE_UNIQUE_ID"><code class="literal">CAIRO_MIME_TYPE_UNIQUE_ID</code></a>,
|
69
|
+
<a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JBIG2:CAPS" title="CAIRO_MIME_TYPE_JBIG2"><code class="literal">CAIRO_MIME_TYPE_JBIG2</code></a>, <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JBIG2-GLOBAL:CAPS" title="CAIRO_MIME_TYPE_JBIG2_GLOBAL"><code class="literal">CAIRO_MIME_TYPE_JBIG2_GLOBAL</code></a>,
|
70
|
+
<a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JBIG2-GLOBAL-ID:CAPS" title="CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID"><code class="literal">CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID</code></a>.
|
71
|
+
</p>
|
72
|
+
<p>
|
73
|
+
JBIG2 data in PDF must be in the embedded format as descibed in
|
74
|
+
ISO/IEC 11544. Image specific JBIG2 data must be in
|
75
|
+
<a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JBIG2:CAPS" title="CAIRO_MIME_TYPE_JBIG2"><code class="literal">CAIRO_MIME_TYPE_JBIG2</code></a>. Any global segments in the JBIG2 data
|
76
|
+
(segments with page association field set to 0) must be in
|
77
|
+
<a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JBIG2-GLOBAL:CAPS" title="CAIRO_MIME_TYPE_JBIG2_GLOBAL"><code class="literal">CAIRO_MIME_TYPE_JBIG2_GLOBAL</code></a>. The global data may be shared by
|
78
|
+
multiple images. All images sharing the same global data must set
|
79
|
+
<a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JBIG2-GLOBAL-ID:CAPS" title="CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID"><code class="literal">CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID</code></a> to a unique identifer. At least
|
80
|
+
one of the images must provide the global data using
|
81
|
+
<a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JBIG2-GLOBAL:CAPS" title="CAIRO_MIME_TYPE_JBIG2_GLOBAL"><code class="literal">CAIRO_MIME_TYPE_JBIG2_GLOBAL</code></a>. The global data will only be
|
82
|
+
embedded once but shared by all JBIG2 images with the same
|
83
|
+
<a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JBIG2-GLOBAL-ID:CAPS" title="CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID"><code class="literal">CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID</code></a>.
|
84
|
+
</p>
|
66
85
|
</div>
|
67
86
|
<div class="refsect1">
|
68
87
|
<a name="cairo-PDF-Surfaces.details"></a><h2>Details</h2>
|
@@ -91,7 +110,7 @@ to <em class="parameter"><code>filename</code></em>.
|
|
91
110
|
<tbody>
|
92
111
|
<tr>
|
93
112
|
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
94
|
-
<td>a filename for the PDF output (must be writable), <code class="literal">NULL</code> may be
|
113
|
+
<td>a filename for the PDF output (must be writable), <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> may be
|
95
114
|
used to specify no output. This will generate a PDF surface that
|
96
115
|
may be queried and used as a source, without generating a
|
97
116
|
temporary file.</td>
|
@@ -133,7 +152,7 @@ incrementally to the stream represented by <em class="parameter"><code>write_fun
|
|
133
152
|
<tbody>
|
134
153
|
<tr>
|
135
154
|
<td><p><span class="term"><em class="parameter"><code>write_func</code></em> :</span></p></td>
|
136
|
-
<td>a <a class="link" href="cairo-PNG-Support.html#cairo-write-func-t" title="cairo_write_func_t ()"><span class="type">cairo_write_func_t</span></a> to accept the output data, may be <code class="literal">NULL</code>
|
155
|
+
<td>a <a class="link" href="cairo-PNG-Support.html#cairo-write-func-t" title="cairo_write_func_t ()"><span class="type">cairo_write_func_t</span></a> to accept the output data, may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
137
156
|
to indicate a no-op <em class="parameter"><code>write_func</code></em>. With a no-op <em class="parameter"><code>write_func</code></em>,
|
138
157
|
the surface may be queried or used as a source without
|
139
158
|
generating any temporary files.</td>
|
@@ -255,7 +274,7 @@ Used to retrieve the list of supported versions. See
|
|
255
274
|
<pre class="programlisting">const <span class="returnvalue">char</span> * cairo_pdf_version_to_string (<em class="parameter"><code><a class="link" href="cairo-PDF-Surfaces.html#cairo-pdf-version-t" title="enum cairo_pdf_version_t"><span class="type">cairo_pdf_version_t</span></a> version</code></em>);</pre>
|
256
275
|
<p>
|
257
276
|
Get the string representation of the given <em class="parameter"><code>version</code></em> id. This function
|
258
|
-
will return <code class="literal">NULL</code> if <em class="parameter"><code>version</code></em> isn't valid. See <a class="link" href="cairo-PDF-Surfaces.html#cairo-pdf-get-versions" title="cairo_pdf_get_versions ()"><code class="function">cairo_pdf_get_versions()</code></a>
|
277
|
+
will return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>version</code></em> isn't valid. See <a class="link" href="cairo-PDF-Surfaces.html#cairo-pdf-get-versions" title="cairo_pdf_get_versions ()"><code class="function">cairo_pdf_get_versions()</code></a>
|
259
278
|
for a way to get the list of valid version ids.
|
260
279
|
</p>
|
261
280
|
<div class="variablelist"><table border="0">
|
@@ -208,67 +208,34 @@ Here is sample code for iterating through a <a class="link" href="cairo-Paths.ht
|
|
208
208
|
</p>
|
209
209
|
<p>
|
210
210
|
</p>
|
211
|
-
<div class="informalexample">
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
<td class="listing_lines" align="right"><pre>1
|
216
|
-
2
|
217
|
-
3
|
218
|
-
4
|
219
|
-
5
|
220
|
-
6
|
221
|
-
7
|
222
|
-
8
|
223
|
-
9
|
224
|
-
10
|
225
|
-
11
|
226
|
-
12
|
227
|
-
13
|
228
|
-
14
|
229
|
-
15
|
230
|
-
16
|
231
|
-
17
|
232
|
-
18
|
233
|
-
19
|
234
|
-
20
|
235
|
-
21
|
236
|
-
22
|
237
|
-
23
|
238
|
-
24
|
239
|
-
25
|
240
|
-
26</pre></td>
|
241
|
-
<td class="listing_code"><pre class="programlisting"><span class="gtkdoc kwb">int</span> i<span class="gtkdoc opt">;</span>
|
242
|
-
cairo_path_t <span class="gtkdoc opt">*</span>path<span class="gtkdoc opt">;</span>
|
243
|
-
cairo_path_data_t <span class="gtkdoc opt">*</span>data<span class="gtkdoc opt">;</span>
|
211
|
+
<div class="informalexample"><pre class="programlisting">
|
212
|
+
int i;
|
213
|
+
cairo_path_t *path;
|
214
|
+
cairo_path_data_t *data;
|
244
215
|
|
245
|
-
path
|
216
|
+
path = cairo_copy_path (cr);
|
246
217
|
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
</tbody>
|
269
|
-
</table>
|
270
|
-
</div>
|
271
|
-
|
218
|
+
for (i=0; i < path->num_data; i += path->data[i].header.length) {
|
219
|
+
data = &path->data[i];
|
220
|
+
switch (data->header.type) {
|
221
|
+
case CAIRO_PATH_MOVE_TO:
|
222
|
+
do_move_to_things (data[1].point.x, data[1].point.y);
|
223
|
+
break;
|
224
|
+
case CAIRO_PATH_LINE_TO:
|
225
|
+
do_line_to_things (data[1].point.x, data[1].point.y);
|
226
|
+
break;
|
227
|
+
case CAIRO_PATH_CURVE_TO:
|
228
|
+
do_curve_to_things (data[1].point.x, data[1].point.y,
|
229
|
+
data[2].point.x, data[2].point.y,
|
230
|
+
data[3].point.x, data[3].point.y);
|
231
|
+
break;
|
232
|
+
case CAIRO_PATH_CLOSE_PATH:
|
233
|
+
do_close_path_things ();
|
234
|
+
break;
|
235
|
+
}
|
236
|
+
}
|
237
|
+
cairo_path_destroy (path);
|
238
|
+
</pre></div>
|
272
239
|
<p>
|
273
240
|
</p>
|
274
241
|
<p>
|
@@ -335,7 +302,7 @@ over the returned data structure.
|
|
335
302
|
</p>
|
336
303
|
<p>
|
337
304
|
This function will always return a valid pointer, but the result
|
338
|
-
will have no data (<code class="literal">data==<code class="literal">NULL</code></code> and
|
305
|
+
will have no data (<code class="literal">data==<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></code> and
|
339
306
|
<code class="literal">num_data==0</code>), if either of the following
|
340
307
|
conditions hold:
|
341
308
|
</p>
|
@@ -387,7 +354,7 @@ series of <a class="link" href="cairo-Paths.html#CAIRO-PATH-LINE-TO:CAPS"><code
|
|
387
354
|
</p>
|
388
355
|
<p>
|
389
356
|
This function will always return a valid pointer, but the result
|
390
|
-
will have no data (<code class="literal">data==<code class="literal">NULL</code></code> and
|
357
|
+
will have no data (<code class="literal">data==<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></code> and
|
391
358
|
<code class="literal">num_data==0</code>), if either of the following
|
392
359
|
conditions hold:
|
393
360
|
</p>
|
@@ -682,25 +649,13 @@ in the box given by <em class="parameter"><code>x</code></em>, <em class="parame
|
|
682
649
|
</p>
|
683
650
|
<p>
|
684
651
|
</p>
|
685
|
-
<div class="informalexample">
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
4
|
693
|
-
5</pre></td>
|
694
|
-
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="../cairo/cairo-cairo-t.html#cairo-save">cairo_save</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span>
|
695
|
-
<span class="function"><a href="../cairo/cairo-Transformations.html#cairo-translate">cairo_translate</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> x <span class="gtkdoc opt">+</span> width <span class="gtkdoc opt">/</span> <span class="number">2</span><span class="gtkdoc opt">.,</span> y <span class="gtkdoc opt">+</span> height <span class="gtkdoc opt">/</span> <span class="number">2</span><span class="gtkdoc opt">.);</span>
|
696
|
-
<span class="function"><a href="../cairo/cairo-Transformations.html#cairo-scale">cairo_scale</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> width <span class="gtkdoc opt">/</span> <span class="number">2</span><span class="gtkdoc opt">.,</span> height <span class="gtkdoc opt">/</span> <span class="number">2</span><span class="gtkdoc opt">.);</span>
|
697
|
-
<span class="function"><a href="../cairo/cairo-Paths.html#cairo-arc">cairo_arc</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">.,</span> <span class="number">0</span><span class="gtkdoc opt">.,</span> <span class="number">1</span><span class="gtkdoc opt">.,</span> <span class="number">0</span><span class="gtkdoc opt">.,</span> <span class="number">2</span> <span class="gtkdoc opt">*</span> M_PI<span class="gtkdoc opt">);</span>
|
698
|
-
<span class="function"><a href="../cairo/cairo-cairo-t.html#cairo-restore">cairo_restore</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span></pre></td>
|
699
|
-
</tr>
|
700
|
-
</tbody>
|
701
|
-
</table>
|
702
|
-
</div>
|
703
|
-
|
652
|
+
<div class="informalexample"><pre class="programlisting">
|
653
|
+
cairo_save (cr);
|
654
|
+
cairo_translate (cr, x + width / 2., y + height / 2.);
|
655
|
+
cairo_scale (cr, width / 2., height / 2.);
|
656
|
+
cairo_arc (cr, 0., 0., 1., 0., 2 * M_PI);
|
657
|
+
cairo_restore (cr);
|
658
|
+
</pre></div>
|
704
659
|
<p>
|
705
660
|
</p>
|
706
661
|
<div class="variablelist"><table border="0">
|
@@ -919,25 +874,13 @@ path at position (<em class="parameter"><code>x</code></em>, <em class="paramete
|
|
919
874
|
<p>
|
920
875
|
This function is logically equivalent to:
|
921
876
|
</p>
|
922
|
-
<div class="informalexample">
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
4
|
930
|
-
5</pre></td>
|
931
|
-
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="../cairo/cairo-Paths.html#cairo-move-to">cairo_move_to</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> x<span class="gtkdoc opt">,</span> y<span class="gtkdoc opt">);</span>
|
932
|
-
<span class="function"><a href="../cairo/cairo-Paths.html#cairo-rel-line-to">cairo_rel_line_to</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> width<span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">);</span>
|
933
|
-
<span class="function"><a href="../cairo/cairo-Paths.html#cairo-rel-line-to">cairo_rel_line_to</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> height<span class="gtkdoc opt">);</span>
|
934
|
-
<span class="function"><a href="../cairo/cairo-Paths.html#cairo-rel-line-to">cairo_rel_line_to</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">, -</span>width<span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">);</span>
|
935
|
-
<span class="function"><a href="../cairo/cairo-Paths.html#cairo-close-path">cairo_close_path</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span></pre></td>
|
936
|
-
</tr>
|
937
|
-
</tbody>
|
938
|
-
</table>
|
939
|
-
</div>
|
940
|
-
|
877
|
+
<div class="informalexample"><pre class="programlisting">
|
878
|
+
cairo_move_to (cr, x, y);
|
879
|
+
cairo_rel_line_to (cr, width, 0);
|
880
|
+
cairo_rel_line_to (cr, 0, height);
|
881
|
+
cairo_rel_line_to (cr, -width, 0);
|
882
|
+
cairo_close_path (cr);
|
883
|
+
</pre></div>
|
941
884
|
<p>
|
942
885
|
</p>
|
943
886
|
<div class="variablelist"><table border="0">
|
@@ -1034,7 +977,7 @@ serious text-using applications. See <a class="link" href="cairo-Paths.html#cair
|
|
1034
977
|
</tr>
|
1035
978
|
<tr>
|
1036
979
|
<td><p><span class="term"><em class="parameter"><code>utf8</code></em> :</span></p></td>
|
1037
|
-
<td>a NUL-terminated string of text encoded in UTF-8, or <code class="literal">NULL</code>
|
980
|
+
<td>a NUL-terminated string of text encoded in UTF-8, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
1038
981
|
</td>
|
1039
982
|
</tr>
|
1040
983
|
</tbody>
|
@@ -104,7 +104,7 @@ vary. See <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-
|
|
104
104
|
<tbody>
|
105
105
|
<tr>
|
106
106
|
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
107
|
-
<td>a filename for the PS output (must be writable), <code class="literal">NULL</code> may be
|
107
|
+
<td>a filename for the PS output (must be writable), <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> may be
|
108
108
|
used to specify no output. This will generate a PS surface that
|
109
109
|
may be queried and used as a source, without generating a
|
110
110
|
temporary file.</td>
|
@@ -152,7 +152,7 @@ output can vary. See <a class="link" href="cairo-PostScript-Surfaces.html#cairo-
|
|
152
152
|
<tbody>
|
153
153
|
<tr>
|
154
154
|
<td><p><span class="term"><em class="parameter"><code>write_func</code></em> :</span></p></td>
|
155
|
-
<td>a <a class="link" href="cairo-PNG-Support.html#cairo-write-func-t" title="cairo_write_func_t ()"><span class="type">cairo_write_func_t</span></a> to accept the output data, may be <code class="literal">NULL</code>
|
155
|
+
<td>a <a class="link" href="cairo-PNG-Support.html#cairo-write-func-t" title="cairo_write_func_t ()"><span class="type">cairo_write_func_t</span></a> to accept the output data, may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
156
156
|
to indicate a no-op <em class="parameter"><code>write_func</code></em>. With a no-op <em class="parameter"><code>write_func</code></em>,
|
157
157
|
the surface may be queried or used as a source without
|
158
158
|
generating any temporary files.</td>
|
@@ -275,7 +275,7 @@ Used to retrieve the list of supported levels. See
|
|
275
275
|
<pre class="programlisting">const <span class="returnvalue">char</span> * cairo_ps_level_to_string (<em class="parameter"><code><a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-level-t" title="enum cairo_ps_level_t"><span class="type">cairo_ps_level_t</span></a> level</code></em>);</pre>
|
276
276
|
<p>
|
277
277
|
Get the string representation of the given <em class="parameter"><code>level</code></em> id. This function
|
278
|
-
will return <code class="literal">NULL</code> if <em class="parameter"><code>level</code></em> id isn't valid. See <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-get-levels" title="cairo_ps_get_levels ()"><code class="function">cairo_ps_get_levels()</code></a>
|
278
|
+
will return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>level</code></em> id isn't valid. See <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-get-levels" title="cairo_ps_get_levels ()"><code class="function">cairo_ps_get_levels()</code></a>
|
279
279
|
for a way to get the list of valid level ids.
|
280
280
|
</p>
|
281
281
|
<div class="variablelist"><table border="0">
|
@@ -299,7 +299,7 @@ for a way to get the list of valid level ids.
|
|
299
299
|
<pre class="programlisting"><span class="returnvalue">void</span> cairo_ps_surface_set_eps (<em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> *surface</code></em>,
|
300
300
|
<em class="parameter"><code><a class="link" href="cairo-Types.html#cairo-bool-t" title="cairo_bool_t"><span class="type">cairo_bool_t</span></a> eps</code></em>);</pre>
|
301
301
|
<p>
|
302
|
-
If <em class="parameter"><code>eps</code></em> is <code class="literal">TRUE</code>, the PostScript surface will output Encapsulated
|
302
|
+
If <em class="parameter"><code>eps</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the PostScript surface will output Encapsulated
|
303
303
|
PostScript.
|
304
304
|
</p>
|
305
305
|
<p>
|
@@ -320,7 +320,7 @@ than one page.
|
|
320
320
|
<tr>
|
321
321
|
<td><p><span class="term"><em class="parameter"><code>eps</code></em> :</span></p></td>
|
322
322
|
<td>
|
323
|
-
<code class="literal">TRUE</code> to output EPS format PostScript</td>
|
323
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to output EPS format PostScript</td>
|
324
324
|
</tr>
|
325
325
|
</tbody>
|
326
326
|
</table></div>
|
@@ -344,7 +344,7 @@ Check whether the PostScript surface will output Encapsulated PostScript.
|
|
344
344
|
<tr>
|
345
345
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
346
346
|
<td>
|
347
|
-
<code class="literal">TRUE</code> if the surface will output Encapsulated PostScript.</td>
|
347
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the surface will output Encapsulated PostScript.</td>
|
348
348
|
</tr>
|
349
349
|
</tbody>
|
350
350
|
</table></div>
|
@@ -526,51 +526,26 @@ Here is an example sequence showing how this function might be used:
|
|
526
526
|
</p>
|
527
527
|
<p>
|
528
528
|
</p>
|
529
|
-
<div class="informalexample">
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
17
|
550
|
-
18</pre></td>
|
551
|
-
<td class="listing_code"><pre class="programlisting">cairo_surface_t <span class="gtkdoc opt">*</span>surface <span class="gtkdoc opt">=</span> <span class="function"><a href="../cairo/cairo-PostScript-Surfaces.html#cairo-ps-surface-create">cairo_ps_surface_create</a></span> <span class="gtkdoc opt">(</span>filename<span class="gtkdoc opt">,</span> width<span class="gtkdoc opt">,</span> height<span class="gtkdoc opt">);</span>
|
552
|
-
<span class="gtkdoc opt">...</span>
|
553
|
-
<span class="function"><a href="../cairo/cairo-PostScript-Surfaces.html#cairo-ps-surface-dsc-comment">cairo_ps_surface_dsc_comment</a></span> <span class="gtkdoc opt">(</span>surface<span class="gtkdoc opt">,</span> <span class="string">"%%Title: My excellent document"</span><span class="gtkdoc opt">);</span>
|
554
|
-
<span class="function"><a href="../cairo/cairo-PostScript-Surfaces.html#cairo-ps-surface-dsc-comment">cairo_ps_surface_dsc_comment</a></span> <span class="gtkdoc opt">(</span>surface<span class="gtkdoc opt">,</span> <span class="string">"%%Copyright: Copyright (C) 2006 Cairo Lover"</span><span class="gtkdoc opt">)</span>
|
555
|
-
<span class="gtkdoc opt">...</span>
|
556
|
-
<span class="function"><a href="../cairo/cairo-PostScript-Surfaces.html#cairo-ps-surface-dsc-begin-setup">cairo_ps_surface_dsc_begin_setup</a></span> <span class="gtkdoc opt">(</span>surface<span class="gtkdoc opt">);</span>
|
557
|
-
<span class="function"><a href="../cairo/cairo-PostScript-Surfaces.html#cairo-ps-surface-dsc-comment">cairo_ps_surface_dsc_comment</a></span> <span class="gtkdoc opt">(</span>surface<span class="gtkdoc opt">,</span> <span class="string">"%%IncludeFeature: *MediaColor White"</span><span class="gtkdoc opt">);</span>
|
558
|
-
<span class="gtkdoc opt">...</span>
|
559
|
-
<span class="function"><a href="../cairo/cairo-PostScript-Surfaces.html#cairo-ps-surface-dsc-begin-page-setup">cairo_ps_surface_dsc_begin_page_setup</a></span> <span class="gtkdoc opt">(</span>surface<span class="gtkdoc opt">);</span>
|
560
|
-
<span class="function"><a href="../cairo/cairo-PostScript-Surfaces.html#cairo-ps-surface-dsc-comment">cairo_ps_surface_dsc_comment</a></span> <span class="gtkdoc opt">(</span>surface<span class="gtkdoc opt">,</span> <span class="string">"%%IncludeFeature: *PageSize A3"</span><span class="gtkdoc opt">);</span>
|
561
|
-
<span class="function"><a href="../cairo/cairo-PostScript-Surfaces.html#cairo-ps-surface-dsc-comment">cairo_ps_surface_dsc_comment</a></span> <span class="gtkdoc opt">(</span>surface<span class="gtkdoc opt">,</span> <span class="string">"%%IncludeFeature: *InputSlot LargeCapacity"</span><span class="gtkdoc opt">);</span>
|
562
|
-
<span class="function"><a href="../cairo/cairo-PostScript-Surfaces.html#cairo-ps-surface-dsc-comment">cairo_ps_surface_dsc_comment</a></span> <span class="gtkdoc opt">(</span>surface<span class="gtkdoc opt">,</span> <span class="string">"%%IncludeFeature: *MediaType Glossy"</span><span class="gtkdoc opt">);</span>
|
563
|
-
<span class="function"><a href="../cairo/cairo-PostScript-Surfaces.html#cairo-ps-surface-dsc-comment">cairo_ps_surface_dsc_comment</a></span> <span class="gtkdoc opt">(</span>surface<span class="gtkdoc opt">,</span> <span class="string">"%%IncludeFeature: *MediaColor Blue"</span><span class="gtkdoc opt">);</span>
|
564
|
-
<span class="gtkdoc opt">...</span> draw to first page here <span class="gtkdoc opt">..</span>
|
565
|
-
<span class="function"><a href="../cairo/cairo-cairo-t.html#cairo-show-page">cairo_show_page</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span>
|
566
|
-
<span class="gtkdoc opt">...</span>
|
567
|
-
<span class="function"><a href="../cairo/cairo-PostScript-Surfaces.html#cairo-ps-surface-dsc-comment">cairo_ps_surface_dsc_comment</a></span> <span class="gtkdoc opt">(</span>surface<span class="gtkdoc opt">,</span> <span class="string">"%%IncludeFeature: *PageSize A5"</span><span class="gtkdoc opt">);</span>
|
568
|
-
<span class="gtkdoc opt">...</span></pre></td>
|
569
|
-
</tr>
|
570
|
-
</tbody>
|
571
|
-
</table>
|
572
|
-
</div>
|
573
|
-
|
529
|
+
<div class="informalexample"><pre class="programlisting">
|
530
|
+
cairo_surface_t *surface = cairo_ps_surface_create (filename, width, height);
|
531
|
+
...
|
532
|
+
cairo_ps_surface_dsc_comment (surface, "%%Title: My excellent document");
|
533
|
+
cairo_ps_surface_dsc_comment (surface, "%%Copyright: Copyright (C) 2006 Cairo Lover")
|
534
|
+
...
|
535
|
+
cairo_ps_surface_dsc_begin_setup (surface);
|
536
|
+
cairo_ps_surface_dsc_comment (surface, "%%IncludeFeature: *MediaColor White");
|
537
|
+
...
|
538
|
+
cairo_ps_surface_dsc_begin_page_setup (surface);
|
539
|
+
cairo_ps_surface_dsc_comment (surface, "%%IncludeFeature: *PageSize A3");
|
540
|
+
cairo_ps_surface_dsc_comment (surface, "%%IncludeFeature: *InputSlot LargeCapacity");
|
541
|
+
cairo_ps_surface_dsc_comment (surface, "%%IncludeFeature: *MediaType Glossy");
|
542
|
+
cairo_ps_surface_dsc_comment (surface, "%%IncludeFeature: *MediaColor Blue");
|
543
|
+
... draw to first page here ..
|
544
|
+
cairo_show_page (cr);
|
545
|
+
...
|
546
|
+
cairo_ps_surface_dsc_comment (surface, "%%IncludeFeature: *PageSize A5");
|
547
|
+
...
|
548
|
+
</pre></div>
|
574
549
|
<p>
|
575
550
|
</p>
|
576
551
|
<div class="variablelist"><table border="0">
|