pango 3.1.1-x86-mingw32 → 3.1.2-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (307) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +27 -5
  3. data/ext/pango/depend +2 -2
  4. data/ext/pango/extconf.rb +32 -28
  5. data/ext/pango/pango.def +0 -16
  6. data/ext/pango/rb-pango-attr-list.c +64 -0
  7. data/ext/pango/rb-pango-attribute.c +147 -0
  8. data/ext/pango/rb-pango-context.c +79 -0
  9. data/ext/pango/{rbpangoconversions.h → rb-pango-conversions.h} +4 -6
  10. data/ext/pango/rb-pango-private.h +27 -0
  11. data/ext/pango/rb-pango.c +32 -0
  12. data/ext/pango/rb-pango.h +29 -0
  13. data/extconf.rb +25 -9
  14. data/lib/2.2/pango.so +0 -0
  15. data/lib/2.3/pango.so +0 -0
  16. data/lib/2.4/pango.so +0 -0
  17. data/lib/pango.rb +24 -68
  18. data/lib/pango/cairo-loader.rb +63 -0
  19. data/lib/pango/color.rb +31 -0
  20. data/lib/pango/deprecated.rb +37 -0
  21. data/lib/pango/font-description.rb +29 -0
  22. data/lib/pango/language.rb +29 -0
  23. data/lib/pango/layout.rb +41 -0
  24. data/lib/pango/loader.rb +87 -0
  25. data/lib/pango/markup.rb +31 -0
  26. data/lib/pango/matrix.rb +64 -0
  27. data/lib/pango/rectangle.rb +28 -0
  28. data/lib/pango/version.rb +30 -0
  29. data/test/pango-test-utils.rb +7 -7
  30. data/test/run-test.rb +34 -8
  31. data/test/test-attr-list.rb +28 -0
  32. data/test/test-color.rb +1 -3
  33. data/test/test-context.rb +4 -4
  34. data/test/test-enum.rb +37 -0
  35. data/test/test-font-description.rb +31 -0
  36. data/test/test-language.rb +2 -1
  37. data/test/test-layout.rb +12 -0
  38. data/test/test-markup.rb +30 -0
  39. data/test/test-matrix.rb +131 -5
  40. data/test/test-rectangle.rb +16 -3
  41. data/vendor/local/bin/derb.exe +0 -0
  42. data/vendor/local/bin/genbrk.exe +0 -0
  43. data/vendor/local/bin/genccode.exe +0 -0
  44. data/vendor/local/bin/gencfu.exe +0 -0
  45. data/vendor/local/bin/gencmn.exe +0 -0
  46. data/vendor/local/bin/gencnval.exe +0 -0
  47. data/vendor/local/bin/gendict.exe +0 -0
  48. data/vendor/local/bin/gennorm2.exe +0 -0
  49. data/vendor/local/bin/genrb.exe +0 -0
  50. data/vendor/local/bin/gensprep.exe +0 -0
  51. data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
  52. data/vendor/local/bin/hb-shape.exe +0 -0
  53. data/vendor/local/bin/hb-view.exe +0 -0
  54. data/vendor/local/bin/icuinfo.exe +0 -0
  55. data/vendor/local/bin/icupkg.exe +0 -0
  56. data/vendor/local/bin/libgraphene-1.0-0.dll +0 -0
  57. data/vendor/local/bin/libharfbuzz-0.dll +0 -0
  58. data/vendor/local/bin/libpango-1.0-0.dll +0 -0
  59. data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
  60. data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
  61. data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
  62. data/vendor/local/bin/makeconv.exe +0 -0
  63. data/vendor/local/bin/pango-view.exe +0 -0
  64. data/vendor/local/bin/pkgdata.exe +0 -0
  65. data/vendor/local/bin/uconv.exe +0 -0
  66. data/vendor/local/include/graphene-1.0/graphene-box.h +148 -0
  67. data/vendor/local/include/graphene-1.0/graphene-euler.h +140 -0
  68. data/vendor/local/include/graphene-1.0/graphene-frustum.h +93 -0
  69. data/vendor/local/include/graphene-1.0/graphene-gobject.h +119 -0
  70. data/vendor/local/include/graphene-1.0/graphene-macros.h +105 -0
  71. data/vendor/local/include/graphene-1.0/graphene-matrix.h +288 -0
  72. data/vendor/local/include/graphene-1.0/graphene-plane.h +99 -0
  73. data/vendor/local/include/graphene-1.0/graphene-point.h +120 -0
  74. data/vendor/local/include/graphene-1.0/graphene-point3d.h +140 -0
  75. data/vendor/local/include/graphene-1.0/graphene-quad.h +80 -0
  76. data/vendor/local/include/graphene-1.0/graphene-quaternion.h +136 -0
  77. data/vendor/local/include/graphene-1.0/graphene-ray.h +98 -0
  78. data/vendor/local/include/graphene-1.0/graphene-rect.h +180 -0
  79. data/vendor/local/include/graphene-1.0/graphene-simd4f.h +1870 -0
  80. data/vendor/local/include/graphene-1.0/graphene-simd4x4f.h +1045 -0
  81. data/vendor/local/include/graphene-1.0/graphene-size.h +105 -0
  82. data/vendor/local/include/graphene-1.0/graphene-sphere.h +97 -0
  83. data/vendor/local/include/graphene-1.0/graphene-triangle.h +105 -0
  84. data/vendor/local/include/graphene-1.0/graphene-types.h +88 -0
  85. data/vendor/local/include/graphene-1.0/graphene-vec2.h +130 -0
  86. data/vendor/local/include/graphene-1.0/graphene-vec3.h +155 -0
  87. data/vendor/local/include/graphene-1.0/graphene-vec4.h +156 -0
  88. data/vendor/local/include/graphene-1.0/graphene-version-macros.h +185 -0
  89. data/vendor/local/include/graphene-1.0/graphene-version.h +70 -0
  90. data/vendor/local/include/graphene-1.0/graphene.h +61 -0
  91. data/vendor/local/include/harfbuzz/hb-common.h +36 -0
  92. data/vendor/local/include/harfbuzz/hb-font.h +18 -1
  93. data/vendor/local/include/harfbuzz/hb-ot-var.h +105 -0
  94. data/vendor/local/include/harfbuzz/hb-ot.h +1 -0
  95. data/vendor/local/include/harfbuzz/hb-shape.h +0 -16
  96. data/vendor/local/include/harfbuzz/hb-version.h +2 -2
  97. data/vendor/local/include/pango-1.0/pango/pango-engine.h +6 -6
  98. data/vendor/local/include/pango-1.0/pango/pango-features.h +2 -2
  99. data/vendor/local/include/pango-1.0/pango/pango-layout.h +1 -1
  100. data/vendor/local/lib/girepository-1.0/Graphene-1.0.typelib +0 -0
  101. data/vendor/local/lib/girepository-1.0/Pango-1.0.typelib +0 -0
  102. data/vendor/local/lib/graphene-1.0/include/graphene-config.h +89 -0
  103. data/vendor/local/lib/icudt.dll +0 -0
  104. data/vendor/local/lib/icudt58.dll +0 -0
  105. data/vendor/local/lib/icuin.dll +0 -0
  106. data/vendor/local/lib/icuin58.dll +0 -0
  107. data/vendor/local/lib/icuio.dll +0 -0
  108. data/vendor/local/lib/icuio58.dll +0 -0
  109. data/vendor/local/lib/icutest.dll +0 -0
  110. data/vendor/local/lib/icutest58.dll +0 -0
  111. data/vendor/local/lib/icutu.dll +0 -0
  112. data/vendor/local/lib/icutu58.dll +0 -0
  113. data/vendor/local/lib/icuuc.dll +0 -0
  114. data/vendor/local/lib/icuuc58.dll +0 -0
  115. data/vendor/local/lib/libgraphene-1.0.dll.a +0 -0
  116. data/vendor/local/lib/libgraphene-1.0.la +41 -0
  117. data/vendor/local/lib/libharfbuzz-icu.a +0 -0
  118. data/vendor/local/lib/libharfbuzz-icu.la +1 -1
  119. data/vendor/local/lib/libharfbuzz.dll.a +0 -0
  120. data/vendor/local/lib/libharfbuzz.la +1 -1
  121. data/vendor/local/lib/libicudt.dll.a +0 -0
  122. data/vendor/local/lib/libicudt58.dll +0 -0
  123. data/vendor/local/lib/libicuin.dll.a +0 -0
  124. data/vendor/local/lib/libicuio.dll.a +0 -0
  125. data/vendor/local/lib/libicutest.dll.a +0 -0
  126. data/vendor/local/lib/libicutu.dll.a +0 -0
  127. data/vendor/local/lib/libicuuc.dll.a +0 -0
  128. data/vendor/local/lib/libpango-1.0.dll.a +0 -0
  129. data/vendor/local/lib/libpango-1.0.la +1 -1
  130. data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
  131. data/vendor/local/lib/libpangocairo-1.0.la +1 -1
  132. data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
  133. data/vendor/local/lib/libpangoft2-1.0.la +1 -1
  134. data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
  135. data/vendor/local/lib/libpangowin32-1.0.la +1 -1
  136. data/vendor/local/lib/pkgconfig/graphene-1.0.pc +15 -0
  137. data/vendor/local/lib/pkgconfig/graphene-gobject-1.0.pc +15 -0
  138. data/vendor/local/lib/pkgconfig/harfbuzz-icu.pc +1 -1
  139. data/vendor/local/lib/pkgconfig/harfbuzz.pc +1 -1
  140. data/vendor/local/lib/pkgconfig/pango.pc +1 -1
  141. data/vendor/local/lib/pkgconfig/pangocairo.pc +1 -1
  142. data/vendor/local/lib/pkgconfig/pangoft2.pc +1 -1
  143. data/vendor/local/lib/pkgconfig/pangowin32.pc +1 -1
  144. data/vendor/local/share/gir-1.0/Graphene-1.0.gir +8180 -0
  145. data/vendor/local/share/gir-1.0/Pango-1.0.gir +12 -16
  146. data/vendor/local/share/gtk-doc/html/graphene/annotation-glossary.html +57 -0
  147. data/vendor/local/share/gtk-doc/html/graphene/api-index.html +1985 -0
  148. data/vendor/local/share/gtk-doc/html/graphene/ch01.html +97 -0
  149. data/vendor/local/share/gtk-doc/html/graphene/deprecated-api-index.html +34 -0
  150. data/vendor/local/share/gtk-doc/html/graphene/graphene-Box.html +1252 -0
  151. data/vendor/local/share/gtk-doc/html/graphene/graphene-Euler.html +886 -0
  152. data/vendor/local/share/gtk-doc/html/graphene/graphene-Frustum.html +527 -0
  153. data/vendor/local/share/gtk-doc/html/graphene/graphene-GObject-integration.html +147 -0
  154. data/vendor/local/share/gtk-doc/html/graphene/graphene-Matrix.html +2959 -0
  155. data/vendor/local/share/gtk-doc/html/graphene/graphene-Plane.html +641 -0
  156. data/vendor/local/share/gtk-doc/html/graphene/graphene-Point.html +689 -0
  157. data/vendor/local/share/gtk-doc/html/graphene/graphene-Point3D.html +916 -0
  158. data/vendor/local/share/gtk-doc/html/graphene/graphene-Quad.html +418 -0
  159. data/vendor/local/share/gtk-doc/html/graphene/graphene-Quaternion.html +1056 -0
  160. data/vendor/local/share/gtk-doc/html/graphene/graphene-Ray.html +596 -0
  161. data/vendor/local/share/gtk-doc/html/graphene/graphene-Rectangle.html +1483 -0
  162. data/vendor/local/share/gtk-doc/html/graphene/graphene-SIMD-matrix.html +1475 -0
  163. data/vendor/local/share/gtk-doc/html/graphene/graphene-SIMD-vector.html +3046 -0
  164. data/vendor/local/share/gtk-doc/html/graphene/graphene-Size.html +489 -0
  165. data/vendor/local/share/gtk-doc/html/graphene/graphene-Sphere.html +641 -0
  166. data/vendor/local/share/gtk-doc/html/graphene/graphene-Triangle.html +705 -0
  167. data/vendor/local/share/gtk-doc/html/graphene/graphene-Vectors.html +3715 -0
  168. data/vendor/local/share/gtk-doc/html/graphene/graphene-Versioning-information.html +104 -0
  169. data/vendor/local/share/gtk-doc/html/graphene/graphene.devhelp2 +534 -0
  170. data/vendor/local/share/gtk-doc/html/graphene/home.png +0 -0
  171. data/vendor/local/share/gtk-doc/html/graphene/index.html +107 -0
  172. data/vendor/local/share/gtk-doc/html/graphene/ix03.html +1313 -0
  173. data/vendor/local/share/gtk-doc/html/graphene/ix04.html +582 -0
  174. data/vendor/local/share/gtk-doc/html/graphene/ix05.html +151 -0
  175. data/vendor/local/share/gtk-doc/html/graphene/ix06.html +34 -0
  176. data/vendor/local/share/gtk-doc/html/graphene/left-insensitive.png +0 -0
  177. data/vendor/local/share/gtk-doc/html/graphene/left.png +0 -0
  178. data/vendor/local/share/gtk-doc/html/{pango/api-index-1-40.html → graphene/object-tree.html} +14 -11
  179. data/vendor/local/share/gtk-doc/html/graphene/rectangle-intersection.png +0 -0
  180. data/vendor/local/share/gtk-doc/html/graphene/rectangle-union.png +0 -0
  181. data/vendor/local/share/gtk-doc/html/graphene/rectangle.png +0 -0
  182. data/vendor/local/share/gtk-doc/html/graphene/right-insensitive.png +0 -0
  183. data/vendor/local/share/gtk-doc/html/graphene/right.png +0 -0
  184. data/vendor/local/share/gtk-doc/html/graphene/style.css +479 -0
  185. data/vendor/local/share/gtk-doc/html/graphene/triangle-barycentric.png +0 -0
  186. data/vendor/local/share/gtk-doc/html/graphene/up-insensitive.png +0 -0
  187. data/vendor/local/share/gtk-doc/html/graphene/up.png +0 -0
  188. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-2-3.html +2 -2
  189. data/vendor/local/share/gtk-doc/html/harfbuzz/{api-index-1-4-0.html → api-index-1-3-3.html} +2 -2
  190. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +104 -0
  191. data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +9 -2
  192. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-Shaping.html +1 -1
  193. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +156 -40
  194. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +73 -0
  195. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +1 -0
  196. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +49 -0
  197. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-math.html +174 -177
  198. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +40 -0
  199. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +2 -2
  200. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +28 -10
  201. data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +1 -1
  202. data/vendor/local/share/gtk-doc/html/harfbuzz/pt02.html +2 -2
  203. data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +2 -2
  204. data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +2 -2
  205. data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +1 -1
  206. data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +1 -1
  207. data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +3 -3
  208. data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +1 -1
  209. data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +2 -2
  210. data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +1 -1
  211. data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +1 -1
  212. data/vendor/local/share/gtk-doc/html/pango/index.html +2 -23
  213. data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +1 -1
  214. data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +1 -1
  215. data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +69 -69
  216. data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +1 -1
  217. data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +1 -1
  218. data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +5 -1
  219. data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +5 -4
  220. data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +8 -4
  221. data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +3 -3
  222. data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +4 -4
  223. data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +1 -1
  224. data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +3 -1
  225. data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +1 -1
  226. data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +3 -3
  227. data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +1 -1
  228. data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +1 -1
  229. data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +3 -3
  230. data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +3 -3
  231. data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +1 -1
  232. data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +3 -3
  233. data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +1 -1
  234. data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +1 -1
  235. data/vendor/local/share/gtk-doc/html/pango/pango.html +1 -1
  236. data/vendor/local/share/gtk-doc/html/pango/rendering.html +1 -1
  237. data/vendor/local/share/man/man1/pango-view.1 +2 -2
  238. metadata +119 -78
  239. data/README +0 -32
  240. data/ext/pango/rbpango.c +0 -356
  241. data/ext/pango/rbpango.h +0 -95
  242. data/ext/pango/rbpangoanalysis.c +0 -218
  243. data/ext/pango/rbpangoattribute.c +0 -506
  244. data/ext/pango/rbpangoattriterator.c +0 -141
  245. data/ext/pango/rbpangoattrlist.c +0 -101
  246. data/ext/pango/rbpangocairo.c +0 -122
  247. data/ext/pango/rbpangocairocontext.c +0 -131
  248. data/ext/pango/rbpangocolor.c +0 -120
  249. data/ext/pango/rbpangocontext.c +0 -344
  250. data/ext/pango/rbpangocoverage.c +0 -106
  251. data/ext/pango/rbpangoengine.c +0 -73
  252. data/ext/pango/rbpangofont.c +0 -110
  253. data/ext/pango/rbpangofontdescription.c +0 -282
  254. data/ext/pango/rbpangofontface.c +0 -73
  255. data/ext/pango/rbpangofontfamily.c +0 -79
  256. data/ext/pango/rbpangofontmap.c +0 -102
  257. data/ext/pango/rbpangofontmetrics.c +0 -85
  258. data/ext/pango/rbpangofontset.c +0 -69
  259. data/ext/pango/rbpangofontsetsimple.c +0 -60
  260. data/ext/pango/rbpangoglyphinfo.c +0 -123
  261. data/ext/pango/rbpangoglyphitem.c +0 -125
  262. data/ext/pango/rbpangoglyphstring.c +0 -151
  263. data/ext/pango/rbpangogravity.c +0 -54
  264. data/ext/pango/rbpangoitem.c +0 -95
  265. data/ext/pango/rbpangolanguage.c +0 -94
  266. data/ext/pango/rbpangolayout.c +0 -583
  267. data/ext/pango/rbpangolayoutiter.c +0 -189
  268. data/ext/pango/rbpangolayoutline.c +0 -243
  269. data/ext/pango/rbpangologattr.c +0 -109
  270. data/ext/pango/rbpangomatrix.c +0 -143
  271. data/ext/pango/rbpangoprivate.h +0 -49
  272. data/ext/pango/rbpangorectangle.c +0 -170
  273. data/ext/pango/rbpangorenderer.c +0 -193
  274. data/ext/pango/rbpangoscript.c +0 -84
  275. data/ext/pango/rbpangoscriptiter.c +0 -92
  276. data/ext/pango/rbpangotabarray.c +0 -128
  277. data/sample/attribute.rb +0 -82
  278. data/sample/break.rb +0 -28
  279. data/sample/gdk_layout.rb +0 -27
  280. data/sample/glyphstring.rb +0 -61
  281. data/sample/item.rb +0 -37
  282. data/sample/label.rb +0 -23
  283. data/sample/layout.rb +0 -102
  284. data/sample/pango_cairo.rb +0 -66
  285. data/sample/parse.rb +0 -33
  286. data/sample/sample.txt +0 -10
  287. data/sample/script.rb +0 -23
  288. data/vendor/local/share/gtk-doc/html/pango/api-index-1-10.html +0 -134
  289. data/vendor/local/share/gtk-doc/html/pango/api-index-1-12.html +0 -48
  290. data/vendor/local/share/gtk-doc/html/pango/api-index-1-14.html +0 -63
  291. data/vendor/local/share/gtk-doc/html/pango/api-index-1-16.html +0 -227
  292. data/vendor/local/share/gtk-doc/html/pango/api-index-1-18.html +0 -151
  293. data/vendor/local/share/gtk-doc/html/pango/api-index-1-2.html +0 -121
  294. data/vendor/local/share/gtk-doc/html/pango/api-index-1-20.html +0 -86
  295. data/vendor/local/share/gtk-doc/html/pango/api-index-1-22.html +0 -123
  296. data/vendor/local/share/gtk-doc/html/pango/api-index-1-24.html +0 -96
  297. data/vendor/local/share/gtk-doc/html/pango/api-index-1-26.html +0 -45
  298. data/vendor/local/share/gtk-doc/html/pango/api-index-1-30.html +0 -38
  299. data/vendor/local/share/gtk-doc/html/pango/api-index-1-31-0.html +0 -38
  300. data/vendor/local/share/gtk-doc/html/pango/api-index-1-32-4.html +0 -52
  301. data/vendor/local/share/gtk-doc/html/pango/api-index-1-32.html +0 -41
  302. data/vendor/local/share/gtk-doc/html/pango/api-index-1-34.html +0 -38
  303. data/vendor/local/share/gtk-doc/html/pango/api-index-1-38.html +0 -79
  304. data/vendor/local/share/gtk-doc/html/pango/api-index-1-4.html +0 -200
  305. data/vendor/local/share/gtk-doc/html/pango/api-index-1-6.html +0 -164
  306. data/vendor/local/share/gtk-doc/html/pango/api-index-1-8.html +0 -170
  307. data/vendor/local/share/gtk-doc/html/pango/api-index-deprecated.html +0 -441
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea1d50ecd3c103fc926962ba5aaf9c260559e1ac
4
- data.tar.gz: 2ab848b89c8d660b102fb6e9940bb209d444a3bb
3
+ metadata.gz: 1e63ecb8258eb203b7a9426a8f2949f468f4ec9d
4
+ data.tar.gz: b2618b240f696a5d6715bdb447de910c2933c8c3
5
5
  SHA512:
