cairo 1.14.1-x64-mingw32 → 1.14.2-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of cairo might be problematic. Click here for more details.

Files changed (215) hide show
  1. checksums.yaml +4 -4
  2. data/NEWS +21 -0
  3. data/Rakefile +17 -6
  4. data/ext/cairo/cairo.def +1 -0
  5. data/ext/cairo/extconf.rb +23 -10
  6. data/ext/cairo/rb_cairo.c +3 -0
  7. data/ext/cairo/rb_cairo.h +3 -3
  8. data/ext/cairo/rb_cairo_context.c +1 -1
  9. data/ext/cairo/rb_cairo_io.c +4 -0
  10. data/ext/cairo/rb_cairo_io.h +2 -0
  11. data/ext/cairo/rb_cairo_pattern.c +4 -4
  12. data/ext/cairo/rb_cairo_private.h +2 -0
  13. data/ext/cairo/rb_cairo_surface.c +64 -232
  14. data/lib/2.0/cairo.so +0 -0
  15. data/lib/2.1/cairo.so +0 -0
  16. data/lib/2.2/cairo.so +0 -0
  17. data/lib/cairo.rb +20 -19
  18. data/lib/cairo/region.rb +14 -0
  19. data/test/test_region.rb +26 -0
  20. data/vendor/local/bin/fc-cache.exe +0 -0
  21. data/vendor/local/bin/fc-cat.exe +0 -0
  22. data/vendor/local/bin/fc-list.exe +0 -0
  23. data/vendor/local/bin/fc-match.exe +0 -0
  24. data/vendor/local/bin/fc-pattern.exe +0 -0
  25. data/vendor/local/bin/fc-query.exe +0 -0
  26. data/vendor/local/bin/fc-scan.exe +0 -0
  27. data/vendor/local/bin/fc-validate.exe +0 -0
  28. data/vendor/local/bin/freetype-config +2 -2
  29. data/vendor/local/bin/libcairo-2.dll +0 -0
  30. data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
  31. data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
  32. data/vendor/local/bin/libfontconfig-1.dll +0 -0
  33. data/vendor/local/bin/libfreetype-6.dll +0 -0
  34. data/vendor/local/bin/libgcc_s_seh-1.dll +0 -0
  35. data/vendor/local/bin/libpixman-1-0.dll +0 -0
  36. data/vendor/local/bin/libpng-config +1 -1
  37. data/vendor/local/bin/libpng16-16.dll +0 -0
  38. data/vendor/local/bin/libpng16-config +1 -1
  39. data/vendor/local/bin/libstdc++-6.dll +0 -0
  40. data/vendor/local/bin/libwinpthread-1.dll +0 -0
  41. data/vendor/local/bin/libxml2-2.dll +0 -0
  42. data/vendor/local/bin/png-fix-itxt.exe +0 -0
  43. data/vendor/local/bin/pngfix.exe +0 -0
  44. data/vendor/local/bin/xmlcatalog.exe +0 -0
  45. data/vendor/local/bin/xmllint.exe +0 -0
  46. data/vendor/local/bin/zlib1.dll +0 -0
  47. data/vendor/local/include/cairo/cairo-version.h +1 -1
  48. data/vendor/local/include/freetype2/config/ftconfig.h +19 -2
  49. data/vendor/local/include/freetype2/config/ftheader.h +7 -5
  50. data/vendor/local/include/freetype2/config/ftoption.h +9 -22
  51. data/vendor/local/include/freetype2/config/ftstdlib.h +2 -3
  52. data/vendor/local/include/freetype2/freetype.h +38 -17
  53. data/vendor/local/include/freetype2/ft2build.h +1 -1
  54. data/vendor/local/include/freetype2/ftadvanc.h +2 -2
  55. data/vendor/local/include/freetype2/ftautoh.h +50 -2
  56. data/vendor/local/include/freetype2/ftbbox.h +1 -1
  57. data/vendor/local/include/freetype2/ftbdf.h +1 -1
  58. data/vendor/local/include/freetype2/ftbitmap.h +11 -3
  59. data/vendor/local/include/freetype2/ftbzip2.h +1 -1
  60. data/vendor/local/include/freetype2/ftcache.h +3 -3
  61. data/vendor/local/include/freetype2/ftcffdrv.h +1 -1
  62. data/vendor/local/include/freetype2/ftcid.h +2 -1
  63. data/vendor/local/include/freetype2/fterrdef.h +1 -1
  64. data/vendor/local/include/freetype2/fterrors.h +1 -1
  65. data/vendor/local/include/freetype2/{ftxf86.h → ftfntfmt.h} +22 -14
  66. data/vendor/local/include/freetype2/ftgasp.h +1 -1
  67. data/vendor/local/include/freetype2/ftglyph.h +1 -1
  68. data/vendor/local/include/freetype2/ftgxval.h +1 -1
  69. data/vendor/local/include/freetype2/ftgzip.h +1 -1
  70. data/vendor/local/include/freetype2/ftimage.h +7 -13
  71. data/vendor/local/include/freetype2/ftincrem.h +1 -1
  72. data/vendor/local/include/freetype2/ftlcdfil.h +2 -2
  73. data/vendor/local/include/freetype2/ftlist.h +1 -1
  74. data/vendor/local/include/freetype2/ftlzw.h +1 -1
  75. data/vendor/local/include/freetype2/ftmac.h +1 -1
  76. data/vendor/local/include/freetype2/ftmm.h +17 -11
  77. data/vendor/local/include/freetype2/ftmodapi.h +4 -2
  78. data/vendor/local/include/freetype2/ftmoderr.h +1 -1
  79. data/vendor/local/include/freetype2/ftotval.h +1 -1
  80. data/vendor/local/include/freetype2/ftoutln.h +1 -1
  81. data/vendor/local/include/freetype2/ftpfr.h +1 -1
  82. data/vendor/local/include/freetype2/ftrender.h +3 -8
  83. data/vendor/local/include/freetype2/ftsizes.h +1 -1
  84. data/vendor/local/include/freetype2/ftsnames.h +1 -1
  85. data/vendor/local/include/freetype2/ftstroke.h +1 -1
  86. data/vendor/local/include/freetype2/ftsynth.h +5 -3
  87. data/vendor/local/include/freetype2/ftsystem.h +10 -1
  88. data/vendor/local/include/freetype2/fttrigon.h +1 -1
  89. data/vendor/local/include/freetype2/ftttdrv.h +85 -22
  90. data/vendor/local/include/freetype2/fttypes.h +1 -1
  91. data/vendor/local/include/freetype2/ftwinfnt.h +3 -3
  92. data/vendor/local/include/freetype2/t1tables.h +4 -3
  93. data/vendor/local/include/freetype2/ttnameid.h +116 -116
  94. data/vendor/local/include/freetype2/tttables.h +2 -2
  95. data/vendor/local/include/freetype2/tttags.h +1 -1
  96. data/vendor/local/include/freetype2/ttunpat.h +1 -1
  97. data/vendor/local/include/libpng16/png.h +63 -80
  98. data/vendor/local/include/libpng16/pngconf.h +8 -30
  99. data/vendor/local/include/libpng16/pnglibconf.h +10 -4
  100. data/vendor/local/include/png.h +63 -80
  101. data/vendor/local/include/pngconf.h +8 -30
  102. data/vendor/local/include/pnglibconf.h +10 -4
  103. data/vendor/local/lib/libcairo-gobject.a +0 -0
  104. data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
  105. data/vendor/local/lib/libcairo-gobject.la +2 -2
  106. data/vendor/local/lib/libcairo-script-interpreter.a +0 -0
  107. data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
  108. data/vendor/local/lib/libcairo-script-interpreter.la +2 -2
  109. data/vendor/local/lib/libcairo.a +0 -0
  110. data/vendor/local/lib/libcairo.dll.a +0 -0
  111. data/vendor/local/lib/libcairo.la +2 -2
  112. data/vendor/local/lib/libfontconfig.dll.a +0 -0
  113. data/vendor/local/lib/libfreetype.a +0 -0
  114. data/vendor/local/lib/libfreetype.dll.a +0 -0
  115. data/vendor/local/lib/libfreetype.la +4 -4
  116. data/vendor/local/lib/libpixman-1.a +0 -0
  117. data/vendor/local/lib/libpixman-1.dll.a +0 -0
  118. data/vendor/local/lib/libpng.a +0 -0
  119. data/vendor/local/lib/libpng.dll.a +0 -0
  120. data/vendor/local/lib/libpng.la +4 -4
  121. data/vendor/local/lib/libpng16.a +0 -0
  122. data/vendor/local/lib/libpng16.dll.a +0 -0
  123. data/vendor/local/lib/libpng16.la +4 -4
  124. data/vendor/local/lib/libxml2.a +0 -0
  125. data/vendor/local/lib/libxml2.dll.a +0 -0
  126. data/vendor/local/lib/libz.a +0 -0
  127. data/vendor/local/lib/libz.dll.a +0 -0
  128. data/vendor/local/lib/pkgconfig/cairo-fc.pc +1 -1
  129. data/vendor/local/lib/pkgconfig/cairo-ft.pc +1 -1
  130. data/vendor/local/lib/pkgconfig/cairo-gobject.pc +1 -1
  131. data/vendor/local/lib/pkgconfig/cairo-pdf.pc +1 -1
  132. data/vendor/local/lib/pkgconfig/cairo-png.pc +1 -1
  133. data/vendor/local/lib/pkgconfig/cairo-ps.pc +1 -1
  134. data/vendor/local/lib/pkgconfig/cairo-script.pc +1 -1
  135. data/vendor/local/lib/pkgconfig/cairo-svg.pc +1 -1
  136. data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +1 -1
  137. data/vendor/local/lib/pkgconfig/cairo-win32.pc +1 -1
  138. data/vendor/local/lib/pkgconfig/cairo.pc +1 -1
  139. data/vendor/local/lib/pkgconfig/freetype2.pc +1 -1
  140. data/vendor/local/lib/pkgconfig/libpng.pc +1 -1
  141. data/vendor/local/lib/pkgconfig/libpng16.pc +1 -1
  142. data/vendor/local/share/aclocal/freetype2.m4 +1 -1
  143. data/vendor/local/share/gtk-doc/html/cairo/bindings-errors.html +12 -12
  144. data/vendor/local/share/gtk-doc/html/cairo/bindings-fonts.html +12 -12
  145. data/vendor/local/share/gtk-doc/html/cairo/bindings-memory.html +12 -12
  146. data/vendor/local/share/gtk-doc/html/cairo/bindings-overloading.html +13 -13
  147. data/vendor/local/share/gtk-doc/html/cairo/bindings-path.html +12 -12
  148. data/vendor/local/share/gtk-doc/html/cairo/bindings-patterns.html +35 -35
  149. data/vendor/local/share/gtk-doc/html/cairo/bindings-return-values.html +10 -10
  150. data/vendor/local/share/gtk-doc/html/cairo/bindings-streams.html +11 -11
  151. data/vendor/local/share/gtk-doc/html/cairo/bindings-surfaces.html +13 -13
  152. data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +294 -225
  153. data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +387 -269
  154. data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +432 -302
  155. data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +325 -217
  156. data/vendor/local/share/gtk-doc/html/cairo/cairo-PNG-Support.html +298 -193
  157. data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +1121 -812
  158. data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +513 -383
  159. data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-(CGFont)-Fonts.html +126 -83
  160. data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html +172 -119
  161. data/vendor/local/share/gtk-doc/html/cairo/cairo-Raster-Sources.html +581 -372
  162. data/vendor/local/share/gtk-doc/html/cairo/cairo-Recording-Surfaces.html +179 -130
  163. data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +888 -539
  164. data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +287 -192
  165. data/vendor/local/share/gtk-doc/html/cairo/cairo-Script-Surfaces.html +374 -231
  166. data/vendor/local/share/gtk-doc/html/cairo/cairo-Transformations.html +395 -219
  167. data/vendor/local/share/gtk-doc/html/cairo/cairo-Types.html +125 -75
  168. data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +630 -464
  169. data/vendor/local/share/gtk-doc/html/cairo/cairo-Version-Information.html +225 -200
  170. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +336 -214
  171. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +277 -186
  172. data/vendor/local/share/gtk-doc/html/cairo/cairo-XCB-Surfaces.html +495 -350
  173. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +557 -362
  174. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-XRender-Backend.html +158 -111
  175. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html +655 -441
  176. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +389 -280
  177. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html +667 -451
  178. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html +579 -351
  179. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html +2006 -1545
  180. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +892 -618
  181. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +1624 -1188
  182. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +2903 -2104
  183. data/vendor/local/share/gtk-doc/html/cairo/cairo-drawing.html +13 -13
  184. data/vendor/local/share/gtk-doc/html/cairo/cairo-fonts.html +13 -13
  185. data/vendor/local/share/gtk-doc/html/cairo/cairo-support.html +13 -13
  186. data/vendor/local/share/gtk-doc/html/cairo/cairo-surfaces.html +13 -13
  187. data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +1115 -758
  188. data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +419 -604
  189. data/vendor/local/share/gtk-doc/html/cairo/home.png +0 -0
  190. data/vendor/local/share/gtk-doc/html/cairo/index-1.10.html +56 -56
  191. data/vendor/local/share/gtk-doc/html/cairo/index-1.12.html +70 -70
  192. data/vendor/local/share/gtk-doc/html/cairo/index-1.2.html +58 -58
  193. data/vendor/local/share/gtk-doc/html/cairo/index-1.4.html +39 -39
  194. data/vendor/local/share/gtk-doc/html/cairo/index-1.6.html +30 -30
  195. data/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +38 -38
  196. data/vendor/local/share/gtk-doc/html/cairo/index-all.html +426 -426
  197. data/vendor/local/share/gtk-doc/html/cairo/index.html +6 -6
  198. data/vendor/local/share/gtk-doc/html/cairo/index.sgml +234 -325
  199. data/vendor/local/share/gtk-doc/html/cairo/language-bindings.html +12 -12
  200. data/vendor/local/share/gtk-doc/html/cairo/left-insensitive.png +0 -0
  201. data/vendor/local/share/gtk-doc/html/cairo/left.png +0 -0
  202. data/vendor/local/share/gtk-doc/html/cairo/right-insensitive.png +0 -0
  203. data/vendor/local/share/gtk-doc/html/cairo/right.png +0 -0
  204. data/vendor/local/share/gtk-doc/html/cairo/style.css +221 -26
  205. data/vendor/local/share/gtk-doc/html/cairo/up-insensitive.png +0 -0
  206. data/vendor/local/share/gtk-doc/html/cairo/up.png +0 -0
  207. data/vendor/local/share/license/cairo/README +1 -1
  208. data/vendor/local/share/license/freetype/README +6 -6
  209. data/vendor/local/share/license/freetype/README.git +1 -1
  210. data/vendor/local/share/license/libpng/README +2 -2
  211. data/vendor/local/share/man/man1/freetype-config.1 +1 -1
  212. data/vendor/local/share/man/man3/libpng.3 +85 -92
  213. data/vendor/local/share/man/man3/libpngpf.3 +2 -2
  214. data/vendor/local/share/man/man5/png.5 +1 -1
  215. metadata +23 -19
@@ -2,27 +2,27 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>Drawing</title>
6
- <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
5
+ <title>Cairo: A Vector Graphics Library: Drawing</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
  <link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
8
8
  <link rel="up" href="index.html" title="Cairo: A Vector Graphics Library">
9
9
  <link rel="prev" href="index.html" title="Cairo: A Vector Graphics Library">
10
10
  <link rel="next" href="cairo-cairo-t.html" title="cairo_t">
11
- <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
11
+ <meta name="generator" content="GTK-Doc V1.20 (XML mode)">
12
12
  <link rel="stylesheet" href="style.css" type="text/css">
13
13
  </head>
14
14
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
16
- <td><a accesskey="p" href="index.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17
- <td> </td>
18
- <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19
- <th width="100%" align="center">Cairo: A Vector Graphics Library</th>
20
- <td><a accesskey="n" href="cairo-cairo-t.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
16
+ <td width="100%" align="left" class="shortcuts"></td>
17
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
18
+ <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
19
+ <td><a accesskey="p" href="index.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
20
+ <td><a accesskey="n" href="cairo-cairo-t.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
21
21
  </tr></table>
22
22
  <div class="chapter">
23
- <div class="titlepage"><div><div><h2 class="title">
24
- <a name="cairo-drawing"></a>Drawing</h2></div></div></div>
25
- <div class="toc"><dl>
23
+ <div class="titlepage"><div><div><h1 class="title">
24
+ <a name="cairo-drawing"></a>Drawing</h1></div></div></div>
25
+ <div class="toc"><dl class="toc">
26
26
  <dt>
27
27
  <span class="refentrytitle"><a href="cairo-cairo-t.html">cairo_t</a></span><span class="refpurpose"> — The cairo drawing context</span>
28
28
  </dt>
@@ -48,6 +48,6 @@
48
48
  </div>
49
49
  <div class="footer">
50
50
  <hr>
51
- Generated by GTK-Doc V1.18</div>
51
+ Generated by GTK-Doc V1.20</div>
52
52
  </body>
53
53
  </html>
@@ -2,27 +2,27 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>Fonts</title>
6
- <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
5
+ <title>Cairo: A Vector Graphics Library: Fonts</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
  <link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
8
8
  <link rel="up" href="index.html" title="Cairo: A Vector Graphics Library">
9
9
  <link rel="prev" href="cairo-Raster-Sources.html" title="Raster Sources">
10
10
  <link rel="next" href="cairo-cairo-font-face-t.html" title="cairo_font_face_t">
11
- <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
11
+ <meta name="generator" content="GTK-Doc V1.20 (XML mode)">
12
12
  <link rel="stylesheet" href="style.css" type="text/css">
13
13
  </head>
14
14
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
16
- <td><a accesskey="p" href="cairo-Raster-Sources.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17
- <td> </td>
18
- <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19
- <th width="100%" align="center">Cairo: A Vector Graphics Library</th>
20
- <td><a accesskey="n" href="cairo-cairo-font-face-t.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
16
+ <td width="100%" align="left" class="shortcuts"></td>
17
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
18
+ <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
19
+ <td><a accesskey="p" href="cairo-Raster-Sources.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
20
+ <td><a accesskey="n" href="cairo-cairo-font-face-t.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
21
21
  </tr></table>
22
22
  <div class="chapter">
23
- <div class="titlepage"><div><div><h2 class="title">
24
- <a name="cairo-fonts"></a>Fonts</h2></div></div></div>
25
- <div class="toc"><dl>
23
+ <div class="titlepage"><div><div><h1 class="title">
24
+ <a name="cairo-fonts"></a>Fonts</h1></div></div></div>
25
+ <div class="toc"><dl class="toc">
26
26
  <dt>
27
27
  <span class="refentrytitle"><a href="cairo-cairo-font-face-t.html">cairo_font_face_t</a></span><span class="refpurpose"> — Base class for font faces</span>
28
28
  </dt>
@@ -48,6 +48,6 @@
48
48
  </div>
49
49
  <div class="footer">
50
50
  <hr>
51
- Generated by GTK-Doc V1.18</div>
51
+ Generated by GTK-Doc V1.20</div>
52
52
  </body>
