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.

Files changed (317) hide show
  1. checksums.yaml +4 -4
  2. data/NEWS +27 -0
  3. data/README.rdoc +7 -7
  4. data/Rakefile +72 -23
  5. data/ext/cairo/extconf.rb +3 -3
  6. data/ext/cairo/rb_cairo.h +3 -3
  7. data/ext/cairo/rb_cairo_constants.c +8 -0
  8. data/ext/cairo/rb_cairo_context.c +63 -1
  9. data/ext/cairo/rb_cairo_exception.c +17 -0
  10. data/ext/cairo/rb_cairo_font_face.c +13 -0
  11. data/ext/cairo/rb_cairo_private.c +14 -1
  12. data/ext/cairo/rb_cairo_private.h +12 -1
  13. data/ext/cairo/rb_cairo_surface.c +47 -23
  14. data/lib/2.0/cairo.so +0 -0
  15. data/lib/2.1/cairo.so +0 -0
  16. data/lib/2.2/cairo.so +0 -0
  17. data/lib/cairo/surface.rb +3 -1
  18. data/test/cairo-test-utils.rb +5 -0
  19. data/test/test_constants.rb +11 -0
  20. data/test/test_context.rb +1 -1
  21. data/test/test_exception.rb +9 -0
  22. data/test/test_font_face.rb +1 -1
  23. data/test/test_quartz_image_surface.rb +13 -0
  24. data/test/test_surface.rb +10 -0
  25. data/vendor/local/bin/fc-cache.exe +0 -0
  26. data/vendor/local/bin/fc-cat.exe +0 -0
  27. data/vendor/local/bin/fc-list.exe +0 -0
  28. data/vendor/local/bin/fc-match.exe +0 -0
  29. data/vendor/local/bin/fc-pattern.exe +0 -0
  30. data/vendor/local/bin/fc-query.exe +0 -0
  31. data/vendor/local/bin/fc-scan.exe +0 -0
  32. data/vendor/local/bin/fc-validate.exe +0 -0
  33. data/vendor/local/bin/freetype-config +6 -6
  34. data/vendor/local/bin/libcairo-2.dll +0 -0
  35. data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
  36. data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
  37. data/vendor/local/bin/libfontconfig-1.dll +0 -0
  38. data/vendor/local/bin/libfreetype-6.dll +0 -0
  39. data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
  40. data/vendor/local/bin/libpixman-1-0.dll +0 -0
  41. data/vendor/local/bin/libpng-config +2 -2
  42. data/vendor/local/bin/libpng16-16.dll +0 -0
  43. data/vendor/local/bin/libpng16-config +2 -2
  44. data/vendor/local/bin/libstdc++-6.dll +0 -0
  45. data/vendor/local/bin/libwinpthread-1.dll +0 -0
  46. data/vendor/local/bin/libxml2-2.dll +0 -0
  47. data/vendor/local/bin/png-fix-itxt.exe +0 -0
  48. data/vendor/local/bin/pngfix.exe +0 -0
  49. data/vendor/local/bin/xml2-config +2 -2
  50. data/vendor/local/bin/xmlcatalog.exe +0 -0
  51. data/vendor/local/bin/xmllint.exe +0 -0
  52. data/vendor/local/bin/zlib1.dll +0 -0
  53. data/vendor/local/include/cairo/cairo-version.h +2 -2
  54. data/vendor/local/include/cairo/cairo.h +36 -0
  55. data/vendor/local/include/libpng16/png.h +38 -24
  56. data/vendor/local/include/libpng16/pngconf.h +3 -3
  57. data/vendor/local/include/libpng16/pnglibconf.h +2 -3
  58. data/vendor/local/include/libxml2/libxml/SAX2.h +4 -2
  59. data/vendor/local/include/libxml2/libxml/entities.h +3 -3
  60. data/vendor/local/include/libxml2/libxml/globals.h +12 -5
  61. data/vendor/local/include/libxml2/libxml/relaxng.h +6 -2
  62. data/vendor/local/include/libxml2/libxml/tree.h +49 -42
  63. data/vendor/local/include/libxml2/libxml/xmlIO.h +1 -1
  64. data/vendor/local/include/libxml2/libxml/xmlerror.h +1 -1
  65. data/vendor/local/include/libxml2/libxml/xmlversion.h +4 -4
  66. data/vendor/local/include/pixman-1/pixman-version.h +2 -2
  67. data/vendor/local/include/png.h +38 -24
  68. data/vendor/local/include/pngconf.h +3 -3
  69. data/vendor/local/include/pnglibconf.h +2 -3
  70. data/vendor/local/lib/cmake/libxml2/libxml2-config.cmake +50 -0
  71. data/vendor/local/lib/libcairo-gobject.a +0 -0
  72. data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
  73. data/vendor/local/lib/libcairo-gobject.la +6 -6
  74. data/vendor/local/lib/libcairo-script-interpreter.a +0 -0
  75. data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
  76. data/vendor/local/lib/libcairo-script-interpreter.la +6 -6
  77. data/vendor/local/lib/libcairo.a +0 -0
  78. data/vendor/local/lib/libcairo.dll.a +0 -0
  79. data/vendor/local/lib/libcairo.la +6 -6
  80. data/vendor/local/lib/libfontconfig.dll.a +0 -0
  81. data/vendor/local/lib/libfontconfig.la +2 -2
  82. data/vendor/local/lib/libfreetype.a +0 -0
  83. data/vendor/local/lib/libfreetype.dll.a +0 -0
  84. data/vendor/local/lib/libfreetype.la +2 -2
  85. data/vendor/local/lib/libpixman-1.a +0 -0
  86. data/vendor/local/lib/libpixman-1.dll.a +0 -0
  87. data/vendor/local/lib/libpixman-1.la +3 -3
  88. data/vendor/local/lib/libpng.a +0 -0
  89. data/vendor/local/lib/libpng.dll.a +0 -0
  90. data/vendor/local/lib/libpng.la +4 -4
  91. data/vendor/local/lib/libpng16.a +0 -0
  92. data/vendor/local/lib/libpng16.dll.a +0 -0
  93. data/vendor/local/lib/libpng16.la +4 -4
  94. data/vendor/local/lib/libxml2.a +0 -0
  95. data/vendor/local/lib/libxml2.dll.a +0 -0
  96. data/vendor/local/lib/libxml2.la +3 -3
  97. data/vendor/local/lib/libz.a +0 -0
  98. data/vendor/local/lib/libz.dll.a +0 -0
  99. data/vendor/local/lib/pkgconfig/cairo-fc.pc +2 -2
  100. data/vendor/local/lib/pkgconfig/cairo-ft.pc +2 -2
  101. data/vendor/local/lib/pkgconfig/cairo-gobject.pc +3 -3
  102. data/vendor/local/lib/pkgconfig/cairo-pdf.pc +2 -2
  103. data/vendor/local/lib/pkgconfig/cairo-png.pc +2 -2
  104. data/vendor/local/lib/pkgconfig/cairo-ps.pc +2 -2
  105. data/vendor/local/lib/pkgconfig/cairo-script.pc +2 -2
  106. data/vendor/local/lib/pkgconfig/cairo-svg.pc +2 -2
  107. data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +2 -2
  108. data/vendor/local/lib/pkgconfig/cairo-win32.pc +2 -2
  109. data/vendor/local/lib/pkgconfig/cairo.pc +3 -3
  110. data/vendor/local/lib/pkgconfig/fontconfig.pc +3 -3
  111. data/vendor/local/lib/pkgconfig/freetype2.pc +4 -4
  112. data/vendor/local/lib/pkgconfig/libpng.pc +2 -2
  113. data/vendor/local/lib/pkgconfig/libpng16.pc +2 -2
  114. data/vendor/local/lib/pkgconfig/libxml-2.0.pc +3 -3
  115. data/vendor/local/lib/pkgconfig/pixman-1.pc +2 -2
  116. data/vendor/local/lib/pkgconfig/zlib.pc +3 -3
  117. data/vendor/local/lib/xml2Conf.sh +3 -3
  118. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/Copyright +0 -0
  119. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/examples/testHTML.c +0 -0
  120. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/examples/testSAX.c +0 -0
  121. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/examples/testXPath.c +0 -0
  122. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/examples/xmllint.c +35 -10
  123. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/DOM.gif +0 -0
  124. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/FAQ.html +34 -17
  125. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/Libxml2-Logo-180x168.gif +0 -0
  126. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/Libxml2-Logo-90x34.gif +0 -0
  127. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/encoding.html +20 -10
  128. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/examples.xml +0 -0
  129. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/examples.xsl +0 -0
  130. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/book1.html +0 -0
  131. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/home.png +0 -0
  132. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/index.html +0 -0
  133. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/left.png +0 -0
  134. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-DOCBparser.html +0 -0
  135. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-HTMLparser.html +0 -0
  136. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-HTMLtree.html +0 -0
  137. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-SAX.html +0 -0
  138. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-SAX2.html +0 -0
  139. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-c14n.html +0 -0
  140. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-catalog.html +0 -0
  141. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-chvalid.html +0 -0
  142. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-debugXML.html +0 -0
  143. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-dict.html +0 -0
  144. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-encoding.html +0 -0
  145. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-entities.html +4 -4
  146. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-globals.html +0 -0
  147. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-hash.html +0 -0
  148. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-lib.html +0 -0
  149. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-list.html +0 -0
  150. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-nanoftp.html +0 -0
  151. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-nanohttp.html +0 -0
  152. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-parser.html +0 -0
  153. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-parserInternals.html +0 -0
  154. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-pattern.html +0 -0
  155. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-relaxng.html +0 -0
  156. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-schemasInternals.html +0 -0
  157. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-schematron.html +0 -0
  158. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-threads.html +0 -0
  159. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-tree.html +72 -72
  160. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-uri.html +0 -0
  161. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-valid.html +0 -0
  162. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xinclude.html +0 -0
  163. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xlink.html +0 -0
  164. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlIO.html +0 -0
  165. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlautomata.html +0 -0
  166. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlerror.html +1 -1
  167. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlexports.html +0 -0
  168. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlmemory.html +0 -0
  169. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlmodule.html +0 -0
  170. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlreader.html +0 -0
  171. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlregexp.html +0 -0
  172. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlsave.html +0 -0
  173. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlschemas.html +0 -0
  174. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlschemastypes.html +2 -2
  175. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlstring.html +0 -0
  176. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlunicode.html +0 -0
  177. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlversion.html +0 -0
  178. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlwriter.html +0 -0
  179. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xpath.html +0 -0
  180. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xpathInternals.html +0 -0
  181. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xpointer.html +0 -0
  182. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xzlib.html +0 -0
  183. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/right.png +0 -0
  184. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/up.png +0 -0
  185. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/index.html +0 -0
  186. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/io1.c +0 -0
  187. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/io1.res +0 -0
  188. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/io2.c +0 -0
  189. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/io2.res +0 -0
  190. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/libxml.gif +0 -0
  191. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/parse1.c +0 -0
  192. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/parse2.c +0 -0
  193. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/parse3.c +0 -0
  194. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/parse4.c +0 -0
  195. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader1.c +0 -0
  196. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader1.res +0 -0
  197. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader2.c +0 -0
  198. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader3.c +0 -0
  199. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader3.res +0 -0
  200. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader4.c +0 -0
  201. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader4.res +0 -0
  202. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/redhat.gif +0 -0
  203. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/smallfootonly.gif +0 -0
  204. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/structure.gif +0 -0
  205. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/test1.xml +0 -0
  206. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/test2.xml +0 -0
  207. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/test3.xml +0 -0
  208. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/testWriter.c +0 -0
  209. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tree1.c +0 -0
  210. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tree1.res +0 -0
  211. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tree2.c +0 -0
  212. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tree2.res +0 -0
  213. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tst.xml +0 -0
  214. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apa.html +0 -0
  215. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apb.html +0 -0
  216. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apc.html +0 -0
  217. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apd.html +0 -0
  218. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ape.html +0 -0
  219. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apf.html +0 -0
  220. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apg.html +0 -0
  221. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/aph.html +0 -0
  222. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/api.html +0 -0
  223. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s02.html +0 -0
  224. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s03.html +0 -0
  225. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s04.html +0 -0
  226. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s05.html +0 -0
  227. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s06.html +0 -0
  228. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s07.html +0 -0
  229. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s08.html +0 -0
  230. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s09.html +0 -0
  231. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/blank.png +0 -0
  232. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/1.png +0 -0
  233. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/10.png +0 -0
  234. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/2.png +0 -0
  235. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/3.png +0 -0
  236. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/4.png +0 -0
  237. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/5.png +0 -0
  238. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/6.png +0 -0
  239. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/7.png +0 -0
  240. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/8.png +0 -0
  241. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/9.png +0 -0
  242. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/caution.png +0 -0
  243. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/draft.png +0 -0
  244. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/home.png +0 -0
  245. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/important.png +0 -0
  246. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/next.png +0 -0
  247. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/note.png +0 -0
  248. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/prev.png +0 -0
  249. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/tip.png +0 -0
  250. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/toc-blank.png +0 -0
  251. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/toc-minus.png +0 -0
  252. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/toc-plus.png +0 -0
  253. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/up.png +0 -0
  254. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/warning.png +0 -0
  255. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includeaddattribute.c +0 -0
  256. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includeaddkeyword.c +0 -0
  257. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includeconvert.c +0 -0
  258. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includegetattribute.c +0 -0
  259. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includekeyword.c +0 -0
  260. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includexpath.c +0 -0
  261. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/index.html +0 -0
  262. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ix01.html +0 -0
  263. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/xmltutorial.pdf +0 -0
  264. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/w3c.png +0 -0
  265. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/writer.xml +0 -0
  266. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xml.html +284 -4
  267. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xpath1.c +0 -0
  268. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xpath1.res +0 -0
  269. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xpath2.c +0 -0
  270. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xpath2.res +0 -0
  271. data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +11 -3
  272. data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +12 -29
  273. data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +11 -27
  274. data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +22 -3
  275. data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +43 -100
  276. data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +26 -51
  277. data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html +4 -13
  278. data/vendor/local/share/gtk-doc/html/cairo/cairo-Recording-Surfaces.html +10 -23
  279. data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +8 -8
  280. data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +3 -3
  281. data/vendor/local/share/gtk-doc/html/cairo/cairo-Types.html +7 -17
  282. data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +14 -14
  283. data/vendor/local/share/gtk-doc/html/cairo/cairo-Version-Information.html +342 -0
  284. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +1 -1
  285. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +5 -5
  286. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +2 -2
  287. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-XRender-Backend.html +1 -1
  288. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html +86 -49
  289. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +4 -4
  290. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html +2 -2
  291. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html +71 -119
  292. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +72 -159
  293. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +146 -58
  294. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +22 -46
  295. data/vendor/local/share/gtk-doc/html/cairo/cairo-support.html +3 -1
  296. data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +11 -11
  297. data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +25 -0
  298. data/vendor/local/share/gtk-doc/html/cairo/home.png +0 -0
  299. data/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +9 -0
  300. data/vendor/local/share/gtk-doc/html/cairo/index-all.html +47 -0
  301. data/vendor/local/share/gtk-doc/html/cairo/index.html +4 -1
  302. data/vendor/local/share/gtk-doc/html/cairo/index.sgml +26 -0
  303. data/vendor/local/share/gtk-doc/html/cairo/left.png +0 -0
  304. data/vendor/local/share/gtk-doc/html/cairo/right.png +0 -0
  305. data/vendor/local/share/gtk-doc/html/cairo/up.png +0 -0
  306. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-entities.html +4 -4
  307. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-tree.html +73 -73
  308. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlerror.html +1 -1
  309. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlschemastypes.html +2 -2
  310. data/vendor/local/share/license/cairo/AUTHORS +5 -1
  311. data/vendor/local/share/license/cairo/README +20 -10
  312. data/vendor/local/share/license/libpng/README +20 -7
  313. data/vendor/local/share/man/man1/xmllint.1 +2 -5
  314. data/vendor/local/share/man/man3/libpng.3 +92 -220
  315. data/vendor/local/share/man/man3/libpngpf.3 +2 -2
  316. data/vendor/local/share/man/man5/png.5 +1 -1
  317. metadata +254 -248