6
- metadata.gz: 1a4a33fa16ffc56821c4117ff663c06d6fa552eaaafffd7c886efd88eca7691b8dab37077d5289d8deb4ceb92ed7cb9e79199d02ee5f8ed6ac7729924a12cc05
7
- data.tar.gz: f8975c4d98c535849a43af9a43fed8a17dd589df2958d2e06404af89ee0c03ca86df4960d66fc0cbbde9808fbe5b9d822de118a3da242104df4c5df001dfc454
6
+ metadata.gz: 1d54d0d40d788a4dc4397174c61607307f06df7bfaa25e4819888414491543b54e62fc3b19b8b88ed93ce8a64a7ec7c139476a2854a38e3a258062bbf355fc3f
7
+ data.tar.gz: 1360b1f71c9a6292e769d17f4d7250cd2f5bb4819054a7b79aff844bcff06a9ac1bafa61d077359e3a5bc52596f9f50f0acddaa9677d233ba78339a4e2373b16
data/Rakefile CHANGED
@@ -22,10 +22,18 @@ require "gnome2/rake/package-task"
22
22
  package_task = GNOME2::Rake::PackageTask.new do |package|
23
23
  package.summary = "Ruby/Pango is a Ruby binding of pango-1.x."
24
24
  package.description = "Ruby/Pango is a Ruby binding of pango-1.x."