53
53
  </html>
@@ -2,27 +2,27 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>Utilities</title>
6
- <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
5
+ <title>Cairo: A Vector Graphics Library: Utilities</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
  <link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
8
8
  <link rel="up" href="index.html" title="Cairo: A Vector Graphics Library">
9
9
  <link rel="prev" href="cairo-Script-Surfaces.html" title="Script Surfaces">
10
10
  <link rel="next" href="cairo-cairo-matrix-t.html" title="cairo_matrix_t">
11
- <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
11
+ <meta name="generator" content="GTK-Doc V1.20 (XML mode)">
12
12
  <link rel="stylesheet" href="style.css" type="text/css">
13
13
  </head>
14
14
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
16
- <td><a accesskey="p" href="cairo-Script-Surfaces.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17
- <td> </td>
18
- <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19
- <th width="100%" align="center">Cairo: A Vector Graphics Library</th>
20
- <td><a accesskey="n" href="cairo-cairo-matrix-t.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
16
+ <td width="100%" align="left" class="shortcuts"></td>
17
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
18
+ <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
19
+ <td><a accesskey="p" href="cairo-Script-Surfaces.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
20
+ <td><a accesskey="n" href="cairo-cairo-matrix-t.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
21
21
  </tr></table>
22
22
  <div class="chapter">
23
- <div class="titlepage"><div><div><h2 class="title">
24
- <a name="cairo-support"></a>Utilities</h2></div></div></div>
25
- <div class="toc"><dl>
23
+ <div class="titlepage"><div><div><h1 class="title">
24
+ <a name="cairo-support"></a>Utilities</h1></div></div></div>
25
+ <div class="toc"><dl class="toc">
26
26
  <dt>
27
27
  <span class="refentrytitle"><a href="cairo-cairo-matrix-t.html">cairo_matrix_t</a></span><span class="refpurpose"> — Generic matrix operations</span>
28
28
  </dt>
@@ -39,6 +39,6 @@
39
39
  </div>
40
40
  <div class="footer">
41
41
  <hr>
42
- Generated by GTK-Doc V1.18</div>
42
+ Generated by GTK-Doc V1.20</div>
43
43
  </body>
44
44
  </html>
@@ -2,27 +2,27 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>Surfaces</title>
6
- <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
5
+ <title>Cairo: A Vector Graphics Library: Surfaces</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
  <link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
8
8
  <link rel="up" href="index.html" title="Cairo: A Vector Graphics Library">
9
9
  <link rel="prev" href="cairo-User-Fonts.html" title="User Fonts">
10
10
  <link rel="next" href="cairo-cairo-device-t.html" title="cairo_device_t">
11
- <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
11
+ <meta name="generator" content="GTK-Doc V1.20 (XML mode)">
12
12
  <link rel="stylesheet" href="style.css" type="text/css">
13
13
  </head>
14
14
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
16
- <td><a accesskey="p" href="cairo-User-Fonts.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17
- <td> </td>
18
- <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19
- <th width="100%" align="center">Cairo: A Vector Graphics Library</th>
20
- <td><a accesskey="n" href="cairo-cairo-device-t.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
16
+ <td width="100%" align="left" class="shortcuts"></td>
17
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
18
+ <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
19
+ <td><a accesskey="p" href="cairo-User-Fonts.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
20
+ <td><a accesskey="n" href="cairo-cairo-device-t.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
21
21
  </tr></table>
22
22
  <div class="chapter">
23
- <div class="titlepage"><div><div><h2 class="title">
24
- <a name="cairo-surfaces"></a>Surfaces</h2></div></div></div>
25
- <div class="toc"><dl>
23
+ <div class="titlepage"><div><div><h1 class="title">
24
+ <a name="cairo-surfaces"></a>Surfaces</h1></div></div></div>
25
+ <div class="toc"><dl class="toc">
26
26
  <dt>
27
27
  <span class="refentrytitle"><a href="cairo-cairo-device-t.html">cairo_device_t</a></span><span class="refpurpose"> — interface to underlying rendering system</span>
28
28
  </dt>
@@ -69,6 +69,6 @@
69
69
  </div>
70
70
  <div class="footer">
71
71
  <hr>
72
- Generated by GTK-Doc V1.18</div>
72
+ Generated by GTK-Doc V1.20</div>
73
73
  </body>
74
74
  </html>
@@ -2,30 +2,27 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>text</title>
6
- <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
5
+ <title>Cairo: A Vector Graphics Library: text</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
  <link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
8
8
  <link rel="up" href="cairo-drawing.html" title="Drawing">
9
9
  <link rel="prev" href="cairo-Transformations.html" title="Transformations">
10
10
  <link rel="next" href="cairo-Raster-Sources.html" title="Raster Sources">
11
- <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
11
+ <meta name="generator" content="GTK-Doc V1.20 (XML mode)">
12
12
  <link rel="stylesheet" href="style.css" type="text/css">
13
13
  </head>
14
14
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16
- <tr valign="middle">
17
- <td><a accesskey="p" href="cairo-Transformations.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
- <td><a accesskey="u" href="cairo-drawing.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
- <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
- <th width="100%" align="center">Cairo: A Vector Graphics Library</th>
21
- <td><a accesskey="n" href="cairo-Raster-Sources.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22
- </tr>
23
- <tr><td colspan="5" class="shortcuts">
24
- <a href="#cairo-text.synopsis" class="shortcut">Top</a>
25
-  | 
26
- <a href="#cairo-text.description" class="shortcut">Description</a>
27
- </td></tr>
28
- </table>
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
16
+ <td width="100%" align="left" class="shortcuts">
17
+ <a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> 
18
+ <a href="#cairo-text.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> 
19
+ <a href="#cairo-text.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
20
+ </td>
21
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
22
+ <td><a accesskey="u" href="cairo-drawing.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
23
+ <td><a accesskey="p" href="cairo-Transformations.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
24
+ <td><a accesskey="n" href="cairo-Raster-Sources.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
25
+ </tr></table>
29
26
  <div class="refentry">
30
27
  <a name="cairo-text"></a><div class="titlepage"></div>
31
28
  <div class="refnamediv"><table width="100%"><tr>
@@ -33,1106 +30,1466 @@
33
30
  <h2><span class="refentrytitle"><a name="cairo-text.top_of_page"></a>text</span></h2>
34
31
  <p>text — Rendering text and glyphs</p>
35
32
  </td>
36
- <td valign="top" align="right"></td>
33
+ <td class="gallery_image" valign="top" align="right"></td>
37
34
  </tr></table></div>
38
- <div class="refsynopsisdiv">
39
- <a name="cairo-text.synopsis"></a><h2>Synopsis</h2>
40
- <pre class="synopsis"> <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t">cairo_glyph_t</a>;
41
- enum <a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t">cairo_font_slant_t</a>;
42
- enum <a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t">cairo_font_weight_t</a>;
43
- <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t">cairo_text_cluster_t</a>;
44
- enum <a class="link" href="cairo-text.html#cairo-text-cluster-flags-t" title="enum cairo_text_cluster_flags_t">cairo_text_cluster_flags_t</a>;
45
- <span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-select-font-face" title="cairo_select_font_face ()">cairo_select_font_face</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
46
- <em class="parameter"><code>const <span class="type">char</span> *family</code></em>,
47
- <em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t"><span class="type">cairo_font_slant_t</span></a> slant</code></em>,
48
- <em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t"><span class="type">cairo_font_weight_t</span></a> weight</code></em>);
49
- <span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-set-font-size" title="cairo_set_font_size ()">cairo_set_font_size</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
50
- <em class="parameter"><code><span class="type">double</span> size</code></em>);
51
- <span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-set-font-matrix" title="cairo_set_font_matrix ()">cairo_set_font_matrix</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
52
- <em class="parameter"><code>const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);
53
- <span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-get-font-matrix" title="cairo_get_font_matrix ()">cairo_get_font_matrix</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
54
- <em class="parameter"><code><a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);
55
- <span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-set-font-options" title="cairo_set_font_options ()">cairo_set_font_options</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
56
- <em class="parameter"><code>const <a class="link" href="cairo-cairo-font-options-t.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a> *options</code></em>);
57
- <span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-get-font-options" title="cairo_get_font_options ()">cairo_get_font_options</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
58
- <em class="parameter"><code><a class="link" href="cairo-cairo-font-options-t.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a> *options</code></em>);
59
- <span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face ()">cairo_set_font_face</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
60
- <em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);
61
- <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> * <a class="link" href="cairo-text.html#cairo-get-font-face" title="cairo_get_font_face ()">cairo_get_font_face</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
62
- <span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-set-scaled-font" title="cairo_set_scaled_font ()">cairo_set_scaled_font</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
63
- <em class="parameter"><code>const <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> *scaled_font</code></em>);
64
- <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="returnvalue">cairo_scaled_font_t</span></a> * <a class="link" href="cairo-text.html#cairo-get-scaled-font" title="cairo_get_scaled_font ()">cairo_get_scaled_font</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
65
- <span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-show-text" title="cairo_show_text ()">cairo_show_text</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
66
- <em class="parameter"><code>const <span class="type">char</span> *utf8</code></em>);
67
- <span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()">cairo_show_glyphs</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
68
- <em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>,
69
- <em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>);
70
- <span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-show-text-glyphs" title="cairo_show_text_glyphs ()">cairo_show_text_glyphs</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
71
- <em class="parameter"><code>const <span class="type">char</span> *utf8</code></em>,
72
- <em class="parameter"><code><span class="type">int</span> utf8_len</code></em>,
73
- <em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>,
74
- <em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>,
75
- <em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="type">cairo_text_cluster_t</span></a> *clusters</code></em>,
76
- <em class="parameter"><code><span class="type">int</span> num_clusters</code></em>,
77
- <em class="parameter"><code><a class="link" href="cairo-text.html#cairo-text-cluster-flags-t" title="enum cairo_text_cluster_flags_t"><span class="type">cairo_text_cluster_flags_t</span></a> cluster_flags</code></em>);
78
- <span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-font-extents" title="cairo_font_extents ()">cairo_font_extents</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
79
- <em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-font-extents-t" title="cairo_font_extents_t"><span class="type">cairo_font_extents_t</span></a> *extents</code></em>);
80
- <span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-text-extents" title="cairo_text_extents ()">cairo_text_extents</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
81
- <em class="parameter"><code>const <span class="type">char</span> *utf8</code></em>,
82
- <em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-text-extents-t" title="cairo_text_extents_t"><span class="type">cairo_text_extents_t</span></a> *extents</code></em>);
83
- <span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-glyph-extents" title="cairo_glyph_extents ()">cairo_glyph_extents</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
84
- <em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>,
85
- <em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>,
86
- <em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-text-extents-t" title="cairo_text_extents_t"><span class="type">cairo_text_extents_t</span></a> *extents</code></em>);
87
- <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> * <a class="link" href="cairo-text.html#cairo-toy-font-face-create" title="cairo_toy_font_face_create ()">cairo_toy_font_face_create</a> (<em class="parameter"><code>const <span class="type">char</span> *family</code></em>,
88
- <em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t"><span class="type">cairo_font_slant_t</span></a> slant</code></em>,
89
- <em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t"><span class="type">cairo_font_weight_t</span></a> weight</code></em>);
90
- const <span class="returnvalue">char</span> * <a class="link" href="cairo-text.html#cairo-toy-font-face-get-family" title="cairo_toy_font_face_get_family ()">cairo_toy_font_face_get_family</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);
91
- <a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t"><span class="returnvalue">cairo_font_slant_t</span></a> <a class="link" href="cairo-text.html#cairo-toy-font-face-get-slant" title="cairo_toy_font_face_get_slant ()">cairo_toy_font_face_get_slant</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);
92
- <a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t"><span class="returnvalue">cairo_font_weight_t</span></a> <a class="link" href="cairo-text.html#cairo-toy-font-face-get-weight" title="cairo_toy_font_face_get_weight ()">cairo_toy_font_face_get_weight</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);
93
- <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="returnvalue">cairo_glyph_t</span></a> * <a class="link" href="cairo-text.html#cairo-glyph-allocate" title="cairo_glyph_allocate ()">cairo_glyph_allocate</a> (<em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>);
94
- <span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-glyph-free" title="cairo_glyph_free ()">cairo_glyph_free</a> (<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>);
95
- <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="returnvalue">cairo_text_cluster_t</span></a> * <a class="link" href="cairo-text.html#cairo-text-cluster-allocate" title="cairo_text_cluster_allocate ()">cairo_text_cluster_allocate</a> (<em class="parameter"><code><span class="type">int</span> num_clusters</code></em>);
96
- <span class="returnvalue">void</span> <a class="link" href="cairo-text.html#cairo-text-cluster-free" title="cairo_text_cluster_free ()">cairo_text_cluster_free</a> (<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="type">cairo_text_cluster_t</span></a> *clusters</code></em>);
97
- </pre>
98
- </div>
99
- <div class="refsect1">
100
- <a name="cairo-text.description"></a><h2>Description</h2>
101
- <p>
102
- The functions with <span class="emphasis"><em>text</em></span> in their name form cairo's
103
- <em class="firstterm">toy</em> text API. The toy API takes UTF-8 encoded
104
- text and is limited in its functionality to rendering simple
105
- left-to-right text with no advanced features. That means for example
106
- that most complex scripts like Hebrew, Arabic, and Indic scripts are
107
- out of question. No kerning or correct positioning of diacritical marks
108
- either. The font selection is pretty limited too and doesn't handle the
109
- case that the selected font does not cover the characters in the text.
110
- This set of functions are really that, a toy text API, for testing and
111
- demonstration purposes. Any serious application should avoid them.
112
- </p>
113
- <p>
114
- The functions with <span class="emphasis"><em>glyphs</em></span> in their name form cairo's
115
- <em class="firstterm">low-level</em> text API. The low-level API relies on
116
- the user to convert text to a set of glyph indexes and positions. This
117
- is a very hard problem and is best handled by external libraries, like
118
- the pangocairo that is part of the Pango text layout and rendering library.
119
- Pango is available from <a class="ulink" href="http://www.pango.org/" target="_top">http://www.pango.org/</a>.
120
- </p>
121
- </div>
122
35
  <div class="refsect1">
123
- <a name="cairo-text.details"></a><h2>Details</h2>
124
- <div class="refsect2">
125
- <a name="cairo-glyph-t"></a><h3>cairo_glyph_t</h3>
126
- <pre class="programlisting">typedef struct {
127
- unsigned long index;
128
- double x;
129
- double y;
130
- } cairo_glyph_t;
131
- </pre>
132
- <p>
133
- The <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> structure holds information about a single glyph
134
- when drawing or measuring text. A font is (in simple terms) a
135
- collection of shapes used to draw text. A glyph is one of these
136
- shapes. There can be multiple glyphs for a single character
137
- (alternates to be used in different contexts, for example), or a
138
- glyph can be a <em class="firstterm">ligature</em> of multiple
139
- characters. Cairo doesn't expose any way of converting input text
140
- into glyphs, so in order to use the Cairo interfaces that take
141
- arrays of glyphs, you must directly access the appropriate
142
- underlying font system.
143
- </p>
144
- <p>
145
- Note that the offsets given by <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em> are not cumulative. When
146
- drawing or measuring text, each glyph is individually positioned
147
- with respect to the overall origin
148
- </p>
149
- <div class="variablelist"><table border="0">
150
- <col align="left" valign="top">
36
+ <a name="cairo-text.functions"></a><h2>Functions</h2>
37
+ <div class="informaltable"><table width="100%" border="0">
38
+ <colgroup>
39
+ <col width="150px" class="functions_return">
40
+ <col class="functions_name">
41
+ </colgroup>
151
42
  <tbody>
152
43
  <tr>
153
- <td><p><span class="term">unsigned <span class="type">long</span> <em class="structfield"><code><a name="cairo-glyph-t.index"></a>index</code></em>;</span></p></td>
154
- <td>glyph index in the font. The exact interpretation of the
155
- glyph index depends on the font technology being used.</td>
44
+ <td class="function_type">
45
+ <span class="returnvalue">void</span>
46
+ </td>
47
+ <td class="function_name">
48
+ <a class="link" href="cairo-text.html#cairo-select-font-face" title="cairo_select_font_face ()">cairo_select_font_face</a> <span class="c_punctuation">()</span>
49
+ </td>
156
50
  </tr>
157
51
  <tr>
158
- <td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="cairo-glyph-t.x"></a>x</code></em>;</span></p></td>
159
- <td>the offset in the X direction between the origin used for
160
- drawing or measuring the string and the origin of this glyph.</td>
52
+ <td class="function_type">
53
+ <span class="returnvalue">void</span>
54
+ </td>
55
+ <td class="function_name">
56
+ <a class="link" href="cairo-text.html#cairo-set-font-size" title="cairo_set_font_size ()">cairo_set_font_size</a> <span class="c_punctuation">()</span>
57
+ </td>
161
58
  </tr>
162
59
  <tr>
163
- <td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="cairo-glyph-t.y"></a>y</code></em>;</span></p></td>
164
- <td>the offset in the Y direction between the origin used for
165
- drawing or measuring the string and the origin of this glyph.</td>
60
+ <td class="function_type">
61
+ <span class="returnvalue">void</span>
62
+ </td>
63
+ <td class="function_name">
64
+ <a class="link" href="cairo-text.html#cairo-set-font-matrix" title="cairo_set_font_matrix ()">cairo_set_font_matrix</a> <span class="c_punctuation">()</span>
65
+ </td>
166
66
  </tr>
167
- </tbody>
168
- </table></div>
169
- <p class="since">Since 1.0</p>
170
- </div>
171
- <hr>
172
- <div class="refsect2">
173
- <a name="cairo-font-slant-t"></a><h3>enum cairo_font_slant_t</h3>
174
- <pre class="programlisting">typedef enum {
175
- CAIRO_FONT_SLANT_NORMAL,
176
- CAIRO_FONT_SLANT_ITALIC,
177
- CAIRO_FONT_SLANT_OBLIQUE
178
- } cairo_font_slant_t;
179
- </pre>
180
- <p>
181
- Specifies variants of a font face based on their slant.
182
- </p>
183
- <div class="variablelist"><table border="0">
184
- <col align="left" valign="top">
185
- <tbody>
186
67
  <tr>
187
- <td><p><a name="CAIRO-FONT-SLANT-NORMAL:CAPS"></a><span class="term"><code class="literal">CAIRO_FONT_SLANT_NORMAL</code></span></p></td>
188
- <td>Upright font style, since 1.0
68
+ <td class="function_type">
69
+ <span class="returnvalue">void</span>
70
+ </td>
71
+ <td class="function_name">
72
+ <a class="link" href="cairo-text.html#cairo-get-font-matrix" title="cairo_get_font_matrix ()">cairo_get_font_matrix</a> <span class="c_punctuation">()</span>
189
73
  </td>
190
74
  </tr>
191
75
  <tr>