@@ -111,6 +111,16 @@ cr_font_face_allocate (VALUE klass)
111
111
  return Data_Wrap_Struct (klass, NULL, cr_font_face_free, NULL);
112
112
  }
113
113
 
114
+ static VALUE
115
+ cr_font_face_quartz_supported_p (VALUE klass)
116
+ {
117
+ #ifdef CAIRO_HAS_QUARTZ_FONT
118
+ return Qtrue;
119
+ #else
120
+ return Qfalse;
121
+ #endif
122
+ }
123
+
114
124
  #if CAIRO_CHECK_VERSION(1, 7, 6)
115
125
  static VALUE
116
126
  cr_toy_font_face_initialize (int argc, VALUE *argv, VALUE self)
@@ -652,6 +662,9 @@ Init_cairo_font (void)
652
662
  rb_define_class_under (rb_mCairo, "FontFace", rb_cObject);
653
663
  rb_define_alloc_func (rb_cCairo_FontFace, cr_font_face_allocate);
654
664
 
665
+ rb_define_singleton_method (rb_cCairo_FontFace, "quartz_supported?",
666
+ cr_font_face_quartz_supported_p, 0);
667
+
655
668
  #if CAIRO_CHECK_VERSION(1, 7, 6)
656
669
  rb_cCairo_ToyFontFace =
