cairo 1.6.1-x86-mswin32

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 (418) hide show
  1. data/AUTHORS +4 -0
  2. data/COPYING +59 -0
  3. data/ChangeLog +1320 -0
  4. data/GPL +340 -0
  5. data/NEWS +98 -0
  6. data/README +70 -0
  7. data/Rakefile +215 -0
  8. data/cairo/bin/libcairo-2.dll +0 -0
  9. data/cairo/bin/libpng13.dll +0 -0
  10. data/cairo/bin/zlib1.dll +0 -0
  11. data/cairo/include/cairo/cairo-deprecated.h +142 -0
  12. data/cairo/include/cairo/cairo-features.h +35 -0
  13. data/cairo/include/cairo/cairo-pdf.h +68 -0
  14. data/cairo/include/cairo/cairo-ps.h +114 -0
  15. data/cairo/include/cairo/cairo-svg.h +82 -0
  16. data/cairo/include/cairo/cairo-win32.h +104 -0
  17. data/cairo/include/cairo/cairo.h +1945 -0
  18. data/cairo/include/libpng13/png.h +3419 -0
  19. data/cairo/include/libpng13/pngconf.h +1437 -0
  20. data/cairo/lib/cairo.def +251 -0
  21. data/cairo/lib/cairo.lib +0 -0
  22. data/cairo/lib/libcairo.dll.a +0 -0
  23. data/cairo/lib/libpng.def +372 -0
  24. data/cairo/lib/libpng13.dll.a +0 -0
  25. data/cairo/lib/pkgconfig/cairo-pdf.pc +12 -0
  26. data/cairo/lib/pkgconfig/cairo-png.pc +12 -0
  27. data/cairo/lib/pkgconfig/cairo-ps.pc +12 -0
  28. data/cairo/lib/pkgconfig/cairo-svg.pc +12 -0
  29. data/cairo/lib/pkgconfig/cairo-win32-font.pc +12 -0
  30. data/cairo/lib/pkgconfig/cairo-win32.pc +12 -0
  31. data/cairo/lib/pkgconfig/cairo.pc +13 -0
  32. data/cairo/lib/pkgconfig/libpng.pc +14 -0
  33. data/cairo/lib/pkgconfig/libpng13.pc +14 -0
  34. data/cairo/make/cairo-1.6.4-1.sh +55 -0
  35. data/cairo/manifest/cairo-1.6.4-1.mft +6 -0
  36. data/cairo/manifest/cairo-dev-1.6.4-1.mft +72 -0
  37. data/cairo/manifest/libpng-dev-1.2.8.mft +7 -0
  38. data/cairo/share/doc/cairo-1.6.4-1/COPYING +32 -0
  39. data/cairo/share/doc/cairo-1.6.4-1/COPYING-LGPL-2.1 +510 -0
  40. data/cairo/share/doc/cairo-1.6.4-1/COPYING-MPL-1.1 +470 -0
  41. data/cairo/share/gtk-doc/html/cairo/Drawing.html +53 -0
  42. data/cairo/share/gtk-doc/html/cairo/Fonts.html +56 -0
  43. data/cairo/share/gtk-doc/html/cairo/Support.html +50 -0
  44. data/cairo/share/gtk-doc/html/cairo/Surfaces.html +65 -0
  45. data/cairo/share/gtk-doc/html/cairo/bindings-errors.html +128 -0
  46. data/cairo/share/gtk-doc/html/cairo/bindings-fonts.html +59 -0
  47. data/cairo/share/gtk-doc/html/cairo/bindings-memory.html +129 -0
  48. data/cairo/share/gtk-doc/html/cairo/bindings-overloading.html +127 -0
  49. data/cairo/share/gtk-doc/html/cairo/bindings-path.html +123 -0
  50. data/cairo/share/gtk-doc/html/cairo/bindings-patterns.html +63 -0
  51. data/cairo/share/gtk-doc/html/cairo/bindings-return-values.html +126 -0
  52. data/cairo/share/gtk-doc/html/cairo/bindings-streams.html +98 -0
  53. data/cairo/share/gtk-doc/html/cairo/bindings-surfaces.html +99 -0
  54. data/cairo/share/gtk-doc/html/cairo/cairo-Error-Handling.html +328 -0
  55. data/cairo/share/gtk-doc/html/cairo/cairo-Font-Options.html +720 -0
  56. data/cairo/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +297 -0
  57. data/cairo/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +484 -0
  58. data/cairo/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +246 -0
  59. data/cairo/share/gtk-doc/html/cairo/cairo-PNG-Support.html +345 -0
  60. data/cairo/share/gtk-doc/html/cairo/cairo-Paths.html +1336 -0
  61. data/cairo/share/gtk-doc/html/cairo/cairo-Patterns.html +1560 -0
  62. data/cairo/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +656 -0
  63. data/cairo/share/gtk-doc/html/cairo/cairo-Quartz-Fonts.html +161 -0
  64. data/cairo/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html +232 -0
  65. data/cairo/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +337 -0
  66. data/cairo/share/gtk-doc/html/cairo/cairo-Scaled-Fonts.html +823 -0
  67. data/cairo/share/gtk-doc/html/cairo/cairo-Text.html +836 -0
  68. data/cairo/share/gtk-doc/html/cairo/cairo-Transformations.html +462 -0
  69. data/cairo/share/gtk-doc/html/cairo/cairo-Types.html +143 -0
  70. data/cairo/share/gtk-doc/html/cairo/cairo-Version-Information.html +325 -0
  71. data/cairo/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +381 -0
  72. data/cairo/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +331 -0
  73. data/cairo/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +525 -0
  74. data/cairo/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +427 -0
  75. data/cairo/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html +626 -0
  76. data/cairo/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +995 -0
  77. data/cairo/share/gtk-doc/html/cairo/cairo-cairo-t.html +2795 -0
  78. data/cairo/share/gtk-doc/html/cairo/cairo.devhelp +432 -0
  79. data/cairo/share/gtk-doc/html/cairo/cairo.devhelp2 +432 -0
  80. data/cairo/share/gtk-doc/html/cairo/home.png +0 -0
  81. data/cairo/share/gtk-doc/html/cairo/index-1.2.html +137 -0
  82. data/cairo/share/gtk-doc/html/cairo/index-1.4.html +105 -0
  83. data/cairo/share/gtk-doc/html/cairo/index-1.6.html +65 -0
  84. data/cairo/share/gtk-doc/html/cairo/index.html +134 -0
  85. data/cairo/share/gtk-doc/html/cairo/index.sgml +466 -0
  86. data/cairo/share/gtk-doc/html/cairo/ix01.html +693 -0
  87. data/cairo/share/gtk-doc/html/cairo/language-bindings.html +79 -0
  88. data/cairo/share/gtk-doc/html/cairo/left.png +0 -0
  89. data/cairo/share/gtk-doc/html/cairo/right.png +0 -0
  90. data/cairo/share/gtk-doc/html/cairo/style.css +148 -0
  91. data/cairo/share/gtk-doc/html/cairo/up.png +0 -0
  92. data/doc/doc.css +91 -0
  93. data/doc/en/cairo-antialias.html +41 -0
  94. data/doc/en/cairo-antialias.rd +16 -0
  95. data/doc/en/cairo-clip-not-representable-error.html +50 -0
  96. data/doc/en/cairo-clip-not-representable-error.rd +17 -0
  97. data/doc/en/cairo-color-base.html +72 -0
  98. data/doc/en/cairo-color-base.rd +38 -0
  99. data/doc/en/cairo-color-cmyk.html +160 -0
  100. data/doc/en/cairo-color-cmyk.rd +107 -0
  101. data/doc/en/cairo-color-hsv.html +140 -0
  102. data/doc/en/cairo-color-hsv.rd +91 -0
  103. data/doc/en/cairo-color-rgb.html +145 -0
  104. data/doc/en/cairo-color-rgb.rd +95 -0
  105. data/doc/en/cairo-color-x11.html +176 -0
  106. data/doc/en/cairo-color-x11.rd +151 -0
  107. data/doc/en/cairo-color.html +241 -0
  108. data/doc/en/cairo-color.rd +213 -0
  109. data/doc/en/cairo-content.html +40 -0
  110. data/doc/en/cairo-content.rd +15 -0
  111. data/doc/en/cairo-context-blur.html +42 -0
  112. data/doc/en/cairo-context-blur.rd +15 -0
  113. data/doc/en/cairo-context-circle.html +42 -0
  114. data/doc/en/cairo-context-circle.rd +15 -0
  115. data/doc/en/cairo-context-color.html +42 -0
  116. data/doc/en/cairo-context-color.rd +15 -0
  117. data/doc/en/cairo-context-path.html +47 -0
  118. data/doc/en/cairo-context-path.rd +19 -0
  119. data/doc/en/cairo-context-rectangle.html +42 -0
  120. data/doc/en/cairo-context-rectangle.rd +15 -0
  121. data/doc/en/cairo-context-triangle.html +42 -0
  122. data/doc/en/cairo-context-triangle.rd +15 -0
  123. data/doc/en/cairo-context.html +636 -0
  124. data/doc/en/cairo-context.rd +491 -0
  125. data/doc/en/cairo-error.html +47 -0
  126. data/doc/en/cairo-error.rd +16 -0
  127. data/doc/en/cairo-extend.html +41 -0
  128. data/doc/en/cairo-extend.rd +16 -0
  129. data/doc/en/cairo-file-not-found.html +50 -0
  130. data/doc/en/cairo-file-not-found.rd +17 -0
  131. data/doc/en/cairo-fill-rule.html +39 -0
  132. data/doc/en/cairo-fill-rule.rd +14 -0
  133. data/doc/en/cairo-filter.html +43 -0
  134. data/doc/en/cairo-filter.rd +18 -0
  135. data/doc/en/cairo-font-extents.html +74 -0
  136. data/doc/en/cairo-font-extents.rd +40 -0
  137. data/doc/en/cairo-font-face.html +41 -0
  138. data/doc/en/cairo-font-face.rd +14 -0
  139. data/doc/en/cairo-font-options.html +142 -0
  140. data/doc/en/cairo-font-options.rd +94 -0
  141. data/doc/en/cairo-font-slant.html +40 -0
  142. data/doc/en/cairo-font-slant.rd +15 -0
  143. data/doc/en/cairo-font-weight.html +39 -0
  144. data/doc/en/cairo-font-weight.rd +14 -0
  145. data/doc/en/cairo-format.html +49 -0
  146. data/doc/en/cairo-format.rd +22 -0
  147. data/doc/en/cairo-glyph.html +102 -0
  148. data/doc/en/cairo-glyph.rd +62 -0
  149. data/doc/en/cairo-gradient-pattern.html +77 -0
  150. data/doc/en/cairo-gradient-pattern.rd +41 -0
  151. data/doc/en/cairo-hint-metrics.html +40 -0
  152. data/doc/en/cairo-hint-metrics.rd +15 -0
  153. data/doc/en/cairo-hint-style.html +42 -0
  154. data/doc/en/cairo-hint-style.rd +17 -0
  155. data/doc/en/cairo-image-surface.html +85 -0
  156. data/doc/en/cairo-image-surface.rd +47 -0
  157. data/doc/en/cairo-invalid-content-error.html +50 -0
  158. data/doc/en/cairo-invalid-content-error.rd +17 -0
  159. data/doc/en/cairo-invalid-dash-error.html +50 -0
  160. data/doc/en/cairo-invalid-dash-error.rd +17 -0
  161. data/doc/en/cairo-invalid-dsc-comment-error.html +50 -0
  162. data/doc/en/cairo-invalid-dsc-comment-error.rd +17 -0
  163. data/doc/en/cairo-invalid-format-error.html +50 -0
  164. data/doc/en/cairo-invalid-format-error.rd +17 -0
  165. data/doc/en/cairo-invalid-index-error.html +50 -0
  166. data/doc/en/cairo-invalid-index-error.rd +17 -0
  167. data/doc/en/cairo-invalid-matrix-error.html +50 -0
  168. data/doc/en/cairo-invalid-matrix-error.rd +17 -0
  169. data/doc/en/cairo-invalid-path-data-error.html +50 -0
  170. data/doc/en/cairo-invalid-path-data-error.rd +17 -0
  171. data/doc/en/cairo-invalid-pop-group-error.html +50 -0
  172. data/doc/en/cairo-invalid-pop-group-error.rd +17 -0
  173. data/doc/en/cairo-invalid-restore-error.html +50 -0
  174. data/doc/en/cairo-invalid-restore-error.rd +17 -0
  175. data/doc/en/cairo-invalid-status-error.html +50 -0
  176. data/doc/en/cairo-invalid-status-error.rd +17 -0
  177. data/doc/en/cairo-invalid-stride-error.html +50 -0
  178. data/doc/en/cairo-invalid-stride-error.rd +17 -0
  179. data/doc/en/cairo-invalid-string-error.html +50 -0
  180. data/doc/en/cairo-invalid-string-error.rd +17 -0
  181. data/doc/en/cairo-invalid-visual-error.html +50 -0
  182. data/doc/en/cairo-invalid-visual-error.rd +17 -0
  183. data/doc/en/cairo-line-cap.html +40 -0
  184. data/doc/en/cairo-line-cap.rd +15 -0
  185. data/doc/en/cairo-line-join.html +40 -0
  186. data/doc/en/cairo-line-join.rd +15 -0
  187. data/doc/en/cairo-linear-pattern.html +63 -0
  188. data/doc/en/cairo-linear-pattern.rd +28 -0
  189. data/doc/en/cairo-matrix.html +257 -0
  190. data/doc/en/cairo-matrix.rd +186 -0
  191. data/doc/en/cairo-no-current-point-error.html +50 -0
  192. data/doc/en/cairo-no-current-point-error.rd +17 -0
  193. data/doc/en/cairo-null-pointer-error.html +50 -0
  194. data/doc/en/cairo-null-pointer-error.rd +17 -0
  195. data/doc/en/cairo-operator.html +51 -0
  196. data/doc/en/cairo-operator.rd +26 -0
  197. data/doc/en/cairo-paper-parse-error.html +50 -0
  198. data/doc/en/cairo-paper-parse-error.rd +17 -0
  199. data/doc/en/cairo-paper-unknown-paper-name.html +69 -0
  200. data/doc/en/cairo-paper-unknown-paper-name.rd +30 -0
  201. data/doc/en/cairo-paper-unknown-unit.html +69 -0
  202. data/doc/en/cairo-paper-unknown-unit.rd +30 -0
  203. data/doc/en/cairo-paper-unrecognized-paper-description.html +69 -0
  204. data/doc/en/cairo-paper-unrecognized-paper-description.rd +30 -0
  205. data/doc/en/cairo-paper.html +187 -0
  206. data/doc/en/cairo-paper.rd +141 -0
  207. data/doc/en/cairo-path-close-path.html +52 -0
  208. data/doc/en/cairo-path-close-path.rd +21 -0
  209. data/doc/en/cairo-path-curve-to.html +52 -0
  210. data/doc/en/cairo-path-curve-to.rd +21 -0
  211. data/doc/en/cairo-path-data-type.html +41 -0
  212. data/doc/en/cairo-path-data-type.rd +16 -0
  213. data/doc/en/cairo-path-data.html +101 -0
  214. data/doc/en/cairo-path-data.rd +62 -0
  215. data/doc/en/cairo-path-line-to.html +52 -0
  216. data/doc/en/cairo-path-line-to.rd +21 -0
  217. data/doc/en/cairo-path-move-to.html +52 -0
  218. data/doc/en/cairo-path-move-to.rd +21 -0
  219. data/doc/en/cairo-path.html +158 -0
  220. data/doc/en/cairo-path.rd +109 -0
  221. data/doc/en/cairo-pattern-type-mismatch-error.html +50 -0
  222. data/doc/en/cairo-pattern-type-mismatch-error.rd +17 -0
  223. data/doc/en/cairo-pattern.html +102 -0
  224. data/doc/en/cairo-pattern.rd +62 -0
  225. data/doc/en/cairo-pdf-surface.html +60 -0
  226. data/doc/en/cairo-pdf-surface.rd +27 -0
  227. data/doc/en/cairo-point.html +77 -0
  228. data/doc/en/cairo-point.rd +42 -0
  229. data/doc/en/cairo-ps-level.html +52 -0
  230. data/doc/en/cairo-ps-level.rd +24 -0
  231. data/doc/en/cairo-ps-surface.html +95 -0
  232. data/doc/en/cairo-ps-surface.rd +55 -0
  233. data/doc/en/cairo-quartz-image-surface.html +60 -0
  234. data/doc/en/cairo-quartz-image-surface.rd +27 -0
  235. data/doc/en/cairo-quartz-surface.html +60 -0
  236. data/doc/en/cairo-quartz-surface.rd +27 -0
  237. data/doc/en/cairo-radial-pattern.html +63 -0
  238. data/doc/en/cairo-radial-pattern.rd +28 -0
  239. data/doc/en/cairo-read-error.html +50 -0
  240. data/doc/en/cairo-read-error.rd +17 -0
  241. data/doc/en/cairo-rectangle.html +92 -0
  242. data/doc/en/cairo-rectangle.rd +54 -0
  243. data/doc/en/cairo-scaled-font.html +87 -0
  244. data/doc/en/cairo-scaled-font.rd +50 -0
  245. data/doc/en/cairo-solid-pattern.html +65 -0
  246. data/doc/en/cairo-solid-pattern.rd +31 -0
  247. data/doc/en/cairo-subpixel-order.html +42 -0
  248. data/doc/en/cairo-subpixel-order.rd +17 -0
  249. data/doc/en/cairo-surface-finished-error.html +50 -0
  250. data/doc/en/cairo-surface-finished-error.rd +17 -0
  251. data/doc/en/cairo-surface-pattern.html +60 -0
  252. data/doc/en/cairo-surface-pattern.rd +27 -0
  253. data/doc/en/cairo-surface-type-mismatch-error.html +50 -0
  254. data/doc/en/cairo-surface-type-mismatch-error.rd +17 -0
  255. data/doc/en/cairo-surface.html +114 -0
  256. data/doc/en/cairo-surface.rd +72 -0
  257. data/doc/en/cairo-svg-surface.html +80 -0
  258. data/doc/en/cairo-svg-surface.rd +44 -0
  259. data/doc/en/cairo-svg-version.html +52 -0
  260. data/doc/en/cairo-svg-version.rd +24 -0
  261. data/doc/en/cairo-temp-file-error.html +50 -0
  262. data/doc/en/cairo-temp-file-error.rd +17 -0
  263. data/doc/en/cairo-text-extents.html +79 -0
  264. data/doc/en/cairo-text-extents.rd +44 -0
  265. data/doc/en/cairo-win32-printing-surface.html +60 -0
  266. data/doc/en/cairo-win32-printing-surface.rd +27 -0
  267. data/doc/en/cairo-win32-surface.html +65 -0
  268. data/doc/en/cairo-win32-surface.rd +31 -0
  269. data/doc/en/cairo-write-error.html +50 -0
  270. data/doc/en/cairo-write-error.rd +17 -0
  271. data/doc/en/cairo.html +123 -0
  272. data/doc/en/cairo.rd +95 -0
  273. data/doc/en/index.html +1080 -0
  274. data/doc/en/index.rd +1051 -0
  275. data/doc/index.html +18 -0
  276. data/doc/ja/cairo-antialias.html +57 -0
  277. data/doc/ja/cairo-clip-not-representable-error.html +56 -0
  278. data/doc/ja/cairo-color-base.html +75 -0
  279. data/doc/ja/cairo-color-cmyk.html +152 -0
  280. data/doc/ja/cairo-color-hsv.html +135 -0
  281. data/doc/ja/cairo-color-rgb.html +145 -0
  282. data/doc/ja/cairo-color-x11.html +183 -0
  283. data/doc/ja/cairo-color.html +317 -0
  284. data/doc/ja/cairo-content.html +51 -0
  285. data/doc/ja/cairo-context-blur.html +53 -0
  286. data/doc/ja/cairo-context-circle.html +54 -0
  287. data/doc/ja/cairo-context-color.html +52 -0
  288. data/doc/ja/cairo-context-path.html +77 -0
  289. data/doc/ja/cairo-context-rectangle.html +60 -0
  290. data/doc/ja/cairo-context-triangle.html +47 -0
  291. data/doc/ja/cairo-context.html +1449 -0
  292. data/doc/ja/cairo-error.html +56 -0
  293. data/doc/ja/cairo-extend.html +56 -0
  294. data/doc/ja/cairo-file-not-found.html +51 -0
  295. data/doc/ja/cairo-fill-rule.html +58 -0
  296. data/doc/ja/cairo-filter.html +43 -0
  297. data/doc/ja/cairo-font-extents.html +110 -0
  298. data/doc/ja/cairo-font-face.html +55 -0
  299. data/doc/ja/cairo-font-options.html +186 -0
  300. data/doc/ja/cairo-font-slant.html +50 -0
  301. data/doc/ja/cairo-font-weight.html +47 -0
  302. data/doc/ja/cairo-format.html +81 -0
  303. data/doc/ja/cairo-glyph.html +115 -0
  304. data/doc/ja/cairo-gradient-pattern.html +119 -0
  305. data/doc/ja/cairo-hint-metrics.html +57 -0
  306. data/doc/ja/cairo-hint-style.html +64 -0
  307. data/doc/ja/cairo-image-surface.html +131 -0
  308. data/doc/ja/cairo-invalid-content-error.html +54 -0
  309. data/doc/ja/cairo-invalid-dash-error.html +54 -0
  310. data/doc/ja/cairo-invalid-dsc-comment-error.html +54 -0
  311. data/doc/ja/cairo-invalid-format-error.html +54 -0
  312. data/doc/ja/cairo-invalid-index-error.html +54 -0
  313. data/doc/ja/cairo-invalid-matrix-error.html +54 -0
  314. data/doc/ja/cairo-invalid-path-data-error.html +54 -0
  315. data/doc/ja/cairo-invalid-pop-group-error.html +54 -0
  316. data/doc/ja/cairo-invalid-restore-error.html +55 -0
  317. data/doc/ja/cairo-invalid-status-error.html +55 -0
  318. data/doc/ja/cairo-invalid-stride-error.html +55 -0
  319. data/doc/ja/cairo-invalid-string-error.html +54 -0
  320. data/doc/ja/cairo-invalid-visual-error.html +57 -0
  321. data/doc/ja/cairo-line-cap.html +50 -0
  322. data/doc/ja/cairo-line-join.html +53 -0
  323. data/doc/ja/cairo-linear-pattern.html +87 -0
  324. data/doc/ja/cairo-matrix.html +343 -0
  325. data/doc/ja/cairo-no-current-point-error.html +54 -0
  326. data/doc/ja/cairo-null-pointer-error.html +54 -0
  327. data/doc/ja/cairo-operator.html +51 -0
  328. data/doc/ja/cairo-paper-parse-error.html +55 -0
  329. data/doc/ja/cairo-paper-unknown-paper-name.html +76 -0
  330. data/doc/ja/cairo-paper-unknown-unit.html +75 -0
  331. data/doc/ja/cairo-paper-unrecognized-paper-description.html +76 -0
  332. data/doc/ja/cairo-paper.html +357 -0
  333. data/doc/ja/cairo-path-close-path.html +57 -0
  334. data/doc/ja/cairo-path-curve-to.html +70 -0
  335. data/doc/ja/cairo-path-data-type.html +53 -0
  336. data/doc/ja/cairo-path-data.html +127 -0
  337. data/doc/ja/cairo-path-line-to.html +62 -0
  338. data/doc/ja/cairo-path-move-to.html +62 -0
  339. data/doc/ja/cairo-path.html +144 -0
  340. data/doc/ja/cairo-pattern-type-mismatch-error.html +56 -0
  341. data/doc/ja/cairo-pattern.html +128 -0
  342. data/doc/ja/cairo-pdf-surface.html +86 -0
  343. data/doc/ja/cairo-point.html +90 -0
  344. data/doc/ja/cairo-ps-level.html +62 -0
  345. data/doc/ja/cairo-ps-surface.html +214 -0
  346. data/doc/ja/cairo-quartz-image-surface.html +75 -0
  347. data/doc/ja/cairo-quartz-surface.html +93 -0
  348. data/doc/ja/cairo-radial-pattern.html +93 -0
  349. data/doc/ja/cairo-read-error.html +55 -0
  350. data/doc/ja/cairo-rectangle.html +109 -0
  351. data/doc/ja/cairo-scaled-font.html +144 -0
  352. data/doc/ja/cairo-solid-pattern.html +87 -0
  353. data/doc/ja/cairo-subpixel-order.html +57 -0
  354. data/doc/ja/cairo-surface-finished-error.html +54 -0
  355. data/doc/ja/cairo-surface-pattern.html +68 -0
  356. data/doc/ja/cairo-surface-type-mismatch-error.html +56 -0
  357. data/doc/ja/cairo-surface.html +191 -0
  358. data/doc/ja/cairo-svg-surface.html +114 -0
  359. data/doc/ja/cairo-svg-version.html +66 -0
  360. data/doc/ja/cairo-temp-file-error.html +50 -0
  361. data/doc/ja/cairo-text-extents.html +101 -0
  362. data/doc/ja/cairo-win32-printing-surface.html +80 -0
  363. data/doc/ja/cairo-win32-surface.html +100 -0
  364. data/doc/ja/cairo-write-error.html +55 -0
  365. data/doc/ja/cairo.html +148 -0
  366. data/doc/ja/index.html +1080 -0
  367. data/extconf.rb +153 -0
  368. data/misc/update-colors.rb +143 -0
  369. data/pkg-config.rb +278 -0
  370. data/samples/agg/README +4 -0
  371. data/samples/agg/aa_demo.rb +47 -0
  372. data/samples/agg/aa_test.rb +304 -0
  373. data/samples/blur.rb +47 -0
  374. data/samples/pac.rb +99 -0
  375. data/samples/pac2.rb +171 -0
  376. data/samples/png.rb +45 -0
  377. data/samples/scalable.rb +56 -0
  378. data/samples/text-on-path.rb +60 -0
  379. data/samples/text2.rb +131 -0
  380. data/src/cairo.def +96 -0
  381. data/src/cairo.so +0 -0
  382. data/src/lib/cairo.rb +141 -0
  383. data/src/lib/cairo/color.rb +255 -0
  384. data/src/lib/cairo/colors.rb +656 -0
  385. data/src/lib/cairo/constants.rb +21 -0
  386. data/src/lib/cairo/context.rb +29 -0
  387. data/src/lib/cairo/context/blur.rb +45 -0
  388. data/src/lib/cairo/context/circle.rb +9 -0
  389. data/src/lib/cairo/context/color.rb +11 -0
  390. data/src/lib/cairo/context/path.rb +116 -0
  391. data/src/lib/cairo/context/rectangle.rb +33 -0
  392. data/src/lib/cairo/context/triangle.rb +12 -0
  393. data/src/lib/cairo/paper.rb +183 -0
  394. data/src/lib/cairo/papers.rb +41 -0
  395. data/src/lib/cairo/path.rb +15 -0
  396. data/src/lib/cairo/point.rb +7 -0
  397. data/src/libruby-cairo.a +0 -0
  398. data/src/rb_cairo.c +82 -0
  399. data/src/rb_cairo.h +264 -0
  400. data/src/rb_cairo_constants.c +456 -0
  401. data/src/rb_cairo_context.c +1548 -0
  402. data/src/rb_cairo_exception.c +214 -0
  403. data/src/rb_cairo_font_extents.c +125 -0
  404. data/src/rb_cairo_font_face.c +56 -0
  405. data/src/rb_cairo_font_options.c +197 -0
  406. data/src/rb_cairo_glyph.c +159 -0
  407. data/src/rb_cairo_matrix.c +350 -0
  408. data/src/rb_cairo_path.c +459 -0
  409. data/src/rb_cairo_pattern.c +540 -0
  410. data/src/rb_cairo_private.c +78 -0
  411. data/src/rb_cairo_private.h +72 -0
  412. data/src/rb_cairo_scaled_font.c +177 -0
  413. data/src/rb_cairo_surface.c +1252 -0
  414. data/src/rb_cairo_text_extents.c +138 -0
  415. data/test/run-test.rb +15 -0
  416. data/test/test_paper.rb +81 -0
  417. data/test/test_pkg_config.rb +122 -0
  418. metadata +490 -0