192
- <td><p><a name="CAIRO-FONT-SLANT-ITALIC:CAPS"></a><span class="term"><code class="literal">CAIRO_FONT_SLANT_ITALIC</code></span></p></td>
193
- <td>Italic font style, since 1.0
76
+ <td class="function_type">
77
+ <span class="returnvalue">void</span>
78
+ </td>
79
+ <td class="function_name">
80
+ <a class="link" href="cairo-text.html#cairo-set-font-options" title="cairo_set_font_options ()">cairo_set_font_options</a> <span class="c_punctuation">()</span>
194
81
  </td>
195
82
  </tr>
196
83
  <tr>
197
- <td><p><a name="CAIRO-FONT-SLANT-OBLIQUE:CAPS"></a><span class="term"><code class="literal">CAIRO_FONT_SLANT_OBLIQUE</code></span></p></td>
198
- <td>Oblique font style, since 1.0
84
+ <td class="function_type">
85
+ <span class="returnvalue">void</span>
86
+ </td>
87
+ <td class="function_name">
88
+ <a class="link" href="cairo-text.html#cairo-get-font-options" title="cairo_get_font_options ()">cairo_get_font_options</a> <span class="c_punctuation">()</span>
89
+ </td>
90
+ </tr>
91
+ <tr>
92
+ <td class="function_type">
93
+ <span class="returnvalue">void</span>
94
+ </td>
95
+ <td class="function_name">
96
+ <a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face ()">cairo_set_font_face</a> <span class="c_punctuation">()</span>
97
+ </td>
98
+ </tr>
99
+ <tr>
100
+ <td class="function_type">
101
+ <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> *
102
+ </td>
103
+ <td class="function_name">
104
+ <a class="link" href="cairo-text.html#cairo-get-font-face" title="cairo_get_font_face ()">cairo_get_font_face</a> <span class="c_punctuation">()</span>
105
+ </td>
106
+ </tr>
107
+ <tr>
108
+ <td class="function_type">
109
+ <span class="returnvalue">void</span>
110
+ </td>
111
+ <td class="function_name">
112
+ <a class="link" href="cairo-text.html#cairo-set-scaled-font" title="cairo_set_scaled_font ()">cairo_set_scaled_font</a> <span class="c_punctuation">()</span>
113
+ </td>
114
+ </tr>
115
+ <tr>
116
+ <td class="function_type">
117
+ <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="returnvalue">cairo_scaled_font_t</span></a> *
118
+ </td>
119
+ <td class="function_name">
120
+ <a class="link" href="cairo-text.html#cairo-get-scaled-font" title="cairo_get_scaled_font ()">cairo_get_scaled_font</a> <span class="c_punctuation">()</span>
121
+ </td>
122
+ </tr>
123
+ <tr>
124
+ <td class="function_type">
125
+ <span class="returnvalue">void</span>
126
+ </td>
127
+ <td class="function_name">
128
+ <a class="link" href="cairo-text.html#cairo-show-text" title="cairo_show_text ()">cairo_show_text</a> <span class="c_punctuation">()</span>
129
+ </td>
130
+ </tr>
131
+ <tr>
132
+ <td class="function_type">
133
+ <span class="returnvalue">void</span>
134
+ </td>
135
+ <td class="function_name">
136
+ <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()">cairo_show_glyphs</a> <span class="c_punctuation">()</span>
137
+ </td>
138
+ </tr>
139
+ <tr>
140
+ <td class="function_type">
141
+ <span class="returnvalue">void</span>
142
+ </td>
143
+ <td class="function_name">
144
+ <a class="link" href="cairo-text.html#cairo-show-text-glyphs" title="cairo_show_text_glyphs ()">cairo_show_text_glyphs</a> <span class="c_punctuation">()</span>
145
+ </td>
146
+ </tr>
147
+ <tr>
148
+ <td class="function_type">
149
+ <span class="returnvalue">void</span>
150
+ </td>
151
+ <td class="function_name">
152
+ <a class="link" href="cairo-text.html#cairo-font-extents" title="cairo_font_extents ()">cairo_font_extents</a> <span class="c_punctuation">()</span>
199
153
  </td>
200
154
  </tr>
201
- </tbody>
202
- </table></div>
203
- <p class="since">Since 1.0</p>
204
- </div>
205
- <hr>
206
- <div class="refsect2">
207
- <a name="cairo-font-weight-t"></a><h3>enum cairo_font_weight_t</h3>
208
- <pre class="programlisting">typedef enum {
209
- CAIRO_FONT_WEIGHT_NORMAL,
210
- CAIRO_FONT_WEIGHT_BOLD
211
- } cairo_font_weight_t;
212
- </pre>
213
- <p>
214
- Specifies variants of a font face based on their weight.
215
- </p>
216
- <div class="variablelist"><table border="0">
217
- <col align="left" valign="top">
218
- <tbody>
219
155
  <tr>
220
- <td><p><a name="CAIRO-FONT-WEIGHT-NORMAL:CAPS"></a><span class="term"><code class="literal">CAIRO_FONT_WEIGHT_NORMAL</code></span></p></td>
221
- <td>Normal font weight, since 1.0
156
+ <td class="function_type">
157
+ <span class="returnvalue">void</span>
158
+ </td>
159
+ <td class="function_name">
160
+ <a class="link" href="cairo-text.html#cairo-text-extents" title="cairo_text_extents ()">cairo_text_extents</a> <span class="c_punctuation">()</span>
161
+ </td>
162
+ </tr>
163
+ <tr>
164
+ <td class="function_type">
165
+ <span class="returnvalue">void</span>
166
+ </td>
167
+ <td class="function_name">
168
+ <a class="link" href="cairo-text.html#cairo-glyph-extents" title="cairo_glyph_extents ()">cairo_glyph_extents</a> <span class="c_punctuation">()</span>
169
+ </td>
170
+ </tr>
171
+ <tr>
172
+ <td class="function_type">
173
+ <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> *
174
+ </td>
175
+ <td class="function_name">
176
+ <a class="link" href="cairo-text.html#cairo-toy-font-face-create" title="cairo_toy_font_face_create ()">cairo_toy_font_face_create</a> <span class="c_punctuation">()</span>
177
+ </td>
178
+ </tr>
179
+ <tr>
180
+ <td class="function_type">const <span class="returnvalue">char</span> *
181
+ </td>
182
+ <td class="function_name">
183
+ <a class="link" href="cairo-text.html#cairo-toy-font-face-get-family" title="cairo_toy_font_face_get_family ()">cairo_toy_font_face_get_family</a> <span class="c_punctuation">()</span>
184
+ </td>
185
+ </tr>
186
+ <tr>
187
+ <td class="function_type">
188
+ <a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t"><span class="returnvalue">cairo_font_slant_t</span></a>
189
+ </td>
190
+ <td class="function_name">
191
+ <a class="link" href="cairo-text.html#cairo-toy-font-face-get-slant" title="cairo_toy_font_face_get_slant ()">cairo_toy_font_face_get_slant</a> <span class="c_punctuation">()</span>
192
+ </td>
193
+ </tr>
194
+ <tr>
195
+ <td class="function_type">
196
+ <a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t"><span class="returnvalue">cairo_font_weight_t</span></a>
197
+ </td>
198
+ <td class="function_name">
199
+ <a class="link" href="cairo-text.html#cairo-toy-font-face-get-weight" title="cairo_toy_font_face_get_weight ()">cairo_toy_font_face_get_weight</a> <span class="c_punctuation">()</span>
222
200
  </td>
223
201
  </tr>
224
202
  <tr>
225
- <td><p><a name="CAIRO-FONT-WEIGHT-BOLD:CAPS"></a><span class="term"><code class="literal">CAIRO_FONT_WEIGHT_BOLD</code></span></p></td>
226
- <td>Bold font weight, since 1.0
203
+ <td class="function_type">
204
+ <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="returnvalue">cairo_glyph_t</span></a> *
205
+ </td>
206
+ <td class="function_name">
207
+ <a class="link" href="cairo-text.html#cairo-glyph-allocate" title="cairo_glyph_allocate ()">cairo_glyph_allocate</a> <span class="c_punctuation">()</span>
208
+ </td>
209
+ </tr>
210
+ <tr>
211
+ <td class="function_type">
212
+ <span class="returnvalue">void</span>
213
+ </td>
214
+ <td class="function_name">
215
+ <a class="link" href="cairo-text.html#cairo-glyph-free" title="cairo_glyph_free ()">cairo_glyph_free</a> <span class="c_punctuation">()</span>
216
+ </td>
217
+ </tr>
218
+ <tr>
219
+ <td class="function_type">
220
+ <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="returnvalue">cairo_text_cluster_t</span></a> *
221
+ </td>
222
+ <td class="function_name">
223
+ <a class="link" href="cairo-text.html#cairo-text-cluster-allocate" title="cairo_text_cluster_allocate ()">cairo_text_cluster_allocate</a> <span class="c_punctuation">()</span>
224
+ </td>
225
+ </tr>
226
+ <tr>
227
+ <td class="function_type">
228
+ <span class="returnvalue">void</span>
229
+ </td>
230
+ <td class="function_name">
231
+ <a class="link" href="cairo-text.html#cairo-text-cluster-free" title="cairo_text_cluster_free ()">cairo_text_cluster_free</a> <span class="c_punctuation">()</span>
227
232
  </td>
228
233
  </tr>
229
234
  </tbody>
230
235
  </table></div>
231
- <p class="since">Since 1.0</p>
232
236
  </div>
233
- <hr>
234
- <div class="refsect2">
235
- <a name="cairo-text-cluster-t"></a><h3>cairo_text_cluster_t</h3>
236
- <pre class="programlisting">typedef struct {
237
- int num_bytes;
238
- int num_glyphs;
239
- } cairo_text_cluster_t;
240
- </pre>
241
- <p>
242
- The <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="type">cairo_text_cluster_t</span></a> structure holds information about a single
243
- <em class="firstterm">text cluster</em>. A text cluster is a minimal
244
- mapping of some glyphs corresponding to some UTF-8 text.
245
- </p>
246
- <p>
247
- For a cluster to be valid, both <em class="parameter"><code>num_bytes</code></em> and <em class="parameter"><code>num_glyphs</code></em> should
248
- be non-negative, and at least one should be non-zero.
249
- Note that clusters with zero glyphs are not as well supported as
250
- normal clusters. For example, PDF rendering applications typically
251
- ignore those clusters when PDF text is being selected.
252
- </p>
253
- <p>
254
- See <a class="link" href="cairo-text.html#cairo-show-text-glyphs" title="cairo_show_text_glyphs ()"><code class="function">cairo_show_text_glyphs()</code></a> for how clusters are used in advanced
255
- text operations.
256
- </p>
257
- <div class="variablelist"><table border="0">
258
- <col align="left" valign="top">
237
+ <div class="refsect1">
238
+ <a name="cairo-text.other"></a><h2>Types and Values</h2>
239
+ <div class="informaltable"><table width="100%" border="0">
240
+ <colgroup>
241
+ <col width="150px" class="name">
242
+ <col class="description">
243
+ </colgroup>
259
244
  <tbody>
260
245
  <tr>
261
- <td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="cairo-text-cluster-t.num-bytes"></a>num_bytes</code></em>;</span></p></td>
262
- <td>the number of bytes of UTF-8 text covered by cluster</td>
246
+ <td class="datatype_keyword"> </td>
247
+ <td class="function_name"><a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t">cairo_glyph_t</a></td>
248
+ </tr>
249
+ <tr>
250
+ <td class="datatype_keyword">enum</td>
251
+ <td class="function_name"><a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t">cairo_font_slant_t</a></td>
252
+ </tr>
253
+ <tr>
254
+ <td class="datatype_keyword">enum</td>
255
+ <td class="function_name"><a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t">cairo_font_weight_t</a></td>
256
+ </tr>
257
+ <tr>
258
+ <td class="datatype_keyword"> </td>
259
+ <td class="function_name"><a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t">cairo_text_cluster_t</a></td>
263
260
  </tr>
264
261
  <tr>
265
- <td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="cairo-text-cluster-t.num-glyphs"></a>num_glyphs</code></em>;</span></p></td>
266
- <td>the number of glyphs covered by cluster</td>
262
+ <td class="datatype_keyword">enum</td>
263
+ <td class="function_name"><a class="link" href="cairo-text.html#cairo-text-cluster-flags-t" title="enum cairo_text_cluster_flags_t">cairo_text_cluster_flags_t</a></td>
267
264
  </tr>
268
265
  </tbody>
269
266
  </table></div>
270
- <p class="since">Since 1.8</p>
271
267
  </div>
272
- <hr>
273
- <div class="refsect2">
274
- <a name="cairo-text-cluster-flags-t"></a><h3>enum cairo_text_cluster_flags_t</h3>
275
- <pre class="programlisting">typedef enum {
276
- CAIRO_TEXT_CLUSTER_FLAG_BACKWARD = 0x00000001
277
- } cairo_text_cluster_flags_t;
268
+ <div class="refsect1">
269
+ <a name="cairo-text.object-hierarchy"></a><h2>Object Hierarchy</h2>
270
+ <pre class="screen">
278
271
  </pre>
279
- <p>
280
- Specifies properties of a text cluster mapping.
281
- </p>
282
- <div class="variablelist"><table border="0">
283
- <col align="left" valign="top">
284
- <tbody><tr>
285
- <td><p><a name="CAIRO-TEXT-CLUSTER-FLAG-BACKWARD:CAPS"></a><span class="term"><code class="literal">CAIRO_TEXT_CLUSTER_FLAG_BACKWARD</code></span></p></td>
286
- <td>The clusters in the cluster array
287
- map to glyphs in the glyph array from end to start. (Since 1.8)
288
- </td>
289
- </tr></tbody>
290
- </table></div>
291
- <p class="since">Since 1.8</p>
292
272
  </div>
293
- <hr>
273
+ <div class="refsect1">
274
+ <a name="cairo-text.description"></a><h2>Description</h2>
275
+ <p>The functions with <span class="emphasis"><em>text</em></span> in their name form cairo's
276
+ <em class="firstterm">toy</em> text API. The toy API takes UTF-8 encoded
277
+ text and is limited in its functionality to rendering simple
278
+ left-to-right text with no advanced features. That means for example
279
+ that most complex scripts like Hebrew, Arabic, and Indic scripts are
280
+ out of question. No kerning or correct positioning of diacritical marks
281
+ either. The font selection is pretty limited too and doesn't handle the
282
+ case that the selected font does not cover the characters in the text.
283
+ This set of functions are really that, a toy text API, for testing and
284
+ demonstration purposes. Any serious application should avoid them.</p>
285
+ <p>The functions with <span class="emphasis"><em>glyphs</em></span> in their name form cairo's
286
+ <em class="firstterm">low-level</em> text API. The low-level API relies on
287
+ the user to convert text to a set of glyph indexes and positions. This
288
+ is a very hard problem and is best handled by external libraries, like
289
+ the pangocairo that is part of the Pango text layout and rendering library.
290
+ Pango is available from <a class="ulink" href="http://www.pango.org/" target="_top">http://www.pango.org/</a>.</p>
291
+ </div>
292
+ <div class="refsect1">
293
+ <a name="cairo-text.functions_details"></a><h2>Functions</h2>
294
294
  <div class="refsect2">