657
670
  rb_define_class_under (rb_mCairo, "ToyFontFace", rb_cCairo_FontFace);
@@ -5,7 +5,7 @@
5
5
  * $Author: kou $
6
6
  * $Date: 2008-08-17 07:21:42 $
7
7
  *
8
- * Copyright 2005-2008 Kouhei Sutou <kou@cozmixng.org>
8
+ * Copyright 2005-2014 Kouhei Sutou <kou@cozmixng.org>
9
9
  *
10
10
  * This file is made available under the same terms as Ruby
11
11
  *
@@ -14,6 +14,8 @@
14
14
  #include "rb_cairo.h"
15
15
  #include "rb_cairo_private.h"
16
16
 
17
+ VALUE rb_cairo__cFFIPointer;
18
+
17
19
  static ID cr_id_normalize_const_name;
18
20
  static ID cr_id_objects;
19
21
  static ID cr_id_dup;
@@ -239,4 +241,15 @@ Init_cairo_private (void)
239
241
  cr_id_dup = rb_intern ("dup");
240
242
  cr_id_inspect = rb_intern ("inspect");
241
243
  cr_id_exit_application = rb_intern ("exit_application");
244
+
245
+ if (rb_const_defined (rb_cObject, rb_intern ("FFI")))
246
+ {
247
+ rb_cairo__cFFIPointer =
248
+ rb_const_get (rb_const_get (rb_cObject, rb_intern ("FFI")),
249
+ rb_intern ("Pointer"));
250
+ }
251
+ else
252
+ {
253
+ rb_cairo__cFFIPointer = Qnil;
254
+ }
242
255
  }
