cairo 1.15.10-x86-mingw32 → 1.15.11-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/NEWS +38 -0
- data/Rakefile +3 -3
- data/ext/cairo/cairo.def +4 -0
- data/ext/cairo/rb_cairo.h +8 -1
- data/ext/cairo/rb_cairo_constants.c +43 -0
- data/ext/cairo/rb_cairo_surface.c +28 -1
- data/lib/2.2/cairo.so +0 -0
- data/lib/2.3/cairo.so +0 -0
- data/lib/2.4/cairo.so +0 -0
- data/test/test_pdf_surface.rb +2 -2
- data/test/test_recording_surface.rb +5 -1
- data/test/test_svg_surface.rb +9 -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/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/libpixman-1-0.dll +0 -0
- data/vendor/local/bin/libpng-config +1 -1
- data/vendor/local/bin/libpng16-16.dll +0 -0
- data/vendor/local/bin/libpng16-config +1 -1
- 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 +1 -1
- data/vendor/local/bin/xmlcatalog.exe +0 -0
- data/vendor/local/bin/xmllint.exe +0 -0
- data/vendor/local/bin/zlib1211.dll +0 -0
- data/vendor/local/include/cairo/cairo-features.h +1 -0
- data/vendor/local/include/cairo/cairo-svg.h +47 -0
- data/vendor/local/include/cairo/cairo-version.h +1 -1
- data/vendor/local/include/cairo/cairo.h +4 -0
- data/vendor/local/include/libpng16/png.h +15 -13
- data/vendor/local/include/libpng16/pngconf.h +1 -1
- data/vendor/local/include/libpng16/pnglibconf.h +1 -1
- data/vendor/local/include/libxml2/libxml/nanoftp.h +1 -1
- data/vendor/local/include/libxml2/libxml/threads.h +7 -2
- data/vendor/local/include/libxml2/libxml/xmlversion.h +4 -4
- data/vendor/local/include/png.h +15 -13
- data/vendor/local/include/pngconf.h +1 -1
- data/vendor/local/include/pnglibconf.h +1 -1
- data/vendor/local/lib/cmake/libxml2/libxml2-config.cmake +2 -2
- 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 +2 -2
- 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 +2 -2
- data/vendor/local/lib/libcairo.a +0 -0
- data/vendor/local/lib/libcairo.dll.a +0 -0
- data/vendor/local/lib/libcairo.la +2 -2
- data/vendor/local/lib/libfontconfig.dll.a +0 -0
- data/vendor/local/lib/libfreetype.a +0 -0
- data/vendor/local/lib/libfreetype.dll.a +0 -0
- data/vendor/local/lib/libpixman-1.dll.a +0 -0
- data/vendor/local/lib/libpng.a +0 -0
- data/vendor/local/lib/libpng.dll.a +0 -0
- data/vendor/local/lib/libpng.la +2 -2
- data/vendor/local/lib/libpng16.a +0 -0
- data/vendor/local/lib/libpng16.dll.a +0 -0
- data/vendor/local/lib/libpng16.la +2 -2
- data/vendor/local/lib/libxml2.a +0 -0
- data/vendor/local/lib/libxml2.dll.a +0 -0
- data/vendor/local/lib/libxml2.la +1 -1
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/cairo-fc.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-ft.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-gobject.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-pdf.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-png.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-ps.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-script.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-svg.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-win32.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo.pc +1 -1
- data/vendor/local/lib/pkgconfig/libpng.pc +1 -1
- data/vendor/local/lib/pkgconfig/libpng16.pc +1 -1
- data/vendor/local/lib/pkgconfig/libxml-2.0.pc +1 -1
- data/vendor/local/lib/xml2Conf.sh +1 -1
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/Copyright +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/examples/testHTML.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/examples/testSAX.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/examples/testXPath.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/examples/xmllint.c +0 -16
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/DOM.gif +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/FAQ.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/Libxml2-Logo-180x168.gif +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/Libxml2-Logo-90x34.gif +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/encoding.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/examples.xml +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/examples.xsl +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/book1.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/home.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/index.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/left.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-DOCBparser.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-HTMLparser.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-HTMLtree.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-SAX.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-SAX2.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-c14n.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-catalog.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-chvalid.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-debugXML.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-dict.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-encoding.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-entities.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-globals.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-hash.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-lib.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-list.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-nanoftp.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-nanohttp.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-parser.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-parserInternals.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-pattern.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-relaxng.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-schemasInternals.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-schematron.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-threads.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-tree.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-uri.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-valid.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xinclude.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xlink.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xmlIO.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xmlautomata.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xmlerror.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xmlexports.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xmlmemory.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xmlmodule.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xmlreader.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xmlregexp.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xmlsave.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xmlschemas.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xmlschemastypes.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xmlstring.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xmlunicode.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xmlversion.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xmlwriter.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xpath.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xpathInternals.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xpointer.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/libxml-xzlib.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/right.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/html/up.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/index.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/io1.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/io1.res +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/io2.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/io2.res +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/libxml.gif +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/parse1.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/parse2.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/parse3.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/parse4.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/reader1.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/reader1.res +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/reader2.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/reader3.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/reader3.res +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/reader4.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/reader4.res +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/redhat.gif +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/smallfootonly.gif +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/structure.gif +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/test1.xml +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/test2.xml +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/test3.xml +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/testWriter.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tree1.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tree1.res +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tree2.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tree2.res +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tst.xml +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/apa.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/apb.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/apc.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/apd.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/ape.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/apf.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/apg.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/aph.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/api.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/ar01s02.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/ar01s03.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/ar01s04.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/ar01s05.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/ar01s06.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/ar01s07.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/ar01s08.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/ar01s09.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/blank.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/callouts/1.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/callouts/10.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/callouts/2.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/callouts/3.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/callouts/4.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/callouts/5.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/callouts/6.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/callouts/7.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/callouts/8.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/callouts/9.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/caution.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/draft.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/home.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/important.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/next.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/note.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/prev.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/tip.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/toc-blank.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/toc-minus.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/toc-plus.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/up.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/images/warning.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/includeaddattribute.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/includeaddkeyword.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/includeconvert.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/includegetattribute.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/includekeyword.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/includexpath.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/index.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/ix01.html +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/tutorial/xmltutorial.pdf +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/w3c.png +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/writer.xml +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/xml.html +44 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/xpath1.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/xpath1.res +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/xpath2.c +0 -0
- data/vendor/local/share/doc/{libxml2-2.9.6 → libxml2-2.9.7}/html/xpath2.res +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +1 -1
- data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +1 -1
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +1 -1
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +47 -6
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PNG-Support.html +4 -2
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +3 -3
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +34 -6
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Recording-Surfaces.html +3 -3
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +10 -10
- data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +37 -12
- data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +14 -14
- 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 +1 -1
- 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 +3 -3
- 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 +31 -31
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +12 -12
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +66 -13
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +8 -8
- data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +11 -11
- data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +5 -1
- data/vendor/local/share/gtk-doc/html/cairo/index-1.10.html +56 -56
- data/vendor/local/share/gtk-doc/html/cairo/index-1.12.html +63 -63
- data/vendor/local/share/gtk-doc/html/cairo/index-1.14.html +5 -5
- data/vendor/local/share/gtk-doc/html/cairo/index-1.2.html +52 -54
- data/vendor/local/share/gtk-doc/html/cairo/index-1.4.html +29 -29
- data/vendor/local/share/gtk-doc/html/cairo/index-1.6.html +22 -22
- data/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +33 -33
- data/vendor/local/share/gtk-doc/html/cairo/index-all.html +512 -504
- data/vendor/local/share/gtk-doc/html/cairo/index.html +1 -1
- data/vendor/local/share/license/libpng/README +1 -1
- data/vendor/local/share/man/man1/xmlcatalog.1 +16 -6
- data/vendor/local/share/man/man3/libpng.3 +23 -14
- data/vendor/local/share/man/man3/libpngpf.3 +1 -1
- metadata +174 -174
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bab33d2692b135861df57eaeaaf732b9583327b
|
4
|
+
data.tar.gz: aaeac71634de1afede71ec13730eeaaefb6bea6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ceec6215b74e40fceec1db580aa50a8ed25d62a7c3d8f73e85e710fb22996f280267982f2bbaf0dfdb5d5b009ee9fabcecb1b2dc717d5d8ae3e489a5457ab887
|
7
|
+
data.tar.gz: e29cace75ff643877b35b773dae0d462f8dd18b5bd536dffc6cd3e50c645e8d0c3f3ca521a4f02a3e7e6d6839bee696e4269b897836e43c9eb2b0082ad7d8de2
|
data/NEWS
CHANGED
@@ -1,3 +1,41 @@
|
|
1
|
+
Release 1.15.11 (2017-12-14) Kouhei Sutou <kou@cozmixng.org>
|
2
|
+
============================================================
|
3
|
+
|
4
|
+
Improvements
|
5
|
+
------------
|
6
|
+
|
7
|
+
* Added cairo 1.15.10 support.
|
8
|
+
|
9
|
+
* Added Cairo::SVGUnit
|
10
|
+
|
11
|
+
* Added Cairo::SVGSurface#document_unit
|
12
|
+
|
13
|
+
* Added Cairo::SVGSurface#document_unit=
|
14
|
+
|
15
|
+
* Added Cairo::MIMEType::CCITT_FAX
|
16
|
+
|
17
|
+
* Added Cairo::MIMEType::CCITT_FAX_PARAMS
|
18
|
+
|
19
|
+
* Added Cairo::MIMEType::EPS
|
20
|
+
|
21
|
+
* Added Cairo::MIMEType::EPS_PARAMS
|
22
|
+
|
23
|
+
* test: Updated expected value for cairo 1.15.
|
24
|
+
[GitHub#50][Reported by Mamoru TASAKA]
|
25
|
+
|
26
|
+
* Windows: Updated bundled libraries:
|
27
|
+
|
28
|
+
* libpng: 1.6.32 -> 1.6.34
|
29
|
+
|
30
|
+
* libxml2: 2.9.6 -> 2.9.7
|
31
|
+
|
32
|
+
* cairo: 1.15.8 -> 1.15.10
|
33
|
+
|
34
|
+
Thanks
|
35
|
+
------
|
36
|
+
|
37
|
+
* Mamoru TASAKA
|
38
|
+
|
1
39
|
Release 1.15.10 (2017-10-15) Kouhei Sutou <kou@cozmixng.org>
|
2
40
|
============================================================
|
3
41
|
|
data/Rakefile
CHANGED
@@ -444,7 +444,7 @@ end
|
|
444
444
|
|
445
445
|
windows_task = WindowsTask.new(spec) do |task|
|
446
446
|
zlib_version = "1.2.11"
|
447
|
-
libpng_version = "1.6.
|
447
|
+
libpng_version = "1.6.34"
|
448
448
|
freetype_version = "2.8.1"
|
449
449
|
task.packages = [
|
450
450
|
{
|
@@ -477,7 +477,7 @@ windows_task = WindowsTask.new(spec) do |task|
|
|
477
477
|
},
|
478
478
|
{
|
479
479
|
:name => "libxml2",
|
480
|
-
:version => "2.9.
|
480
|
+
:version => "2.9.7",
|
481
481
|
:download_base_url => "ftp://xmlsoft.org/libxml2",
|
482
482
|
:compression_method => "gz",
|
483
483
|
:windows => {
|
@@ -511,7 +511,7 @@ windows_task = WindowsTask.new(spec) do |task|
|
|
511
511
|
},
|
512
512
|
{
|
513
513
|
:name => "cairo",
|
514
|
-
:version => "1.15.
|
514
|
+
:version => "1.15.10",
|
515
515
|
:download_site => :cairo_snapshots,
|
516
516
|
:windows => {
|
517
517
|
:built_file => "bin/libcairo-2.dll",
|
data/ext/cairo/cairo.def
CHANGED
@@ -85,6 +85,10 @@ EXPORTS
|
|
85
85
|
rb_mCairo_TextClusterFlag DATA
|
86
86
|
rb_mCairo_ScriptMode DATA
|
87
87
|
rb_mCairo_MimeType DATA
|
88
|
+
rb_mCairo_RegionOverlap DATA
|
89
|
+
rb_mCairo_PDFOutlineFlags DATA
|
90
|
+
rb_mCairo_PDFMetadata DATA
|
91
|
+
rb_mCairo_SVGUnit DATA
|
88
92
|
|
89
93
|
rb_mCairo_Color DATA
|
90
94
|
rb_cCairo_Color_Base DATA
|
data/ext/cairo/rb_cairo.h
CHANGED
@@ -73,7 +73,7 @@ RB_CAIRO_BEGIN_DECLS
|
|
73
73
|
|
74
74
|
#define RB_CAIRO_VERSION_MAJOR 1
|
75
75
|
#define RB_CAIRO_VERSION_MINOR 15
|
76
|
-
#define RB_CAIRO_VERSION_MICRO
|
76
|
+
#define RB_CAIRO_VERSION_MICRO 11
|
77
77
|
|
78
78
|
RB_CAIRO_VAR VALUE rb_mCairo;
|
79
79
|
RB_CAIRO_VAR VALUE rb_cCairo_Context;
|
@@ -163,6 +163,7 @@ RB_CAIRO_VAR VALUE rb_mCairo_MimeType;
|
|
163
163
|
RB_CAIRO_VAR VALUE rb_mCairo_RegionOverlap;
|
164
164
|
RB_CAIRO_VAR VALUE rb_mCairo_PDFOutlineFlags;
|
165
165
|
RB_CAIRO_VAR VALUE rb_mCairo_PDFMetadata;
|
166
|
+
RB_CAIRO_VAR VALUE rb_mCairo_SVGUnit;
|
166
167
|
RB_CAIRO_VAR VALUE rb_mCairo_Color;
|
167
168
|
RB_CAIRO_VAR VALUE rb_cCairo_Color_Base;
|
168
169
|
RB_CAIRO_VAR VALUE rb_cCairo_Paper;
|
@@ -305,6 +306,9 @@ VALUE rb_cairo_device_to_ruby_object (cairo_device_t *de
|
|
305
306
|
#define RVAL2CRPDFOUTLINEFLAGS(obj) (rb_cairo_pdf_outline_flags_from_ruby_object(obj))
|
306
307
|
#define RVAL2CRPDFMETADATA(obj) (rb_cairo_pdf_metadata_from_ruby_object(obj))
|
307
308
|
#endif
|
309
|
+
#if CAIRO_CHECK_VERSION(1, 15, 10)
|
310
|
+
#define RVAL2CRSVGUNIT(obj) (rb_cairo_svg_unit_from_ruby_object(obj))
|
311
|
+
#endif
|
308
312
|
|
309
313
|
cairo_operator_t rb_cairo_operator_from_ruby_object (VALUE obj);
|
310
314
|
cairo_antialias_t rb_cairo_antialias_from_ruby_object (VALUE obj);
|
@@ -347,6 +351,9 @@ cairo_region_overlap_t rb_cairo_region_overlap_from_ruby_object(VALUE obj);
|
|
347
351
|
cairo_pdf_outline_flags_t rb_cairo_pdf_outline_flags_from_ruby_object(VALUE obj);
|
348
352
|
cairo_pdf_metadata_t rb_cairo_pdf_metadata_from_ruby_object(VALUE obj);
|
349
353
|
#endif
|
354
|
+
#if CAIRO_CHECK_VERSION(1, 15, 10)
|
355
|
+
cairo_svg_unit_t rb_cairo_svg_unit_from_ruby_object(VALUE obj);
|
356
|
+
#endif
|
350
357
|
|
351
358
|
void rb_cairo_check_status (cairo_status_t status);
|
352
359
|
void rb_cairo_surface_check_status (cairo_surface_t *surface);
|
@@ -41,6 +41,7 @@ VALUE rb_mCairo_MimeType = Qnil;
|
|
41
41
|
VALUE rb_mCairo_RegionOverlap = Qnil;
|
42
42
|
VALUE rb_mCairo_PDFOutlineFlags = Qnil;
|
43
43
|
VALUE rb_mCairo_PDFMetadata = Qnil;
|
44
|
+
VALUE rb_mCairo_SVGUnit = Qnil;
|
44
45
|
|
45
46
|
#define CAIRO_OPERATOR_MIN CAIRO_OPERATOR_CLEAR
|
46
47
|
#if CAIRO_CHECK_VERSION(1, 10, 0)
|
@@ -138,6 +139,9 @@ VALUE rb_mCairo_PDFMetadata = Qnil;
|
|
138
139
|
#define CAIRO_PDF_METADATA_MIN CAIRO_PDF_METADATA_TITLE
|
139
140
|
#define CAIRO_PDF_METADATA_MAX CAIRO_PDF_METADATA_MOD_DATE
|
140
141
|
|
142
|
+
#define CAIRO_SVG_UNIT_MIN CAIRO_SVG_UNIT_USER
|
143
|
+
#define CAIRO_SVG_UNIT_MAX CAIRO_SVG_UNIT_PERCENT
|
144
|
+
|
141
145
|
#define DEFINE_RVAL2ENUM(name, const_name) \
|
142
146
|
cairo_ ## name ## _t \
|
143
147
|
rb_cairo_ ## name ## _from_ruby_object (VALUE rb_ ## name) \
|
@@ -212,6 +216,10 @@ DEFINE_RVAL2ENUM(pdf_outline_flags, PDF_OUTLINE_FLAGS)
|
|
212
216
|
DEFINE_RVAL2ENUM(pdf_metadata, PDF_METADATA)
|
213
217
|
#endif
|
214
218
|
|
219
|
+
#if CAIRO_CHECK_VERSION(1, 15, 10)
|
220
|
+
DEFINE_RVAL2ENUM(svg_unit, SVG_UNIT)
|
221
|
+
#endif
|
222
|
+
|
215
223
|
#if defined(RB_CAIRO_PLATFORM_WIN32) && !defined(PS_LEVEL_ENUM_DEFINED)
|
216
224
|
void
|
217
225
|
rb_cairo_ps_level_from_ruby_object (VALUE rb_ps_level)
|
@@ -677,6 +685,16 @@ Init_cairo_constants (void)
|
|
677
685
|
rb_define_const (rb_mCairo_MimeType, "JBIG2_GLOBAL_ID",
|
678
686
|
rb_str_new2 (CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID));
|
679
687
|
#endif
|
688
|
+
#if CAIRO_CHECK_VERSION(1, 15, 10)
|
689
|
+
rb_define_const (rb_mCairo_MimeType, "CCITT_FAX",
|
690
|
+
rb_str_new_cstr (CAIRO_MIME_TYPE_CCITT_FAX));
|
691
|
+
rb_define_const (rb_mCairo_MimeType, "CCITT_FAX_PARAMS",
|
692
|
+
rb_str_new_cstr (CAIRO_MIME_TYPE_CCITT_FAX_PARAMS));
|
693
|
+
rb_define_const (rb_mCairo_MimeType, "EPS",
|
694
|
+
rb_str_new_cstr (CAIRO_MIME_TYPE_EPS));
|
695
|
+
rb_define_const (rb_mCairo_MimeType, "EPS_PARAMS",
|
696
|
+
rb_str_new_cstr (CAIRO_MIME_TYPE_EPS_PARAMS));
|
697
|
+
#endif
|
680
698
|
|
681
699
|
#if CAIRO_CHECK_VERSION(1, 10, 0)
|
682
700
|
rb_mCairo_RegionOverlap = rb_define_module_under (rb_mCairo, "RegionOverlap");
|
@@ -725,4 +743,29 @@ Init_cairo_constants (void)
|
|
725
743
|
rb_define_const (rb_mCairo_PDFMetadata, "MOD_DATE",
|
726
744
|
INT2NUM (CAIRO_PDF_METADATA_MOD_DATE));
|
727
745
|
#endif
|
746
|
+
|
747
|
+
#if CAIRO_CHECK_VERSION(1, 15, 10)
|
748
|
+
rb_mCairo_SVGUnit =
|
749
|
+
rb_define_module_under (rb_mCairo, "SVGUnit");
|
750
|
+
rb_define_const (rb_mCairo_SVGUnit, "USER",
|
751
|
+
INT2NUM (CAIRO_SVG_UNIT_USER));
|
752
|
+
rb_define_const (rb_mCairo_SVGUnit, "EM",
|
753
|
+
INT2NUM (CAIRO_SVG_UNIT_EM));
|
754
|
+
rb_define_const (rb_mCairo_SVGUnit, "EX",
|
755
|
+
INT2NUM (CAIRO_SVG_UNIT_EX));
|
756
|
+
rb_define_const (rb_mCairo_SVGUnit, "PX",
|
757
|
+
INT2NUM (CAIRO_SVG_UNIT_PX));
|
758
|
+
rb_define_const (rb_mCairo_SVGUnit, "IN",
|
759
|
+
INT2NUM (CAIRO_SVG_UNIT_IN));
|
760
|
+
rb_define_const (rb_mCairo_SVGUnit, "CM",
|
761
|
+
INT2NUM (CAIRO_SVG_UNIT_CM));
|
762
|
+
rb_define_const (rb_mCairo_SVGUnit, "MM",
|
763
|
+
INT2NUM (CAIRO_SVG_UNIT_MM));
|
764
|
+
rb_define_const (rb_mCairo_SVGUnit, "PT",
|
765
|
+
INT2NUM (CAIRO_SVG_UNIT_PT));
|
766
|
+
rb_define_const (rb_mCairo_SVGUnit, "PC",
|
767
|
+
INT2NUM (CAIRO_SVG_UNIT_PC));
|
768
|
+
rb_define_const (rb_mCairo_SVGUnit, "PERCENT",
|
769
|
+
INT2NUM (CAIRO_SVG_UNIT_PERCENT));
|
770
|
+
#endif
|
728
771
|
}
|
@@ -1443,7 +1443,7 @@ cr_win32_surface_initialize (int argc, VALUE *argv, VALUE self)
|
|
1443
1443
|
format = arg2;
|
1444
1444
|
width = arg3;
|
1445
1445
|
height = arg4;
|
1446
|
-
win32_hdc = NIL_P (hdc) ? NULL : (HDC) NUM2UINT (hdc);
|
1446
|
+
win32_hdc = NIL_P (hdc) ? NULL : (HDC) (UINT_PTR) NUM2UINT (hdc);
|
1447
1447
|
surface = cairo_win32_surface_create_with_ddb (win32_hdc,
|
1448
1448
|
RVAL2CRFORMAT (format),
|
1449
1449
|
NUM2INT (width),
|
@@ -1504,6 +1504,27 @@ cr_svg_surface_restrict_to_version (VALUE self, VALUE version)
|
|
1504
1504
|
rb_cairo_surface_check_status (_SELF);
|
1505
1505
|
return Qnil;
|
1506
1506
|
}
|
1507
|
+
|
1508
|
+
# if CAIRO_CHECK_VERSION(1, 15, 10)
|
1509
|
+
static VALUE
|
1510
|
+
cr_svg_surface_get_document_unit (VALUE self)
|
1511
|
+
{
|
1512
|
+
cairo_svg_unit_t unit;
|
1513
|
+
unit = cairo_svg_surface_get_document_unit (_SELF);
|
1514
|
+
rb_cairo_surface_check_status (_SELF);
|
1515
|
+
return INT2NUM (unit);
|
1516
|
+
}
|
1517
|
+
|
1518
|
+
static VALUE
|
1519
|
+
cr_svg_surface_set_document_unit (VALUE self, VALUE rb_unit)
|
1520
|
+
{
|
1521
|
+
cairo_svg_unit_t unit;
|
1522
|
+
unit = RVAL2CRSVGUNIT (rb_unit);
|
1523
|
+
cairo_svg_surface_set_document_unit (_SELF, unit);
|
1524
|
+
rb_cairo_surface_check_status (_SELF);
|
1525
|
+
return Qnil;
|
1526
|
+
}
|
1527
|
+
# endif
|
1507
1528
|
#endif
|
1508
1529
|
|
1509
1530
|
#ifdef RB_CAIRO_HAS_WIN32_PRINTING_SURFACE
|
@@ -2180,6 +2201,12 @@ Init_cairo_surface (void)
|
|
2180
2201
|
cr_svg_surface_initialize, -1);
|
2181
2202
|
rb_define_method (rb_cCairo_SVGSurface, "restrict_to_version",
|
2182
2203
|
cr_svg_surface_restrict_to_version, 1);
|
2204
|
+
# if CAIRO_CHECK_VERSION(1, 15, 10)
|
2205
|
+
rb_define_method (rb_cCairo_SVGSurface, "document_unit",
|
2206
|
+
cr_svg_surface_get_document_unit, 0);
|
2207
|
+
rb_define_method (rb_cCairo_SVGSurface, "set_document_unit",
|
2208
|
+
cr_svg_surface_set_document_unit, 1);
|
2209
|
+
# endif
|
2183
2210
|
|
2184
2211
|
RB_CAIRO_DEF_SETTERS (rb_cCairo_SVGSurface);
|
2185
2212
|
#endif
|
data/lib/2.2/cairo.so
CHANGED
Binary file
|
data/lib/2.3/cairo.so
CHANGED
Binary file
|
data/lib/2.4/cairo.so
CHANGED
Binary file
|
data/test/test_pdf_surface.rb
CHANGED
@@ -25,11 +25,11 @@ class PDFSurfaceTest < Test::Unit::TestCase
|
|
25
25
|
end
|
26
26
|
id = surface.add_outline(Cairo::PDFOutline::ROOT,
|
27
27
|
"top-level",
|
28
|
-
"destination",
|
28
|
+
"dest='destination'",
|
29
29
|
Cairo::PDFOutlineFlags::OPEN)
|
30
30
|
sub_id = surface.add_outline(sub_id,
|
31
31
|
"sub",
|
32
|
-
"destination",
|
32
|
+
"dest='destination'",
|
33
33
|
Cairo::PDFOutlineFlags::OPEN)
|
34
34
|
assert_equal(2, sub_id)
|
35
35
|
end
|
@@ -15,6 +15,10 @@ class RecordingSurfaceTest < Test::Unit::TestCase
|
|
15
15
|
context.line_to(80, 100)
|
16
16
|
context.stroke
|
17
17
|
end
|
18
|
-
|
18
|
+
if Cairo.satisfied_version?(1, 15)
|
19
|
+
assert_equal([14.0, 29.0, 67.0, 72.0], surface.ink_extents)
|
20
|
+
else
|
21
|
+
assert_equal([10.0, 20.0, 61.0, 61.0], surface.ink_extents)
|
22
|
+
end
|
19
23
|
end
|
20
24
|
end
|
data/test/test_svg_surface.rb
CHANGED
@@ -5,4 +5,13 @@ class SVGSurfaceTest < Test::Unit::TestCase
|
|
5
5
|
surface = Cairo::SVGSurface.new(nil, 10, 20)
|
6
6
|
surface.finish
|
7
7
|
end
|
8
|
+
|
9
|
+
def test_unit
|
10
|
+
only_cairo_version(1, 15, 10)
|
11
|
+
output = StringIO.new
|
12
|
+
surface = Cairo::SVGSurface.new(output, 10, 20)
|
13
|
+
assert_equal(Cairo::SVGUnit::PT, surface.document_unit)
|
14
|
+
surface.document_unit = Cairo::SVGUnit::CM
|
15
|
+
assert_equal(Cairo::SVGUnit::CM, surface.document_unit)
|
16
|
+
end
|
8
17
|
end
|
Binary file
|
data/vendor/local/bin/fc-cat.exe
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/local/bin/pngfix.exe
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -25,6 +25,7 @@
|
|
25
25
|
/*#undef CAIRO_HAS_EGL_FUNCTIONS */
|
26
26
|
/*#undef CAIRO_HAS_GALLIUM_SURFACE */
|
27
27
|
/*#undef CAIRO_HAS_GLESV2_SURFACE */
|
28
|
+
/*#undef CAIRO_HAS_GLESV3_SURFACE */
|
28
29
|
/*#undef CAIRO_HAS_GLX_FUNCTIONS */
|
29
30
|
/*#undef CAIRO_HAS_GL_SURFACE */
|
30
31
|
/*#undef CAIRO_HAS_OS2_SURFACE */
|
@@ -53,6 +53,46 @@ typedef enum _cairo_svg_version {
|
|
53
53
|
CAIRO_SVG_VERSION_1_2
|
54
54
|
} cairo_svg_version_t;
|
55
55
|
|
56
|
+
/**
|
57
|
+
* cairo_svg_version_t:
|
58
|
+
*
|
59
|
+
* @CAIRO_SVG_UNIT_USER: User unit, a value in the current coordinate system.
|
60
|
+
* If used in the root element for the initial coordinate systems it
|
61
|
+
* corresponds to pixels. (Since 1.16)
|
62
|
+
* @CAIRO_SVG_UNIT_EM: The size of the element's font. (Since 1.16)
|
63
|
+
* @CAIRO_SVG_UNIT_EX: The x-height of the element’s font. (Since 1.16)
|
64
|
+
* @CAIRO_SVG_UNIT_PX: Pixels (1px = 1/96th of 1in). (Since 1.16)
|
65
|
+
* @CAIRO_SVG_UNIT_IN: Inches (1in = 2.54cm = 96px). (Since 1.16)
|
66
|
+
* @CAIRO_SVG_UNIT_CM: Centimeters (1cm = 96px/2.54). (Since 1.16)
|
67
|
+
* @CAIRO_SVG_UNIT_MM: Millimeters (1mm = 1/10th of 1cm). (Since 1.16)
|
68
|
+
* @CAIRO_SVG_UNIT_PT: Points (1pt = 1/72th of 1in). (Since 1.16)
|
69
|
+
* @CAIRO_SVG_UNIT_PC: Picas (1pc = 1/6th of 1in). (Since 1.16)
|
70
|
+
* @CAIRO_SVG_UNIT_PERCENT: Percent, a value that is some fraction of another
|
71
|
+
* reference value. (Since 1.16)
|
72
|
+
*
|
73
|
+
* #cairo_svg_unit_t is used to describe the units valid for coordinates and
|
74
|
+
* lengths in the SVG specification.
|
75
|
+
*
|
76
|
+
* See also:
|
77
|
+
* https://www.w3.org/TR/SVG/coords.html#Units
|
78
|
+
* https://www.w3.org/TR/SVG/types.html#DataTypeLength
|
79
|
+
* https://www.w3.org/TR/css-values-3/#lengths
|
80
|
+
*
|
81
|
+
* Since: 1.16
|
82
|
+
**/
|
83
|
+
typedef enum _cairo_svg_unit {
|
84
|
+
CAIRO_SVG_UNIT_USER = 0,
|
85
|
+
CAIRO_SVG_UNIT_EM,
|
86
|
+
CAIRO_SVG_UNIT_EX,
|
87
|
+
CAIRO_SVG_UNIT_PX,
|
88
|
+
CAIRO_SVG_UNIT_IN,
|
89
|
+
CAIRO_SVG_UNIT_CM,
|
90
|
+
CAIRO_SVG_UNIT_MM,
|
91
|
+
CAIRO_SVG_UNIT_PT,
|
92
|
+
CAIRO_SVG_UNIT_PC,
|
93
|
+
CAIRO_SVG_UNIT_PERCENT
|
94
|
+
} cairo_svg_unit_t;
|
95
|
+
|
56
96
|
cairo_public cairo_surface_t *
|
57
97
|
cairo_svg_surface_create (const char *filename,
|
58
98
|
double width_in_points,
|
@@ -75,6 +115,13 @@ cairo_svg_get_versions (cairo_svg_version_t const **versions,
|
|
75
115
|
cairo_public const char *
|
76
116
|
cairo_svg_version_to_string (cairo_svg_version_t version);
|
77
117
|
|
118
|
+
cairo_public void
|
119
|
+
cairo_svg_surface_set_document_unit (cairo_surface_t *surface,
|
120
|
+
cairo_svg_unit_t unit);
|
121
|
+
|
122
|
+
cairo_public cairo_svg_unit_t
|
123
|
+
cairo_svg_surface_get_document_unit (cairo_surface_t *surface);
|
124
|
+
|
78
125
|
CAIRO_END_DECLS
|
79
126
|
|
80
127
|
#else /* CAIRO_HAS_SVG_SURFACE */
|