295
- <a name="cairo-select-font-face"></a><h3>cairo_select_font_face ()</h3>
296
- <pre class="programlisting"><span class="returnvalue">void</span> cairo_select_font_face (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
297
- <em class="parameter"><code>const <span class="type">char</span> *family</code></em>,
298
- <em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t"><span class="type">cairo_font_slant_t</span></a> slant</code></em>,
299
- <em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t"><span class="type">cairo_font_weight_t</span></a> weight</code></em>);</pre>
300
- <p>
301
- Note: The <a class="link" href="cairo-text.html#cairo-select-font-face" title="cairo_select_font_face ()"><code class="function">cairo_select_font_face()</code></a> function call is part of what
295
+ <a name="cairo-select-font-face"></a><h3>cairo_select_font_face ()</h3>
296
+ <pre class="programlisting"><span class="returnvalue">void</span>
297
+ cairo_select_font_face (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
298
+ <em class="parameter"><code>const <span class="type">char</span> *family</code></em>,
299
+ <em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t"><span class="type">cairo_font_slant_t</span></a> slant</code></em>,
300
+ <em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t"><span class="type">cairo_font_weight_t</span></a> weight</code></em>);</pre>
301
+ <p>Note: The <a class="link" href="cairo-text.html#cairo-select-font-face" title="cairo_select_font_face ()"><code class="function">cairo_select_font_face()</code></a> function call is part of what
302
302
  the cairo designers call the "toy" text API. It is convenient for
303
303
  short demos and simple programs, but it is not expected to be
304
- adequate for serious text-using applications.
305
- </p>
306
- <p>
307
- Selects a family and style of font from a simplified description as
304
+ adequate for serious text-using applications.</p>
305
+ <p>Selects a family and style of font from a simplified description as
308
306
  a family name, slant and weight. Cairo provides no operation to
309
307
  list available family names on the system (this is a "toy",
310
308
  remember), but the standard CSS2 generic family names, ("serif",
311
309
  "sans-serif", "cursive", "fantasy", "monospace"), are likely to
312
- work as expected.
313
- </p>
314
- <p>
315
- If <em class="parameter"><code>family</code></em> starts with the string "<em class="parameter"><code>cairo</code></em>:", or if no native font
310
+ work as expected.</p>
311
+ <p>If <em class="parameter"><code>family</code></em>
312
+ starts with the string "<em class="parameter"><code>cairo</code></em>
313
+ :", or if no native font
316
314
  backends are compiled in, cairo will use an internal font family.
317
315
  The internal font family recognizes many modifiers in the <em class="parameter"><code>family</code></em>
316
+
318
317
  string, most notably, it recognizes the string "monospace". That is,
319
- the family name "<em class="parameter"><code>cairo</code></em>:monospace" will use the monospace version of
320
- the internal font family.
321
- </p>
322
- <p>
323
- For "real" font selection, see the font-backend-specific
318
+ the family name "<em class="parameter"><code>cairo</code></em>
319
+ :monospace" will use the monospace version of
320
+ the internal font family.</p>
321
+ <p>For "real" font selection, see the font-backend-specific
324
322
  font_face_create functions for the font backend you are using. (For
325
323
  example, if you are using the freetype-based cairo-ft font backend,
326
- see <a class="link" href="cairo-FreeType-Fonts.html#cairo-ft-font-face-create-for-ft-face" title="cairo_ft_font_face_create_for_ft_face ()"><code class="function">cairo_ft_font_face_create_for_ft_face()</code></a> or
327
- <a class="link" href="cairo-FreeType-Fonts.html#cairo-ft-font-face-create-for-pattern" title="cairo_ft_font_face_create_for_pattern ()"><code class="function">cairo_ft_font_face_create_for_pattern()</code></a>.) The resulting font face
328
- could then be used with <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a> and
329
- <a class="link" href="cairo-text.html#cairo-set-scaled-font" title="cairo_set_scaled_font ()"><code class="function">cairo_set_scaled_font()</code></a>.
330
- </p>
331
- <p>
332
- Similarly, when using the "real" font support, you can call
324
+ see <a class="link" href="cairo-FreeType-Fonts.html#cairo-ft-font-face-create-for-ft-face" title="cairo_ft_font_face_create_for_ft_face ()"><code class="function">cairo_ft_font_face_create_for_ft_face()</code></a> or
325
+ <a class="link" href="cairo-FreeType-Fonts.html#cairo-ft-font-face-create-for-pattern" title="cairo_ft_font_face_create_for_pattern ()"><code class="function">cairo_ft_font_face_create_for_pattern()</code></a>.) The resulting font face
326
+ could then be used with <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a> and
327
+ <a class="link" href="cairo-text.html#cairo-set-scaled-font" title="cairo_set_scaled_font ()"><code class="function">cairo_set_scaled_font()</code></a>.</p>
328
+ <p>Similarly, when using the "real" font support, you can call
333
329
  directly into the underlying font system, (such as fontconfig or
334
- freetype), for operations such as listing available fonts, etc.
335
- </p>
336
- <p>
337
- It is expected that most applications will need to use a more
330
+ freetype), for operations such as listing available fonts, etc.</p>
331
+ <p>It is expected that most applications will need to use a more
338
332
  comprehensive font handling and text layout library, (for example,
339
- pango), in conjunction with cairo.
340
- </p>
341
- <p>
342
- If text is drawn without a call to <a class="link" href="cairo-text.html#cairo-select-font-face" title="cairo_select_font_face ()"><code class="function">cairo_select_font_face()</code></a>, (nor
343
- <a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face ()"><code class="function">cairo_set_font_face()</code></a> nor <a class="link" href="cairo-text.html#cairo-set-scaled-font" title="cairo_set_scaled_font ()"><code class="function">cairo_set_scaled_font()</code></a>), the default
333
+ pango), in conjunction with cairo.</p>
334
+ <p>If text is drawn without a call to <a class="link" href="cairo-text.html#cairo-select-font-face" title="cairo_select_font_face ()"><code class="function">cairo_select_font_face()</code></a>, (nor
335
+ <a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face ()"><code class="function">cairo_set_font_face()</code></a> nor <a class="link" href="cairo-text.html#cairo-set-scaled-font" title="cairo_set_scaled_font ()"><code class="function">cairo_set_scaled_font()</code></a>), the default
344
336
  family is platform-specific, but is essentially "sans-serif".
345
337
  Default slant is <a class="link" href="cairo-text.html#CAIRO-FONT-SLANT-NORMAL:CAPS"><code class="literal">CAIRO_FONT_SLANT_NORMAL</code></a>, and default weight is
346
- <a class="link" href="cairo-text.html#CAIRO-FONT-WEIGHT-NORMAL:CAPS"><code class="literal">CAIRO_FONT_WEIGHT_NORMAL</code></a>.
347
- </p>
348
- <p>
349
- This function is equivalent to a call to <a class="link" href="cairo-text.html#cairo-toy-font-face-create" title="cairo_toy_font_face_create ()"><code class="function">cairo_toy_font_face_create()</code></a>
350
- followed by <a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face ()"><code class="function">cairo_set_font_face()</code></a>.
351
- </p>
352
- <div class="variablelist"><table border="0">
353
- <col align="left" valign="top">
338
+ <a class="link" href="cairo-text.html#CAIRO-FONT-WEIGHT-NORMAL:CAPS"><code class="literal">CAIRO_FONT_WEIGHT_NORMAL</code></a>.</p>
339
+ <p>This function is equivalent to a call to <a class="link" href="cairo-text.html#cairo-toy-font-face-create" title="cairo_toy_font_face_create ()"><code class="function">cairo_toy_font_face_create()</code></a>
340
+ followed by <a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face ()"><code class="function">cairo_set_font_face()</code></a>.</p>
341
+ <div class="refsect3">
342
+ <a name="id-1.3.7.7.2.12"></a><h4>Parameters</h4>
343
+ <div class="informaltable"><table width="100%" border="0">
344
+ <colgroup>
345
+ <col width="150px" class="parameters_name">
346
+ <col class="parameters_description">
347
+ <col width="200px" class="parameters_annotations">
348
+ </colgroup>
354
349
  <tbody>
355
350
  <tr>
356
- <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
357
- <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
358
- </td>
351
+ <td class="parameter_name"><p>cr</p></td>
352
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a></p></td>
353
+ <td class="parameter_annotations"> </td>
359
354
  </tr>
360
355
  <tr>
361
- <td><p><span class="term"><em class="parameter"><code>family</code></em> :</span></p></td>
362
- <td>a font family name, encoded in UTF-8</td>
356
+ <td class="parameter_name"><p>family</p></td>
357
+ <td class="parameter_description"><p>a font family name, encoded in UTF-8</p></td>
358
+ <td class="parameter_annotations"> </td>
363
359
  </tr>
364
360
  <tr>
365
- <td><p><span class="term"><em class="parameter"><code>slant</code></em> :</span></p></td>
366
- <td>the slant for the font</td>
361
+ <td class="parameter_name"><p>slant</p></td>
362
+ <td class="parameter_description"><p>the slant for the font</p></td>
363
+ <td class="parameter_annotations"> </td>
367
364
  </tr>
368
365
  <tr>
369
- <td><p><span class="term"><em class="parameter"><code>weight</code></em> :</span></p></td>
370
- <td>the weight for the font</td>
366
+ <td class="parameter_name"><p>weight</p></td>
367
+ <td class="parameter_description"><p>the weight for the font</p></td>
368
+ <td class="parameter_annotations"> </td>
371
369
  </tr>
372
370
  </tbody>
373
371
  </table></div>
372
+ </div>
374
373
  <p class="since">Since 1.0</p>
375
374
  </div>
376
375
  <hr>
377
376
  <div class="refsect2">
378
- <a name="cairo-set-font-size"></a><h3>cairo_set_font_size ()</h3>
379
- <pre class="programlisting"><span class="returnvalue">void</span> cairo_set_font_size (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
380
- <em class="parameter"><code><span class="type">double</span> size</code></em>);</pre>
381
- <p>
382
- Sets the current font matrix to a scale by a factor of <em class="parameter"><code>size</code></em>, replacing
383
- any font matrix previously set with <a class="link" href="cairo-text.html#cairo-set-font-size" title="cairo_set_font_size ()"><code class="function">cairo_set_font_size()</code></a> or
384
- <a class="link" href="cairo-text.html#cairo-set-font-matrix" title="cairo_set_font_matrix ()"><code class="function">cairo_set_font_matrix()</code></a>. This results in a font size of <em class="parameter"><code>size</code></em> user space
377
+ <a name="cairo-set-font-size"></a><h3>cairo_set_font_size ()</h3>
378
+ <pre class="programlisting"><span class="returnvalue">void</span>
379
+ cairo_set_font_size (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
380
+ <em class="parameter"><code><span class="type">double</span> size</code></em>);</pre>
381
+ <p>Sets the current font matrix to a scale by a factor of <em class="parameter"><code>size</code></em>
382
+ , replacing
383
+ any font matrix previously set with <a class="link" href="cairo-text.html#cairo-set-font-size" title="cairo_set_font_size ()"><code class="function">cairo_set_font_size()</code></a> or
384
+ <a class="link" href="cairo-text.html#cairo-set-font-matrix" title="cairo_set_font_matrix ()"><code class="function">cairo_set_font_matrix()</code></a>. This results in a font size of <em class="parameter"><code>size</code></em>
385
+ user space
385
386
  units. (More precisely, this matrix will result in the font's
386
- em-square being a <em class="parameter"><code>size</code></em> by <em class="parameter"><code>size</code></em> square in user space.)
387
- </p>
388
- <p>
389
- If text is drawn without a call to <a class="link" href="cairo-text.html#cairo-set-font-size" title="cairo_set_font_size ()"><code class="function">cairo_set_font_size()</code></a>, (nor
390
- <a class="link" href="cairo-text.html#cairo-set-font-matrix" title="cairo_set_font_matrix ()"><code class="function">cairo_set_font_matrix()</code></a> nor <a class="link" href="cairo-text.html#cairo-set-scaled-font" title="cairo_set_scaled_font ()"><code class="function">cairo_set_scaled_font()</code></a>), the default
391
- font size is 10.0.
392
- </p>
393
- <div class="variablelist"><table border="0">
394
- <col align="left" valign="top">
387
+ em-square being a <em class="parameter"><code>size</code></em>
388
+ by <em class="parameter"><code>size</code></em>
389
+ square in user space.)</p>
390
+ <p>If text is drawn without a call to <a class="link" href="cairo-text.html#cairo-set-font-size" title="cairo_set_font_size ()"><code class="function">cairo_set_font_size()</code></a>, (nor
391
+ <a class="link" href="cairo-text.html#cairo-set-font-matrix" title="cairo_set_font_matrix ()"><code class="function">cairo_set_font_matrix()</code></a> nor <a class="link" href="cairo-text.html#cairo-set-scaled-font" title="cairo_set_scaled_font ()"><code class="function">cairo_set_scaled_font()</code></a>), the default
392
+ font size is 10.0.</p>
393
+ <div class="refsect3">
394
+ <a name="id-1.3.7.7.3.6"></a><h4>Parameters</h4>
395
+ <div class="informaltable"><table width="100%" border="0">
396
+ <colgroup>
397
+ <col width="150px" class="parameters_name">
398
+ <col class="parameters_description">
399
+ <col width="200px" class="parameters_annotations">
400
+ </colgroup>
395
401
  <tbody>
396
402
  <tr>
397
- <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
398
- <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
399
- </td>
403
+ <td class="parameter_name"><p>cr</p></td>
404
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a></p></td>
405
+ <td class="parameter_annotations"> </td>
400
406
  </tr>
401
407
  <tr>
402
- <td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
403
- <td>the new font size, in user space units</td>
408
+ <td class="parameter_name"><p>size</p></td>
409
+ <td class="parameter_description"><p>the new font size, in user space units</p></td>
410
+ <td class="parameter_annotations"> </td>
404
411
  </tr>
405
412
  </tbody>
406
413
  </table></div>
414
+ </div>
407
415
  <p class="since">Since 1.0</p>
408
416
  </div>
409
417
  <hr>
410
418
  <div class="refsect2">
411
- <a name="cairo-set-font-matrix"></a><h3>cairo_set_font_matrix ()</h3>
412
- <pre class="programlisting"><span class="returnvalue">void</span> cairo_set_font_matrix (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
413
- <em class="parameter"><code>const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);</pre>
414
- <p>
415
- Sets the current font matrix to <em class="parameter"><code>matrix</code></em>. The font matrix gives a
419
+ <a name="cairo-set-font-matrix"></a><h3>cairo_set_font_matrix ()</h3>
420
+ <pre class="programlisting"><span class="returnvalue">void</span>
421
+ cairo_set_font_matrix (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
422
+ <em class="parameter"><code>const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);</pre>
423
+ <p>Sets the current font matrix to <em class="parameter"><code>matrix</code></em>
424
+ . The font matrix gives a
416
425
  transformation from the design space of the font (in this space,
417
426
  the em-square is 1 unit by 1 unit) to user space. Normally, a
418
- simple scale is used (see <a class="link" href="cairo-text.html#cairo-set-font-size" title="cairo_set_font_size ()"><code class="function">cairo_set_font_size()</code></a>), but a more
427
+ simple scale is used (see <a class="link" href="cairo-text.html#cairo-set-font-size" title="cairo_set_font_size ()"><code class="function">cairo_set_font_size()</code></a>), but a more
419
428
  complex font matrix can be used to shear the font
420
- or stretch it unequally along the two axes
421
- </p>
422
- <div class="variablelist"><table border="0">
423
- <col align="left" valign="top">
429
+ or stretch it unequally along the two axes</p>
430
+ <div class="refsect3">
431
+ <a name="id-1.3.7.7.4.5"></a><h4>Parameters</h4>
432
+ <div class="informaltable"><table width="100%" border="0">
433
+ <colgroup>
434
+ <col width="150px" class="parameters_name">
435
+ <col class="parameters_description">
436
+ <col width="200px" class="parameters_annotations">
437
+ </colgroup>
424
438
  <tbody>
425
439
  <tr>
426
- <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
427
- <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
428
- </td>
440
+ <td class="parameter_name"><p>cr</p></td>
441
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a></p></td>
442
+ <td class="parameter_annotations"> </td>
429
443
  </tr>
430
444
  <tr>
431
- <td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
432
- <td>a <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> describing a transform to be applied to
433
- the current font.</td>
445
+ <td class="parameter_name"><p>matrix</p></td>
446
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> describing a transform to be applied to
447
+ the current font.</p></td>
448
+ <td class="parameter_annotations"> </td>
434
449
  </tr>
435
450
  </tbody>
436
451
  </table></div>
452
+ </div>
437
453
  <p class="since">Since 1.0</p>
438
454
  </div>
439
455
  <hr>
440
456
  <div class="refsect2">
441
- <a name="cairo-get-font-matrix"></a><h3>cairo_get_font_matrix ()</h3>
442
- <pre class="programlisting"><span class="returnvalue">void</span> cairo_get_font_matrix (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
443
- <em class="parameter"><code><a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);</pre>
444
- <p>
445
- Stores the current font matrix into <em class="parameter"><code>matrix</code></em>. See
446
- <a class="link" href="cairo-text.html#cairo-set-font-matrix" title="cairo_set_font_matrix ()"><code class="function">cairo_set_font_matrix()</code></a>.
447
- </p>
448
- <div class="variablelist"><table border="0">
449
- <col align="left" valign="top">
457
+ <a name="cairo-get-font-matrix"></a><h3>cairo_get_font_matrix ()</h3>
458
+ <pre class="programlisting"><span class="returnvalue">void</span>
459
+ cairo_get_font_matrix (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
460
+ <em class="parameter"><code><a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);</pre>
461
+ <p>Stores the current font matrix into <em class="parameter"><code>matrix</code></em>
462
+ . See
463
+ <a class="link" href="cairo-text.html#cairo-set-font-matrix" title="cairo_set_font_matrix ()"><code class="function">cairo_set_font_matrix()</code></a>.</p>
464
+ <div class="refsect3">
465
+ <a name="id-1.3.7.7.5.5"></a><h4>Parameters</h4>
466
+ <div class="informaltable"><table width="100%" border="0">
467
+ <colgroup>
468
+ <col width="150px" class="parameters_name">
469
+ <col class="parameters_description">
470
+ <col width="200px" class="parameters_annotations">
471
+ </colgroup>
450
472
  <tbody>
451
473
  <tr>
452
- <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
453
- <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
454
- </td>
474
+ <td class="parameter_name"><p>cr</p></td>
475
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a></p></td>
476
+ <td class="parameter_annotations"> </td>
455
477
  </tr>
456
478
  <tr>
457
- <td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
458
- <td>return value for the matrix</td>
479
+ <td class="parameter_name"><p>matrix</p></td>
480
+ <td class="parameter_description"><p>return value for the matrix</p></td>
481
+ <td class="parameter_annotations"> </td>
459
482
  </tr>
460
483
  </tbody>
461
484
  </table></div>
485
+ </div>
462
486
  <p class="since">Since 1.0</p>
463
487
  </div>
464
488
  <hr>
465
489
  <div class="refsect2">