@@ -5,7 +5,7 @@
5
5
  * $Author: kou $
6
6
  * $Date: 2008-08-17 07:21:42 $
7
7
  *
8
- * Copyright 2005-2008 Kouhei Sutou <kou@cozmixng.org>
8
+ * Copyright 2005-2014 Kouhei Sutou <kou@cozmixng.org>
9
9
  *
10
10
  * This file is made available under the same terms as Ruby
11
11
  *
@@ -43,6 +43,15 @@
43
43
  # define RB_ERRINFO (ruby_errinfo)
44
44
  #endif
45
45
 
46
+ /* from dl/dl.h (ruby 1.9) */
47
+ #if SIZEOF_LONG == SIZEOF_VOIDP
48
+ # define PTR2NUM(x) (ULONG2NUM((unsigned long)(x)))
49
+ # define NUM2PTR(x) ((void *)(NUM2ULONG(x)))
50
+ #else
51
+ # define PTR2NUM(x) (ULL2NUM((unsigned long long)(x)))
52
+ # define NUM2PTR(x) ((void *)(NUM2ULL(x)))
53
+ #endif
54
+
46
55
  extern void Init_cairo_private (void);
47
56
  extern void Init_cairo_io (void);
48
57
  extern void Init_cairo_constants (void);
@@ -115,4 +124,6 @@ cairo_status_t rb_cairo__exception_to_status (VALUE exception);
115
124
  typedef VALUE (*cr_callback_func_t) (VALUE user_data);