@@ -0,0 +1,823 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
+ <title>cairo_scaled_font_t</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
+ <link rel="start" href="index.html" title="Cairo: A Vector Graphics Library">
8
+ <link rel="up" href="Fonts.html" title="Fonts">
9
+ <link rel="prev" href="cairo-cairo-font-face-t.html" title="cairo_font_face_t">
10
+ <link rel="next" href="cairo-Font-Options.html" title="cairo_font_options_t">
11
+ <meta name="generator" content="GTK-Doc V1.9 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ <link rel="chapter" href="Drawing.html" title="Drawing">
14
+ <link rel="chapter" href="Fonts.html" title="Fonts">
15
+ <link rel="chapter" href="Surfaces.html" title="Surfaces">
16
+ <link rel="chapter" href="Support.html" title="Utilities">
17
+ <link rel="index" href="ix01.html" title="Index">
18
+ <link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
19
+ <link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
20
+ <link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
21
+ <link rel="appendix" href="language-bindings.html" title="Appendix&#160;A.&#160;Creating a language binding for cairo">
22
+ </head>
23
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
24
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
25
+ <tr valign="middle">
26
+ <td><a accesskey="p" href="cairo-cairo-font-face-t.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
27
+ <td><a accesskey="u" href="Fonts.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
28
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
29
+ <th width="100%" align="center">Cairo: A Vector Graphics Library</th>
30
+ <td><a accesskey="n" href="cairo-Font-Options.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
31
+ </tr>
32
+ <tr><td colspan="5" class="shortcuts"><nobr><a href="#id2602749" class="shortcut">Top</a>
33
+ &#160;|&#160;
34
+ <a href="#id2651174" class="shortcut">Description</a></nobr></td></tr>
35
+ </table>
36
+ <div class="refentry" lang="en">
37
+ <a name="cairo-Scaled-Fonts"></a><div class="titlepage"></div>
38
+ <div class="refnamediv"><table width="100%"><tr>
39
+ <td valign="top">
40
+ <h2>
41
+ <a name="id2602749"></a><span class="refentrytitle">cairo_scaled_font_t</span>
42
+ </h2>
43
+ <p>cairo_scaled_font_t &#8212; Font face at particular size and options</p>
44
+ </td>
45
+ <td valign="top" align="right"></td>
46
+ </tr></table></div>
47
+ <div class="refsynopsisdiv">
48
+ <h2>Synopsis</h2>
49
+ <pre class="synopsis">
50
+
51
+
52
+
53
+ typedef <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a>;
54
+ <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a>* <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-create">cairo_scaled_font_create</a> (<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a> *font_face,
55
+ const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *font_matrix,
56
+ const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *ctm,
57
+ const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);
58
+ <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a>* <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-reference">cairo_scaled_font_reference</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);
59
+ void <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-destroy">cairo_scaled_font_destroy</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);
60
+ <a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-status">cairo_scaled_font_status</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);
61
+ <a class="link" href="cairo-Scaled-Fonts.html#cairo-font-extents-t">cairo_font_extents_t</a>;
62
+ void <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-extents">cairo_scaled_font_extents</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
63
+ <a class="link" href="cairo-Scaled-Fonts.html#cairo-font-extents-t">cairo_font_extents_t</a> *extents);
64
+ <a class="link" href="cairo-Scaled-Fonts.html#cairo-text-extents-t">cairo_text_extents_t</a>;
65
+ void <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-text-extents">cairo_scaled_font_text_extents</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
66
+ const char *utf8,
67
+ <a class="link" href="cairo-Scaled-Fonts.html#cairo-text-extents-t">cairo_text_extents_t</a> *extents);
68
+ void <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-glyph-extents">cairo_scaled_font_glyph_extents</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
69
+ const <a class="link" href="cairo-Text.html#cairo-glyph-t">cairo_glyph_t</a> *glyphs,
70
+ int num_glyphs,
71
+ <a class="link" href="cairo-Scaled-Fonts.html#cairo-text-extents-t">cairo_text_extents_t</a> *extents);
72
+ <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a>* <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-get-font-face">cairo_scaled_font_get_font_face</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);
73
+ void <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-get-font-options">cairo_scaled_font_get_font_options</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
74
+ <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);
75
+ void <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-get-font-matrix">cairo_scaled_font_get_font_matrix</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
76
+ <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *font_matrix);
77
+ void <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-get-ctm">cairo_scaled_font_get_ctm</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
78
+ <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *ctm);
79
+ <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-type-t">cairo_font_type_t</a> <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-get-type">cairo_scaled_font_get_type</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);
80
+ unsigned int <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-get-reference-count">cairo_scaled_font_get_reference_count</a>
81
+ (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);
82
+ <a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-set-user-data">cairo_scaled_font_set_user_data</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
83
+ const <a class="link" href="cairo-Types.html#cairo-user-data-key-t">cairo_user_data_key_t</a> *key,
84
+ void *user_data,
85
+ <a class="link" href="cairo-Types.html#cairo-destroy-func-t">cairo_destroy_func_t</a> destroy);
86
+ void* <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-get-user-data">cairo_scaled_font_get_user_data</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
87
+ const <a class="link" href="cairo-Types.html#cairo-user-data-key-t">cairo_user_data_key_t</a> *key);
88
+ </pre>
89
+ </div>
90
+ <div class="refsect1" lang="en">
91
+ <a name="id2651174"></a><h2>Description</h2>
92
+ <p>
93
+ <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a> represents a realization of a font face at a particular
94
+ size and transformation and a certain set of font options.
95
+ </p>
96
+ </div>
97
+ <div class="refsect1" lang="en">
98
+ <a name="id2651199"></a><h2>Details</h2>
99
+ <div class="refsect2" lang="en">
100
+ <a name="id2626825"></a><h3>
101
+ <a name="cairo-scaled-font-t"></a>cairo_scaled_font_t</h3>
102
+ <a class="indexterm" name="id2626837"></a><pre class="programlisting">typedef struct _cairo_scaled_font cairo_scaled_font_t;
103
+ </pre>
104
+ <p>
105
+ A <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a> is a font scaled to a particular size and device
106
+ resolution. A <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a> is most useful for low-level font
107
+ usage where a library or application wants to cache a reference
108
+ to a scaled font to speed up the computation of metrics.
109
+ </p>
110
+ <p>
111
+ There are various types of scaled fonts, depending on the
112
+ <em class="firstterm">font backend</em> they use. The type of a
113
+ scaled font can be queried using <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-get-type"><code class="function">cairo_scaled_font_get_type()</code></a>.
114
+ </p>
115
+ <p>
116
+ Memory management of <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a> is done with
117
+ <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-reference"><code class="function">cairo_scaled_font_reference()</code></a> and <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-destroy"><code class="function">cairo_scaled_font_destroy()</code></a>.</p>
118
+ <p>
119
+
120
+ </p>
121
+ </div>
122
+ <hr>
123
+ <div class="refsect2" lang="en">
124
+ <a name="id2626922"></a><h3>
125
+ <a name="cairo-scaled-font-create"></a>cairo_scaled_font_create ()</h3>
126
+ <a class="indexterm" name="id2626933"></a><pre class="programlisting"><a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a>* cairo_scaled_font_create (<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a> *font_face,
127
+ const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *font_matrix,
128
+ const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *ctm,
129
+ const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);</pre>
130
+ <p>
131
+ Creates a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a> object from a font face and matrices that
132
+ describe the size of the font and the environment in which it will
133
+ be used.</p>
134
+ <p>
135
+
136
+ </p>
137
+ <div class="variablelist"><table border="0">
138
+ <col align="left" valign="top">
139
+ <tbody>
140
+ <tr>
141
+ <td><p><span class="term"><em class="parameter"><code>font_face</code></em>&#160;:</span></p></td>
142
+ <td> a <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t"><span class="type">cairo_font_face_t</span></a>
143
+ </td>
144
+ </tr>
145
+ <tr>
146
+ <td><p><span class="term"><em class="parameter"><code>font_matrix</code></em>&#160;:</span></p></td>
147
+ <td> font space to user space transformation matrix for the
148
+ font. In the simplest case of a N point font, this matrix is
149
+ just a scale by N, but it can also be used to shear the font
150
+ or stretch it unequally along the two axes. See
151
+ <a class="link" href="cairo-Text.html#cairo-set-font-matrix"><code class="function">cairo_set_font_matrix()</code></a>.
152
+ </td>
153
+ </tr>
154
+ <tr>
155
+ <td><p><span class="term"><em class="parameter"><code>ctm</code></em>&#160;:</span></p></td>
156
+ <td> user to device transformation matrix with which the font will
157
+ be used.
158
+ </td>
159
+ </tr>
160
+ <tr>
161
+ <td><p><span class="term"><em class="parameter"><code>options</code></em>&#160;:</span></p></td>
162
+ <td> options to use when getting metrics for the font and
163
+ rendering with it. A <code class="literal">NULL</code> pointer will be interpreted as
164
+ meaning the default options.
165
+ </td>
166
+ </tr>
167
+ <tr>
168
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
169
+ <td> a newly created <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>. Destroy with
170
+ <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-destroy"><code class="function">cairo_scaled_font_destroy()</code></a>
171
+ </td>
172
+ </tr>
173
+ </tbody>
174
+ </table></div>
175
+ </div>
176
+ <hr>
177
+ <div class="refsect2" lang="en">
178
+ <a name="id2627117"></a><h3>
179
+ <a name="cairo-scaled-font-reference"></a>cairo_scaled_font_reference ()</h3>
180
+ <a class="indexterm" name="id2627128"></a><pre class="programlisting"><a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a>* cairo_scaled_font_reference (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);</pre>
181
+ <p>
182
+ Increases the reference count on <em class="parameter"><code>scaled_font</code></em> by one. This prevents
183
+ <em class="parameter"><code>scaled_font</code></em> from being destroyed until a matching call to
184
+ <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-destroy"><code class="function">cairo_scaled_font_destroy()</code></a> is made.
185
+ </p>
186
+ <p>
187
+ The number of references to a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a> can be get using
188
+ <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-get-reference-count"><code class="function">cairo_scaled_font_get_reference_count()</code></a>.</p>
189
+ <p>
190
+
191
+ </p>
192
+ <div class="variablelist"><table border="0">
193
+ <col align="left" valign="top">
194
+ <tbody>
195
+ <tr>
196
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em>&#160;:</span></p></td>
197
+ <td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>, (may be <code class="literal">NULL</code> in which case
198
+ this function does nothing)
199
+ </td>
200
+ </tr>
201
+ <tr>
202
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
203
+ <td> the referenced <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
204
+ </td>
205
+ </tr>
206
+ </tbody>
207
+ </table></div>
208
+ </div>
209
+ <hr>
210
+ <div class="refsect2" lang="en">
211
+ <a name="id2651931"></a><h3>
212
+ <a name="cairo-scaled-font-destroy"></a>cairo_scaled_font_destroy ()</h3>
213
+ <a class="indexterm" name="id2651942"></a><pre class="programlisting">void cairo_scaled_font_destroy (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);</pre>
214
+ <p>
215
+ Decreases the reference count on <em class="parameter"><code>font</code></em> by one. If the result
216
+ is zero, then <em class="parameter"><code>font</code></em> and all associated resources are freed.
217
+ See <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-reference"><code class="function">cairo_scaled_font_reference()</code></a>.</p>
218
+ <p>
219
+
220
+ </p>
221
+ <div class="variablelist"><table border="0">
222
+ <col align="left" valign="top">
223
+ <tbody><tr>
224
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em>&#160;:</span></p></td>
225
+ <td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
226
+ </td>
227
+ </tr></tbody>
228
+ </table></div>
229
+ </div>
230
+ <hr>
231
+ <div class="refsect2" lang="en">
232
+ <a name="id2652014"></a><h3>
233
+ <a name="cairo-scaled-font-status"></a>cairo_scaled_font_status ()</h3>
234
+ <a class="indexterm" name="id2652024"></a><pre class="programlisting"><a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> cairo_scaled_font_status (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);</pre>
235
+ <p>
236
+ Checks whether an error has previously occurred for this
237
+ scaled_font.</p>
238
+ <p>
239
+
240
+ </p>
241
+ <div class="variablelist"><table border="0">
242
+ <col align="left" valign="top">
243
+ <tbody>
244
+ <tr>
245
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em>&#160;:</span></p></td>
246
+ <td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
247
+ </td>
248
+ </tr>
249
+ <tr>
250
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
251
+ <td> <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a> or another error such as
252
+ <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a>.
253
+ </td>
254
+ </tr>
255
+ </tbody>
256
+ </table></div>
257
+ </div>
258
+ <hr>
259
+ <div class="refsect2" lang="en">
260
+ <a name="id2652109"></a><h3>
261
+ <a name="cairo-font-extents-t"></a>cairo_font_extents_t</h3>
262
+ <a class="indexterm" name="id2652120"></a><pre class="programlisting">typedef struct {
263
+ double ascent;
264
+ double descent;
265
+ double height;
266
+ double max_x_advance;
267
+ double max_y_advance;
268
+ } cairo_font_extents_t;
269
+ </pre>
270
+ <p>
271
+ The <a class="link" href="cairo-Scaled-Fonts.html#cairo-font-extents-t"><span class="type">cairo_font_extents_t</span></a> structure stores metric information for
272
+ a font. Values are given in the current user-space coordinate
273
+ system.
274
+ </p>
275
+ <p>
276
+ Because font metrics are in user-space coordinates, they are
277
+ mostly, but not entirely, independent of the current transformation
278
+ matrix. If you call <code class="literal">cairo_scale(cr, 2.0, 2.0)</code>,
279
+ text will be drawn twice as big, but the reported text extents will
280
+ not be doubled. They will change slightly due to hinting (so you
281
+ can't assume that metrics are independent of the transformation
282
+ matrix), but otherwise will remain unchanged.</p>
283
+ <p>
284
+
285
+ </p>
286
+ <div class="variablelist"><table border="0">
287
+ <col align="left" valign="top">
288
+ <tbody>
289
+ <tr>
290
+ <td><p><span class="term">double&#160;<em class="structfield"><code>ascent</code></em>;</span></p></td>
291
+ <td> the distance that the font extends above the baseline.
292
+ Note that this is not always exactly equal to the maximum
293
+ of the extents of all the glyphs in the font, but rather
294
+ is picked to express the font designer's intent as to
295
+ how the font should align with elements above it.
296
+ </td>
297
+ </tr>
298
+ <tr>
299
+ <td><p><span class="term">double&#160;<em class="structfield"><code>descent</code></em>;</span></p></td>
300
+ <td> the distance that the font extends below the baseline.
301
+ This value is positive for typical fonts that include
302
+ portions below the baseline. Note that this is not always
303
+ exactly equal to the maximum of the extents of all the
304
+ glyphs in the font, but rather is picked to express the
305
+ font designer's intent as to how the the font should
306
+ align with elements below it.
307
+ </td>
308
+ </tr>
309
+ <tr>
310
+ <td><p><span class="term">double&#160;<em class="structfield"><code>height</code></em>;</span></p></td>
311
+ <td> the recommended vertical distance between baselines when
312
+ setting consecutive lines of text with the font. This
313
+ is greater than <em class="parameter"><code>ascent</code></em>+<em class="parameter"><code>descent</code></em> by a
314
+ quantity known as the <em class="firstterm">line spacing</em>
315
+ or <em class="firstterm">external leading</em>. When space
316
+ is at a premium, most fonts can be set with only
317
+ a distance of <em class="parameter"><code>ascent</code></em>+<em class="parameter"><code>descent</code></em> between lines.
318
+ </td>
319
+ </tr>
320
+ <tr>
321
+ <td><p><span class="term">double&#160;<em class="structfield"><code>max_x_advance</code></em>;</span></p></td>
322
+ <td> the maximum distance in the X direction that
323
+ the the origin is advanced for any glyph in the font.
324
+ </td>
325
+ </tr>
326
+ <tr>
327
+ <td><p><span class="term">double&#160;<em class="structfield"><code>max_y_advance</code></em>;</span></p></td>
328
+ <td> the maximum distance in the Y direction that
329
+ the the origin is advanced for any glyph in the font.
330
+ this will be zero for normal fonts used for horizontal
331
+ writing. (The scripts of East Asia are sometimes written
332
+ vertically.)
333
+ </td>
334
+ </tr>
335
+ </tbody>
336
+ </table></div>
337
+ </div>
338
+ <hr>
339
+ <div class="refsect2" lang="en">
340
+ <a name="id2652328"></a><h3>
341
+ <a name="cairo-scaled-font-extents"></a>cairo_scaled_font_extents ()</h3>
342
+ <a class="indexterm" name="id2652340"></a><pre class="programlisting">void cairo_scaled_font_extents (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
343
+ <a class="link" href="cairo-Scaled-Fonts.html#cairo-font-extents-t">cairo_font_extents_t</a> *extents);</pre>
344
+ <p>
345
+ Gets the metrics for a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>.</p>
346
+ <p>
347
+
348
+ </p>
349
+ <div class="variablelist"><table border="0">
350
+ <col align="left" valign="top">
351
+ <tbody>
352
+ <tr>
353
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em>&#160;:</span></p></td>
354
+ <td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
355
+ </td>
356
+ </tr>
357
+ <tr>
358
+ <td><p><span class="term"><em class="parameter"><code>extents</code></em>&#160;:</span></p></td>
359
+ <td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-font-extents-t"><span class="type">cairo_font_extents_t</span></a> which to store the retrieved extents.
360
+ </td>
361
+ </tr>
362
+ </tbody>
363
+ </table></div>
364
+ </div>
365
+ <hr>
366
+ <div class="refsect2" lang="en">
367
+ <a name="id2652432"></a><h3>
368
+ <a name="cairo-text-extents-t"></a>cairo_text_extents_t</h3>
369
+ <a class="indexterm" name="id2652443"></a><pre class="programlisting">typedef struct {
370
+ double x_bearing;
371
+ double y_bearing;
372
+ double width;
373
+ double height;
374
+ double x_advance;
375
+ double y_advance;
376
+ } cairo_text_extents_t;
377
+ </pre>
378
+ <p>
379
+ The <a class="link" href="cairo-Scaled-Fonts.html#cairo-text-extents-t"><span class="type">cairo_text_extents_t</span></a> structure stores the extents of a single
380
+ glyph or a string of glyphs in user-space coordinates. Because text
381
+ extents are in user-space coordinates, they are mostly, but not
382
+ entirely, independent of the current transformation matrix. If you call
383
+ <code class="literal">cairo_scale(cr, 2.0, 2.0)</code>, text will
384
+ be drawn twice as big, but the reported text extents will not be
385
+ doubled. They will change slightly due to hinting (so you can't
386
+ assume that metrics are independent of the transformation matrix),
387
+ but otherwise will remain unchanged.</p>
388
+ <p>
389
+
390
+ </p>
391
+ <div class="variablelist"><table border="0">
392
+ <col align="left" valign="top">
393
+ <tbody>
394
+ <tr>
395
+ <td><p><span class="term">double&#160;<em class="structfield"><code>x_bearing</code></em>;</span></p></td>
396
+ <td> the horizontal distance from the origin to the
397
+ leftmost part of the glyphs as drawn. Positive if the
398
+ glyphs lie entirely to the right of the origin.
399
+ </td>
400
+ </tr>
401
+ <tr>
402
+ <td><p><span class="term">double&#160;<em class="structfield"><code>y_bearing</code></em>;</span></p></td>
403
+ <td> the vertical distance from the origin to the
404
+ topmost part of the glyphs as drawn. Positive only if the
405
+ glyphs lie completely below the origin; will usually be
406
+ negative.
407
+ </td>
408
+ </tr>
409
+ <tr>
410
+ <td><p><span class="term">double&#160;<em class="structfield"><code>width</code></em>;</span></p></td>
411
+ <td> width of the glyphs as drawn
412
+ </td>
413
+ </tr>
414
+ <tr>
415
+ <td><p><span class="term">double&#160;<em class="structfield"><code>height</code></em>;</span></p></td>
416
+ <td> height of the glyphs as drawn
417
+ </td>
418
+ </tr>
419
+ <tr>
420
+ <td><p><span class="term">double&#160;<em class="structfield"><code>x_advance</code></em>;</span></p></td>
421
+ <td>distance to advance in the X direction
422
+ after drawing these glyphs
423
+ </td>
424
+ </tr>
425
+ <tr>
426
+ <td><p><span class="term">double&#160;<em class="structfield"><code>y_advance</code></em>;</span></p></td>
427
+ <td> distance to advance in the Y direction
428
+ after drawing these glyphs. Will typically be zero except
429
+ for vertical text layout as found in East-Asian languages.
430
+ </td>
431
+ </tr>
432
+ </tbody>
433
+ </table></div>
434
+ </div>
435
+ <hr>
436
+ <div class="refsect2" lang="en">
437
+ <a name="id2652624"></a><h3>
438
+ <a name="cairo-scaled-font-text-extents"></a>cairo_scaled_font_text_extents ()</h3>
439
+ <a class="indexterm" name="id2652639"></a><pre class="programlisting">void cairo_scaled_font_text_extents (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
440
+ const char *utf8,
441
+ <a class="link" href="cairo-Scaled-Fonts.html#cairo-text-extents-t">cairo_text_extents_t</a> *extents);</pre>
442
+ <p>
443
+ Gets the extents for a string of text. The extents describe a
444
+ user-space rectangle that encloses the "inked" portion of the text
445
+ drawn at the origin (0,0) (as it would be drawn by <a class="link" href="cairo-Text.html#cairo-show-text"><code class="function">cairo_show_text()</code></a>
446
+ if the cairo graphics state were set to the same font_face,
447
+ font_matrix, ctm, and font_options as <em class="parameter"><code>scaled_font</code></em>). Additionally,
448
+ the x_advance and y_advance values indicate the amount by which the
449
+ current point would be advanced by <a class="link" href="cairo-Text.html#cairo-show-text"><code class="function">cairo_show_text()</code></a>.
450
+ </p>
451
+ <p>
452
+ Note that whitespace characters do not directly contribute to the
453
+ size of the rectangle (extents.width and extents.height). They do
454
+ contribute indirectly by changing the position of non-whitespace
455
+ characters. In particular, trailing whitespace characters are
456
+ likely to not affect the size of the rectangle, though they will
457
+ affect the x_advance and y_advance values.</p>
458
+ <p>
459
+
460
+ </p>
461
+ <div class="variablelist"><table border="0">
462
+ <col align="left" valign="top">
463
+ <tbody>
464
+ <tr>
465
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em>&#160;:</span></p></td>
466
+ <td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
467
+ </td>
468
+ </tr>
469
+ <tr>
470
+ <td><p><span class="term"><em class="parameter"><code>utf8</code></em>&#160;:</span></p></td>
471
+ <td> a string of text, encoded in UTF-8
472
+ </td>
473
+ </tr>
474
+ <tr>
475
+ <td><p><span class="term"><em class="parameter"><code>extents</code></em>&#160;:</span></p></td>
476
+ <td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-text-extents-t"><span class="type">cairo_text_extents_t</span></a> which to store the retrieved extents.
477
+ </td>
478
+ </tr>
479
+ </tbody>
480
+ </table></div>
481
+ <p class="since">Since 1.2
482
+ </p>
483
+ </div>
484
+ <hr>
485
+ <div class="refsect2" lang="en">
486
+ <a name="id2652795"></a><h3>
487
+ <a name="cairo-scaled-font-glyph-extents"></a>cairo_scaled_font_glyph_extents ()</h3>
488
+ <a class="indexterm" name="id2652808"></a><pre class="programlisting">void cairo_scaled_font_glyph_extents (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
489
+ const <a class="link" href="cairo-Text.html#cairo-glyph-t">cairo_glyph_t</a> *glyphs,
490
+ int num_glyphs,
491
+ <a class="link" href="cairo-Scaled-Fonts.html#cairo-text-extents-t">cairo_text_extents_t</a> *extents);</pre>
492
+ <p>
493
+ Gets the extents for an array of glyphs. The extents describe a
494
+ user-space rectangle that encloses the "inked" portion of the
495
+ glyphs, (as they would be drawn by <a class="link" href="cairo-Text.html#cairo-show-glyphs"><code class="function">cairo_show_glyphs()</code></a> if the cairo
496
+ graphics state were set to the same font_face, font_matrix, ctm,
497
+ and font_options as <em class="parameter"><code>scaled_font</code></em>). Additionally, the x_advance and
498
+ y_advance values indicate the amount by which the current point
499
+ would be advanced by <a class="link" href="cairo-Text.html#cairo-show-glyphs"><code class="function">cairo_show_glyphs()</code></a>.
500
+ </p>
501
+ <p>
502
+ Note that whitespace glyphs do not contribute to the size of the
503
+ rectangle (extents.width and extents.height).</p>
504
+ <p>
505
+
506
+ </p>
507
+ <div class="variablelist"><table border="0">
508
+ <col align="left" valign="top">
509
+ <tbody>
510
+ <tr>
511
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em>&#160;:</span></p></td>
512
+ <td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
513
+ </td>
514
+ </tr>
515
+ <tr>
516
+ <td><p><span class="term"><em class="parameter"><code>glyphs</code></em>&#160;:</span></p></td>
517
+ <td> an array of glyph IDs with X and Y offsets.
518
+ </td>
519
+ </tr>
520
+ <tr>
521
+ <td><p><span class="term"><em class="parameter"><code>num_glyphs</code></em>&#160;:</span></p></td>
522
+ <td> the number of glyphs in the <em class="parameter"><code>glyphs</code></em> array
523
+ </td>
524
+ </tr>
525
+ <tr>
526
+ <td><p><span class="term"><em class="parameter"><code>extents</code></em>&#160;:</span></p></td>
527
+ <td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-text-extents-t"><span class="type">cairo_text_extents_t</span></a> which to store the retrieved extents.
528
+ </td>
529
+ </tr>
530
+ </tbody>
531
+ </table></div>
532
+ </div>
533
+ <hr>
534
+ <div class="refsect2" lang="en">
535
+ <a name="id2652980"></a><h3>
536
+ <a name="cairo-scaled-font-get-font-face"></a>cairo_scaled_font_get_font_face ()</h3>
537
+ <a class="indexterm" name="id2652996"></a><pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a>* cairo_scaled_font_get_font_face (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);</pre>
538
+ <p>
539
+ Gets the font face that this scaled font was created for.</p>
540
+ <p>
541
+
542
+ </p>
543
+ <div class="variablelist"><table border="0">
544
+ <col align="left" valign="top">
545
+ <tbody>
546
+ <tr>
547
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em>&#160;:</span></p></td>
548
+ <td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
549
+ </td>
550
+ </tr>
551
+ <tr>
552
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
553
+ <td> The <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t"><span class="type">cairo_font_face_t</span></a> with which <em class="parameter"><code>scaled_font</code></em> was
554
+ created.
555
+
556
+ </td>
557
+ </tr>
558
+ </tbody>
559
+ </table></div>
560
+ <p class="since">Since 1.2
561
+ </p>
562
+ </div>
563
+ <hr>
564
+ <div class="refsect2" lang="en">
565
+ <a name="id2653085"></a><h3>
566
+ <a name="cairo-scaled-font-get-font-options"></a>cairo_scaled_font_get_font_options ()</h3>
567
+ <a class="indexterm" name="id2653102"></a><pre class="programlisting">void cairo_scaled_font_get_font_options (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
568
+ <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);</pre>
569
+ <p>
570
+ Stores the font options with which <em class="parameter"><code>scaled_font</code></em> was created into
571
+ <em class="parameter"><code>options</code></em>.</p>
572
+ <p>
573
+
574
+ </p>
575
+ <div class="variablelist"><table border="0">
576
+ <col align="left" valign="top">
577
+ <tbody>
578
+ <tr>
579
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em>&#160;:</span></p></td>
580
+ <td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
581
+ </td>
582
+ </tr>
583
+ <tr>
584
+ <td><p><span class="term"><em class="parameter"><code>options</code></em>&#160;:</span></p></td>
585
+ <td> return value for the font options
586
+ </td>
587
+ </tr>
588
+ </tbody>
589
+ </table></div>
590
+ <p class="since">Since 1.2
591
+ </p>
592
+ </div>
593
+ <hr>
594
+ <div class="refsect2" lang="en">
595
+ <a name="id2653185"></a><h3>
596
+ <a name="cairo-scaled-font-get-font-matrix"></a>cairo_scaled_font_get_font_matrix ()</h3>
597
+ <a class="indexterm" name="id2653200"></a><pre class="programlisting">void cairo_scaled_font_get_font_matrix (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
598
+ <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *font_matrix);</pre>
599
+ <p>
600
+ Stores the font matrix with which <em class="parameter"><code>scaled_font</code></em> was created into
601
+ <em class="parameter"><code>matrix</code></em>.</p>
602
+ <p>
603
+
604
+ </p>
605
+ <div class="variablelist"><table border="0">
606
+ <col align="left" valign="top">
607
+ <tbody>
608
+ <tr>
609
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em>&#160;:</span></p></td>
610
+ <td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
611
+ </td>
612
+ </tr>
613
+ <tr>
614
+ <td><p><span class="term"><em class="parameter"><code>font_matrix</code></em>&#160;:</span></p></td>
615
+ <td> return value for the matrix
616
+ </td>
617
+ </tr>
618
+ </tbody>
619
+ </table></div>
620
+ <p class="since">Since 1.2
621
+ </p>
622
+ </div>
623
+ <hr>
624
+ <div class="refsect2" lang="en">
625
+ <a name="id2653288"></a><h3>
626
+ <a name="cairo-scaled-font-get-ctm"></a>cairo_scaled_font_get_ctm ()</h3>
627
+ <a class="indexterm" name="id2653301"></a><pre class="programlisting">void cairo_scaled_font_get_ctm (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
628
+ <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *ctm);</pre>
629
+ <p>
630
+ Stores the CTM with which <em class="parameter"><code>scaled_font</code></em> was created into <em class="parameter"><code>ctm</code></em>.</p>
631
+ <p>
632
+
633
+ </p>
634
+ <div class="variablelist"><table border="0">
635
+ <col align="left" valign="top">
636
+ <tbody>
637
+ <tr>
638
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em>&#160;:</span></p></td>
639
+ <td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
640
+ </td>
641
+ </tr>
642
+ <tr>
643
+ <td><p><span class="term"><em class="parameter"><code>ctm</code></em>&#160;:</span></p></td>
644
+ <td> return value for the CTM
645
+ </td>
646
+ </tr>
647
+ </tbody>
648
+ </table></div>
649
+ <p class="since">Since 1.2
650
+ </p>
651
+ </div>
652
+ <hr>
653
+ <div class="refsect2" lang="en">
654
+ <a name="id2653387"></a><h3>
655
+ <a name="cairo-scaled-font-get-type"></a>cairo_scaled_font_get_type ()</h3>
656
+ <a class="indexterm" name="id2653400"></a><pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-type-t">cairo_font_type_t</a> cairo_scaled_font_get_type (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);</pre>
657
+ <p>
658
+ This function returns the type of the backend used to create
659
+ a scaled font. See <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-type-t"><span class="type">cairo_font_type_t</span></a> for available types.</p>
660
+ <p>
661
+
662
+ </p>
663
+ <div class="variablelist"><table border="0">
664
+ <col align="left" valign="top">
665
+ <tbody>
666
+ <tr>
667
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em>&#160;:</span></p></td>
668
+ <td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
669
+ </td>
670
+ </tr>
671
+ <tr>
672
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
673
+ <td> The type of <em class="parameter"><code>scaled_font</code></em>.
674
+
675
+ </td>
676
+ </tr>
677
+ </tbody>
678
+ </table></div>
679
+ <p class="since">Since 1.2
680
+ </p>
681
+ </div>
682
+ <hr>
683
+ <div class="refsect2" lang="en">
684
+ <a name="id2653478"></a><h3>
685
+ <a name="cairo-scaled-font-get-reference-count"></a>cairo_scaled_font_get_reference_count ()</h3>
686
+ <a class="indexterm" name="id2653493"></a><pre class="programlisting">unsigned int cairo_scaled_font_get_reference_count
687
+ (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);</pre>
688
+ <p>
689
+ Returns the current reference count of <em class="parameter"><code>scaled_font</code></em>.</p>
690
+ <p>
691
+
692
+ </p>
693
+ <div class="variablelist"><table border="0">
694
+ <col align="left" valign="top">
695
+ <tbody>
696
+ <tr>
697
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em>&#160;:</span></p></td>
698
+ <td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
699
+ </td>
700
+ </tr>
701
+ <tr>
702
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
703
+ <td> the current reference count of <em class="parameter"><code>scaled_font</code></em>. If the
704
+ object is a nil object, 0 will be returned.
705
+
706
+ </td>
707
+ </tr>
708
+ </tbody>
709
+ </table></div>
710
+ <p class="since">Since 1.4
711
+ </p>
712
+ </div>
713
+ <hr>
714
+ <div class="refsect2" lang="en">
715
+ <a name="id2653575"></a><h3>
716
+ <a name="cairo-scaled-font-set-user-data"></a>cairo_scaled_font_set_user_data ()</h3>
717
+ <a class="indexterm" name="id2653589"></a><pre class="programlisting"><a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> cairo_scaled_font_set_user_data (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
718
+ const <a class="link" href="cairo-Types.html#cairo-user-data-key-t">cairo_user_data_key_t</a> *key,
719
+ void *user_data,
720
+ <a class="link" href="cairo-Types.html#cairo-destroy-func-t">cairo_destroy_func_t</a> destroy);</pre>
721
+ <p>
722
+ Attach user data to <em class="parameter"><code>scaled_font</code></em>. To remove user data from a surface,
723
+ call this function with the key that was used to set it and <code class="literal">NULL</code>
724
+ for <em class="parameter"><code>data</code></em>.</p>
725
+ <p>
726
+
727
+ </p>
728
+ <div class="variablelist"><table border="0">
729
+ <col align="left" valign="top">
730
+ <tbody>
731
+ <tr>
732
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em>&#160;:</span></p></td>
733
+ <td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
734
+ </td>
735
+ </tr>
736
+ <tr>
737
+ <td><p><span class="term"><em class="parameter"><code>key</code></em>&#160;:</span></p></td>
738
+ <td> the address of a <a class="link" href="cairo-Types.html#cairo-user-data-key-t"><span class="type">cairo_user_data_key_t</span></a> to attach the user data to
739
+ </td>
740
+ </tr>
741
+ <tr>
742
+ <td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td>
743
+ <td> the user data to attach to the <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
744
+ </td>
745
+ </tr>
746
+ <tr>
747
+ <td><p><span class="term"><em class="parameter"><code>destroy</code></em>&#160;:</span></p></td>
748
+ <td> a <a class="link" href="cairo-Types.html#cairo-destroy-func-t"><span class="type">cairo_destroy_func_t</span></a> which will be called when the
749
+ <a class="link" href="cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> is destroyed or when new user data is attached using the
750
+ same key.
751
+ </td>
752
+ </tr>
753
+ <tr>
754
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
755
+ <td> <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a> or <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a> if a
756
+ slot could not be allocated for the user data.
757
+
758
+ </td>
759
+ </tr>
760
+ </tbody>
761
+ </table></div>
762
+ <p class="since">Since 1.4
763
+ </p>
764
+ </div>
765
+ <hr>
766
+ <div class="refsect2" lang="en">
767
+ <a name="id2653780"></a><h3>
768
+ <a name="cairo-scaled-font-get-user-data"></a>cairo_scaled_font_get_user_data ()</h3>
769
+ <a class="indexterm" name="id2653794"></a><pre class="programlisting">void* cairo_scaled_font_get_user_data (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
770
+ const <a class="link" href="cairo-Types.html#cairo-user-data-key-t">cairo_user_data_key_t</a> *key);</pre>
771
+ <p>
772
+ Return user data previously attached to <em class="parameter"><code>scaled_font</code></em> using the
773
+ specified key. If no user data has been attached with the given
774
+ key this function returns <code class="literal">NULL</code>.</p>
775
+ <p>
776
+
777
+ </p>
778
+ <div class="variablelist"><table border="0">
779
+ <col align="left" valign="top">
780
+ <tbody>
781
+ <tr>
782
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em>&#160;:</span></p></td>
783
+ <td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
784
+ </td>
785
+ </tr>
786
+ <tr>
787
+ <td><p><span class="term"><em class="parameter"><code>key</code></em>&#160;:</span></p></td>
788
+ <td> the address of the <a class="link" href="cairo-Types.html#cairo-user-data-key-t"><span class="type">cairo_user_data_key_t</span></a> the user data was
789
+ attached to
790
+ </td>
791
+ </tr>
792
+ <tr>
793
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
794
+ <td> the user data previously attached or <code class="literal">NULL</code>.
795
+
796
+ </td>
797
+ </tr>
798
+ </tbody>
799
+ </table></div>
800
+ <p class="since">Since 1.4
801
+ </p>
802
+ </div>
803
+ </div>
804
+ <div class="refsect1" lang="en">
805
+ <a name="id2653913"></a><h2>See Also</h2>
806
+ <p>
807
+ </p>
808
+ <div class="itemizedlist"><ul type="disc">
809
+ <li><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t"><span class="type">cairo_font_face_t</span></a></li>
810
+ <li><a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t"><span class="type">cairo_matrix_t</span></a></li>
811
+ <li><a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a></li>
812
+ </ul></div>
813
+ <p>
814
+ </p>
815
+ </div>
816
+ <div class="refsect1" lang="en">
817
+ <a name="id2653948"></a><div class="refsect2" lang="en"><a name="id2653949"></a></div>
818
+ <hr>
819
+ <div class="refsect2" lang="en"><a name="id2653950"></a></div>
820
+ </div>
821
+ </div>
822
+ </body>
823
+ </html>