466
- <a name="cairo-set-font-options"></a><h3>cairo_set_font_options ()</h3>
467
- <pre class="programlisting"><span class="returnvalue">void</span> cairo_set_font_options (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
468
- <em class="parameter"><code>const <a class="link" href="cairo-cairo-font-options-t.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a> *options</code></em>);</pre>
469
- <p>
470
- Sets a set of custom font rendering options for the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>.
490
+ <a name="cairo-set-font-options"></a><h3>cairo_set_font_options ()</h3>
491
+ <pre class="programlisting"><span class="returnvalue">void</span>
492
+ cairo_set_font_options (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
493
+ <em class="parameter"><code>const <a class="link" href="cairo-cairo-font-options-t.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a> *options</code></em>);</pre>
494
+ <p>Sets a set of custom font rendering options for the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>.
471
495
  Rendering options are derived by merging these options with the
472
496
  options derived from underlying surface; if the value in <em class="parameter"><code>options</code></em>
497
+
473
498
  has a default value (like <a class="link" href="cairo-cairo-t.html#CAIRO-ANTIALIAS-DEFAULT:CAPS"><code class="literal">CAIRO_ANTIALIAS_DEFAULT</code></a>), then the value
474
- from the surface is used.
475
- </p>
476
- <div class="variablelist"><table border="0">
477
- <col align="left" valign="top">
499
+ from the surface is used.</p>
500
+ <div class="refsect3">
501
+ <a name="id-1.3.7.7.6.5"></a><h4>Parameters</h4>
502
+ <div class="informaltable"><table width="100%" border="0">
503
+ <colgroup>
504
+ <col width="150px" class="parameters_name">
505
+ <col class="parameters_description">
506
+ <col width="200px" class="parameters_annotations">
507
+ </colgroup>
478
508
  <tbody>
479
509
  <tr>
480
- <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
481
- <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
482
- </td>
510
+ <td class="parameter_name"><p>cr</p></td>
511
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a></p></td>
512
+ <td class="parameter_annotations"> </td>
483
513
  </tr>
484
514
  <tr>
485
- <td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
486
- <td>font options to use</td>
515
+ <td class="parameter_name"><p>options</p></td>
516
+ <td class="parameter_description"><p>font options to use</p></td>
517
+ <td class="parameter_annotations"> </td>
487
518
  </tr>
488
519
  </tbody>
489
520
  </table></div>
521
+ </div>
490
522
  <p class="since">Since 1.0</p>
491
523
  </div>
492
524
  <hr>
493
525
  <div class="refsect2">
494
- <a name="cairo-get-font-options"></a><h3>cairo_get_font_options ()</h3>
495
- <pre class="programlisting"><span class="returnvalue">void</span> cairo_get_font_options (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
496
- <em class="parameter"><code><a class="link" href="cairo-cairo-font-options-t.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a> *options</code></em>);</pre>
497
- <p>
498
- Retrieves font rendering options set via <a class="link" href="cairo-text.html#cairo-set-font-options" title="cairo_set_font_options ()"><span class="type">cairo_set_font_options</span></a>.
526
+ <a name="cairo-get-font-options"></a><h3>cairo_get_font_options ()</h3>
527
+ <pre class="programlisting"><span class="returnvalue">void</span>
528
+ cairo_get_font_options (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
529
+ <em class="parameter"><code><a class="link" href="cairo-cairo-font-options-t.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a> *options</code></em>);</pre>
530
+ <p>Retrieves font rendering options set via <a class="link" href="cairo-text.html#cairo-set-font-options" title="cairo_set_font_options ()"><span class="type">cairo_set_font_options</span></a>.
499
531
  Note that the returned options do not include any options derived
500
532
  from the underlying surface; they are literally the options
501
- passed to <a class="link" href="cairo-text.html#cairo-set-font-options" title="cairo_set_font_options ()"><code class="function">cairo_set_font_options()</code></a>.
502
- </p>
503
- <div class="variablelist"><table border="0">
504
- <col align="left" valign="top">
533
+ passed to <a class="link" href="cairo-text.html#cairo-set-font-options" title="cairo_set_font_options ()"><code class="function">cairo_set_font_options()</code></a>.</p>
534
+ <div class="refsect3">
535
+ <a name="id-1.3.7.7.7.5"></a><h4>Parameters</h4>
536
+ <div class="informaltable"><table width="100%" border="0">
537
+ <colgroup>
538
+ <col width="150px" class="parameters_name">
539
+ <col class="parameters_description">
540
+ <col width="200px" class="parameters_annotations">
541
+ </colgroup>
505
542
  <tbody>
506
543
  <tr>
507
- <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
508
- <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
509
- </td>
544
+ <td class="parameter_name"><p>cr</p></td>
545
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a></p></td>
546
+ <td class="parameter_annotations"> </td>
510
547
  </tr>
511
548
  <tr>
512
- <td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
513
- <td>a <a class="link" href="cairo-cairo-font-options-t.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a> object into which to store
514
- the retrieved options. All existing values are overwritten</td>
549
+ <td class="parameter_name"><p>options</p></td>
550
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-font-options-t.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a> object into which to store
551
+ the retrieved options. All existing values are overwritten</p></td>
552
+ <td class="parameter_annotations"> </td>
515
553
  </tr>
516
554
  </tbody>
517
555
  </table></div>
556
+ </div>
518
557
  <p class="since">Since 1.0</p>
519
558
  </div>
520
559
  <hr>
521
560
  <div class="refsect2">
522
- <a name="cairo-set-font-face"></a><h3>cairo_set_font_face ()</h3>
523
- <pre class="programlisting"><span class="returnvalue">void</span> cairo_set_font_face (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
524
- <em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);</pre>
525
- <p>
526
- Replaces the current <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> object in the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> with
527
- <em class="parameter"><code>font_face</code></em>. The replaced font face in the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> will be
528
- destroyed if there are no other references to it.
529
- </p>
530
- <div class="variablelist"><table border="0">
531
- <col align="left" valign="top">
561
+ <a name="cairo-set-font-face"></a><h3>cairo_set_font_face ()</h3>
562
+ <pre class="programlisting"><span class="returnvalue">void</span>
563
+ cairo_set_font_face (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
564
+ <em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);</pre>
565
+ <p>Replaces the current <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> object in the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> with
566
+ <em class="parameter"><code>font_face</code></em>
567
+ . The replaced font face in the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> will be
568
+ destroyed if there are no other references to it.</p>
569
+ <div class="refsect3">
570
+ <a name="id-1.3.7.7.8.5"></a><h4>Parameters</h4>
571
+ <div class="informaltable"><table width="100%" border="0">
572
+ <colgroup>
573
+ <col width="150px" class="parameters_name">
574
+ <col class="parameters_description">
575
+ <col width="200px" class="parameters_annotations">
576
+ </colgroup>
532
577
  <tbody>
533
578
  <tr>
534
- <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
535
- <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
536
- </td>
579
+ <td class="parameter_name"><p>cr</p></td>
580
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a></p></td>
581
+ <td class="parameter_annotations"> </td>
537
582
  </tr>
538
583
  <tr>
539
- <td><p><span class="term"><em class="parameter"><code>font_face</code></em> :</span></p></td>
540
- <td>a <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to restore to the default font</td>
584
+ <td class="parameter_name"><p>font_face</p></td>
585
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>, or <code class="literal">NULL</code> to restore to the default font</p></td>
586
+ <td class="parameter_annotations"> </td>
541
587
  </tr>
542
588
  </tbody>
543
589
  </table></div>
590
+ </div>
544
591
  <p class="since">Since 1.0</p>
545
592
  </div>
546
593
  <hr>
547
594
  <div class="refsect2">
548
- <a name="cairo-get-font-face"></a><h3>cairo_get_font_face ()</h3>
549
- <pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> * cairo_get_font_face (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
550
- <p>
551
- Gets the current font face for a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>.
552
- </p>
553
- <div class="variablelist"><table border="0">
554
- <col align="left" valign="top">
555
- <tbody>
556
- <tr>
557
- <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
558
- <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
559
- </td>
560
- </tr>
561
- <tr>
562
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
563
- <td>the current font face. This object is owned by
595
+ <a name="cairo-get-font-face"></a><h3>cairo_get_font_face ()</h3>
596
+ <pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> *
597
+ cairo_get_font_face (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
598
+ <p>Gets the current font face for a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>.</p>
599
+ <div class="refsect3">
600
+ <a name="id-1.3.7.7.9.5"></a><h4>Parameters</h4>
601
+ <div class="informaltable"><table width="100%" border="0">
602
+ <colgroup>
603
+ <col width="150px" class="parameters_name">
604
+ <col class="parameters_description">
605
+ <col width="200px" class="parameters_annotations">
606
+ </colgroup>
607
+ <tbody><tr>
608
+ <td class="parameter_name"><p>cr</p></td>
609
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a></p></td>
610
+ <td class="parameter_annotations"> </td>
611
+ </tr></tbody>
612
+ </table></div>
613
+ </div>
614
+ <div class="refsect3">
615
+ <a name="id-1.3.7.7.9.6"></a><h4>Returns</h4>
616
+ <p> the current font face. This object is owned by
564
617
  cairo. To keep a reference to it, you must call
565
- <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-reference" title="cairo_font_face_reference ()"><code class="function">cairo_font_face_reference()</code></a>.
566
- This function never returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. If memory cannot be allocated, a
618
+ <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-reference" title="cairo_font_face_reference ()"><code class="function">cairo_font_face_reference()</code></a>.</p>
619
+ <p>This function never returns <code class="literal">NULL</code>. If memory cannot be allocated, a
567
620
  special "nil" <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> object will be returned on which
568
- <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-status" title="cairo_font_face_status ()"><code class="function">cairo_font_face_status()</code></a> returns <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a>. Using
621
+ <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-status" title="cairo_font_face_status ()"><code class="function">cairo_font_face_status()</code></a> returns <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a>. Using
569
622
  this nil object will cause its error state to propagate to other
570
623
  objects it is passed to, (for example, calling
571
- <a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face ()"><code class="function">cairo_set_font_face()</code></a> with a nil font will trigger an error that
572
- will shutdown the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> object).</td>
573
- </tr>
574
- </tbody>
575
- </table></div>
624
+ <a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face ()"><code class="function">cairo_set_font_face()</code></a> with a nil font will trigger an error that
625
+ will shutdown the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> object).</p>
626
+ <p></p>
627
+ </div>
576
628
  <p class="since">Since 1.0</p>
577
629
  </div>
578
630
  <hr>
579
631
  <div class="refsect2">
580
- <a name="cairo-set-scaled-font"></a><h3>cairo_set_scaled_font ()</h3>
581
- <pre class="programlisting"><span class="returnvalue">void</span> cairo_set_scaled_font (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
582
- <em class="parameter"><code>const <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> *scaled_font</code></em>);</pre>
583
- <p>
584
- Replaces the current font face, font matrix, and font options in
632
+ <a name="cairo-set-scaled-font"></a><h3>cairo_set_scaled_font ()</h3>
633
+ <pre class="programlisting"><span class="returnvalue">void</span>
634
+ cairo_set_scaled_font (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
635
+ <em class="parameter"><code>const <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> *scaled_font</code></em>);</pre>
636
+ <p>Replaces the current font face, font matrix, and font options in
585
637
  the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> with those of the <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>. Except for
586
638
  some translation, the current CTM of the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> should be the
587
639
  same as that of the <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>, which can be accessed
588
- using <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-get-ctm" title="cairo_scaled_font_get_ctm ()"><code class="function">cairo_scaled_font_get_ctm()</code></a>.
589
- </p>
590
- <div class="variablelist"><table border="0">
591
- <col align="left" valign="top">
640
+ using <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-get-ctm" title="cairo_scaled_font_get_ctm ()"><code class="function">cairo_scaled_font_get_ctm()</code></a>.</p>
641
+ <div class="refsect3">
642
+ <a name="id-1.3.7.7.10.5"></a><h4>Parameters</h4>
643
+ <div class="informaltable"><table width="100%" border="0">
644
+ <colgroup>
645
+ <col width="150px" class="parameters_name">
646
+ <col class="parameters_description">
647
+ <col width="200px" class="parameters_annotations">
648
+ </colgroup>
592
649
  <tbody>
593
650
  <tr>
594
- <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
595
- <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
596
- </td>
651
+ <td class="parameter_name"><p>cr</p></td>
652
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a></p></td>
653
+ <td class="parameter_annotations"> </td>
597
654
  </tr>
598
655
  <tr>
599
- <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
600
- <td>a <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
601
- </td>
656
+ <td class="parameter_name"><p>scaled_font</p></td>
657
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a></p></td>
658
+ <td class="parameter_annotations"> </td>
602
659
  </tr>
603
660
  </tbody>
604
661
  </table></div>
662
+ </div>
605
663
  <p class="since">Since 1.2</p>
606
664
  </div>
607
665
  <hr>
608
666
  <div class="refsect2">
609
- <a name="cairo-get-scaled-font"></a><h3>cairo_get_scaled_font ()</h3>
610
- <pre class="programlisting"><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="returnvalue">cairo_scaled_font_t</span></a> * cairo_get_scaled_font (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
611
- <p>
612
- Gets the current scaled font for a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>.
613
- </p>
614
- <div class="variablelist"><table border="0">
615
- <col align="left" valign="top">
616
- <tbody>
617
- <tr>
618
- <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
619
- <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
620
- </td>
621
- </tr>
622
- <tr>
623
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
624
- <td>the current scaled font. This object is owned by
667
+ <a name="cairo-get-scaled-font"></a><h3>cairo_get_scaled_font ()</h3>
668
+ <pre class="programlisting"><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="returnvalue">cairo_scaled_font_t</span></a> *
669
+ cairo_get_scaled_font (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
670
+ <p>Gets the current scaled font for a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>.</p>
671
+ <div class="refsect3">
672
+ <a name="id-1.3.7.7.11.5"></a><h4>Parameters</h4>
673
+ <div class="informaltable"><table width="100%" border="0">
674
+ <colgroup>
675
+ <col width="150px" class="parameters_name">
676
+ <col class="parameters_description">
677
+ <col width="200px" class="parameters_annotations">
678
+ </colgroup>
679
+ <tbody><tr>
680
+ <td class="parameter_name"><p>cr</p></td>
681
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a></p></td>
682
+ <td class="parameter_annotations"> </td>
683
+ </tr></tbody>
684
+ </table></div>
685
+ </div>
686
+ <div class="refsect3">
687
+ <a name="id-1.3.7.7.11.6"></a><h4>Returns</h4>
688
+ <p> the current scaled font. This object is owned by
625
689
  cairo. To keep a reference to it, you must call
626
- <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-reference" title="cairo_scaled_font_reference ()"><code class="function">cairo_scaled_font_reference()</code></a>.
627
- This function never returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. If memory cannot be allocated, a
690
+ <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-reference" title="cairo_scaled_font_reference ()"><code class="function">cairo_scaled_font_reference()</code></a>.</p>
691
+ <p>This function never returns <code class="literal">NULL</code>. If memory cannot be allocated, a
628
692
  special "nil" <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> object will be returned on which
629
- <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-status" title="cairo_scaled_font_status ()"><code class="function">cairo_scaled_font_status()</code></a> returns <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a>. Using
693
+ <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-status" title="cairo_scaled_font_status ()"><code class="function">cairo_scaled_font_status()</code></a> returns <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a>. Using
630
694
  this nil object will cause its error state to propagate to other
631
695
  objects it is passed to, (for example, calling
632
- <a class="link" href="cairo-text.html#cairo-set-scaled-font" title="cairo_set_scaled_font ()"><code class="function">cairo_set_scaled_font()</code></a> with a nil font will trigger an error that
633
- will shutdown the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> object).</td>
634
- </tr>
635
- </tbody>
636
- </table></div>
696
+ <a class="link" href="cairo-text.html#cairo-set-scaled-font" title="cairo_set_scaled_font ()"><code class="function">cairo_set_scaled_font()</code></a> with a nil font will trigger an error that
697
+ will shutdown the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> object).</p>
698
+ <p></p>
699
+ </div>
637
700
  <p class="since">Since 1.4</p>
638
701
  </div>
639
702
  <hr>
640
703
  <div class="refsect2">
641
- <a name="cairo-show-text"></a><h3>cairo_show_text ()</h3>
642
- <pre class="programlisting"><span class="returnvalue">void</span> cairo_show_text (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
643
- <em class="parameter"><code>const <span class="type">char</span> *utf8</code></em>);</pre>
644
- <p>
645
- A drawing operator that generates the shape from a string of UTF-8
704
+ <a name="cairo-show-text"></a><h3>cairo_show_text ()</h3>
705
+ <pre class="programlisting"><span class="returnvalue">void</span>
706
+ cairo_show_text (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
707
+ <em class="parameter"><code>const <span class="type">char</span> *utf8</code></em>);</pre>
708
+ <p>A drawing operator that generates the shape from a string of UTF-8
646
709
  characters, rendered according to the current font_face, font_size
647
- (font_matrix), and font_options.
648
- </p>
649
- <p>
650
- This function first computes a set of glyphs for the string of
710
+ (font_matrix), and font_options.</p>
711
+ <p>This function first computes a set of glyphs for the string of
651
712
  text. The first glyph is placed so that its origin is at the
652
713
  current point. The origin of each subsequent glyph is offset from
653
714
  that of the previous glyph by the advance values of the previous
654
- glyph.
655
- </p>
656
- <p>
657
- After this call the current point is moved to the origin of where
715
+ glyph.</p>
716
+ <p>After this call the current point is moved to the origin of where
658
717
  the next glyph would be placed in this same progression. That is,
659
718
  the current point will be at the origin of the final glyph offset
660
719
  by its advance values. This allows for easy display of a single
661
- logical string with multiple calls to <a class="link" href="cairo-text.html#cairo-show-text" title="cairo_show_text ()"><code class="function">cairo_show_text()</code></a>.
662
- </p>
663
- <p>
664
- Note: The <a class="link" href="cairo-text.html#cairo-show-text" title="cairo_show_text ()"><code class="function">cairo_show_text()</code></a> function call is part of what the cairo
720
+ logical string with multiple calls to <a class="link" href="cairo-text.html#cairo-show-text" title="cairo_show_text ()"><code class="function">cairo_show_text()</code></a>.</p>
721
+ <p>Note: The <a class="link" href="cairo-text.html#cairo-show-text" title="cairo_show_text ()"><code class="function">cairo_show_text()</code></a> function call is part of what the cairo
665
722
  designers call the "toy" text API. It is convenient for short demos
666
723
  and simple programs, but it is not expected to be adequate for
667
- serious text-using applications. See <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()"><code class="function">cairo_show_glyphs()</code></a> for the
668
- "real" text display API in cairo.
669
- </p>
670
- <div class="variablelist"><table border="0">
671
- <col align="left" valign="top">
724
+ serious text-using applications. See <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()"><code class="function">cairo_show_glyphs()</code></a> for the
725
+ "real" text display API in cairo.</p>
726
+ <div class="refsect3">
727
+ <a name="id-1.3.7.7.12.8"></a><h4>Parameters</h4>
728
+ <div class="informaltable"><table width="100%" border="0">
729
+ <colgroup>
730
+ <col width="150px" class="parameters_name">
731
+ <col class="parameters_description">
732
+ <col width="200px" class="parameters_annotations">
733
+ </colgroup>
672
734
  <tbody>
673
735
  <tr>
674
- <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
675
- <td>a cairo context</td>
736
+ <td class="parameter_name"><p>cr</p></td>
737
+ <td class="parameter_description"><p>a cairo context</p></td>
738
+ <td class="parameter_annotations"> </td>
676
739
  </tr>
677
740
  <tr>
678
- <td><p><span class="term"><em class="parameter"><code>utf8</code></em> :</span></p></td>
679
- <td>a NUL-terminated string of text encoded in UTF-8, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
680
- </td>
741
+ <td class="parameter_name"><p>utf8</p></td>
742
+ <td class="parameter_description"><p>a NUL-terminated string of text encoded in UTF-8, or <code class="literal">NULL</code></p></td>
743
+ <td class="parameter_annotations"> </td>
681
744
  </tr>
682
745
  </tbody>
683
746
  </table></div>
747
+ </div>
684
748
  <p class="since">Since 1.0</p>
685
749
  </div>
686
750
  <hr>
687
751
  <div class="refsect2">
688
- <a name="cairo-show-glyphs"></a><h3>cairo_show_glyphs ()</h3>
689
- <pre class="programlisting"><span class="returnvalue">void</span> cairo_show_glyphs (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
690
- <em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>,
691
- <em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>);</pre>
692
- <p>
693
- A drawing operator that generates the shape from an array of glyphs,
752
+ <a name="cairo-show-glyphs"></a><h3>cairo_show_glyphs ()</h3>
753
+ <pre class="programlisting"><span class="returnvalue">void</span>
754
+ cairo_show_glyphs (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
755
+ <em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>,
756
+ <em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>);</pre>
757
+ <p>A drawing operator that generates the shape from an array of glyphs,
694
758
  rendered according to the current font face, font size
695
- (font matrix), and font options.
696
- </p>
697
- <div class="variablelist"><table border="0">
698
- <col align="left" valign="top">
759
+ (font matrix), and font options.</p>
760
+ <div class="refsect3">
761
+ <a name="id-1.3.7.7.13.5"></a><h4>Parameters</h4>
762
+ <div class="informaltable"><table width="100%" border="0">
763
+ <colgroup>
764
+ <col width="150px" class="parameters_name">
765
+ <col class="parameters_description">
766
+ <col width="200px" class="parameters_annotations">
767
+ </colgroup>
699
768
  <tbody>
700
769
  <tr>
701
- <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
702
- <td>a cairo context</td>
770
+ <td class="parameter_name"><p>cr</p></td>
771
+ <td class="parameter_description"><p>a cairo context</p></td>
772
+ <td class="parameter_annotations"> </td>
703
773
  </tr>
704
774
  <tr>
705
- <td><p><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></p></td>
706
- <td>array of glyphs to show</td>
775
+ <td class="parameter_name"><p>glyphs</p></td>
776
+ <td class="parameter_description"><p>array of glyphs to show</p></td>
777
+ <td class="parameter_annotations"> </td>
707
778
  </tr>
708
779
  <tr>
709
- <td><p><span class="term"><em class="parameter"><code>num_glyphs</code></em> :</span></p></td>
710
- <td>number of glyphs to show</td>
780
+ <td class="parameter_name"><p>num_glyphs</p></td>
781
+ <td class="parameter_description"><p>number of glyphs to show</p></td>
782
+ <td class="parameter_annotations"> </td>
711
783
  </tr>
712
784
  </tbody>
713
785
  </table></div>
786
+ </div>
714
787
  <p class="since">Since 1.0</p>
715
788
  </div>
716
789
  <hr>
717
790
  <div class="refsect2">
718
- <a name="cairo-show-text-glyphs"></a><h3>cairo_show_text_glyphs ()</h3>
719
- <pre class="programlisting"><span class="returnvalue">void</span> cairo_show_text_glyphs (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
720
- <em class="parameter"><code>const <span class="type">char</span> *utf8</code></em>,
721
- <em class="parameter"><code><span class="type">int</span> utf8_len</code></em>,
722
- <em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>,
723
- <em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>,
724
- <em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="type">cairo_text_cluster_t</span></a> *clusters</code></em>,
725
- <em class="parameter"><code><span class="type">int</span> num_clusters</code></em>,
726
- <em class="parameter"><code><a class="link" href="cairo-text.html#cairo-text-cluster-flags-t" title="enum cairo_text_cluster_flags_t"><span class="type">cairo_text_cluster_flags_t</span></a> cluster_flags</code></em>);</pre>
727
- <p>
728
- This operation has rendering effects similar to <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()"><code class="function">cairo_show_glyphs()</code></a>
791
+ <a name="cairo-show-text-glyphs"></a><h3>cairo_show_text_glyphs ()</h3>
792
+ <pre class="programlisting"><span class="returnvalue">void</span>
793
+ cairo_show_text_glyphs (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
794
+ <em class="parameter"><code>const <span class="type">char</span> *utf8</code></em>,
795
+ <em class="parameter"><code><span class="type">int</span> utf8_len</code></em>,
796
+ <em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>,
797
+ <em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>,
798
+ <em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="type">cairo_text_cluster_t</span></a> *clusters</code></em>,
799
+ <em class="parameter"><code><span class="type">int</span> num_clusters</code></em>,
800
+ <em class="parameter"><code><a class="link" href="cairo-text.html#cairo-text-cluster-flags-t" title="enum cairo_text_cluster_flags_t"><span class="type">cairo_text_cluster_flags_t</span></a> cluster_flags</code></em>);</pre>
801
+ <p>This operation has rendering effects similar to <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()"><code class="function">cairo_show_glyphs()</code></a>
729
802
  but, if the target surface supports it, uses the provided text and
730
803
  cluster mapping to embed the text for the glyphs shown in the output.
731
804
  If the target does not support the extended attributes, this function
732
- acts like the basic <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()"><code class="function">cairo_show_glyphs()</code></a> as if it had been passed
733
- <em class="parameter"><code>glyphs</code></em> and <em class="parameter"><code>num_glyphs</code></em>.
734
- </p>
735
- <p>
736
- The mapping between <em class="parameter"><code>utf8</code></em> and <em class="parameter"><code>glyphs</code></em> is provided by an array of
805
+ acts like the basic <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()"><code class="function">cairo_show_glyphs()</code></a> as if it had been passed
806
+ <em class="parameter"><code>glyphs</code></em>
807
+ and <em class="parameter"><code>num_glyphs</code></em>
808
+ .</p>
809
+ <p>The mapping between <em class="parameter"><code>utf8</code></em>
810
+ and <em class="parameter"><code>glyphs</code></em>
811
+ is provided by an array of
737
812
  <em class="firstterm">clusters</em>. Each cluster covers a number of
738
813
  text bytes and glyphs, and neighboring clusters cover neighboring
739
- areas of <em class="parameter"><code>utf8</code></em> and <em class="parameter"><code>glyphs</code></em>. The clusters should collectively cover <em class="parameter"><code>utf8</code></em>
740
- and <em class="parameter"><code>glyphs</code></em> in entirety.
741
- </p>
742
- <p>
743
- The first cluster always covers bytes from the beginning of <em class="parameter"><code>utf8</code></em>.
744
- If <em class="parameter"><code>cluster_flags</code></em> do not have the <a class="link" href="cairo-text.html#CAIRO-TEXT-CLUSTER-FLAG-BACKWARD:CAPS"><code class="literal">CAIRO_TEXT_CLUSTER_FLAG_BACKWARD</code></a>
814
+ areas of <em class="parameter"><code>utf8</code></em>
815
+ and <em class="parameter"><code>glyphs</code></em>
816
+ . The clusters should collectively cover <em class="parameter"><code>utf8</code></em>
817
+
818
+ and <em class="parameter"><code>glyphs</code></em>
819
+ in entirety.</p>
820
+ <p>The first cluster always covers bytes from the beginning of <em class="parameter"><code>utf8</code></em>
821
+ .
822
+ If <em class="parameter"><code>cluster_flags</code></em>
823
+ do not have the <a class="link" href="cairo-text.html#CAIRO-TEXT-CLUSTER-FLAG-BACKWARD:CAPS"><code class="literal">CAIRO_TEXT_CLUSTER_FLAG_BACKWARD</code></a>
745
824
  set, the first cluster also covers the beginning
746
- of <em class="parameter"><code>glyphs</code></em>, otherwise it covers the end of the <em class="parameter"><code>glyphs</code></em> array and
747
- following clusters move backward.
748
- </p>
749
- <p>
750
- See <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="type">cairo_text_cluster_t</span></a> for constraints on valid clusters.
751
- </p>
752
- <div class="variablelist"><table border="0">
753
- <col align="left" valign="top">
825
+ of <em class="parameter"><code>glyphs</code></em>
826
+ , otherwise it covers the end of the <em class="parameter"><code>glyphs</code></em>
827
+ array and
828
+ following clusters move backward.</p>
829
+ <p>See <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="type">cairo_text_cluster_t</span></a> for constraints on valid clusters.</p>
830
+ <div class="refsect3">
831
+ <a name="id-1.3.7.7.14.8"></a><h4>Parameters</h4>
832
+ <div class="informaltable"><table width="100%" border="0">
833
+ <colgroup>
834
+ <col width="150px" class="parameters_name">
835
+ <col class="parameters_description">
836
+ <col width="200px" class="parameters_annotations">
837
+ </colgroup>
754
838
  <tbody>
755
839
  <tr>
756
- <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
757
- <td>a cairo context</td>
840
+ <td class="parameter_name"><p>cr</p></td>
841
+ <td class="parameter_description"><p>a cairo context</p></td>
842
+ <td class="parameter_annotations"> </td>
758
843
  </tr>
759
844
  <tr>
760
- <td><p><span class="term"><em class="parameter"><code>utf8</code></em> :</span></p></td>
761
- <td>a string of text encoded in UTF-8</td>
845
+ <td class="parameter_name"><p>utf8</p></td>
846
+ <td class="parameter_description"><p>a string of text encoded in UTF-8</p></td>
847
+ <td class="parameter_annotations"> </td>
762
848
  </tr>
763
849
  <tr>
764
- <td><p><span class="term"><em class="parameter"><code>utf8_len</code></em> :</span></p></td>
765
- <td>length of <em class="parameter"><code>utf8</code></em> in bytes, or -1 if it is NUL-terminated</td>
850
+ <td class="parameter_name"><p>utf8_len</p></td>
851
+ <td class="parameter_description"><p>length of <em class="parameter"><code>utf8</code></em>
852
+ in bytes, or -1 if it is NUL-terminated</p></td>
853
+ <td class="parameter_annotations"> </td>
766
854
  </tr>
767
855
  <tr>
768
- <td><p><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></p></td>
769
- <td>array of glyphs to show</td>
856
+ <td class="parameter_name"><p>glyphs</p></td>
857
+ <td class="parameter_description"><p>array of glyphs to show</p></td>
858
+ <td class="parameter_annotations"> </td>
770
859
  </tr>
771
860
  <tr>
772
- <td><p><span class="term"><em class="parameter"><code>num_glyphs</code></em> :</span></p></td>
773
- <td>number of glyphs to show</td>
861
+ <td class="parameter_name"><p>num_glyphs</p></td>
862
+ <td class="parameter_description"><p>number of glyphs to show</p></td>
863
+ <td class="parameter_annotations"> </td>
774
864
  </tr>
775
865
  <tr>
776
- <td><p><span class="term"><em class="parameter"><code>clusters</code></em> :</span></p></td>
777
- <td>array of cluster mapping information</td>
866
+ <td class="parameter_name"><p>clusters</p></td>
867
+ <td class="parameter_description"><p>array of cluster mapping information</p></td>
868
+ <td class="parameter_annotations"> </td>
778
869
  </tr>
779
870
  <tr>
780
- <td><p><span class="term"><em class="parameter"><code>num_clusters</code></em> :</span></p></td>
781
- <td>number of clusters in the mapping</td>
871
+ <td class="parameter_name"><p>num_clusters</p></td>
872
+ <td class="parameter_description"><p>number of clusters in the mapping</p></td>
873
+ <td class="parameter_annotations"> </td>
782
874
  </tr>
783
875
  <tr>
784
- <td><p><span class="term"><em class="parameter"><code>cluster_flags</code></em> :</span></p></td>
785
- <td>cluster mapping flags</td>
876
+ <td class="parameter_name"><p>cluster_flags</p></td>
877
+ <td class="parameter_description"><p>cluster mapping flags</p></td>
878
+ <td class="parameter_annotations"> </td>
786
879
  </tr>
787
880
  </tbody>
788
881
  </table></div>
882
+ </div>
789
883
  <p class="since">Since 1.8</p>
790
884
  </div>
791
885
  <hr>
792
886
  <div class="refsect2">
793
- <a name="cairo-font-extents"></a><h3>cairo_font_extents ()</h3>
794
- <pre class="programlisting"><span class="returnvalue">void</span> cairo_font_extents (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
795
- <em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-font-extents-t" title="cairo_font_extents_t"><span class="type">cairo_font_extents_t</span></a> *extents</code></em>);</pre>
796
- <p>
797
- Gets the font extents for the currently selected font.
798
- </p>
799
- <div class="variablelist"><table border="0">
800
- <col align="left" valign="top">
887
+ <a name="cairo-font-extents"></a><h3>cairo_font_extents ()</h3>
888
+ <pre class="programlisting"><span class="returnvalue">void</span>
889
+ cairo_font_extents (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
890
+ <em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-font-extents-t" title="cairo_font_extents_t"><span class="type">cairo_font_extents_t</span></a> *extents</code></em>);</pre>
891
+ <p>Gets the font extents for the currently selected font.</p>
892
+ <div class="refsect3">
893
+ <a name="id-1.3.7.7.15.5"></a><h4>Parameters</h4>
894
+ <div class="informaltable"><table width="100%" border="0">
895
+ <colgroup>
896
+ <col width="150px" class="parameters_name">
897
+ <col class="parameters_description">
898
+ <col width="200px" class="parameters_annotations">
899
+ </colgroup>
801
900
  <tbody>
802
901
  <tr>
803
- <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
804
- <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
805
- </td>
902
+ <td class="parameter_name"><p>cr</p></td>
903
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a></p></td>
904
+ <td class="parameter_annotations"> </td>
806
905
  </tr>
807
906
  <tr>
808
- <td><p><span class="term"><em class="parameter"><code>extents</code></em> :</span></p></td>
809
- <td>a <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-font-extents-t" title="cairo_font_extents_t"><span class="type">cairo_font_extents_t</span></a> object into which the results
810
- will be stored.</td>
907
+ <td class="parameter_name"><p>extents</p></td>
908
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-font-extents-t" title="cairo_font_extents_t"><span class="type">cairo_font_extents_t</span></a> object into which the results
909
+ will be stored.</p></td>
910
+ <td class="parameter_annotations"> </td>
811
911
  </tr>
812
912
  </tbody>
813
913
  </table></div>
914
+ </div>
814
915
  <p class="since">Since 1.0</p>
815
916
  </div>
816
917
  <hr>
817
918
  <div class="refsect2">
818
- <a name="cairo-text-extents"></a><h3>cairo_text_extents ()</h3>
819
- <pre class="programlisting"><span class="returnvalue">void</span> cairo_text_extents (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
820
- <em class="parameter"><code>const <span class="type">char</span> *utf8</code></em>,
821
- <em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-text-extents-t" title="cairo_text_extents_t"><span class="type">cairo_text_extents_t</span></a> *extents</code></em>);</pre>
822
- <p>
823
- Gets the extents for a string of text. The extents describe a
919
+ <a name="cairo-text-extents"></a><h3>cairo_text_extents ()</h3>
920
+ <pre class="programlisting"><span class="returnvalue">void</span>
921
+ cairo_text_extents (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
922
+ <em class="parameter"><code>const <span class="type">char</span> *utf8</code></em>,
923
+ <em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-text-extents-t" title="cairo_text_extents_t"><span class="type">cairo_text_extents_t</span></a> *extents</code></em>);</pre>
924
+ <p>Gets the extents for a string of text. The extents describe a
824
925
  user-space rectangle that encloses the "inked" portion of the text,
825
- (as it would be drawn by <a class="link" href="cairo-text.html#cairo-show-text" title="cairo_show_text ()"><code class="function">cairo_show_text()</code></a>). Additionally, the
926
+ (as it would be drawn by <a class="link" href="cairo-text.html#cairo-show-text" title="cairo_show_text ()"><code class="function">cairo_show_text()</code></a>). Additionally, the
826
927
  x_advance and y_advance values indicate the amount by which the
827
- current point would be advanced by <a class="link" href="cairo-text.html#cairo-show-text" title="cairo_show_text ()"><code class="function">cairo_show_text()</code></a>.
828
- </p>
829
- <p>
830
- Note that whitespace characters do not directly contribute to the
928
+ current point would be advanced by <a class="link" href="cairo-text.html#cairo-show-text" title="cairo_show_text ()"><code class="function">cairo_show_text()</code></a>.</p>
929
+ <p>Note that whitespace characters do not directly contribute to the
831
930
  size of the rectangle (extents.width and extents.height). They do
832
931
  contribute indirectly by changing the position of non-whitespace
833
932
  characters. In particular, trailing whitespace characters are
834
933
  likely to not affect the size of the rectangle, though they will
835
- affect the x_advance and y_advance values.
836
- </p>
837
- <div class="variablelist"><table border="0">
838
- <col align="left" valign="top">
934
+ affect the x_advance and y_advance values.</p>
935
+ <div class="refsect3">
936
+ <a name="id-1.3.7.7.16.6"></a><h4>Parameters</h4>
937
+ <div class="informaltable"><table width="100%" border="0">
938
+ <colgroup>
939
+ <col width="150px" class="parameters_name">
940
+ <col class="parameters_description">
941
+ <col width="200px" class="parameters_annotations">
942
+ </colgroup>
839
943
  <tbody>
840
944
  <tr>
841
- <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
842
- <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
843
- </td>
945
+ <td class="parameter_name"><p>cr</p></td>
946
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a></p></td>
947
+ <td class="parameter_annotations"> </td>
844
948
  </tr>
845
949
  <tr>
846
- <td><p><span class="term"><em class="parameter"><code>utf8</code></em> :</span></p></td>
847
- <td>a NUL-terminated string of text encoded in UTF-8, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
848
- </td>
950
+ <td class="parameter_name"><p>utf8</p></td>
951
+ <td class="parameter_description"><p>a NUL-terminated string of text encoded in UTF-8, or <code class="literal">NULL</code></p></td>
952
+ <td class="parameter_annotations"> </td>
849
953
  </tr>
850
954
  <tr>
851
- <td><p><span class="term"><em class="parameter"><code>extents</code></em> :</span></p></td>
852
- <td>a <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-text-extents-t" title="cairo_text_extents_t"><span class="type">cairo_text_extents_t</span></a> object into which the results
853
- will be stored</td>
955
+ <td class="parameter_name"><p>extents</p></td>
956
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-text-extents-t" title="cairo_text_extents_t"><span class="type">cairo_text_extents_t</span></a> object into which the results
957
+ will be stored</p></td>
958
+ <td class="parameter_annotations"> </td>
854
959
  </tr>
855
960
  </tbody>
856
961
  </table></div>
962
+ </div>
857
963
  <p class="since">Since 1.0</p>
858
964
  </div>
859
965
  <hr>
860
966
  <div class="refsect2">
861
- <a name="cairo-glyph-extents"></a><h3>cairo_glyph_extents ()</h3>
862
- <pre class="programlisting"><span class="returnvalue">void</span> cairo_glyph_extents (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
863
- <em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>,
864
- <em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>,
865
- <em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-text-extents-t" title="cairo_text_extents_t"><span class="type">cairo_text_extents_t</span></a> *extents</code></em>);</pre>
866
- <p>
867
- Gets the extents for an array of glyphs. The extents describe a
967
+ <a name="cairo-glyph-extents"></a><h3>cairo_glyph_extents ()</h3>
968
+ <pre class="programlisting"><span class="returnvalue">void</span>
969
+ cairo_glyph_extents (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
970
+ <em class="parameter"><code>const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>,
971
+ <em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>,
972
+ <em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-text-extents-t" title="cairo_text_extents_t"><span class="type">cairo_text_extents_t</span></a> *extents</code></em>);</pre>
973
+ <p>Gets the extents for an array of glyphs. The extents describe a
868
974
  user-space rectangle that encloses the "inked" portion of the
869
- glyphs, (as they would be drawn by <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()"><code class="function">cairo_show_glyphs()</code></a>).
975
+ glyphs, (as they would be drawn by <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()"><code class="function">cairo_show_glyphs()</code></a>).
870
976
  Additionally, the x_advance and y_advance values indicate the
871
977
  amount by which the current point would be advanced by
872
- <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()"><code class="function">cairo_show_glyphs()</code></a>.
873
- </p>
874
- <p>
875
- Note that whitespace glyphs do not contribute to the size of the
876
- rectangle (extents.width and extents.height).
877
- </p>
878
- <div class="variablelist"><table border="0">
879
- <col align="left" valign="top">
978
+ <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()"><code class="function">cairo_show_glyphs()</code></a>.</p>
979
+ <p>Note that whitespace glyphs do not contribute to the size of the
980
+ rectangle (extents.width and extents.height).</p>
981
+ <div class="refsect3">
982
+ <a name="id-1.3.7.7.17.6"></a><h4>Parameters</h4>
983
+ <div class="informaltable"><table width="100%" border="0">
984
+ <colgroup>
985
+ <col width="150px" class="parameters_name">
986
+ <col class="parameters_description">
987
+ <col width="200px" class="parameters_annotations">
988
+ </colgroup>
880
989
  <tbody>
881
990
  <tr>
882
- <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
883
- <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
884
- </td>
991
+ <td class="parameter_name"><p>cr</p></td>
992
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a></p></td>
993
+ <td class="parameter_annotations"> </td>
885
994
  </tr>
886
995
  <tr>
887
- <td><p><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></p></td>
888
- <td>an array of <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> objects</td>
996
+ <td class="parameter_name"><p>glyphs</p></td>
997
+ <td class="parameter_description"><p>an array of <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> objects</p></td>
998
+ <td class="parameter_annotations"> </td>
889
999
  </tr>
890
1000
  <tr>
891
- <td><p><span class="term"><em class="parameter"><code>num_glyphs</code></em> :</span></p></td>
892
- <td>the number of elements in <em class="parameter"><code>glyphs</code></em>
893
- </td>
1001
+ <td class="parameter_name"><p>num_glyphs</p></td>
1002
+ <td class="parameter_description"><p>the number of elements in <em class="parameter"><code>glyphs</code></em>
1003
+ </p></td>
1004
+ <td class="parameter_annotations"> </td>
894
1005
  </tr>
895
1006
  <tr>
896
- <td><p><span class="term"><em class="parameter"><code>extents</code></em> :</span></p></td>
897
- <td>a <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-text-extents-t" title="cairo_text_extents_t"><span class="type">cairo_text_extents_t</span></a> object into which the results
898
- will be stored</td>
1007
+ <td class="parameter_name"><p>extents</p></td>
1008
+ <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-text-extents-t" title="cairo_text_extents_t"><span class="type">cairo_text_extents_t</span></a> object into which the results
1009
+ will be stored</p></td>
1010
+ <td class="parameter_annotations"> </td>
899
1011
  </tr>
900
1012
  </tbody>
901
1013
  </table></div>
1014
+ </div>
902
1015
  <p class="since">Since 1.0</p>
903
1016
  </div>
904
1017
  <hr>
905
1018
  <div class="refsect2">
906
- <a name="cairo-toy-font-face-create"></a><h3>cairo_toy_font_face_create ()</h3>
907
- <pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> * cairo_toy_font_face_create (<em class="parameter"><code>const <span class="type">char</span> *family</code></em>,
908
- <em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t"><span class="type">cairo_font_slant_t</span></a> slant</code></em>,
909
- <em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t"><span class="type">cairo_font_weight_t</span></a> weight</code></em>);</pre>
910
- <p>
911
- Creates a font face from a triplet of family, slant, and weight.
1019
+ <a name="cairo-toy-font-face-create"></a><h3>cairo_toy_font_face_create ()</h3>
1020
+ <pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> *
1021
+ cairo_toy_font_face_create (<em class="parameter"><code>const <span class="type">char</span> *family</code></em>,
1022
+ <em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t"><span class="type">cairo_font_slant_t</span></a> slant</code></em>,
1023
+ <em class="parameter"><code><a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t"><span class="type">cairo_font_weight_t</span></a> weight</code></em>);</pre>
1024
+ <p>Creates a font face from a triplet of family, slant, and weight.
912
1025
  These font faces are used in implementation of the the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> "toy"
913
- font API.
914
- </p>
915
- <p>
916
- If <em class="parameter"><code>family</code></em> is the zero-length string "", the platform-specific default
1026
+ font API.</p>
1027
+ <p>If <em class="parameter"><code>family</code></em>
1028
+ is the zero-length string "", the platform-specific default
917
1029
  family is assumed. The default family then can be queried using
918
- <a class="link" href="cairo-text.html#cairo-toy-font-face-get-family" title="cairo_toy_font_face_get_family ()"><code class="function">cairo_toy_font_face_get_family()</code></a>.
919
- </p>
920
- <p>
921
- The <a class="link" href="cairo-text.html#cairo-select-font-face" title="cairo_select_font_face ()"><code class="function">cairo_select_font_face()</code></a> function uses this to create font faces.
922
- See that function for limitations and other details of toy font faces.
923
- </p>
924
- <div class="variablelist"><table border="0">
925
- <col align="left" valign="top">
1030
+ <a class="link" href="cairo-text.html#cairo-toy-font-face-get-family" title="cairo_toy_font_face_get_family ()"><code class="function">cairo_toy_font_face_get_family()</code></a>.</p>
1031
+ <p>The <a class="link" href="cairo-text.html#cairo-select-font-face" title="cairo_select_font_face ()"><code class="function">cairo_select_font_face()</code></a> function uses this to create font faces.
1032
+ See that function for limitations and other details of toy font faces.</p>
1033
+ <div class="refsect3">
1034
+ <a name="id-1.3.7.7.18.7"></a><h4>Parameters</h4>
1035
+ <div class="informaltable"><table width="100%" border="0">
1036
+ <colgroup>
1037
+ <col width="150px" class="parameters_name">
1038
+ <col class="parameters_description">
1039
+ <col width="200px" class="parameters_annotations">
1040
+ </colgroup>
926
1041
  <tbody>
927
1042
  <tr>
928
- <td><p><span class="term"><em class="parameter"><code>family</code></em> :</span></p></td>
929
- <td>a font family name, encoded in UTF-8</td>
1043
+ <td class="parameter_name"><p>family</p></td>
1044
+ <td class="parameter_description"><p>a font family name, encoded in UTF-8</p></td>
1045
+ <td class="parameter_annotations"> </td>
930
1046
  </tr>
931
1047
  <tr>
932
- <td><p><span class="term"><em class="parameter"><code>slant</code></em> :</span></p></td>
933
- <td>the slant for the font</td>
1048
+ <td class="parameter_name"><p>slant</p></td>
1049
+ <td class="parameter_description"><p>the slant for the font</p></td>
1050
+ <td class="parameter_annotations"> </td>
934
1051
  </tr>
935
1052
  <tr>
936
- <td><p><span class="term"><em class="parameter"><code>weight</code></em> :</span></p></td>
937
- <td>the weight for the font</td>
938
- </tr>
939
- <tr>
940
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
941
- <td>a newly created <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>. Free with
942
- <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-destroy" title="cairo_font_face_destroy ()"><code class="function">cairo_font_face_destroy()</code></a> when you are done using it.</td>
1053
+ <td class="parameter_name"><p>weight</p></td>
1054
+ <td class="parameter_description"><p>the weight for the font</p></td>
1055
+ <td class="parameter_annotations"> </td>
943
1056
  </tr>
944
1057
  </tbody>
945
1058
  </table></div>
1059
+ </div>
1060
+ <div class="refsect3">
1061
+ <a name="id-1.3.7.7.18.8"></a><h4>Returns</h4>
1062
+ <p> a newly created <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>. Free with
1063
+ <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-destroy" title="cairo_font_face_destroy ()"><code class="function">cairo_font_face_destroy()</code></a> when you are done using it.</p>
1064
+ <p></p>
1065
+ </div>
946
1066
  <p class="since">Since 1.8</p>
947
1067
  </div>
948
1068
  <hr>
949
1069
  <div class="refsect2">
950
- <a name="cairo-toy-font-face-get-family"></a><h3>cairo_toy_font_face_get_family ()</h3>
951
- <pre class="programlisting">const <span class="returnvalue">char</span> * cairo_toy_font_face_get_family (<em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);</pre>
952
- <p>
953
- Gets the familly name of a toy font.
954
- </p>
955
- <div class="variablelist"><table border="0">
956
- <col align="left" valign="top">
957
- <tbody>
958
- <tr>
959
- <td><p><span class="term"><em class="parameter"><code>font_face</code></em> :</span></p></td>
960
- <td>A toy font face</td>
961
- </tr>
962
- <tr>
963
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
964
- <td>The family name. This string is owned by the font face
965
- and remains valid as long as the font face is alive (referenced).</td>
966
- </tr>
967
- </tbody>
1070
+ <a name="cairo-toy-font-face-get-family"></a><h3>cairo_toy_font_face_get_family ()</h3>
1071
+ <pre class="programlisting">const <span class="returnvalue">char</span> *
1072
+ cairo_toy_font_face_get_family (<em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);</pre>
1073
+ <p>Gets the familly name of a toy font.</p>
1074
+ <div class="refsect3">
1075
+ <a name="id-1.3.7.7.19.5"></a><h4>Parameters</h4>
1076
+ <div class="informaltable"><table width="100%" border="0">
1077
+ <colgroup>
1078
+ <col width="150px" class="parameters_name">
1079
+ <col class="parameters_description">
1080
+ <col width="200px" class="parameters_annotations">
1081
+ </colgroup>
1082
+ <tbody><tr>
1083
+ <td class="parameter_name"><p>font_face</p></td>
1084
+ <td class="parameter_description"><p>A toy font face</p></td>
1085
+ <td class="parameter_annotations"> </td>
1086
+ </tr></tbody>
968
1087
  </table></div>
1088
+ </div>
1089
+ <div class="refsect3">
1090
+ <a name="id-1.3.7.7.19.6"></a><h4>Returns</h4>
1091
+ <p> The family name. This string is owned by the font face
1092
+ and remains valid as long as the font face is alive (referenced).</p>
1093
+ <p></p>
1094
+ </div>
969
1095
  <p class="since">Since 1.8</p>
970
1096
  </div>
971
1097
  <hr>
972
1098
  <div class="refsect2">
973
- <a name="cairo-toy-font-face-get-slant"></a><h3>cairo_toy_font_face_get_slant ()</h3>
974
- <pre class="programlisting"><a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t"><span class="returnvalue">cairo_font_slant_t</span></a> cairo_toy_font_face_get_slant (<em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);</pre>
975
- <p>
976
- Gets the slant a toy font.
977
- </p>
978
- <div class="variablelist"><table border="0">
979
- <col align="left" valign="top">
980
- <tbody>
981
- <tr>
982
- <td><p><span class="term"><em class="parameter"><code>font_face</code></em> :</span></p></td>
983
- <td>A toy font face</td>
984
- </tr>
985
- <tr>
986
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
987
- <td>The slant value</td>
988
- </tr>
989
- </tbody>
1099
+ <a name="cairo-toy-font-face-get-slant"></a><h3>cairo_toy_font_face_get_slant ()</h3>
1100
+ <pre class="programlisting"><a class="link" href="cairo-text.html#cairo-font-slant-t" title="enum cairo_font_slant_t"><span class="returnvalue">cairo_font_slant_t</span></a>
1101
+ cairo_toy_font_face_get_slant (<em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);</pre>
1102
+ <p>Gets the slant a toy font.</p>
1103
+ <div class="refsect3">
1104
+ <a name="id-1.3.7.7.20.5"></a><h4>Parameters</h4>
1105
+ <div class="informaltable"><table width="100%" border="0">
1106
+ <colgroup>
1107
+ <col width="150px" class="parameters_name">
1108
+ <col class="parameters_description">
1109
+ <col width="200px" class="parameters_annotations">
1110
+ </colgroup>
1111
+ <tbody><tr>
1112
+ <td class="parameter_name"><p>font_face</p></td>
1113
+ <td class="parameter_description"><p>A toy font face</p></td>
1114
+ <td class="parameter_annotations"> </td>
1115
+ </tr></tbody>
990
1116
  </table></div>
1117
+ </div>
1118
+ <div class="refsect3">
1119
+ <a name="id-1.3.7.7.20.6"></a><h4>Returns</h4>
1120
+ <p> The slant value</p>
1121
+ <p></p>
1122
+ </div>
991
1123
  <p class="since">Since 1.8</p>
992
1124
  </div>
993
1125
  <hr>
994
1126
  <div class="refsect2">
995
- <a name="cairo-toy-font-face-get-weight"></a><h3>cairo_toy_font_face_get_weight ()</h3>
996
- <pre class="programlisting"><a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t"><span class="returnvalue">cairo_font_weight_t</span></a> cairo_toy_font_face_get_weight (<em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);</pre>
997
- <p>
998
- Gets the weight a toy font.
999
- </p>
1000
- <div class="variablelist"><table border="0">
1001
- <col align="left" valign="top">
1002
- <tbody>
1003
- <tr>
1004
- <td><p><span class="term"><em class="parameter"><code>font_face</code></em> :</span></p></td>
1005
- <td>A toy font face</td>
1006
- </tr>
1007
- <tr>
1008
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1009
- <td>The weight value</td>
1010
- </tr>
1011
- </tbody>
1127
+ <a name="cairo-toy-font-face-get-weight"></a><h3>cairo_toy_font_face_get_weight ()</h3>
1128
+ <pre class="programlisting"><a class="link" href="cairo-text.html#cairo-font-weight-t" title="enum cairo_font_weight_t"><span class="returnvalue">cairo_font_weight_t</span></a>
1129
+ cairo_toy_font_face_get_weight (<em class="parameter"><code><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> *font_face</code></em>);</pre>
1130
+ <p>Gets the weight a toy font.</p>
1131
+ <div class="refsect3">
1132
+ <a name="id-1.3.7.7.21.5"></a><h4>Parameters</h4>
1133
+ <div class="informaltable"><table width="100%" border="0">
1134
+ <colgroup>
1135
+ <col width="150px" class="parameters_name">
1136
+ <col class="parameters_description">
1137
+ <col width="200px" class="parameters_annotations">
1138
+ </colgroup>
1139
+ <tbody><tr>
1140
+ <td class="parameter_name"><p>font_face</p></td>
1141
+ <td class="parameter_description"><p>A toy font face</p></td>
1142
+ <td class="parameter_annotations"> </td>
1143
+ </tr></tbody>
1012
1144
  </table></div>
1145
+ </div>
1146
+ <div class="refsect3">
1147
+ <a name="id-1.3.7.7.21.6"></a><h4>Returns</h4>
1148
+ <p> The weight value</p>
1149
+ <p></p>
1150
+ </div>
1013
1151
  <p class="since">Since 1.8</p>
1014
1152
  </div>
1015
1153
  <hr>
1016
1154
  <div class="refsect2">
1017
- <a name="cairo-glyph-allocate"></a><h3>cairo_glyph_allocate ()</h3>
1018
- <pre class="programlisting"><a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="returnvalue">cairo_glyph_t</span></a> * cairo_glyph_allocate (<em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>);</pre>
1019
- <p>
1020
- Allocates an array of <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a>'s.
1155
+ <a name="cairo-glyph-allocate"></a><h3>cairo_glyph_allocate ()</h3>
1156
+ <pre class="programlisting"><a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="returnvalue">cairo_glyph_t</span></a> *
1157
+ cairo_glyph_allocate (<em class="parameter"><code><span class="type">int</span> num_glyphs</code></em>);</pre>
1158
+ <p>Allocates an array of <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a>'s.
1021
1159
  This function is only useful in implementations of
1022
- <a class="link" href="cairo-User-Fonts.html#cairo-user-scaled-font-text-to-glyphs-func-t" title="cairo_user_scaled_font_text_to_glyphs_func_t ()"><span class="type">cairo_user_scaled_font_text_to_glyphs_func_t</span></a> where the user
1160
+ <a class="link" href="cairo-User-Fonts.html#cairo-user-scaled-font-text-to-glyphs-func-t" title="cairo_user_scaled_font_text_to_glyphs_func_t ()"><span class="type">cairo_user_scaled_font_text_to_glyphs_func_t</span></a> where the user
1023
1161
  needs to allocate an array of glyphs that cairo will free.
1024
1162
  For all other uses, user can use their own allocation method
1025
- for glyphs.
1026
- </p>
1027
- <p>
1028
- This function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>num_glyphs</code></em> is not positive,
1029
- or if out of memory. That means, the <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> return value
1030
- signals out-of-memory only if <em class="parameter"><code>num_glyphs</code></em> was positive.
1031
- </p>
1032
- <div class="variablelist"><table border="0">
1033
- <col align="left" valign="top">
1034
- <tbody>
1035
- <tr>
1036
- <td><p><span class="term"><em class="parameter"><code>num_glyphs</code></em> :</span></p></td>
1037
- <td>number of glyphs to allocate</td>
1038
- </tr>
1039
- <tr>
1040
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1041
- <td>the newly allocated array of glyphs that should be
1042
- freed using <a class="link" href="cairo-text.html#cairo-glyph-free" title="cairo_glyph_free ()"><code class="function">cairo_glyph_free()</code></a>
1043
- </td>
1044
- </tr>
1045
- </tbody>
1163
+ for glyphs.</p>
1164
+ <p>This function returns <code class="literal">NULL</code> if <em class="parameter"><code>num_glyphs</code></em>
1165
+ is not positive,
1166
+ or if out of memory. That means, the <code class="literal">NULL</code> return value
1167
+ signals out-of-memory only if <em class="parameter"><code>num_glyphs</code></em>
1168
+ was positive.</p>
1169
+ <div class="refsect3">
1170
+ <a name="id-1.3.7.7.22.6"></a><h4>Parameters</h4>
1171
+ <div class="informaltable"><table width="100%" border="0">
1172
+ <colgroup>
1173
+ <col width="150px" class="parameters_name">
1174
+ <col class="parameters_description">
1175
+ <col width="200px" class="parameters_annotations">
1176
+ </colgroup>
1177
+ <tbody><tr>
1178
+ <td class="parameter_name"><p>num_glyphs</p></td>
1179
+ <td class="parameter_description"><p>number of glyphs to allocate</p></td>
1180
+ <td class="parameter_annotations"> </td>
1181
+ </tr></tbody>
1046
1182
  </table></div>
1183
+ </div>
1184
+ <div class="refsect3">
1185
+ <a name="id-1.3.7.7.22.7"></a><h4>Returns</h4>
1186
+ <p> the newly allocated array of glyphs that should be
1187
+ freed using <a class="link" href="cairo-text.html#cairo-glyph-free" title="cairo_glyph_free ()"><code class="function">cairo_glyph_free()</code></a></p>
1188
+ <p></p>
1189
+ </div>
1047
1190
  <p class="since">Since 1.8</p>
1048
1191
  </div>
1049
1192
  <hr>
1050
1193
  <div class="refsect2">
1051
- <a name="cairo-glyph-free"></a><h3>cairo_glyph_free ()</h3>
1052
- <pre class="programlisting"><span class="returnvalue">void</span> cairo_glyph_free (<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>);</pre>
1053
- <p>
1054
- Frees an array of <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a>'s allocated using <a class="link" href="cairo-text.html#cairo-glyph-allocate" title="cairo_glyph_allocate ()"><code class="function">cairo_glyph_allocate()</code></a>.
1194
+ <a name="cairo-glyph-free"></a><h3>cairo_glyph_free ()</h3>
1195
+ <pre class="programlisting"><span class="returnvalue">void</span>
1196
+ cairo_glyph_free (<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> *glyphs</code></em>);</pre>
1197
+ <p>Frees an array of <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a>'s allocated using <a class="link" href="cairo-text.html#cairo-glyph-allocate" title="cairo_glyph_allocate ()"><code class="function">cairo_glyph_allocate()</code></a>.
1055
1198
  This function is only useful to free glyph array returned
1056
- by <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-text-to-glyphs" title="cairo_scaled_font_text_to_glyphs ()"><code class="function">cairo_scaled_font_text_to_glyphs()</code></a> where cairo returns
1199
+ by <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-text-to-glyphs" title="cairo_scaled_font_text_to_glyphs ()"><code class="function">cairo_scaled_font_text_to_glyphs()</code></a> where cairo returns
1057
1200
  an array of glyphs that the user will free.
1058
1201
  For all other uses, user can use their own allocation method
1059
- for glyphs.
1060
- </p>
1061
- <div class="variablelist"><table border="0">
1062
- <col align="left" valign="top">
1202
+ for glyphs.</p>
1203
+ <div class="refsect3">
1204
+ <a name="id-1.3.7.7.23.5"></a><h4>Parameters</h4>
1205
+ <div class="informaltable"><table width="100%" border="0">
1206
+ <colgroup>
1207
+ <col width="150px" class="parameters_name">
1208
+ <col class="parameters_description">
1209
+ <col width="200px" class="parameters_annotations">
1210
+ </colgroup>
1063
1211
  <tbody><tr>
1064
- <td><p><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></p></td>
1065
- <td>array of glyphs to free, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1066
- </td>
1212
+ <td class="parameter_name"><p>glyphs</p></td>
1213
+ <td class="parameter_description"><p>array of glyphs to free, or <code class="literal">NULL</code></p></td>
1214
+ <td class="parameter_annotations"> </td>
1067
1215
  </tr></tbody>
1068
1216
  </table></div>
1217
+ </div>
1069
1218
  <p class="since">Since 1.8</p>
1070
1219
  </div>
1071
1220
  <hr>
1072
1221
  <div class="refsect2">
1073
- <a name="cairo-text-cluster-allocate"></a><h3>cairo_text_cluster_allocate ()</h3>
1074
- <pre class="programlisting"><a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="returnvalue">cairo_text_cluster_t</span></a> * cairo_text_cluster_allocate (<em class="parameter"><code><span class="type">int</span> num_clusters</code></em>);</pre>
1075
- <p>
1076
- Allocates an array of <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="type">cairo_text_cluster_t</span></a>'s.
1222
+ <a name="cairo-text-cluster-allocate"></a><h3>cairo_text_cluster_allocate ()</h3>
1223
+ <pre class="programlisting"><a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="returnvalue">cairo_text_cluster_t</span></a> *
1224
+ cairo_text_cluster_allocate (<em class="parameter"><code><span class="type">int</span> num_clusters</code></em>);</pre>
1225
+ <p>Allocates an array of <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="type">cairo_text_cluster_t</span></a>'s.
1077
1226
  This function is only useful in implementations of
1078
- <a class="link" href="cairo-User-Fonts.html#cairo-user-scaled-font-text-to-glyphs-func-t" title="cairo_user_scaled_font_text_to_glyphs_func_t ()"><span class="type">cairo_user_scaled_font_text_to_glyphs_func_t</span></a> where the user
1227
+ <a class="link" href="cairo-User-Fonts.html#cairo-user-scaled-font-text-to-glyphs-func-t" title="cairo_user_scaled_font_text_to_glyphs_func_t ()"><span class="type">cairo_user_scaled_font_text_to_glyphs_func_t</span></a> where the user
1079
1228
  needs to allocate an array of text clusters that cairo will free.
1080
1229
  For all other uses, user can use their own allocation method
1081
- for text clusters.
1082
- </p>
1083
- <p>
1084
- This function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>num_clusters</code></em> is not positive,
1085
- or if out of memory. That means, the <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> return value
1086
- signals out-of-memory only if <em class="parameter"><code>num_clusters</code></em> was positive.
1087
- </p>
1088
- <div class="variablelist"><table border="0">
1089
- <col align="left" valign="top">
1230
+ for text clusters.</p>
1231
+ <p>This function returns <code class="literal">NULL</code> if <em class="parameter"><code>num_clusters</code></em>
1232
+ is not positive,
1233
+ or if out of memory. That means, the <code class="literal">NULL</code> return value
1234
+ signals out-of-memory only if <em class="parameter"><code>num_clusters</code></em>
1235
+ was positive.</p>
1236
+ <div class="refsect3">
1237
+ <a name="id-1.3.7.7.24.6"></a><h4>Parameters</h4>
1238
+ <div class="informaltable"><table width="100%" border="0">
1239
+ <colgroup>
1240
+ <col width="150px" class="parameters_name">
1241
+ <col class="parameters_description">
1242
+ <col width="200px" class="parameters_annotations">
1243
+ </colgroup>
1244
+ <tbody><tr>
1245
+ <td class="parameter_name"><p>num_clusters</p></td>
1246
+ <td class="parameter_description"><p>number of text_clusters to allocate</p></td>
1247
+ <td class="parameter_annotations"> </td>
1248
+ </tr></tbody>
1249
+ </table></div>
1250
+ </div>
1251
+ <div class="refsect3">
1252
+ <a name="id-1.3.7.7.24.7"></a><h4>Returns</h4>
1253
+ <p> the newly allocated array of text clusters that should be
1254
+ freed using <a class="link" href="cairo-text.html#cairo-text-cluster-free" title="cairo_text_cluster_free ()"><code class="function">cairo_text_cluster_free()</code></a></p>
1255
+ <p></p>
1256
+ </div>
1257
+ <p class="since">Since 1.8</p>
1258
+ </div>
1259
+ <hr>
1260
+ <div class="refsect2">
1261
+ <a name="cairo-text-cluster-free"></a><h3>cairo_text_cluster_free ()</h3>
1262
+ <pre class="programlisting"><span class="returnvalue">void</span>
1263
+ cairo_text_cluster_free (<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="type">cairo_text_cluster_t</span></a> *clusters</code></em>);</pre>
1264
+ <p>Frees an array of <span class="type">cairo_text_cluster</span>'s allocated using <a class="link" href="cairo-text.html#cairo-text-cluster-allocate" title="cairo_text_cluster_allocate ()"><code class="function">cairo_text_cluster_allocate()</code></a>.
1265
+ This function is only useful to free text cluster array returned
1266
+ by <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-text-to-glyphs" title="cairo_scaled_font_text_to_glyphs ()"><code class="function">cairo_scaled_font_text_to_glyphs()</code></a> where cairo returns
1267
+ an array of text clusters that the user will free.
1268
+ For all other uses, user can use their own allocation method
1269
+ for text clusters.</p>
1270
+ <div class="refsect3">
1271
+ <a name="id-1.3.7.7.25.5"></a><h4>Parameters</h4>
1272
+ <div class="informaltable"><table width="100%" border="0">
1273
+ <colgroup>
1274
+ <col width="150px" class="parameters_name">
1275
+ <col class="parameters_description">
1276
+ <col width="200px" class="parameters_annotations">
1277
+ </colgroup>
1278
+ <tbody><tr>
1279
+ <td class="parameter_name"><p>clusters</p></td>
1280
+ <td class="parameter_description"><p>array of text clusters to free, or <code class="literal">NULL</code></p></td>
1281
+ <td class="parameter_annotations"> </td>
1282
+ </tr></tbody>
1283
+ </table></div>
1284
+ </div>
1285
+ <p class="since">Since 1.8</p>
1286
+ </div>
1287
+ </div>
1288
+ <div class="refsect1">
1289
+ <a name="cairo-text.other_details"></a><h2>Types and Values</h2>
1290
+ <div class="refsect2">
1291
+ <a name="cairo-glyph-t"></a><h3>cairo_glyph_t</h3>
1292
+ <pre class="programlisting">typedef struct {
1293
+ unsigned long index;
1294
+ double x;
1295
+ double y;
1296
+ } cairo_glyph_t;
1297
+ </pre>
1298
+ <p>The <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a> structure holds information about a single glyph
1299
+ when drawing or measuring text. A font is (in simple terms) a
1300
+ collection of shapes used to draw text. A glyph is one of these
1301
+ shapes. There can be multiple glyphs for a single character
1302
+ (alternates to be used in different contexts, for example), or a
1303
+ glyph can be a <em class="firstterm">ligature</em> of multiple
1304
+ characters. Cairo doesn't expose any way of converting input text
1305
+ into glyphs, so in order to use the Cairo interfaces that take
1306
+ arrays of glyphs, you must directly access the appropriate
1307
+ underlying font system.</p>
1308
+ <p>Note that the offsets given by <em class="parameter"><code>x</code></em>
1309
+ and <em class="parameter"><code>y</code></em>
1310
+ are not cumulative. When
1311
+ drawing or measuring text, each glyph is individually positioned
1312
+ with respect to the overall origin</p>
1313
+ <div class="refsect3">
1314
+ <a name="id-1.3.7.8.2.6"></a><h4>Members</h4>
1315
+ <div class="informaltable"><table width="100%" border="0">
1316
+ <colgroup>
1317
+ <col width="300px" class="struct_members_name">
1318
+ <col class="struct_members_description">
1319
+ <col width="200px" class="struct_members_annotations">
1320
+ </colgroup>
1321
+ <tbody>
1322
+ <tr>
1323
+ <td class="struct_member_name"><p>unsigned <span class="type">long</span> <em class="structfield"><code><a name="cairo-glyph-t.index"></a>index</code></em>;</p></td>
1324
+ <td class="struct_member_description"><p>glyph index in the font. The exact interpretation of the
1325
+ glyph index depends on the font technology being used.</p></td>
1326
+ <td class="struct_member_annotations"> </td>
1327
+ </tr>
1328
+ <tr>
1329
+ <td class="struct_member_name"><p><span class="type">double</span> <em class="structfield"><code><a name="cairo-glyph-t.x"></a>x</code></em>;</p></td>
1330
+ <td class="struct_member_description"><p>the offset in the X direction between the origin used for
1331
+ drawing or measuring the string and the origin of this glyph.</p></td>
1332
+ <td class="struct_member_annotations"> </td>
1333
+ </tr>
1334
+ <tr>
1335
+ <td class="struct_member_name"><p><span class="type">double</span> <em class="structfield"><code><a name="cairo-glyph-t.y"></a>y</code></em>;</p></td>
1336
+ <td class="struct_member_description"><p>the offset in the Y direction between the origin used for
1337
+ drawing or measuring the string and the origin of this glyph.</p></td>
1338
+ <td class="struct_member_annotations"> </td>
1339
+ </tr>
1340
+ </tbody>
1341
+ </table></div>
1342
+ </div>
1343
+ <p class="since">Since 1.0</p>
1344
+ </div>
1345
+ <hr>
1346
+ <div class="refsect2">
1347
+ <a name="cairo-font-slant-t"></a><h3>enum cairo_font_slant_t</h3>
1348
+ <p>Specifies variants of a font face based on their slant.</p>
1349
+ <div class="refsect3">
1350
+ <a name="id-1.3.7.8.3.4"></a><h4>Members</h4>
1351
+ <div class="informaltable"><table width="100%" border="0">
1352
+ <colgroup>
1353
+ <col width="300px" class="enum_members_name">
1354
+ <col class="enum_members_description">
1355
+ <col width="200px" class="enum_members_annotations">
1356
+ </colgroup>
1090
1357
  <tbody>
1091
1358
  <tr>
1092
- <td><p><span class="term"><em class="parameter"><code>num_clusters</code></em> :</span></p></td>
1093
- <td>number of text_clusters to allocate</td>
1359
+ <td class="enum_member_name"><p><a name="CAIRO-FONT-SLANT-NORMAL:CAPS"></a>CAIRO_FONT_SLANT_NORMAL</p></td>
1360
+ <td class="enum_member_description">
1361
+ <p>Upright font style, since 1.0</p>
1362
+ </td>
1363
+ <td class="enum_member_annotations"> </td>
1364
+ </tr>
1365
+ <tr>
1366
+ <td class="enum_member_name"><p><a name="CAIRO-FONT-SLANT-ITALIC:CAPS"></a>CAIRO_FONT_SLANT_ITALIC</p></td>
1367
+ <td class="enum_member_description">
1368
+ <p>Italic font style, since 1.0</p>
1369
+ </td>
1370
+ <td class="enum_member_annotations"> </td>
1371
+ </tr>
1372
+ <tr>
1373
+ <td class="enum_member_name"><p><a name="CAIRO-FONT-SLANT-OBLIQUE:CAPS"></a>CAIRO_FONT_SLANT_OBLIQUE</p></td>
1374
+ <td class="enum_member_description">
1375
+ <p>Oblique font style, since 1.0</p>
1376
+ </td>
1377
+ <td class="enum_member_annotations"> </td>
1378
+ </tr>
1379
+ </tbody>
1380
+ </table></div>
1381
+ </div>
1382
+ <p class="since">Since 1.0</p>
1383
+ </div>
1384
+ <hr>
1385
+ <div class="refsect2">
1386
+ <a name="cairo-font-weight-t"></a><h3>enum cairo_font_weight_t</h3>
1387
+ <p>Specifies variants of a font face based on their weight.</p>
1388
+ <div class="refsect3">
1389
+ <a name="id-1.3.7.8.4.4"></a><h4>Members</h4>
1390
+ <div class="informaltable"><table width="100%" border="0">
1391
+ <colgroup>
1392
+ <col width="300px" class="enum_members_name">
1393
+ <col class="enum_members_description">
1394
+ <col width="200px" class="enum_members_annotations">
1395
+ </colgroup>
1396
+ <tbody>
1397
+ <tr>
1398
+ <td class="enum_member_name"><p><a name="CAIRO-FONT-WEIGHT-NORMAL:CAPS"></a>CAIRO_FONT_WEIGHT_NORMAL</p></td>
1399
+ <td class="enum_member_description">
1400
+ <p>Normal font weight, since 1.0</p>
1401
+ </td>
1402
+ <td class="enum_member_annotations"> </td>
1094
1403
  </tr>
1095
1404
  <tr>
1096
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1097
- <td>the newly allocated array of text clusters that should be
1098
- freed using <a class="link" href="cairo-text.html#cairo-text-cluster-free" title="cairo_text_cluster_free ()"><code class="function">cairo_text_cluster_free()</code></a>
1405
+ <td class="enum_member_name"><p><a name="CAIRO-FONT-WEIGHT-BOLD:CAPS"></a>CAIRO_FONT_WEIGHT_BOLD</p></td>
1406
+ <td class="enum_member_description">
1407
+ <p>Bold font weight, since 1.0</p>
1099
1408
  </td>
1409
+ <td class="enum_member_annotations"> </td>
1100
1410
  </tr>
1101
1411
  </tbody>
1102
1412
  </table></div>
1413
+ </div>
1414
+ <p class="since">Since 1.0</p>
1415
+ </div>
1416
+ <hr>
1417
+ <div class="refsect2">
1418
+ <a name="cairo-text-cluster-t"></a><h3>cairo_text_cluster_t</h3>
1419
+ <pre class="programlisting">typedef struct {
1420
+ int num_bytes;
1421
+ int num_glyphs;
1422
+ } cairo_text_cluster_t;
1423
+ </pre>
1424
+ <p>The <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="type">cairo_text_cluster_t</span></a> structure holds information about a single
1425
+ <em class="firstterm">text cluster</em>. A text cluster is a minimal
1426
+ mapping of some glyphs corresponding to some UTF-8 text.</p>
1427
+ <p>For a cluster to be valid, both <em class="parameter"><code>num_bytes</code></em>
1428
+ and <em class="parameter"><code>num_glyphs</code></em>
1429
+ should
1430
+ be non-negative, and at least one should be non-zero.
1431
+ Note that clusters with zero glyphs are not as well supported as
1432
+ normal clusters. For example, PDF rendering applications typically
1433
+ ignore those clusters when PDF text is being selected.</p>
1434
+ <p>See <a class="link" href="cairo-text.html#cairo-show-text-glyphs" title="cairo_show_text_glyphs ()"><code class="function">cairo_show_text_glyphs()</code></a> for how clusters are used in advanced
1435
+ text operations.</p>
1436
+ <div class="refsect3">
1437
+ <a name="id-1.3.7.8.5.7"></a><h4>Members</h4>
1438
+ <div class="informaltable"><table width="100%" border="0">
1439
+ <colgroup>
1440
+ <col width="300px" class="struct_members_name">
1441
+ <col class="struct_members_description">
1442
+ <col width="200px" class="struct_members_annotations">
1443
+ </colgroup>
1444
+ <tbody>
1445
+ <tr>
1446
+ <td class="struct_member_name"><p><span class="type">int</span> <em class="structfield"><code><a name="cairo-text-cluster-t.num-bytes"></a>num_bytes</code></em>;</p></td>
1447
+ <td class="struct_member_description"><p>the number of bytes of UTF-8 text covered by cluster</p></td>
1448
+ <td class="struct_member_annotations"> </td>
1449
+ </tr>
1450
+ <tr>
1451
+ <td class="struct_member_name"><p><span class="type">int</span> <em class="structfield"><code><a name="cairo-text-cluster-t.num-glyphs"></a>num_glyphs</code></em>;</p></td>
1452
+ <td class="struct_member_description"><p>the number of glyphs covered by cluster</p></td>
1453
+ <td class="struct_member_annotations"> </td>
1454
+ </tr>
1455
+ </tbody>
1456
+ </table></div>
1457
+ </div>
1103
1458
  <p class="since">Since 1.8</p>
1104
1459
  </div>
1105
1460
  <hr>
1106
1461
  <div class="refsect2">
1107
- <a name="cairo-text-cluster-free"></a><h3>cairo_text_cluster_free ()</h3>
1108
- <pre class="programlisting"><span class="returnvalue">void</span> cairo_text_cluster_free (<em class="parameter"><code><a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t"><span class="type">cairo_text_cluster_t</span></a> *clusters</code></em>);</pre>
1109
- <p>
1110
- Frees an array of <span class="type">cairo_text_cluster</span>'s allocated using <a class="link" href="cairo-text.html#cairo-text-cluster-allocate" title="cairo_text_cluster_allocate ()"><code class="function">cairo_text_cluster_allocate()</code></a>.
1111
- This function is only useful to free text cluster array returned
1112
- by <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-text-to-glyphs" title="cairo_scaled_font_text_to_glyphs ()"><code class="function">cairo_scaled_font_text_to_glyphs()</code></a> where cairo returns
1113
- an array of text clusters that the user will free.
1114
- For all other uses, user can use their own allocation method
1115
- for text clusters.
1116
- </p>
1117
- <div class="variablelist"><table border="0">
1118
- <col align="left" valign="top">
1462
+ <a name="cairo-text-cluster-flags-t"></a><h3>enum cairo_text_cluster_flags_t</h3>
1463
+ <p>Specifies properties of a text cluster mapping.</p>
1464
+ <div class="refsect3">
1465
+ <a name="id-1.3.7.8.6.4"></a><h4>Members</h4>
1466
+ <div class="informaltable"><table width="100%" border="0">
1467
+ <colgroup>
1468
+ <col width="300px" class="enum_members_name">
1469
+ <col class="enum_members_description">
1470
+ <col width="200px" class="enum_members_annotations">
1471
+ </colgroup>
1119
1472
  <tbody><tr>
1120
- <td><p><span class="term"><em class="parameter"><code>clusters</code></em> :</span></p></td>
1121
- <td>array of text clusters to free, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1473
+ <td class="enum_member_name"><p><a name="CAIRO-TEXT-CLUSTER-FLAG-BACKWARD:CAPS"></a>CAIRO_TEXT_CLUSTER_FLAG_BACKWARD</p></td>
1474
+ <td class="enum_member_description">
1475
+ <p>The clusters in the cluster array
1476
+ map to glyphs in the glyph array from end to start. (Since 1.8)</p>
1122
1477
  </td>
1478
+ <td class="enum_member_annotations"> </td>
1123
1479
  </tr></tbody>
1124
1480
  </table></div>
1481
+ </div>
1125
1482
  <p class="since">Since 1.8</p>
1126
1483
  </div>
1127
1484
  </div>
1128
1485
  <div class="refsect1">
1129
1486
  <a name="cairo-text.see-also"></a><h2>See Also</h2>
1130
- <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>, <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>, <a class="link" href="cairo-Paths.html#cairo-text-path" title="cairo_text_path ()"><code class="function">cairo_text_path()</code></a>,
1131
- <a class="link" href="cairo-Paths.html#cairo-glyph-path" title="cairo_glyph_path ()"><code class="function">cairo_glyph_path()</code></a>
1487
+ <p><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>, <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>, <a class="link" href="cairo-Paths.html#cairo-text-path" title="cairo_text_path ()"><code class="function">cairo_text_path()</code></a>,
1488
+ <a class="link" href="cairo-Paths.html#cairo-glyph-path" title="cairo_glyph_path ()"><code class="function">cairo_glyph_path()</code></a></p>
1132
1489
  </div>
1133
1490
  </div>
1134
1491
  <div class="footer">
1135
1492
  <hr>
1136
- Generated by GTK-Doc V1.18</div>
1493
+ Generated by GTK-Doc V1.20</div>
1137
1494
  </body>
1138
1495
  </html>