116
125
  VALUE rb_cairo__invoke_callback (cr_callback_func_t func, VALUE user_data);
117
126
 
127
+ extern VALUE rb_cairo__cFFIPointer;
128
+
118
129
  #endif
@@ -54,7 +54,8 @@ enum ruby_value_type {
54
54
  # include <cairo-quartz.h>
55
55
  # define T_DATA RUBY_T_DATA
56
56
  # define RB_CAIRO_HAS_QUARTZ_SURFACE
57
- # ifdef RB_CAIRO_HAS_QUARTZ_IMAGE_SURFACE_TYPE
57
+ # ifdef CAIRO_HAS_QUARTZ_IMAGE_SURFACE
58
+ # include <cairo-quartz-image.h>
58
59
  # define RB_CAIRO_HAS_QUARTZ_IMAGE_SURFACE
59
60
  # endif
60
61
  #endif
@@ -829,6 +830,27 @@ cr_surface_get_device_offset (VALUE self)
829
830
  return rb_ary_new3 (2, rb_float_new (x_offset), rb_float_new (y_offset));
830
831
  }
831
832
 
833
+ #if CAIRO_CHECK_VERSION(1, 14, 0)
834
+ static VALUE
835
+ cr_surface_set_device_scale (VALUE self, VALUE x_scale, VALUE y_scale)
836
+ {
837
+ cairo_surface_set_device_scale (_SELF,
838
+ NUM2DBL (x_scale),
839
+ NUM2DBL (y_scale));
840
+ cr_surface_check_status (_SELF);
841
+ return self;
842
+ }
843
+
844
+ static VALUE
845
+ cr_surface_get_device_scale (VALUE self)
846
+ {
847
+ double x_scale, y_scale;
848
+
849
+ cairo_surface_get_device_scale (_SELF, &x_scale, &y_scale);
850
+ return rb_ary_new3 (2, rb_float_new (x_scale), rb_float_new (y_scale));
851
+ }
852
+ #endif
853
+
832
854
  static VALUE