25
- package.dependency.gem.runtime = [["cairo", ">= 1.14.0"], "glib2"]
25
+ package.dependency.gem.runtime = [
26
+ ["cairo", ">= 1.14.0"],
27
+ "cairo-gobject",
28
+ "gobject-introspection",
29
+ ]
26
30
  package.windows.packages = []
27
31
  package.windows.dependencies = []
28
- package.windows.build_dependencies = ["glib2", "gobject-introspection"]
32
+ package.windows.build_dependencies = [
33
+ "glib2",
34
+ "gobject-introspection",
35
+ "cairo-gobject",
36
+ ]
29
37
  package.external_packages = [
30
38
  {
31
39
  :name => "icu",
@@ -55,7 +63,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
55
63
  :name => "harfbuzz",
56
64
  :download_site => :freedesktop,
57
65
  :label => "HarfBuzz",
58
- :version => "1.4.1",
66
+ :version => "1.4.6",
59
67
  :compression_method => "bz2",
60
68
  :windows => {
61
69
  :configure_args => [
@@ -65,11 +73,25 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
65
73
  :built_file => "bin/libharfbuzz-0.dll",
66
74
  },
67
75
  },
76
+ {
77
+ :name => "graphene",
78
+ :download_site => :gnome,
79
+ :label => "Graphene",
80
+ :version => "1.6.0",
81
+ :compression_method => "xz",
82
+ :windows => {
83
+ :configure_args => [
84
+ "--enable-introspection",
85
+ "--disable-benchmarks",
86
+ ],
87
+ :built_file => "bin/libgraphene-1.0-0.dll",
88
+ },
89
+ },
68
90
  {
69
91
  :name => "pango",
70
92
  :download_site => :gnome,
71
- :label => "pango",
72
- :version => "1.40.3",
93
+ :label => "Pango",
94
+ :version => "1.40.5",
73
95
  :compression_method => "xz",
74
96
  :windows => {
75
97
  :configure_args => [
data/ext/pango/depend CHANGED
@@ -1,7 +1,7 @@
1
1
  install-so: install-headers
2
2
  install-headers:
3
- $(INSTALL_DATA) $(srcdir)/rbpango.h $(RUBYARCHDIR)
4
- $(INSTALL_DATA) $(srcdir)/rbpangoconversions.h $(RUBYARCHDIR)
3
+ $(INSTALL_DATA) $(srcdir)/rb-pango.h $(RUBYARCHDIR)
4
+ $(INSTALL_DATA) $(srcdir)/rb-pango-conversions.h $(RUBYARCHDIR)
5
5
 
6
6
  install: install-pc
7
7
  install-pc:
data/ext/pango/extconf.rb CHANGED
@@ -1,19 +1,33 @@
1
- =begin
2
- extconf.rb for Ruby/Pango extention library
3
- =end
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # Copyright (C) 2017 Ruby-GNOME2 Project Team
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
4
18
 
5
- require 'pathname'
19
+ require "pathname"
6
20
 
7
21
  base_dir = Pathname(__FILE__).dirname.parent.parent.expand_path
8
22
  top_dir = base_dir.parent
9
23
  top_build_dir = Pathname(".").parent.parent.parent.expand_path
10
24
 
11
- mkmf_gnome2_dir = top_dir + "glib2" + 'lib'
25
+ mkmf_gnome2_dir = top_dir + "glib2" + "lib"
12
26
  version_suffix = ""
13
27
  unless mkmf_gnome2_dir.exist?
14
- if /(-\d+\.\d+\.\d+)(?:\.\d+)?\z/ =~ base_dir.basename.to_s
28
+ if /(-\d+\.\d+\.\d+)\z/ =~ base_dir.basename.to_s
15
29
  version_suffix = $1
16
- mkmf_gnome2_dir = top_dir + "glib2#{version_suffix}" + 'lib'
30
+ mkmf_gnome2_dir = top_dir + "glib2#{version_suffix}" + "lib"
17
31
  end
18
32
  end
19
33
 
@@ -22,20 +36,16 @@ $LOAD_PATH.unshift(mkmf_gnome2_dir.to_s)
22
36
  module_name = "pango"
23
37
  package_id = "pango"
24
38
 
25
- begin
26
- require 'mkmf-gnome2'
27
- rescue LoadError
28
- require 'rubygems'
29
- gem 'glib2'
30
- require 'mkmf-gnome2'
31
- end
32
-
33
- ruby_header = "ruby.h"
34
- have_func("rb_errinfo", ruby_header)
39
+ require "mkmf-gnome2"
35
40
 
36
- ["glib2"].each do |package|
41
+ depended_packages = [
42
+ "glib2",
43
+ ]
44
+ depended_packages.each do |package|
37
45
  directory = "#{package}#{version_suffix}"
38
- build_dir = "#{directory}/tmp/#{RUBY_PLATFORM}/#{package}/#{RUBY_VERSION}"
46
+ build_base_path = "#{directory}/tmp/#{RUBY_PLATFORM}"
47
+ package_library_name = package.gsub(/-/, "_")
48
+ build_dir = "#{build_base_path}/#{package_library_name}/#{RUBY_VERSION}"
39
49
  add_depend_package(package, "#{directory}/ext/#{package}",
40
50
  top_dir.to_s,
41
51
  :top_build_dir => top_build_dir.to_s,
@@ -49,15 +59,15 @@ end
49
59
  setup_windows(module_name, base_dir)
50
60
 
51
61
  unless required_pkg_config_package([package_id, 1, 14, 0],
52
- :altlinux => "libpango-devel",
62
+ :alt_linux => "libpango-devel",
53
63
  :debian => "libpango1.0-dev",
54
64
  :redhat => "pango-devel",
55
- :arch => "pango",
65
+ :arch_linux => "pango",
56
66
  :homebrew => "pango",
57
67
  :macports => "pango")
58
68
  exit(false)
59
69
  end
60
- PKGConfig.have_package('pangocairo')
70
+ PKGConfig.have_package("pangocairo")
61
71
 
62
72
  if PKGConfig.have_package("pangowin32")
63
73
  $defs << " -DHAVE_PANGO_WIN32"
@@ -67,15 +77,9 @@ if PKGConfig.have_package("pangoft2")
67
77
  end
68
78
 
69
79
  pango_header = "pango/pango.h"
70
- have_func("pango_layout_iter_get_type", pango_header)
71
- have_func("pango_render_part_get_type", pango_header)
72
80
  have_func("pango_attr_strikethrough_color_new", pango_header)
73
81
  have_func("pango_attr_underline_color_new", pango_header)
74
- have_func("pango_glyph_item_free", pango_header)
75
- have_func("pango_glyph_item_get_type", pango_header)
76
82
  have_func("pango_attr_iterator_get_attrs", pango_header)
77
- have_func("pango_itemize_with_base_dir", pango_header)
78
- have_func("pango_font_family_is_monospace", pango_header)
79
83
 
80
84
  create_pkg_config_file("Ruby/Pango", package_id)
81
85
  $defs << " -DRUBY_PANGO_COMPILATION"
data/ext/pango/pango.def CHANGED
@@ -1,18 +1,2 @@
1
1
  EXPORTS
2
2
  Init_pango
3
- mPango DATA
4
- attrstring DATA
5
- pattr DATA
6
- pattrbool DATA
7
- pattrcolor DATA
8
- pattrfloat DATA
9
- pattrint DATA
10
- pango_add_attribute
11
- pango_attr_iter_get_type
12
- pango_get_attribute
13
- pango_get_attribute_klass
14
- pango_item_get_type
15
- pango_layout_iter_get_type
16
- pango_layout_line_get_type
17
- pango_make_attribute
18
- pango_rectangle_get_type
@@ -0,0 +1,64 @@
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Copyright (C) 2017 Ruby-GNOME2 Project Team
4
+ *
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2.1 of the License, or (at your option) any later version.
9
+ *
10
+ * This library is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ * Lesser General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
+ * MA 02110-1301 USA
19
+ */
20
+
21
+ #include "rb-pango-private.h"
22
+
23
+ #define RG_TARGET_NAMESPACE cAttrList
24
+
25
+ static VALUE
26
+ rg_insert(VALUE self, VALUE rb_attribute)
27
+ {
28
+ PangoAttribute *attribute;
29
+
30
+ if (NIL_P(rb_attribute))
31
+ return self;
32
+
33
+ attribute = DATA_PTR(rb_attribute);
34
+ pango_attr_list_insert(RVAL2PANGOATTRLIST(self),
35
+ pango_attribute_copy(attribute));
36
+
37
+ return self;
38
+ }
39
+
40
+ static VALUE
41
+ rg_insert_before(VALUE self, VALUE rb_attribute)
42
+ {
43
+ PangoAttribute *attribute;
44
+
45
+ if (NIL_P(rb_attribute))
46
+ return self;
47
+
48
+ attribute = DATA_PTR(rb_attribute);
49
+ pango_attr_list_insert_before(RVAL2PANGOATTRLIST(self),
50
+ pango_attribute_copy(attribute));
51
+
52
+ return self;
53
+ }
54
+
55
+ void
56
+ rbpango_attr_list_init(VALUE mPango)
57
+ {
58
+ VALUE RG_TARGET_NAMESPACE;
59
+
60
+ RG_TARGET_NAMESPACE = G_DEF_CLASS(PANGO_TYPE_ATTR_LIST, "AttrList", mPango);
61
+
62
+ RG_DEF_METHOD(insert, 1);
63
+ RG_DEF_METHOD(insert_before, 1);
64
+ }
@@ -0,0 +1,147 @@
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Copyright (C) 2017 Ruby-GNOME2 Project Team
4
+ *
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2.1 of the License, or (at your option) any later version.
9
+ *
10
+ * This library is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ * Lesser General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
+ * MA 02110-1301 USA
19
+ */
20
+
21
+ #include "rb-pango-private.h"
22
+
23
+ static VALUE
24
+ rbpango_attribute_allocate(VALUE klass)
25
+ {
26
+ return Data_Wrap_Struct(klass, NULL, pango_attribute_destroy, 0);
27
+ }
28
+
29
+ static VALUE
30
+ rbpango_attr_font_desc_initialize(VALUE self, VALUE rb_font_desc)
31
+ {
32
+ PangoFontDescription *font_desc;
33
+
34
+ if (RB_TYPE_P(rb_font_desc, RUBY_T_STRING)) {
35
+ VALUE mPango;
36
+ VALUE cPangoFontDescription;
37
+
38
+ mPango = rb_const_get(rb_cObject, rb_intern("Pango"));
39
+ cPangoFontDescription = rb_const_get(mPango,
40
+ rb_intern("FontDescription"));
41
+ rb_font_desc = rb_funcall(cPangoFontDescription,
42
+ rb_intern("new"), 1, rb_font_desc);
43
+ }
44
+ font_desc = RVAL2PANGOFONTDESCRIPTION(rb_font_desc);
45
+ DATA_PTR(self) = pango_attr_font_desc_new(font_desc);
46
+
47
+ return Qnil;
48
+ }
49
+
50
+ static VALUE
51
+ rbpango_attr_font_features_initialize(VALUE self, VALUE rb_font_features)
52
+ {
53
+ DATA_PTR(self) = pango_attr_font_features_new(RVAL2CSTR(rb_font_features));
54
+
55
+ return Qnil;
56
+ }
57
+
58
+ static VALUE
59
+ rbpango_attr_language_initialize(VALUE self, VALUE rb_language)
60
+ {
61
+ PangoLanguage *language;
62
+
63
+ language = RVAL2PANGOLANGUAGE(rb_language);
64
+ DATA_PTR(self) = pango_attr_language_new(language);
65
+
66
+ return Qnil;
67
+ }
68
+
69
+ static VALUE
70
+ rbpango_attr_shape_initialize(int argc, VALUE *argv, VALUE self)
71
+ {
72
+ VALUE rb_ink_rect;
73
+ VALUE rb_logical_rect;
74
+ VALUE rb_data;
75
+ PangoRectangle *ink_rect;
76
+ PangoRectangle *logical_rect;
77
+
78
+ rb_scan_args(argc, argv, "21", &rb_ink_rect, &rb_logical_rect, &rb_data);
79
+
80
+ ink_rect = RVAL2PANGORECTANGLE(rb_ink_rect);
81
+ logical_rect = RVAL2PANGORECTANGLE(rb_logical_rect);
82
+
83
+ if (NIL_P(rb_data)) {
84
+ DATA_PTR(self) = pango_attr_shape_new(ink_rect, logical_rect);
85
+ } else {
86
+ G_RELATIVE(self, rb_data);
87
+ DATA_PTR(self) = pango_attr_shape_new_with_data(ink_rect,
88
+ logical_rect,
89
+ (gpointer)rb_data,
90
+ NULL,
91
+ NULL);
92
+ }
93
+
94
+ return Qnil;
95
+ }
96
+
97
+ static VALUE
98
+ rbpango_attr_size_initialize(VALUE self, VALUE rb_size)
99
+ {
100
+ gint size;
101
+
102
+ size = NUM2INT(rb_size);
103
+ DATA_PTR(self) = pango_attr_size_new(size);
104
+
105
+ return Qnil;
106
+ }
107
+
108
+ void
109
+ rbpango_attribute_init(VALUE mPango)
110
+ {
111
+ VALUE cAttribute;
112
+
113
+ cAttribute = rb_define_class_under(mPango, "Attribute", rb_cData);
114
+ rb_define_alloc_func(cAttribute, rbpango_attribute_allocate);
115
+
116
+ #define DEFINE_ABSTRACT_ATTRIBUTE(ClassName) \
117
+ do { \
118
+ rb_define_class_under(mPango, \
119
+ #ClassName, \
120
+ cAttribute); \
121
+ } while (FALSE)
122
+
123
+ #define DEFINE_ATTRIBUTE(ClassName, method_name, n_initialize_args) \
124
+ do { \
125
+ VALUE c ## ClassName; \
126
+ c ## ClassName = rb_define_class_under(mPango, \
127
+ #ClassName, \
128
+ cAttribute); \
129
+ rb_define_method(c ## ClassName, "initialize", \
130
+ rbpango_ ## method_name ## _initialize, \
131
+ n_initialize_args); \
132
+ } while (FALSE)
133
+
134
+ DEFINE_ABSTRACT_ATTRIBUTE(AttrBool);
135
+ DEFINE_ABSTRACT_ATTRIBUTE(AttrColor);
136
+ DEFINE_ABSTRACT_ATTRIBUTE(AttrFloat);
137
+ DEFINE_ATTRIBUTE(AttrFontDesc, attr_font_desc, 1);
138
+ DEFINE_ATTRIBUTE(AttrFontFeatures, attr_font_features, 1);
139
+ DEFINE_ABSTRACT_ATTRIBUTE(AttrInt);
140
+ DEFINE_ATTRIBUTE(AttrLanguage, attr_language, 1);
141
+ DEFINE_ATTRIBUTE(AttrShape, attr_shape, -1);
142
+ DEFINE_ATTRIBUTE(AttrSize, attr_size, 1);
143
+ DEFINE_ABSTRACT_ATTRIBUTE(AttrString);
144
+
145
+ #undef DEFINE_ABSTRACT_ATTRIBUTE
146
+ #undef DEFINE_ATTRIBUTE
147
+ }
@@ -0,0 +1,79 @@
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Copyright (C) 2017 Ruby-GNOME2 Project Team
4
+ *
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2.1 of the License, or (at your option) any later version.
9
+ *
10
+ * This library is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ * Lesser General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
+ * MA 02110-1301 USA
19
+ */
20
+
21
+ #include "rb-pango-private.h"
22
+
23
+ #if PANGO_VERSION_CHECK(1, 18, 0)
24
+ # include <pango/pangocairo.h>
25
+ # include <rb_cairo.h>
26
+ #endif
27
+
28
+ #define RG_TARGET_NAMESPACE cContext
29
+
30
+ #if PANGO_VERSION_CHECK(1, 18, 0)
31
+ static void
32
+ shape_renderer_callback(cairo_t *cr,
33
+ PangoAttrShape *attr,
34
+ gboolean do_path,
35
+ gpointer data)
36
+ {
37
+ VALUE rb_cr;
38
+ VALUE rb_mPango;
39
+ VALUE rb_cPangoAttrShape;
40
+ VALUE rb_attr;
41
+ VALUE rb_do_path;
42
+ VALUE rb_callback;
43
+ ID id_call;
44
+
45
+ rb_cr = CRCONTEXT2RVAL(cr);
46
+ rb_mPango = rb_const_get(rb_cObject, rb_intern("Pango"));
47
+ rb_cPangoAttrShape = rb_const_get(rb_mPango, rb_intern("AttrShape"));
48
+ rb_attr = Data_Wrap_Struct(rb_cPangoAttrShape,
49
+ NULL,
50
+ pango_attribute_destroy,
51
+ pango_attribute_copy((PangoAttribute *)attr));
52
+ rb_do_path = CBOOL2RVAL(do_path);
53
+ rb_callback = (VALUE)data;
54
+ CONST_ID(id_call, "call");
55
+ rb_funcall(rb_callback, id_call, 3, rb_cr, rb_attr, rb_do_path);
56
+ }
57
+
58
+ static VALUE
59
+ rg_set_shape_renderer(VALUE self)
60
+ {
61
+ VALUE func = rb_block_proc();
62
+ rb_iv_set(self, "@shape_renderer", func);
63
+ pango_cairo_context_set_shape_renderer(RVAL2PANGOCONTEXT(self),
64
+ shape_renderer_callback,
65
+ (gpointer)func,
66
+ NULL);
67
+ return self;
68
+ }
69
+ #endif
70
+
71
+ void
72
+ rbpango_context_init(VALUE mPango)
73
+ {
74
+ VALUE RG_TARGET_NAMESPACE;
75
+
76
+ RG_TARGET_NAMESPACE = rb_const_get(mPango, rb_intern("Context"));
77
+
78
+ RG_DEF_METHOD(set_shape_renderer, 0);
79
+ }