833
855
  cr_surface_set_fallback_resolution (VALUE self,
834
856
  VALUE x_pixels_per_inch,
@@ -1199,8 +1221,10 @@ cr_ps_surface_set_eps (VALUE self, VALUE eps)
1199
1221
  /* Quartz-surface functions */
1200
1222
  #include <objc/objc-runtime.h>
1201
1223
 
1224
+ # ifdef HAVE_RUBY_COCOA
1202
1225
  BOOL rbobj_to_nsobj (VALUE obj, id* nsobj);
1203
1226
  VALUE ocid_to_rbobj (VALUE context_obj, id ocid);
1227
+ # endif
1204
1228
 
1205
1229
  static VALUE
1206
1230
  cr_quartz_surface_initialize (int argc, VALUE *argv, VALUE self)
@@ -1211,10 +1235,9 @@ cr_quartz_surface_initialize (int argc, VALUE *argv, VALUE self)
1211
1235
  cairo_surface_t *surface = NULL;
1212
1236
  cairo_format_t format = CAIRO_FORMAT_ARGB32;
1213
1237
  VALUE arg1, arg2, arg3, rb_width, rb_height;
1214
- #ifdef HAVE_RUBY_COCOA
1238
+ # ifdef HAVE_RUBY_COCOA
1215
1239
  static VALUE rb_cOSXCGContextRef = Qnil;
1216
- #endif
1217
- static VALUE rb_cFFIPointer = Qnil;
1240
+ # endif
1218
1241
 
1219
1242
  rb_scan_args (argc, argv, "21", &arg1, &arg2, &arg3);
1220
1243
 
@@ -1235,27 +1258,23 @@ cr_quartz_surface_initialize (int argc, VALUE *argv, VALUE self)
1235
1258
  format = RVAL2CRFORMAT (arg1);
1236
1259
  break;
1237
1260
  default:
1238
- #ifdef HAVE_RUBY_COCOA
1261
+ # ifdef HAVE_RUBY_COCOA
1239
1262
  if (NIL_P (rb_cOSXCGContextRef))
1240
1263
  rb_cOSXCGContextRef =
1241
1264
  rb_const_get (rb_const_get (rb_cObject, rb_intern ("OSX")),
1242
1265
  rb_intern ("CGContextRef"));
1243
- #endif
1244
-
1245
- if (NIL_P (rb_cFFIPointer))
1246
- rb_cFFIPointer =
1247
- rb_const_get (rb_const_get (rb_cObject, rb_intern ("FFI")),
1248
- rb_intern ("Pointer"));
1266
+ # endif
1249
1267
 
1250
- #ifdef HAVE_RUBY_COCOA
1268
+ # ifdef HAVE_RUBY_COCOA
1251
1269
  if (RTEST (rb_obj_is_kind_of (arg1, rb_cOSXCGContextRef)))
1252
1270
  {
1253
1271
  rbobj_to_nsobj (arg1, &objc_object);
1254
1272
  }
1255
1273
  else
1256
- #endif
1274
+ # endif
1257
1275
  {
1258
- if (RTEST (rb_obj_is_kind_of (arg1, rb_cFFIPointer)))
1276
+ if (!NIL_P (rb_cairo__cFFIPointer) &&
1277
+ RTEST (rb_obj_is_kind_of (arg1, rb_cairo__cFFIPointer)))
1259
1278
  {
1260
1279
  VALUE rb_objc_pointer;
1261
1280
  rb_objc_pointer = rb_funcall (arg1,
@@ -1305,27 +1324,25 @@ cr_quartz_surface_initialize (int argc, VALUE *argv, VALUE self)
1305
1324
  static VALUE
1306
1325
  cr_quartz_surface_get_cg_context (VALUE self)
1307
1326
  {
1327
+ # ifdef HAVE_RUBY_COCOA
1308
1328
  CGContextRef context;
1309
1329
  id objc_object;
1310
1330
 
1311
1331
  context = cairo_quartz_surface_get_cg_context (_SELF);
1312
1332
  objc_object = (id)context;
1313
1333
  return ocid_to_rbobj (Qnil, objc_object);
1334
+ # else
1335
+ rb_raise (rb_eNotImpError,
1336
+ "%s#cg_context requires RubyCocoa",
1337
+ rb_obj_classname(self));
1338
+ return Qnil;
1339
+ # endif
1314
1340
  }
1315
1341
  #endif
1316
1342
 
1317
1343
  #ifdef CAIRO_HAS_WIN32_SURFACE
1318
1344
  /* Win32 surface functions */
1319
1345
 
1320
- /* from dl/dl.h (ruby 1.9) */
1321
- # if SIZEOF_LONG == SIZEOF_VOIDP
1322
- # define PTR2NUM(x) (ULONG2NUM((unsigned long)(x)))
1323
- # define NUM2PTR(x) ((void *)(NUM2ULONG(x)))
1324
- # else
1325
- # define PTR2NUM(x) (ULL2NUM((unsigned long long)(x)))
1326
- # define NUM2PTR(x) ((void *)(NUM2ULL(x)))
1327
- # endif
1328
-
1329
1346
  static VALUE
1330
1347
  cr_win32_surface_initialize (int argc, VALUE *argv, VALUE self)
1331
1348
  {
@@ -1467,6 +1484,7 @@ cr_win32_printing_surface_initialize (VALUE self, VALUE hdc)
1467
1484
  #endif
1468
1485
 
1469
1486
  #ifdef RB_CAIRO_HAS_QUARTZ_IMAGE_SURFACE
1487
+
1470
1488
  /* Quartz image surface functions */
1471
1489
  static VALUE
1472
1490
  cr_quartz_image_surface_initialize (VALUE self, VALUE image_surface)
@@ -2005,6 +2023,12 @@ Init_cairo_surface (void)
2005
2023
  cr_surface_set_device_offset, 2);
2006
2024
  rb_define_method (rb_cCairo_Surface, "device_offset",
2007
2025
  cr_surface_get_device_offset, 0);
2026
+ #if CAIRO_CHECK_VERSION(1, 14, 0)
2027
+ rb_define_method (rb_cCairo_Surface, "set_device_scale",
2028
+ cr_surface_set_device_scale, 2);
2029
+ rb_define_method (rb_cCairo_Surface, "device_scale",
2030
+ cr_surface_get_device_scale, 0);
2031
+ #endif
2008
2032
  rb_define_method (rb_cCairo_Surface, "set_fallback_resolution",
2009
2033
  cr_surface_set_fallback_resolution, 2);
2010
2034
  #if CAIRO_CHECK_VERSION(1, 7, 2)
Binary file
Binary file
Binary file
@@ -2,7 +2,9 @@ module Cairo
2
2
  class Surface
3
3
  class << self
4
4
  def supported?(type)
5
- supported_predicate = "#{type.to_s.downcase}_supported?"
5
+ type_components = type.to_s.split(/([A-Z][a-z\d]+)/).reject(&:empty?)
6
+ snake_case_type_name = type_components.join("_").downcase
7
+ supported_predicate = "#{snake_case_type_name}_supported?"
6
8
  return false unless respond_to?(supported_predicate)
7
9
  send(supported_predicate)
8
10
  end
@@ -1,5 +1,6 @@
1
1
  require 'cairo'
2
2
  require 'stringio'
3
+ require 'test/unit/notify'
3
4
 
4
5
  module CairoTestUtils
5
6
  private
@@ -17,6 +18,10 @@ module CairoTestUtils
17
18
  /cygwin|mingw|mswin32|bccwin32/.match(RUBY_PLATFORM) ? true : false
18
19
  end
19
20
 
21
+ def quartz?
22
+ Cairo::FontFace.quartz_supported?
23
+ end
24
+
20
25
  def only_device(name)
21
26
  only_cairo_version(1, 10)
22
27
 
@@ -13,4 +13,15 @@ class ConstantsTest < Test::Unit::TestCase
13
13
  [0,
14
14
  Cairo::TextClusterFlag::BACKWARD])
15
15
  end
16
+
17
+ def test_new_constants_since_1_14_0
18
+ if Cairo.satisfied_version?(1, 14, 0)
19
+ assertion = :assert_const_defined
20
+ else
21
+ assertion = :assert_not_const_defined
22
+ end
23
+ send(assertion, Cairo::MimeType, :JBIG2)
24
+ send(assertion, Cairo::MimeType, :JBIG2_GLOBAL)
25
+ send(assertion, Cairo::MimeType, :JBIG2_GLOBAL_ID)
26
+ end
16
27
  end
@@ -73,7 +73,7 @@ class ContextTest < Test::Unit::TestCase
73
73
 
74
74
  face = context.font_face
75
75
  default_font_family = ""
76
- # default_font_family = "Helvetica" if quartz?
76
+ default_font_family = "Helvetica" if quartz?
77
77
  default_font_family = "Arial" if win32?
78
78
  assert_equal([default_font_family,
79
79
  Cairo::FONT_SLANT_NORMAL,
@@ -16,6 +16,15 @@ class ExceptionTest < Test::Unit::TestCase
16
16
  send(assertion, "InvalidWeight")
17
17
  end
18
18
 
19
+ def test_new_symbols_since_1_14_0
20
+ if Cairo.satisfied_version?(1, 14, 0)
21
+ assertion = :assert_defined
22
+ else
23
+ assertion = :assert_not_defined
24
+ end
25
+ send(assertion, "JBIG2GlobalMissing")
26
+ end
27
+
19
28
  private
20
29
  def assert_defined(name)
21
30
  assert_true(Cairo.const_defined?(name))
@@ -8,7 +8,7 @@ class FontFaceTest < Test::Unit::TestCase
8
8
 
9
9
  face = Cairo::ToyFontFace.new
10
10
  default_font_family = ""
11
- # default_font_family = "Helvetica" if quartz?
11
+ default_font_family = "Helvetica" if quartz?
12
12
  default_font_family = "Arial" if win32?
13
13
  assert_equal([default_font_family,
14
14
  Cairo::FONT_SLANT_NORMAL,
@@ -0,0 +1,13 @@
1
+ class QuartzImageSurfaceTest < Test::Unit::TestCase
2
+ include CairoTestUtils
3
+
4
+ def setup
5
+ only_surface("QuartzImage")
6
+ end
7
+
8
+ def test_quartz_image_surface
9
+ surface = Cairo::ImageSurface.new(100, 100)
10
+ quartz_surface = Cairo::QuartzImageSurface.new(surface)
11
+ assert_kind_of(Cairo::QuartzImageSurface, quartz_surface)
12
+ end
13
+ end
@@ -28,6 +28,16 @@ class SurfaceTest < Test::Unit::TestCase
28
28
  end
29
29
  end
30
30
 
31
+ def test_device_scale
32
+ only_cairo_version(1, 14, 0)
33
+ surface = Cairo::ImageSurface.new(100, 100)
34
+
35
+ assert_equal([1.0, 1.0], surface.device_scale)
36
+
37
+ surface.set_device_scale(3.0, 4.0)
38
+ assert_equal([3.0, 4.0], surface.device_scale)
39
+ end
40
+
31
41
  def test_fallback_resolution
32
42
  only_cairo_version(1, 7, 2)
33
43
 
Binary file
Binary file
Binary file
@@ -12,11 +12,11 @@
12
12
  LC_ALL=C
13
13
  export LC_ALL
14
14
 
15
- prefix="/home/kou/work/ruby/rcairo.win32/vendor/local"
16
- exec_prefix="/home/kou/work/ruby/rcairo.win32/vendor/local"
15
+ prefix="/home/vagrant/rcairo.win32/vendor/local"
16
+ exec_prefix="/home/vagrant/rcairo.win32/vendor/local"
17
17
  exec_prefix_set="no"
18
- includedir="/home/kou/work/ruby/rcairo.win32/vendor/local/include"
19
- libdir="/home/kou/work/ruby/rcairo.win32/vendor/local/lib"
18
+ includedir="/home/vagrant/rcairo.win32/vendor/local/include"
19
+ libdir="/home/vagrant/rcairo.win32/vendor/local/lib"
20
20
  enable_shared=""
21
21
 
22
22
  usage()
@@ -142,8 +142,8 @@ if test "$echo_cflags" = "yes" ; then
142
142
  fi
143
143
 
144
144
  if test "$echo_libs" = "yes" ; then
145
- libs="-lfreetype -L/home/kou/work/ruby/rcairo.win32/vendor/local/lib -lz -L/home/kou/work/ruby/rcairo.win32/vendor/local/lib -lpng16"
146
- staticlibs="-lfreetype -L/home/kou/work/ruby/rcairo.win32/vendor/local/lib -lz -L/home/kou/work/ruby/rcairo.win32/vendor/local/lib -lpng16 -lz"
145
+ libs="-lfreetype -L/home/vagrant/rcairo.win32/vendor/local/lib -lz -L/home/vagrant/rcairo.win32/vendor/local/lib -lpng16"
146
+ staticlibs="-lfreetype -L/home/vagrant/rcairo.win32/vendor/local/lib -lz -L/home/vagrant/rcairo.win32/vendor/local/lib -lpng16 -lz"
147
147
  if test "$show_static" = "yes" ; then
148
148
  libs="$staticlibs"
149
149
  fi
@@ -11,8 +11,8 @@
11
11
 
12
12
  # Modeled after libxml-config.
13
13
 
14
- version="1.6.10"
15
- prefix="/home/kou/work/ruby/rcairo.win32/vendor/local"
14
+ version="1.6.14"
15
+ prefix="/home/vagrant/rcairo.win32/vendor/local"
16
16
  exec_prefix="${prefix}"
17
17
  libdir="${exec_prefix}/lib"
18
18
  includedir="${prefix}/include/libpng16"
@@ -11,8 +11,8 @@
11
11
 
12
12
  # Modeled after libxml-config.
13
13
 
14
- version="1.6.10"
15
- prefix="/home/kou/work/ruby/rcairo.win32/vendor/local"
14
+ version="1.6.14"
15
+ prefix="/home/vagrant/rcairo.win32/vendor/local"
16
16
  exec_prefix="${prefix}"
17
17
  libdir="${exec_prefix}/lib"
18
18
  includedir="${prefix}/include/libpng16"