cairo 1.7.0-x86-mswin32 → 1.8.0-x86-mswin32

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

Potentially problematic release.


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

Files changed (167) hide show
  1. data/ChangeLog +32 -0
  2. data/NEWS +9 -1
  3. data/README +1 -0
  4. data/Rakefile +2 -2
  5. data/cairo/DLL_FAQ.txt +397 -0
  6. data/cairo/README.txt +53 -0
  7. data/cairo/USAGE.txt +94 -0
  8. data/cairo/bin/libcairo-2.dll +0 -0
  9. data/cairo/bin/libpng12-0.dll +0 -0
  10. data/cairo/bin/zlib1.dll +0 -0
  11. data/cairo/include/cairo/cairo-deprecated.h +0 -4
  12. data/cairo/include/cairo/cairo-features.h +7 -22
  13. data/cairo/include/cairo/cairo-pdf.h +1 -1
  14. data/cairo/include/cairo/cairo-ps.h +1 -1
  15. data/cairo/include/cairo/cairo-svg.h +1 -1
  16. data/cairo/include/cairo/cairo-version.h +8 -0
  17. data/cairo/include/cairo/cairo-win32.h +9 -1
  18. data/cairo/include/cairo/cairo.h +420 -32
  19. data/cairo/include/libpng12/png.h +3592 -0
  20. data/cairo/include/libpng12/pngconf.h +1481 -0
  21. data/cairo/include/png.h +36 -13
  22. data/cairo/include/pngconf.h +3 -3
  23. data/cairo/include/zconf.h +332 -0
  24. data/cairo/include/zlib.h +1357 -0
  25. data/cairo/lib/cairo.def +22 -0
  26. data/cairo/lib/cairo.lib +0 -0
  27. data/cairo/lib/libcairo.dll.a +0 -0
  28. data/cairo/lib/libpng.def +1 -0
  29. data/cairo/lib/libpng.lib +0 -0
  30. data/cairo/lib/libpng12.dll.a +0 -0
  31. data/cairo/lib/pkgconfig/cairo-pdf.pc +5 -5
  32. data/cairo/lib/pkgconfig/cairo-png.pc +5 -5
  33. data/cairo/lib/pkgconfig/cairo-ps.pc +5 -5
  34. data/cairo/lib/pkgconfig/cairo-svg.pc +4 -4
  35. data/cairo/lib/pkgconfig/cairo-win32-font.pc +4 -4
  36. data/cairo/lib/pkgconfig/cairo-win32.pc +4 -4
  37. data/cairo/lib/pkgconfig/cairo.pc +4 -4
  38. data/cairo/lib/pkgconfig/libpng.pc +3 -2
  39. data/cairo/lib/pkgconfig/libpng12.pc +3 -2
  40. data/cairo/lib/zdll.exp +0 -0
  41. data/cairo/lib/zdll.lib +0 -0
  42. data/cairo/lib/zlib.def +60 -0
  43. data/cairo/manifest/cairo-dev_1.8.0-1_win32.mft +76 -0
  44. data/cairo/manifest/cairo_1.8.0-1_win32.mft +5 -0
  45. data/cairo/manifest/{libpng-dev-1.2.29.mft → libpng-dev_1.2.32-1_win32.mft} +5 -2
  46. data/cairo/manifest/libpng_1.2.32-1_win32.mft +2 -0
  47. data/cairo/share/doc/{cairo-1.6.4-2 → cairo_1.8.0-1_win32}/COPYING +0 -0
  48. data/cairo/share/doc/{cairo-1.6.4-2 → cairo_1.8.0-1_win32}/COPYING-LGPL-2.1 +0 -0
  49. data/cairo/share/doc/{cairo-1.6.4-2 → cairo_1.8.0-1_win32}/COPYING-MPL-1.1 +0 -0
  50. data/cairo/share/gtk-doc/html/cairo/bindings-errors.html +15 -11
  51. data/cairo/share/gtk-doc/html/cairo/bindings-fonts.html +15 -11
  52. data/cairo/share/gtk-doc/html/cairo/bindings-memory.html +20 -16
  53. data/cairo/share/gtk-doc/html/cairo/bindings-overloading.html +16 -12
  54. data/cairo/share/gtk-doc/html/cairo/bindings-path.html +17 -13
  55. data/cairo/share/gtk-doc/html/cairo/bindings-patterns.html +25 -21
  56. data/cairo/share/gtk-doc/html/cairo/bindings-return-values.html +17 -13
  57. data/cairo/share/gtk-doc/html/cairo/bindings-streams.html +14 -10
  58. data/cairo/share/gtk-doc/html/cairo/bindings-surfaces.html +19 -15
  59. data/cairo/share/gtk-doc/html/cairo/cairo-context.html +2721 -0
  60. data/cairo/share/gtk-doc/html/cairo/cairo-drawing.html +57 -0
  61. data/cairo/share/gtk-doc/html/cairo/cairo-error-status.html +361 -0
  62. data/cairo/share/gtk-doc/html/cairo/cairo-font-face.html +418 -0
  63. data/cairo/share/gtk-doc/html/cairo/cairo-font-options.html +695 -0
  64. data/cairo/share/gtk-doc/html/cairo/cairo-fonts.html +63 -0
  65. data/cairo/share/gtk-doc/html/cairo/cairo-ft-font.html +318 -0
  66. data/cairo/share/gtk-doc/html/cairo/cairo-image-surface.html +486 -0
  67. data/cairo/share/gtk-doc/html/cairo/{cairo-cairo-matrix-t.html → cairo-matrix.html} +137 -156
  68. data/cairo/share/gtk-doc/html/cairo/{cairo-Paths.html → cairo-paths.html} +275 -306
  69. data/cairo/share/gtk-doc/html/cairo/cairo-pattern.html +1524 -0
  70. data/cairo/share/gtk-doc/html/cairo/{cairo-PDF-Surfaces.html → cairo-pdf-surface.html} +60 -70
  71. data/cairo/share/gtk-doc/html/cairo/cairo-png-functions.html +332 -0
  72. data/cairo/share/gtk-doc/html/cairo/{cairo-PostScript-Surfaces.html → cairo-ps-surface.html} +131 -150
  73. data/cairo/share/gtk-doc/html/cairo/cairo-quartz-font.html +153 -0
  74. data/cairo/share/gtk-doc/html/cairo/{cairo-Quartz-Surfaces.html → cairo-quartz-surface.html} +53 -62
  75. data/cairo/share/gtk-doc/html/cairo/cairo-scaled-font.html +1051 -0
  76. data/cairo/share/gtk-doc/html/cairo/cairo-support.html +54 -0
  77. data/cairo/share/gtk-doc/html/cairo/cairo-surface.html +1064 -0
  78. data/cairo/share/gtk-doc/html/cairo/cairo-surfaces.html +69 -0
  79. data/cairo/share/gtk-doc/html/cairo/cairo-svg-surface.html +324 -0
  80. data/cairo/share/gtk-doc/html/cairo/cairo-text.html +1264 -0
  81. data/cairo/share/gtk-doc/html/cairo/{cairo-Transformations.html → cairo-transformations.html} +98 -115
  82. data/cairo/share/gtk-doc/html/cairo/cairo-types.html +134 -0
  83. data/cairo/share/gtk-doc/html/cairo/cairo-user-font.html +769 -0
  84. data/cairo/share/gtk-doc/html/cairo/cairo-version-info.html +355 -0
  85. data/cairo/share/gtk-doc/html/cairo/cairo-win32-font.html +366 -0
  86. data/cairo/share/gtk-doc/html/cairo/cairo-win32-surface.html +321 -0
  87. data/cairo/share/gtk-doc/html/cairo/{cairo-XLib-Surfaces.html → cairo-xlib-surface.html} +104 -121
  88. data/cairo/share/gtk-doc/html/cairo/cairo.devhelp +390 -405
  89. data/cairo/share/gtk-doc/html/cairo/cairo.devhelp2 +390 -405
  90. data/cairo/share/gtk-doc/html/cairo/index-1.2.html +63 -59
  91. data/cairo/share/gtk-doc/html/cairo/index-1.4.html +45 -41
  92. data/cairo/share/gtk-doc/html/cairo/index-1.6.html +29 -23
  93. data/cairo/share/gtk-doc/html/cairo/index-1.8.html +107 -0
  94. data/cairo/share/gtk-doc/html/cairo/index-all.html +759 -0
  95. data/cairo/share/gtk-doc/html/cairo/index.html +51 -41
  96. data/cairo/share/gtk-doc/html/cairo/index.sgml +478 -466
  97. data/cairo/share/gtk-doc/html/cairo/language-bindings.html +22 -18
  98. data/cairo/share/gtk-doc/html/cairo/style.css +14 -2
  99. data/cairo/share/man/man3/libpng.3 +443 -17
  100. data/cairo/share/man/man3/libpngpf.3 +618 -102
  101. data/cairo/share/man/man5/png.5 +1 -1
  102. data/cairo/src/tml/make/cairo_1.8.0-1_win32.log +1021 -0
  103. data/cairo/src/tml/make/cairo_1.8.0-1_win32.sh +68 -0
  104. data/cairo/src/tml/make/libpng_1.2.32-1_win32.log +269 -0
  105. data/cairo/src/tml/make/libpng_1.2.32-1_win32.sh +63 -0
  106. data/cairo/test/example_d.exe +0 -0
  107. data/cairo/test/minigzip_d.exe +0 -0
  108. data/cairo/test/testzlib_d.exe +0 -0
  109. data/cairo/test/untgz_d.exe +0 -0
  110. data/doc/en/cairo-context.html +81 -91
  111. data/doc/en/cairo-font-options.html +11 -26
  112. data/doc/en/cairo-text-cluster-flag.html +35 -0
  113. data/doc/en/cairo-user-font-face-text-to-glyphs-data.html +3 -3
  114. data/doc/en/cairo.html +38 -42
  115. data/doc/en/index.html +129 -142
  116. data/doc/ja/cairo-font-options.html +3 -25
  117. data/doc/ja/cairo-text-cluster-flag.html +46 -0
  118. data/doc/ja/cairo-user-font-face-text-to-glyphs-data.html +16 -15
  119. data/doc/ja/cairo.html +3 -7
  120. data/doc/ja/index.html +9 -17
  121. data/src/cairo.def +1 -1
  122. data/src/cairo.so +0 -0
  123. data/src/lib/cairo/constants.rb +3 -1
  124. data/src/libruby-cairo.a +0 -0
  125. data/src/rb_cairo.c +2 -2
  126. data/src/rb_cairo.h +5 -5
  127. data/src/rb_cairo_constants.c +12 -19
  128. data/src/rb_cairo_context.c +25 -21
  129. data/src/rb_cairo_font_face.c +44 -29
  130. data/src/rb_cairo_font_options.c +1 -23
  131. data/src/rb_cairo_scaled_font.c +5 -5
  132. data/test/test_constants.rb +6 -9
  133. data/test/test_context.rb +0 -12
  134. data/test/test_font_face.rb +7 -7
  135. data/test/test_font_options.rb +2 -21
  136. data/test/test_scaled_font.rb +3 -3
  137. data/test/test_text_to_glyphs_data.rb +19 -15
  138. metadata +68 -45
  139. data/cairo/make/cairo-1.6.4-2.sh +0 -55
  140. data/cairo/make/libpng-1.2.29.sh +0 -35
  141. data/cairo/manifest/cairo-1.6.4-2.mft +0 -6
  142. data/cairo/manifest/cairo-dev-1.6.4-2.mft +0 -72
  143. data/cairo/manifest/libpng-1.2.29.mft +0 -2
  144. data/cairo/share/gtk-doc/html/cairo/Drawing.html +0 -53
  145. data/cairo/share/gtk-doc/html/cairo/Fonts.html +0 -56
  146. data/cairo/share/gtk-doc/html/cairo/Support.html +0 -50
  147. data/cairo/share/gtk-doc/html/cairo/Surfaces.html +0 -65
  148. data/cairo/share/gtk-doc/html/cairo/cairo-Error-Handling.html +0 -328
  149. data/cairo/share/gtk-doc/html/cairo/cairo-Font-Options.html +0 -720
  150. data/cairo/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +0 -297
  151. data/cairo/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +0 -484
  152. data/cairo/share/gtk-doc/html/cairo/cairo-PNG-Support.html +0 -345
  153. data/cairo/share/gtk-doc/html/cairo/cairo-Patterns.html +0 -1560
  154. data/cairo/share/gtk-doc/html/cairo/cairo-Quartz-Fonts.html +0 -161
  155. data/cairo/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +0 -337
  156. data/cairo/share/gtk-doc/html/cairo/cairo-Scaled-Fonts.html +0 -823
  157. data/cairo/share/gtk-doc/html/cairo/cairo-Text.html +0 -836
  158. data/cairo/share/gtk-doc/html/cairo/cairo-Types.html +0 -143
  159. data/cairo/share/gtk-doc/html/cairo/cairo-Version-Information.html +0 -325
  160. data/cairo/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +0 -381
  161. data/cairo/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +0 -331
  162. data/cairo/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +0 -427
  163. data/cairo/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +0 -995
  164. data/cairo/share/gtk-doc/html/cairo/cairo-cairo-t.html +0 -2795
  165. data/cairo/share/gtk-doc/html/cairo/ix01.html +0 -693
  166. data/doc/en/cairo-lcd-filter.html +0 -39
  167. data/doc/ja/cairo-lcd-filter.html +0 -63
@@ -0,0 +1,153 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <title>Quartz (CGFont) Fonts</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
+ <link rel="start" href="index.html" title="Cairo: A Vector Graphics Library">
8
+ <link rel="up" href="cairo-fonts.html" title="Fonts">
9
+ <link rel="prev" href="cairo-win32-font.html" title="Win32 Fonts">
10
+ <link rel="next" href="cairo-user-font.html" title="User Fonts">
11
+ <meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ <link rel="chapter" href="cairo-drawing.html" title="Drawing">
14
+ <link rel="chapter" href="cairo-fonts.html" title="Fonts">
15
+ <link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
16
+ <link rel="chapter" href="cairo-support.html" title="Utilities">
17
+ <link rel="index" href="index-all.html" title="Index">
18
+ <link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
19
+ <link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
20
+ <link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
21
+ <link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
22
+ <link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
23
+ </head>
24
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
25
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
26
+ <tr valign="middle">
27
+ <td><a accesskey="p" href="cairo-win32-font.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
28
+ <td><a accesskey="u" href="cairo-fonts.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
29
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
30
+ <th width="100%" align="center">Cairo: A Vector Graphics Library</th>
31
+ <td><a accesskey="n" href="cairo-user-font.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
32
+ </tr>
33
+ <tr><td colspan="5" class="shortcuts"><nobr><a href="#cairo-quartz-font.synopsis" class="shortcut">Top</a>
34
+  | 
35
+ <a href="#cairo-quartz-font.description" class="shortcut">Description</a></nobr></td></tr>
36
+ </table>
37
+ <div class="refentry" lang="en">
38
+ <a name="cairo-quartz-font"></a><div class="titlepage"></div>
39
+ <div class="refnamediv"><table width="100%"><tr>
40
+ <td valign="top">
41
+ <h2><span class="refentrytitle"><a name="cairo-quartz-font.top_of_page"></a>Quartz (CGFont) Fonts</span></h2>
42
+ <p>Quartz (CGFont) Fonts — Font support via CGFont on OS X</p>
43
+ </td>
44
+ <td valign="top" align="right"></td>
45
+ </tr></table></div>
46
+ <div class="refsynopsisdiv">
47
+ <a name="cairo-quartz-font.synopsis"></a><h2>Synopsis</h2>
48
+ <pre class="synopsis">
49
+ #define <a class="link" href="cairo-quartz-font.html#CAIRO-HAS-QUARTZ-FONT:CAPS" title="CAIRO_HAS_QUARTZ_FONT">CAIRO_HAS_QUARTZ_FONT</a>
50
+ <a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a>* <a class="link" href="cairo-quartz-font.html#cairo-quartz-font-face-create-for-cgfont" title="cairo_quartz_font_face_create_for_cgfont ()">cairo_quartz_font_face_create_for_cgfont</a>
51
+ (CGFontRef font);
52
+ <a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a>* <a class="link" href="cairo-quartz-font.html#cairo-quartz-font-face-create-for-atsu-font-id" title="cairo_quartz_font_face_create_for_atsu_font_id ()">cairo_quartz_font_face_create_for_atsu_font_id</a>
53
+ (ATSUFontID font_id);
54
+ </pre>
55
+ </div>
56
+ <div class="refsect1" lang="en">
57
+ <a name="cairo-quartz-font.description"></a><h2>Description</h2>
58
+ <p>
59
+ The Quartz font backend is primarily used to render text on Apple
60
+ MacOS X systems. The CGFont API is used for the internal
61
+ implementation of the font backend methods.
62
+ </p>
63
+ </div>
64
+ <div class="refsect1" lang="en">
65
+ <a name="cairo-quartz-font.details"></a><h2>Details</h2>
66
+ <div class="refsect2" lang="en">
67
+ <a name="CAIRO-HAS-QUARTZ-FONT:CAPS"></a><h3>CAIRO_HAS_QUARTZ_FONT</h3>
68
+ <pre class="programlisting">#define CAIRO_HAS_QUARTZ_FONT 1
69
+ </pre>
70
+ <p>
71
+ Defined if the Quartz font backend is available.
72
+ This macro can be used to conditionally compile backend-specific code.
73
+ </p>
74
+ </div>
75
+ <hr>
76
+ <div class="refsect2" lang="en">
77
+ <a name="cairo-quartz-font-face-create-for-cgfont"></a><h3>cairo_quartz_font_face_create_for_cgfont ()</h3>
78
+ <pre class="programlisting"><a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a>* cairo_quartz_font_face_create_for_cgfont
79
+ (CGFontRef font);</pre>
80
+ <p>
81
+ Creates a new font for the Quartz font backend based on a
82
+ <span class="type">CGFontRef</span>. This font can then be used with
83
+ <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> or <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a>.</p>
84
+ <p>
85
+
86
+ </p>
87
+ <div class="variablelist"><table border="0">
88
+ <col align="left" valign="top">
89
+ <tbody>
90
+ <tr>
91
+ <td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
92
+ <td> a <span class="type">CGFontRef</span> obtained through a method external to cairo.
93
+ </td>
94
+ </tr>
95
+ <tr>
96
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
97
+ <td> a newly created <a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>. Free with
98
+ <a class="link" href="cairo-font-face.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.
99
+
100
+ </td>
101
+ </tr>
102
+ </tbody>
103
+ </table></div>
104
+ <p class="since">Since 1.6
105
+ </p>
106
+ </div>
107
+ <hr>
108
+ <div class="refsect2" lang="en">
109
+ <a name="cairo-quartz-font-face-create-for-atsu-font-id"></a><h3>cairo_quartz_font_face_create_for_atsu_font_id ()</h3>
110
+ <pre class="programlisting"><a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a>* cairo_quartz_font_face_create_for_atsu_font_id
111
+ (ATSUFontID font_id);</pre>
112
+ <p>
113
+ Creates a new font for the Quartz font backend based on an
114
+ <span class="type">ATSUFontID</span>. This font can then be used with
115
+ <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> or <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a>.</p>
116
+ <p>
117
+
118
+ </p>
119
+ <div class="variablelist"><table border="0">
120
+ <col align="left" valign="top">
121
+ <tbody>
122
+ <tr>
123
+ <td><p><span class="term"><em class="parameter"><code>font_id</code></em> :</span></p></td>
124
+ <td> an ATSUFontID for the font.
125
+ </td>
126
+ </tr>
127
+ <tr>
128
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
129
+ <td> a newly created <a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>. Free with
130
+ <a class="link" href="cairo-font-face.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.
131
+
132
+ </td>
133
+ </tr>
134
+ </tbody>
135
+ </table></div>
136
+ <p class="since">Since 1.6
137
+ </p>
138
+ </div>
139
+ </div>
140
+ <div class="refsect1" lang="en">
141
+ <a name="cairo-quartz-font.see-also"></a><h2>See Also</h2>
142
+ <p>
143
+ </p>
144
+ <div class="itemizedlist"><ul type="disc"><li><a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a></li></ul></div>
145
+ <p>
146
+ </p>
147
+ </div>
148
+ </div>
149
+ <div class="footer">
150
+ <hr>
151
+ Generated by GTK-Doc V1.10</div>
152
+ </body>
153
+ </html>
@@ -1,89 +1,84 @@
1
1
  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
2
  <html>
3
3
  <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
  <title>Quartz Surfaces</title>
6
6
  <meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
7
  <link rel="start" href="index.html" title="Cairo: A Vector Graphics Library">
8
- <link rel="up" href="Surfaces.html" title="Surfaces">
9
- <link rel="prev" href="cairo-SVG-Surfaces.html" title="SVG Surfaces">
10
- <link rel="next" href="cairo-XLib-Surfaces.html" title="XLib Surfaces">
11
- <meta name="generator" content="GTK-Doc V1.9 (XML mode)">
8
+ <link rel="up" href="cairo-surfaces.html" title="Surfaces">
9
+ <link rel="prev" href="cairo-svg-surface.html" title="SVG Surfaces">
10
+ <link rel="next" href="cairo-xlib-surface.html" title="XLib Surfaces">
11
+ <meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12
12
  <link rel="stylesheet" href="style.css" type="text/css">
13
- <link rel="chapter" href="Drawing.html" title="Drawing">
14
- <link rel="chapter" href="Fonts.html" title="Fonts">
15
- <link rel="chapter" href="Surfaces.html" title="Surfaces">
16
- <link rel="chapter" href="Support.html" title="Utilities">
17
- <link rel="index" href="ix01.html" title="Index">
13
+ <link rel="chapter" href="cairo-drawing.html" title="Drawing">
14
+ <link rel="chapter" href="cairo-fonts.html" title="Fonts">
15
+ <link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
16
+ <link rel="chapter" href="cairo-support.html" title="Utilities">
17
+ <link rel="index" href="index-all.html" title="Index">
18
18
  <link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
19
19
  <link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
20
20
  <link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
21
- <link rel="appendix" href="language-bindings.html" title="Appendix&#160;A.&#160;Creating a language binding for cairo">
21
+ <link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
22
+ <link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
22
23
  </head>
23
24
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
24
25
  <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
25
26
  <tr valign="middle">
26
- <td><a accesskey="p" href="cairo-SVG-Surfaces.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
27
- <td><a accesskey="u" href="Surfaces.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
27
+ <td><a accesskey="p" href="cairo-svg-surface.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
28
+ <td><a accesskey="u" href="cairo-surfaces.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
28
29
  <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
29
30
  <th width="100%" align="center">Cairo: A Vector Graphics Library</th>
30
- <td><a accesskey="n" href="cairo-XLib-Surfaces.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
31
+ <td><a accesskey="n" href="cairo-xlib-surface.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
31
32
  </tr>
32
- <tr><td colspan="5" class="shortcuts"><nobr><a href="#id2600152" class="shortcut">Top</a>
33
- &#160;|&#160;
34
- <a href="#id2658109" class="shortcut">Description</a></nobr></td></tr>
33
+ <tr><td colspan="5" class="shortcuts"><nobr><a href="#cairo-quartz-surface.synopsis" class="shortcut">Top</a>
34
+  | 
35
+ <a href="#cairo-quartz-surface.description" class="shortcut">Description</a></nobr></td></tr>
35
36
  </table>
36
37
  <div class="refentry" lang="en">
37
- <a name="cairo-Quartz-Surfaces"></a><div class="titlepage"></div>
38
+ <a name="cairo-quartz-surface"></a><div class="titlepage"></div>
38
39
  <div class="refnamediv"><table width="100%"><tr>
39
40
  <td valign="top">
40
- <h2>
41
- <a name="id2600152"></a><span class="refentrytitle">Quartz Surfaces</span>
42
- </h2>
43
- <p>Quartz Surfaces &#8212; Rendering to Quartz surfaces</p>
41
+ <h2><span class="refentrytitle"><a name="cairo-quartz-surface.top_of_page"></a>Quartz Surfaces</span></h2>
42
+ <p>Quartz Surfaces — Rendering to Quartz surfaces</p>
44
43
  </td>
45
44
  <td valign="top" align="right"></td>
46
45
  </tr></table></div>
47
46
  <div class="refsynopsisdiv">
48
- <h2>Synopsis</h2>
47
+ <a name="cairo-quartz-surface.synopsis"></a><h2>Synopsis</h2>
49
48
  <pre class="synopsis">
50
-
51
-
52
-
53
- #define <a class="link" href="cairo-Quartz-Surfaces.html#CAIRO-HAS-QUARTZ-SURFACE:CAPS">CAIRO_HAS_QUARTZ_SURFACE</a>
54
- <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-Quartz-Surfaces.html#cairo-quartz-surface-create">cairo_quartz_surface_create</a> (<a class="link" href="cairo-Image-Surfaces.html#cairo-format-t">cairo_format_t</a> format,
49
+ #define <a class="link" href="cairo-quartz-surface.html#CAIRO-HAS-QUARTZ-SURFACE:CAPS" title="CAIRO_HAS_QUARTZ_SURFACE">CAIRO_HAS_QUARTZ_SURFACE</a>
50
+ <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a>* <a class="link" href="cairo-quartz-surface.html#cairo-quartz-surface-create" title="cairo_quartz_surface_create ()">cairo_quartz_surface_create</a> (<a class="link" href="cairo-image-surface.html#cairo-format-t" title="enum cairo_format_t">cairo_format_t</a> format,
55
51
  unsigned int width,
56
52
  unsigned int height);
57
- <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-Quartz-Surfaces.html#cairo-quartz-surface-create-for-cg-context">cairo_quartz_surface_create_for_cg_context</a>
53
+ <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a>* <a class="link" href="cairo-quartz-surface.html#cairo-quartz-surface-create-for-cg-context" title="cairo_quartz_surface_create_for_cg_context ()">cairo_quartz_surface_create_for_cg_context</a>
58
54
  (CGContextRef cgContext,
59
55
  unsigned int width,
60
56
  unsigned int height);
61
- CGContextRef <a class="link" href="cairo-Quartz-Surfaces.html#cairo-quartz-surface-get-cg-context">cairo_quartz_surface_get_cg_context</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);
57
+ CGContextRef <a class="link" href="cairo-quartz-surface.html#cairo-quartz-surface-get-cg-context" title="cairo_quartz_surface_get_cg_context ()">cairo_quartz_surface_get_cg_context</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
62
58
  </pre>
63
59
  </div>
64
60
  <div class="refsect1" lang="en">
65
- <a name="id2658109"></a><h2>Description</h2>
61
+ <a name="cairo-quartz-surface.description"></a><h2>Description</h2>
66
62
  <p>
67
63
  The Quartz surface is used to render cairo graphics targeting the
68
64
  Apple OS X Quartz rendering system.
69
65
  </p>
70
66
  </div>
71
67
  <div class="refsect1" lang="en">
72
- <a name="id2658126"></a><h2>Details</h2>
68
+ <a name="cairo-quartz-surface.details"></a><h2>Details</h2>
73
69
  <div class="refsect2" lang="en">
74
- <a name="id2658137"></a><h3>
75
- <a name="CAIRO-HAS-QUARTZ-SURFACE:CAPS"></a>CAIRO_HAS_QUARTZ_SURFACE</h3>
76
- <a class="indexterm" name="id2658148"></a><pre class="programlisting">#define CAIRO_HAS_QUARTZ_SURFACE 1
70
+ <a name="CAIRO-HAS-QUARTZ-SURFACE:CAPS"></a><h3>CAIRO_HAS_QUARTZ_SURFACE</h3>
71
+ <pre class="programlisting">#define CAIRO_HAS_QUARTZ_SURFACE 1
77
72
  </pre>
78
73
  <p>
79
-
74
+ Defined if the Quartz surface backend is available.
75
+ This macro can be used to conditionally compile backend-specific code.
80
76
  </p>
81
77
  </div>
82
78
  <hr>
83
79
  <div class="refsect2" lang="en">
84
- <a name="id2667279"></a><h3>
85
- <a name="cairo-quartz-surface-create"></a>cairo_quartz_surface_create ()</h3>
86
- <a class="indexterm" name="id2667293"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_quartz_surface_create (<a class="link" href="cairo-Image-Surfaces.html#cairo-format-t">cairo_format_t</a> format,
80
+ <a name="cairo-quartz-surface-create"></a><h3>cairo_quartz_surface_create ()</h3>
81
+ <pre class="programlisting"><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a>* cairo_quartz_surface_create (<a class="link" href="cairo-image-surface.html#cairo-format-t" title="enum cairo_format_t">cairo_format_t</a> format,
87
82
  unsigned int width,
88
83
  unsigned int height);</pre>
89
84
  <p>
@@ -98,22 +93,22 @@ rendering, will succeed on this surface.</p>
98
93
  <col align="left" valign="top">
99
94
  <tbody>
100
95
  <tr>
101
- <td><p><span class="term"><em class="parameter"><code>format</code></em>&#160;:</span></p></td>
96
+ <td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
102
97
  <td> format of pixels in the surface to create
103
98
  </td>
104
99
  </tr>
105
100
  <tr>
106
- <td><p><span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></p></td>
101
+ <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
107
102
  <td> width of the surface, in pixels
108
103
  </td>
109
104
  </tr>
110
105
  <tr>
111
- <td><p><span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></p></td>
106
+ <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
112
107
  <td> height of the surface, in pixels
113
108
  </td>
114
109
  </tr>
115
110
  <tr>
116
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
111
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
117
112
  <td> the newly created surface.
118
113
 
119
114
  </td>
@@ -125,9 +120,8 @@ rendering, will succeed on this surface.</p>
125
120
  </div>
126
121
  <hr>
127
122
  <div class="refsect2" lang="en">
128
- <a name="id2656409"></a><h3>
129
- <a name="cairo-quartz-surface-create-for-cg-context"></a>cairo_quartz_surface_create_for_cg_context ()</h3>
130
- <a class="indexterm" name="id2656423"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_quartz_surface_create_for_cg_context
123
+ <a name="cairo-quartz-surface-create-for-cg-context"></a><h3>cairo_quartz_surface_create_for_cg_context ()</h3>
124
+ <pre class="programlisting"><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a>* cairo_quartz_surface_create_for_cg_context
131
125
  (CGContextRef cgContext,
132
126
  unsigned int width,
133
127
  unsigned int height);</pre>
@@ -158,22 +152,22 @@ as long as Quartz-compatible elements are used (such as Quartz fonts).</p>
158
152
  <col align="left" valign="top">
159
153
  <tbody>
160
154
  <tr>
161
- <td><p><span class="term"><em class="parameter"><code>cgContext</code></em>&#160;:</span></p></td>
155
+ <td><p><span class="term"><em class="parameter"><code>cgContext</code></em> :</span></p></td>
162
156
  <td> the existing CGContext for which to create the surface
163
157
  </td>
164
158
  </tr>
165
159
  <tr>
166
- <td><p><span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></p></td>
160
+ <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
167
161
  <td> width of the surface, in pixels
168
162
  </td>
169
163
  </tr>
170
164
  <tr>
171
- <td><p><span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></p></td>
165
+ <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
172
166
  <td> height of the surface, in pixels
173
167
  </td>
174
168
  </tr>
175
169
  <tr>
176
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
170
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
177
171
  <td> the newly created Cairo surface.
178
172
 
179
173
  </td>
@@ -185,9 +179,8 @@ as long as Quartz-compatible elements are used (such as Quartz fonts).</p>
185
179
  </div>
186
180
  <hr>
187
181
  <div class="refsect2" lang="en">
188
- <a name="id2665348"></a><h3>
189
- <a name="cairo-quartz-surface-get-cg-context"></a>cairo_quartz_surface_get_cg_context ()</h3>
190
- <a class="indexterm" name="id2665362"></a><pre class="programlisting">CGContextRef cairo_quartz_surface_get_cg_context (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);</pre>
182
+ <a name="cairo-quartz-surface-get-cg-context"></a><h3>cairo_quartz_surface_get_cg_context ()</h3>
183
+ <pre class="programlisting">CGContextRef cairo_quartz_surface_get_cg_context (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
191
184
  <p>
192
185
  Returns the CGContextRef that the given Quartz surface is backed
193
186
  by.</p>
@@ -198,12 +191,12 @@ by.</p>
198
191
  <col align="left" valign="top">
199
192
  <tbody>
200
193
  <tr>
201
- <td><p><span class="term"><em class="parameter"><code>surface</code></em>&#160;:</span></p></td>
194
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
202
195
  <td> the Cairo Quartz surface
203
196
  </td>
204
197
  </tr>
205
198
  <tr>
206
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
199
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
207
200
  <td> the CGContextRef for the given surface.
208
201
 
209
202
  </td>
@@ -215,18 +208,16 @@ by.</p>
215
208
  </div>
216
209
  </div>
217
210
  <div class="refsect1" lang="en">
218
- <a name="id2665930"></a><h2>See Also</h2>
211
+ <a name="cairo-quartz-surface.see-also"></a><h2>See Also</h2>
219
212
  <p>
220
213
  </p>
221
- <div class="itemizedlist"><ul type="disc"><li><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a></li></ul></div>
214
+ <div class="itemizedlist"><ul type="disc"><li><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a></li></ul></div>
222
215
  <p>
223
216
  </p>
224
217
  </div>
225
- <div class="refsect1" lang="en">
226
- <a name="id2665954"></a><div class="refsect2" lang="en"><a name="id2665955"></a></div>
227
- <hr>
228
- <div class="refsect2" lang="en"><a name="id2665956"></a></div>
229
- </div>
230
218
  </div>
219
+ <div class="footer">
220
+ <hr>
221
+ Generated by GTK-Doc V1.10</div>
231
222
  </body>
232
223
  </html>
@@ -0,0 +1,1051 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <title>cairo_scaled_font_t</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
+ <link rel="start" href="index.html" title="Cairo: A Vector Graphics Library">
8
+ <link rel="up" href="cairo-fonts.html" title="Fonts">
9
+ <link rel="prev" href="cairo-font-face.html" title="cairo_font_face_t">
10
+ <link rel="next" href="cairo-font-options.html" title="cairo_font_options_t">
11
+ <meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ <link rel="chapter" href="cairo-drawing.html" title="Drawing">
14
+ <link rel="chapter" href="cairo-fonts.html" title="Fonts">
15
+ <link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
16
+ <link rel="chapter" href="cairo-support.html" title="Utilities">
17
+ <link rel="index" href="index-all.html" title="Index">
18
+ <link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
19
+ <link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
20
+ <link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
21
+ <link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
22
+ <link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
23
+ </head>
24
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
25
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
26
+ <tr valign="middle">
27
+ <td><a accesskey="p" href="cairo-font-face.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
28
+ <td><a accesskey="u" href="cairo-fonts.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
29
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
30
+ <th width="100%" align="center">Cairo: A Vector Graphics Library</th>
31
+ <td><a accesskey="n" href="cairo-font-options.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
32
+ </tr>
33
+ <tr><td colspan="5" class="shortcuts"><nobr><a href="#cairo-scaled-font.synopsis" class="shortcut">Top</a>
34
+  | 
35
+ <a href="#cairo-scaled-font.description" class="shortcut">Description</a></nobr></td></tr>
36
+ </table>
37
+ <div class="refentry" lang="en">
38
+ <a name="cairo-scaled-font"></a><div class="titlepage"></div>
39
+ <div class="refnamediv"><table width="100%"><tr>
40
+ <td valign="top">
41
+ <h2><span class="refentrytitle"><a name="cairo-scaled-font.top_of_page"></a>cairo_scaled_font_t</span></h2>
42
+ <p>cairo_scaled_font_t — Font face at particular size and options</p>
43
+ </td>
44
+ <td valign="top" align="right"></td>
45
+ </tr></table></div>
46
+ <div class="refsynopsisdiv">
47
+ <a name="cairo-scaled-font.synopsis"></a><h2>Synopsis</h2>
48
+ <pre class="synopsis">
49
+ typedef <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a>;
50
+ <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a>* <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()">cairo_scaled_font_create</a> (<a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a> *font_face,
51
+ const <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *font_matrix,
52
+ const <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *ctm,
53
+ const <a class="link" href="cairo-font-options.html#cairo-font-options-t" title="cairo_font_options_t">cairo_font_options_t</a> *options);
54
+ <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a>* <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-reference" title="cairo_scaled_font_reference ()">cairo_scaled_font_reference</a> (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font);
55
+ void <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-destroy" title="cairo_scaled_font_destroy ()">cairo_scaled_font_destroy</a> (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font);
56
+ <a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-status" title="cairo_scaled_font_status ()">cairo_scaled_font_status</a> (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font);
57
+ <a class="link" href="cairo-scaled-font.html#cairo-font-extents-t" title="cairo_font_extents_t">cairo_font_extents_t</a>;
58
+ void <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-extents" title="cairo_scaled_font_extents ()">cairo_scaled_font_extents</a> (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
59
+ <a class="link" href="cairo-scaled-font.html#cairo-font-extents-t" title="cairo_font_extents_t">cairo_font_extents_t</a> *extents);
60
+ <a class="link" href="cairo-scaled-font.html#cairo-text-extents-t" title="cairo_text_extents_t">cairo_text_extents_t</a>;
61
+ void <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-text-extents" title="cairo_scaled_font_text_extents ()">cairo_scaled_font_text_extents</a> (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
62
+ const char *utf8,
63
+ <a class="link" href="cairo-scaled-font.html#cairo-text-extents-t" title="cairo_text_extents_t">cairo_text_extents_t</a> *extents);
64
+ void <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-glyph-extents" title="cairo_scaled_font_glyph_extents ()">cairo_scaled_font_glyph_extents</a> (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
65
+ const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t">cairo_glyph_t</a> *glyphs,
66
+ int num_glyphs,
67
+ <a class="link" href="cairo-scaled-font.html#cairo-text-extents-t" title="cairo_text_extents_t">cairo_text_extents_t</a> *extents);
68
+ <a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-text-to-glyphs" title="cairo_scaled_font_text_to_glyphs ()">cairo_scaled_font_text_to_glyphs</a> (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
69
+ double x,
70
+ double y,
71
+ const char *utf8,
72
+ int utf8_len,
73
+ <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t">cairo_glyph_t</a> **glyphs,
74
+ int *num_glyphs,
75
+ <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t">cairo_text_cluster_t</a> **clusters,
76
+ int *num_clusters,
77
+ <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> *cluster_flags);
78
+ <a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a>* <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-get-font-face" title="cairo_scaled_font_get_font_face ()">cairo_scaled_font_get_font_face</a> (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font);
79
+ void <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-get-font-options" title="cairo_scaled_font_get_font_options ()">cairo_scaled_font_get_font_options</a> (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
80
+ <a class="link" href="cairo-font-options.html#cairo-font-options-t" title="cairo_font_options_t">cairo_font_options_t</a> *options);
81
+ void <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-get-font-matrix" title="cairo_scaled_font_get_font_matrix ()">cairo_scaled_font_get_font_matrix</a> (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
82
+ <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *font_matrix);
83
+ void <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-get-ctm" title="cairo_scaled_font_get_ctm ()">cairo_scaled_font_get_ctm</a> (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
84
+ <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *ctm);
85
+ void <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-get-scale-matrix" title="cairo_scaled_font_get_scale_matrix ()">cairo_scaled_font_get_scale_matrix</a> (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
86
+ <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *scale_matrix);
87
+ <a class="link" href="cairo-font-face.html#cairo-font-type-t" title="enum cairo_font_type_t">cairo_font_type_t</a> <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-get-type" title="cairo_scaled_font_get_type ()">cairo_scaled_font_get_type</a> (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font);
88
+ unsigned int <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-get-reference-count" title="cairo_scaled_font_get_reference_count ()">cairo_scaled_font_get_reference_count</a>
89
+ (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font);
90
+ <a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-set-user-data" title="cairo_scaled_font_set_user_data ()">cairo_scaled_font_set_user_data</a> (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
91
+ const <a class="link" href="cairo-types.html#cairo-user-data-key-t" title="cairo_user_data_key_t">cairo_user_data_key_t</a> *key,
92
+ void *user_data,
93
+ <a class="link" href="cairo-types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()">cairo_destroy_func_t</a> destroy);
94
+ void* <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-get-user-data" title="cairo_scaled_font_get_user_data ()">cairo_scaled_font_get_user_data</a> (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
95
+ const <a class="link" href="cairo-types.html#cairo-user-data-key-t" title="cairo_user_data_key_t">cairo_user_data_key_t</a> *key);
96
+ </pre>
97
+ </div>
98
+ <div class="refsect1" lang="en">
99
+ <a name="cairo-scaled-font.description"></a><h2>Description</h2>
100
+ <p>
101
+ <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> represents a realization of a font face at a particular
102
+ size and transformation and a certain set of font options.
103
+ </p>
104
+ </div>
105
+ <div class="refsect1" lang="en">
106
+ <a name="cairo-scaled-font.details"></a><h2>Details</h2>
107
+ <div class="refsect2" lang="en">
108
+ <a name="cairo-scaled-font-t"></a><h3>cairo_scaled_font_t</h3>
109
+ <pre class="programlisting">typedef struct _cairo_scaled_font cairo_scaled_font_t;
110
+ </pre>
111
+ <p>
112
+ A <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> is a font scaled to a particular size and device
113
+ resolution. A <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> is most useful for low-level font
114
+ usage where a library or application wants to cache a reference
115
+ to a scaled font to speed up the computation of metrics.
116
+ </p>
117
+ <p>
118
+ There are various types of scaled fonts, depending on the
119
+ <em class="firstterm">font backend</em> they use. The type of a
120
+ scaled font can be queried using <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-get-type" title="cairo_scaled_font_get_type ()"><code class="function">cairo_scaled_font_get_type()</code></a>.
121
+ </p>
122
+ <p>
123
+ Memory management of <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> is done with
124
+ <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-reference" title="cairo_scaled_font_reference ()"><code class="function">cairo_scaled_font_reference()</code></a> and <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-destroy" title="cairo_scaled_font_destroy ()"><code class="function">cairo_scaled_font_destroy()</code></a>.</p>
125
+ <p>
126
+
127
+ </p>
128
+ </div>
129
+ <hr>
130
+ <div class="refsect2" lang="en">
131
+ <a name="cairo-scaled-font-create"></a><h3>cairo_scaled_font_create ()</h3>
132
+ <pre class="programlisting"><a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a>* cairo_scaled_font_create (<a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a> *font_face,
133
+ const <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *font_matrix,
134
+ const <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *ctm,
135
+ const <a class="link" href="cairo-font-options.html#cairo-font-options-t" title="cairo_font_options_t">cairo_font_options_t</a> *options);</pre>
136
+ <p>
137
+ Creates a <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> object from a font face and matrices that
138
+ describe the size of the font and the environment in which it will
139
+ be used.</p>
140
+ <p>
141
+
142
+ </p>
143
+ <div class="variablelist"><table border="0">
144
+ <col align="left" valign="top">
145
+ <tbody>
146
+ <tr>
147
+ <td><p><span class="term"><em class="parameter"><code>font_face</code></em> :</span></p></td>
148
+ <td> a <a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>
149
+ </td>
150
+ </tr>
151
+ <tr>
152
+ <td><p><span class="term"><em class="parameter"><code>font_matrix</code></em> :</span></p></td>
153
+ <td> font space to user space transformation matrix for the
154
+ font. In the simplest case of a N point font, this matrix is
155
+ just a scale by N, but it can also be used to shear the font
156
+ or stretch it unequally along the two axes. See
157
+ <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>.
158
+ </td>
159
+ </tr>
160
+ <tr>
161
+ <td><p><span class="term"><em class="parameter"><code>ctm</code></em> :</span></p></td>
162
+ <td> user to device transformation matrix with which the font will
163
+ be used.
164
+ </td>
165
+ </tr>
166
+ <tr>
167
+ <td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
168
+ <td> options to use when getting metrics for the font and
169
+ rendering with it. A <code class="literal">NULL</code> pointer will be interpreted as
170
+ meaning the default options.
171
+ </td>
172
+ </tr>
173
+ <tr>
174
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
175
+ <td> a newly created <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>. Destroy with
176
+ <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-destroy" title="cairo_scaled_font_destroy ()"><code class="function">cairo_scaled_font_destroy()</code></a>
177
+ </td>
178
+ </tr>
179
+ </tbody>
180
+ </table></div>
181
+ </div>
182
+ <hr>
183
+ <div class="refsect2" lang="en">
184
+ <a name="cairo-scaled-font-reference"></a><h3>cairo_scaled_font_reference ()</h3>
185
+ <pre class="programlisting"><a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a>* cairo_scaled_font_reference (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font);</pre>
186
+ <p>
187
+ Increases the reference count on <em class="parameter"><code>scaled_font</code></em> by one. This prevents
188
+ <em class="parameter"><code>scaled_font</code></em> from being destroyed until a matching call to
189
+ <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-destroy" title="cairo_scaled_font_destroy ()"><code class="function">cairo_scaled_font_destroy()</code></a> is made.
190
+ </p>
191
+ <p>
192
+ The number of references to a <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> can be get using
193
+ <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-get-reference-count" title="cairo_scaled_font_get_reference_count ()"><code class="function">cairo_scaled_font_get_reference_count()</code></a>.</p>
194
+ <p>
195
+
196
+ </p>
197
+ <div class="variablelist"><table border="0">
198
+ <col align="left" valign="top">
199
+ <tbody>
200
+ <tr>
201
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
202
+ <td> a <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>, (may be <code class="literal">NULL</code> in which case
203
+ this function does nothing)
204
+ </td>
205
+ </tr>
206
+ <tr>
207
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
208
+ <td> the referenced <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
209
+ </td>
210
+ </tr>
211
+ </tbody>
212
+ </table></div>
213
+ </div>
214
+ <hr>
215
+ <div class="refsect2" lang="en">
216
+ <a name="cairo-scaled-font-destroy"></a><h3>cairo_scaled_font_destroy ()</h3>
217
+ <pre class="programlisting">void cairo_scaled_font_destroy (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font);</pre>
218
+ <p>
219
+ Decreases the reference count on <em class="parameter"><code>font</code></em> by one. If the result
220
+ is zero, then <em class="parameter"><code>font</code></em> and all associated resources are freed.
221
+ See <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-reference" title="cairo_scaled_font_reference ()"><code class="function">cairo_scaled_font_reference()</code></a>.</p>
222
+ <p>
223
+
224
+ </p>
225
+ <div class="variablelist"><table border="0">
226
+ <col align="left" valign="top">
227
+ <tbody><tr>
228
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
229
+ <td> a <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
230
+ </td>
231
+ </tr></tbody>
232
+ </table></div>
233
+ </div>
234
+ <hr>
235
+ <div class="refsect2" lang="en">
236
+ <a name="cairo-scaled-font-status"></a><h3>cairo_scaled_font_status ()</h3>
237
+ <pre class="programlisting"><a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> cairo_scaled_font_status (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font);</pre>
238
+ <p>
239
+ Checks whether an error has previously occurred for this
240
+ scaled_font.</p>
241
+ <p>
242
+
243
+ </p>
244
+ <div class="variablelist"><table border="0">
245
+ <col align="left" valign="top">
246
+ <tbody>
247
+ <tr>
248
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
249
+ <td> a <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
250
+ </td>
251
+ </tr>
252
+ <tr>
253
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
254
+ <td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a> or another error such as
255
+ <a class="link" href="cairo-error-status.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a>.
256
+ </td>
257
+ </tr>
258
+ </tbody>
259
+ </table></div>
260
+ </div>
261
+ <hr>
262
+ <div class="refsect2" lang="en">
263
+ <a name="cairo-font-extents-t"></a><h3>cairo_font_extents_t</h3>
264
+ <pre class="programlisting">typedef struct {
265
+ double ascent;
266
+ double descent;
267
+ double height;
268
+ double max_x_advance;
269
+ double max_y_advance;
270
+ } cairo_font_extents_t;
271
+ </pre>
272
+ <p>
273
+ The <a class="link" href="cairo-scaled-font.html#cairo-font-extents-t" title="cairo_font_extents_t"><span class="type">cairo_font_extents_t</span></a> structure stores metric information for
274
+ a font. Values are given in the current user-space coordinate
275
+ system.
276
+ </p>
277
+ <p>
278
+ Because font metrics are in user-space coordinates, they are
279
+ mostly, but not entirely, independent of the current transformation
280
+ matrix. If you call <code class="literal">cairo_scale(cr, 2.0, 2.0)</code>,
281
+ text will be drawn twice as big, but the reported text extents will
282
+ not be doubled. They will change slightly due to hinting (so you
283
+ can't assume that metrics are independent of the transformation
284
+ matrix), but otherwise will remain unchanged.</p>
285
+ <p>
286
+
287
+ </p>
288
+ <div class="variablelist"><table border="0">
289
+ <col align="left" valign="top">
290
+ <tbody>
291
+ <tr>
292
+ <td><p><span class="term">double <em class="structfield"><code>ascent</code></em>;</span></p></td>
293
+ <td> the distance that the font extends above the baseline.
294
+ Note that this is not always exactly equal to the maximum
295
+ of the extents of all the glyphs in the font, but rather
296
+ is picked to express the font designer's intent as to
297
+ how the font should align with elements above it.
298
+ </td>
299
+ </tr>
300
+ <tr>
301
+ <td><p><span class="term">double <em class="structfield"><code>descent</code></em>;</span></p></td>
302
+ <td> the distance that the font extends below the baseline.
303
+ This value is positive for typical fonts that include
304
+ portions below the baseline. Note that this is not always
305
+ exactly equal to the maximum of the extents of all the
306
+ glyphs in the font, but rather is picked to express the
307
+ font designer's intent as to how the the font should
308
+ align with elements below it.
309
+ </td>
310
+ </tr>
311
+ <tr>
312
+ <td><p><span class="term">double <em class="structfield"><code>height</code></em>;</span></p></td>
313
+ <td> the recommended vertical distance between baselines when
314
+ setting consecutive lines of text with the font. This
315
+ is greater than <em class="parameter"><code>ascent</code></em>+<em class="parameter"><code>descent</code></em> by a
316
+ quantity known as the <em class="firstterm">line spacing</em>
317
+ or <em class="firstterm">external leading</em>. When space
318
+ is at a premium, most fonts can be set with only
319
+ a distance of <em class="parameter"><code>ascent</code></em>+<em class="parameter"><code>descent</code></em> between lines.
320
+ </td>
321
+ </tr>
322
+ <tr>
323
+ <td><p><span class="term">double <em class="structfield"><code>max_x_advance</code></em>;</span></p></td>
324
+ <td> the maximum distance in the X direction that
325
+ the the origin is advanced for any glyph in the font.
326
+ </td>
327
+ </tr>
328
+ <tr>
329
+ <td><p><span class="term">double <em class="structfield"><code>max_y_advance</code></em>;</span></p></td>
330
+ <td> the maximum distance in the Y direction that
331
+ the the origin is advanced for any glyph in the font.
332
+ this will be zero for normal fonts used for horizontal
333
+ writing. (The scripts of East Asia are sometimes written
334
+ vertically.)
335
+ </td>
336
+ </tr>
337
+ </tbody>
338
+ </table></div>
339
+ </div>
340
+ <hr>
341
+ <div class="refsect2" lang="en">
342
+ <a name="cairo-scaled-font-extents"></a><h3>cairo_scaled_font_extents ()</h3>
343
+ <pre class="programlisting">void cairo_scaled_font_extents (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
344
+ <a class="link" href="cairo-scaled-font.html#cairo-font-extents-t" title="cairo_font_extents_t">cairo_font_extents_t</a> *extents);</pre>
345
+ <p>
346
+ Gets the metrics for a <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>.</p>
347
+ <p>
348
+
349
+ </p>
350
+ <div class="variablelist"><table border="0">
351
+ <col align="left" valign="top">
352
+ <tbody>
353
+ <tr>
354
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
355
+ <td> a <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
356
+ </td>
357
+ </tr>
358
+ <tr>
359
+ <td><p><span class="term"><em class="parameter"><code>extents</code></em> :</span></p></td>
360
+ <td> a <a class="link" href="cairo-scaled-font.html#cairo-font-extents-t" title="cairo_font_extents_t"><span class="type">cairo_font_extents_t</span></a> which to store the retrieved extents.
361
+ </td>
362
+ </tr>
363
+ </tbody>
364
+ </table></div>
365
+ </div>
366
+ <hr>
367
+ <div class="refsect2" lang="en">
368
+ <a name="cairo-text-extents-t"></a><h3>cairo_text_extents_t</h3>
369
+ <pre class="programlisting">typedef struct {
370
+ double x_bearing;
371
+ double y_bearing;
372
+ double width;
373
+ double height;
374
+ double x_advance;
375
+ double y_advance;
376
+ } cairo_text_extents_t;
377
+ </pre>
378
+ <p>
379
+ The <a class="link" href="cairo-scaled-font.html#cairo-text-extents-t" title="cairo_text_extents_t"><span class="type">cairo_text_extents_t</span></a> structure stores the extents of a single
380
+ glyph or a string of glyphs in user-space coordinates. Because text
381
+ extents are in user-space coordinates, they are mostly, but not
382
+ entirely, independent of the current transformation matrix. If you call
383
+ <code class="literal">cairo_scale(cr, 2.0, 2.0)</code>, text will
384
+ be drawn twice as big, but the reported text extents will not be
385
+ doubled. They will change slightly due to hinting (so you can't
386
+ assume that metrics are independent of the transformation matrix),
387
+ but otherwise will remain unchanged.</p>
388
+ <p>
389
+
390
+ </p>
391
+ <div class="variablelist"><table border="0">
392
+ <col align="left" valign="top">
393
+ <tbody>
394
+ <tr>
395
+ <td><p><span class="term">double <em class="structfield"><code>x_bearing</code></em>;</span></p></td>
396
+ <td> the horizontal distance from the origin to the
397
+ leftmost part of the glyphs as drawn. Positive if the
398
+ glyphs lie entirely to the right of the origin.
399
+ </td>
400
+ </tr>
401
+ <tr>
402
+ <td><p><span class="term">double <em class="structfield"><code>y_bearing</code></em>;</span></p></td>
403
+ <td> the vertical distance from the origin to the
404
+ topmost part of the glyphs as drawn. Positive only if the
405
+ glyphs lie completely below the origin; will usually be
406
+ negative.
407
+ </td>
408
+ </tr>
409
+ <tr>
410
+ <td><p><span class="term">double <em class="structfield"><code>width</code></em>;</span></p></td>
411
+ <td> width of the glyphs as drawn
412
+ </td>
413
+ </tr>
414
+ <tr>
415
+ <td><p><span class="term">double <em class="structfield"><code>height</code></em>;</span></p></td>
416
+ <td> height of the glyphs as drawn
417
+ </td>
418
+ </tr>
419
+ <tr>
420
+ <td><p><span class="term">double <em class="structfield"><code>x_advance</code></em>;</span></p></td>
421
+ <td>distance to advance in the X direction
422
+ after drawing these glyphs
423
+ </td>
424
+ </tr>
425
+ <tr>
426
+ <td><p><span class="term">double <em class="structfield"><code>y_advance</code></em>;</span></p></td>
427
+ <td> distance to advance in the Y direction
428
+ after drawing these glyphs. Will typically be zero except
429
+ for vertical text layout as found in East-Asian languages.
430
+ </td>
431
+ </tr>
432
+ </tbody>
433
+ </table></div>
434
+ </div>
435
+ <hr>
436
+ <div class="refsect2" lang="en">
437
+ <a name="cairo-scaled-font-text-extents"></a><h3>cairo_scaled_font_text_extents ()</h3>
438
+ <pre class="programlisting">void cairo_scaled_font_text_extents (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
439
+ const char *utf8,
440
+ <a class="link" href="cairo-scaled-font.html#cairo-text-extents-t" title="cairo_text_extents_t">cairo_text_extents_t</a> *extents);</pre>
441
+ <p>
442
+ Gets the extents for a string of text. The extents describe a
443
+ user-space rectangle that encloses the "inked" portion of the text
444
+ drawn at the origin (0,0) (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>
445
+ if the cairo graphics state were set to the same font_face,
446
+ font_matrix, ctm, and font_options as <em class="parameter"><code>scaled_font</code></em>). Additionally,
447
+ the x_advance and y_advance values indicate the amount by which the
448
+ 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>.
449
+ </p>
450
+ <p>
451
+ Note that whitespace characters do not directly contribute to the
452
+ size of the rectangle (extents.width and extents.height). They do
453
+ contribute indirectly by changing the position of non-whitespace
454
+ characters. In particular, trailing whitespace characters are
455
+ likely to not affect the size of the rectangle, though they will
456
+ affect the x_advance and y_advance values.</p>
457
+ <p>
458
+
459
+ </p>
460
+ <div class="variablelist"><table border="0">
461
+ <col align="left" valign="top">
462
+ <tbody>
463
+ <tr>
464
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
465
+ <td> a <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
466
+ </td>
467
+ </tr>
468
+ <tr>
469
+ <td><p><span class="term"><em class="parameter"><code>utf8</code></em> :</span></p></td>
470
+ <td> a NUL-terminated string of text, encoded in UTF-8
471
+ </td>
472
+ </tr>
473
+ <tr>
474
+ <td><p><span class="term"><em class="parameter"><code>extents</code></em> :</span></p></td>
475
+ <td> a <a class="link" href="cairo-scaled-font.html#cairo-text-extents-t" title="cairo_text_extents_t"><span class="type">cairo_text_extents_t</span></a> which to store the retrieved extents.
476
+ </td>
477
+ </tr>
478
+ </tbody>
479
+ </table></div>
480
+ <p class="since">Since 1.2
481
+ </p>
482
+ </div>
483
+ <hr>
484
+ <div class="refsect2" lang="en">
485
+ <a name="cairo-scaled-font-glyph-extents"></a><h3>cairo_scaled_font_glyph_extents ()</h3>
486
+ <pre class="programlisting">void cairo_scaled_font_glyph_extents (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
487
+ const <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t">cairo_glyph_t</a> *glyphs,
488
+ int num_glyphs,
489
+ <a class="link" href="cairo-scaled-font.html#cairo-text-extents-t" title="cairo_text_extents_t">cairo_text_extents_t</a> *extents);</pre>
490
+ <p>
491
+ Gets the extents for an array of glyphs. The extents describe a
492
+ user-space rectangle that encloses the "inked" portion of the
493
+ 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> if the cairo
494
+ graphics state were set to the same font_face, font_matrix, ctm,
495
+ and font_options as <em class="parameter"><code>scaled_font</code></em>). Additionally, the x_advance and
496
+ y_advance values indicate the amount by which the current point
497
+ would be advanced by <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()"><code class="function">cairo_show_glyphs()</code></a>.
498
+ </p>
499
+ <p>
500
+ Note that whitespace glyphs do not contribute to the size of the
501
+ rectangle (extents.width and extents.height).</p>
502
+ <p>
503
+
504
+ </p>
505
+ <div class="variablelist"><table border="0">
506
+ <col align="left" valign="top">
507
+ <tbody>
508
+ <tr>
509
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
510
+ <td> a <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
511
+ </td>
512
+ </tr>
513
+ <tr>
514
+ <td><p><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></p></td>
515
+ <td> an array of glyph IDs with X and Y offsets.
516
+ </td>
517
+ </tr>
518
+ <tr>
519
+ <td><p><span class="term"><em class="parameter"><code>num_glyphs</code></em> :</span></p></td>
520
+ <td> the number of glyphs in the <em class="parameter"><code>glyphs</code></em> array
521
+ </td>
522
+ </tr>
523
+ <tr>
524
+ <td><p><span class="term"><em class="parameter"><code>extents</code></em> :</span></p></td>
525
+ <td> a <a class="link" href="cairo-scaled-font.html#cairo-text-extents-t" title="cairo_text_extents_t"><span class="type">cairo_text_extents_t</span></a> which to store the retrieved extents.
526
+ </td>
527
+ </tr>
528
+ </tbody>
529
+ </table></div>
530
+ </div>
531
+ <hr>
532
+ <div class="refsect2" lang="en">
533
+ <a name="cairo-scaled-font-text-to-glyphs"></a><h3>cairo_scaled_font_text_to_glyphs ()</h3>
534
+ <pre class="programlisting"><a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> cairo_scaled_font_text_to_glyphs (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
535
+ double x,
536
+ double y,
537
+ const char *utf8,
538
+ int utf8_len,
539
+ <a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t">cairo_glyph_t</a> **glyphs,
540
+ int *num_glyphs,
541
+ <a class="link" href="cairo-text.html#cairo-text-cluster-t" title="cairo_text_cluster_t">cairo_text_cluster_t</a> **clusters,
542
+ int *num_clusters,
543
+ <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> *cluster_flags);</pre>
544
+ <p>
545
+ Converts UTF-8 text to an array of glyphs, optionally with cluster
546
+ mapping, that can be used to render later using <em class="parameter"><code>scaled_font</code></em>.
547
+ </p>
548
+ <p>
549
+ If <em class="parameter"><code>glyphs</code></em> initially points to a non-<code class="literal">NULL</code> value, that array is used
550
+ as a glyph buffer, and <em class="parameter"><code>num_glyphs</code></em> should point to the number of glyph
551
+ entries available there. If the provided glyph array is too short for
552
+ the conversion, a new glyph array is allocated using <a class="link" href="cairo-text.html#cairo-glyph-allocate" title="cairo_glyph_allocate ()"><code class="function">cairo_glyph_allocate()</code></a>
553
+ and placed in <em class="parameter"><code>glyphs</code></em>. Upon return, <em class="parameter"><code>num_glyphs</code></em> always contains the
554
+ number of generated glyphs. If the value <em class="parameter"><code>glyphs</code></em> points at has changed
555
+ after the call, the user is responsible for freeing the allocated glyph
556
+ array using <a class="link" href="cairo-text.html#cairo-glyph-free" title="cairo_glyph_free ()"><code class="function">cairo_glyph_free()</code></a>.
557
+ </p>
558
+ <p>
559
+ If <em class="parameter"><code>clusters</code></em> is not <code class="literal">NULL</code>, <em class="parameter"><code>num_clusters</code></em> and <em class="parameter"><code>cluster_flags</code></em> should not be <code class="literal">NULL</code>,
560
+ and cluster mapping will be computed.
561
+ The semantics of how cluster array allocation works is similar to the glyph
562
+ array. That is,
563
+ if <em class="parameter"><code>clusters</code></em> initially points to a non-<code class="literal">NULL</code> value, that array is used
564
+ as a cluster buffer, and <em class="parameter"><code>num_clusters</code></em> should point to the number of cluster
565
+ entries available there. If the provided cluster array is too short for
566
+ the conversion, a new cluster array is 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>
567
+ and placed in <em class="parameter"><code>clusters</code></em>. Upon return, <em class="parameter"><code>num_clusters</code></em> always contains the
568
+ number of generated clusters. If the value <em class="parameter"><code>clusters</code></em> points at has changed
569
+ after the call, the user is responsible for freeing the allocated cluster
570
+ array 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>.
571
+ </p>
572
+ <p>
573
+ In the simplest case, <em class="parameter"><code>glyphs</code></em> and <em class="parameter"><code>clusters</code></em> can point to <code class="literal">NULL</code> initially
574
+ and a suitable array will be allocated. In code:
575
+ </p>
576
+ <div class="informalexample"><pre class="programlisting">
577
+ cairo_status_t status;
578
+
579
+ cairo_glyph_t *glyphs = NULL;
580
+ int num_glyphs;
581
+ cairo_text_cluster_t *clusters = NULL;
582
+ int num_clusters;
583
+ cairo_text_cluster_flags_t cluster_flags;
584
+
585
+ status = cairo_scaled_font_text_to_glyphs (scaled_font,
586
+ x, y,
587
+ utf8, utf8_len,
588
+ &amp;glyphs, &amp;num_glyphs,
589
+ &amp;clusters, &amp;num_clusters, &amp;cluster_flags);
590
+
591
+ if (status == CAIRO_STATUS_SUCCESS) {
592
+ cairo_show_text_glyphs (cr,
593
+ utf8, utf8_len,
594
+ *glyphs, *num_glyphs,
595
+ *clusters, *num_clusters, *cluster_flags);
596
+
597
+ cairo_glyph_free (*glyphs);
598
+ cairo_text_cluster_free (*clusters);
599
+ }
600
+ </pre></div>
601
+ <p>
602
+ </p>
603
+ <p>
604
+ If no cluster mapping is needed:
605
+ </p>
606
+ <div class="informalexample"><pre class="programlisting">
607
+ cairo_status_t status;
608
+
609
+ cairo_glyph_t *glyphs = NULL;
610
+ int num_glyphs;
611
+
612
+ status = cairo_scaled_font_text_to_glyphs (scaled_font,
613
+ x, y,
614
+ utf8, utf8_len,
615
+ &amp;glyphs, &amp;num_glyphs,
616
+ NULL, NULL,
617
+ NULL);
618
+
619
+ if (status == CAIRO_STATUS_SUCCESS) {
620
+ cairo_show_glyphs (cr, *glyphs, *num_glyphs);
621
+ cairo_glyph_free (*glyphs);
622
+ }
623
+ </pre></div>
624
+ <p>
625
+ </p>
626
+ <p>
627
+ If stack-based glyph and cluster arrays are to be used for small
628
+ arrays:
629
+ </p>
630
+ <div class="informalexample"><pre class="programlisting">
631
+ cairo_status_t status;
632
+
633
+ cairo_glyph_t stack_glyphs[40];
634
+ cairo_glyph_t *glyphs = stack_glyphs;
635
+ int num_glyphs = sizeof (stack_glyphs) / sizeof (stack_glyphs[0]);
636
+ cairo_text_cluster_t stack_clusters[40];
637
+ cairo_text_cluster_t *clusters = stack_clusters;
638
+ int num_clusters = sizeof (stack_clusters) / sizeof (stack_clusters[0]);
639
+ cairo_text_cluster_flags_t cluster_flags;
640
+
641
+ status = cairo_scaled_font_text_to_glyphs (scaled_font,
642
+ x, y,
643
+ utf8, utf8_len,
644
+ &amp;glyphs, &amp;num_glyphs,
645
+ &amp;clusters, &amp;num_clusters, &amp;cluster_flags);
646
+
647
+ if (status == CAIRO_STATUS_SUCCESS) {
648
+ cairo_show_text_glyphs (cr,
649
+ utf8, utf8_len,
650
+ *glyphs, *num_glyphs,
651
+ *clusters, *num_clusters, *cluster_flags);
652
+
653
+ if (glyphs != stack_glyphs)
654
+ cairo_glyph_free (*glyphs);
655
+ if (clusters != stack_clusters)
656
+ cairo_text_cluster_free (*clusters);
657
+ }
658
+ </pre></div>
659
+ <p>
660
+ </p>
661
+ <p>
662
+ For details of how <em class="parameter"><code>clusters</code></em>, <em class="parameter"><code>num_clusters</code></em>, and <em class="parameter"><code>cluster_flags</code></em> map input
663
+ UTF-8 text to the output glyphs 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>.
664
+ </p>
665
+ <p>
666
+ The output values can be readily passed to <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>
667
+ <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()"><code class="function">cairo_show_glyphs()</code></a>, or related functions, assuming that the exact
668
+ same <em class="parameter"><code>scaled_font</code></em> is used for the operation.</p>
669
+ <p>
670
+
671
+ </p>
672
+ <div class="variablelist"><table border="0">
673
+ <col align="left" valign="top">
674
+ <tbody>
675
+ <tr>
676
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
677
+ <td> a <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
678
+ </td>
679
+ </tr>
680
+ <tr>
681
+ <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
682
+ <td> X position to place first glyph
683
+ </td>
684
+ </tr>
685
+ <tr>
686
+ <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
687
+ <td> Y position to place first glyph
688
+ </td>
689
+ </tr>
690
+ <tr>
691
+ <td><p><span class="term"><em class="parameter"><code>utf8</code></em> :</span></p></td>
692
+ <td> a string of text encoded in UTF-8
693
+ </td>
694
+ </tr>
695
+ <tr>
696
+ <td><p><span class="term"><em class="parameter"><code>utf8_len</code></em> :</span></p></td>
697
+ <td> length of <em class="parameter"><code>utf8</code></em> in bytes, or -1 if it is NUL-terminated
698
+ </td>
699
+ </tr>
700
+ <tr>
701
+ <td><p><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></p></td>
702
+ <td> pointer to array of glyphs to fill
703
+ </td>
704
+ </tr>
705
+ <tr>
706
+ <td><p><span class="term"><em class="parameter"><code>num_glyphs</code></em> :</span></p></td>
707
+ <td> pointer to number of glyphs
708
+ </td>
709
+ </tr>
710
+ <tr>
711
+ <td><p><span class="term"><em class="parameter"><code>clusters</code></em> :</span></p></td>
712
+ <td> pointer to array of cluster mapping information to fill, or <code class="literal">NULL</code>
713
+ </td>
714
+ </tr>
715
+ <tr>
716
+ <td><p><span class="term"><em class="parameter"><code>num_clusters</code></em> :</span></p></td>
717
+ <td> pointer to number of clusters, or <code class="literal">NULL</code>
718
+ </td>
719
+ </tr>
720
+ <tr>
721
+ <td><p><span class="term"><em class="parameter"><code>cluster_flags</code></em> :</span></p></td>
722
+ <td> pointer to location to store cluster flags corresponding to the
723
+ output <em class="parameter"><code>clusters</code></em>, or <code class="literal">NULL</code>
724
+ </td>
725
+ </tr>
726
+ <tr>
727
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
728
+ <td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a> upon success, or an error status
729
+ if the input values are wrong or if conversion failed. If the input
730
+ values are correct but the conversion failed, the error status is also
731
+ set on <em class="parameter"><code>scaled_font</code></em>.
732
+
733
+ </td>
734
+ </tr>
735
+ </tbody>
736
+ </table></div>
737
+ <p class="since">Since 1.8
738
+ </p>
739
+ </div>
740
+ <hr>
741
+ <div class="refsect2" lang="en">
742
+ <a name="cairo-scaled-font-get-font-face"></a><h3>cairo_scaled_font_get_font_face ()</h3>
743
+ <pre class="programlisting"><a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a>* cairo_scaled_font_get_font_face (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font);</pre>
744
+ <p>
745
+ Gets the font face that this scaled font was created for.</p>
746
+ <p>
747
+
748
+ </p>
749
+ <div class="variablelist"><table border="0">
750
+ <col align="left" valign="top">
751
+ <tbody>
752
+ <tr>
753
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
754
+ <td> a <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
755
+ </td>
756
+ </tr>
757
+ <tr>
758
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
759
+ <td> The <a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> with which <em class="parameter"><code>scaled_font</code></em> was
760
+ created.
761
+
762
+ </td>
763
+ </tr>
764
+ </tbody>
765
+ </table></div>
766
+ <p class="since">Since 1.2
767
+ </p>
768
+ </div>
769
+ <hr>
770
+ <div class="refsect2" lang="en">
771
+ <a name="cairo-scaled-font-get-font-options"></a><h3>cairo_scaled_font_get_font_options ()</h3>
772
+ <pre class="programlisting">void cairo_scaled_font_get_font_options (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
773
+ <a class="link" href="cairo-font-options.html#cairo-font-options-t" title="cairo_font_options_t">cairo_font_options_t</a> *options);</pre>
774
+ <p>
775
+ Stores the font options with which <em class="parameter"><code>scaled_font</code></em> was created into
776
+ <em class="parameter"><code>options</code></em>.</p>
777
+ <p>
778
+
779
+ </p>
780
+ <div class="variablelist"><table border="0">
781
+ <col align="left" valign="top">
782
+ <tbody>
783
+ <tr>
784
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
785
+ <td> a <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
786
+ </td>
787
+ </tr>
788
+ <tr>
789
+ <td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
790
+ <td> return value for the font options
791
+ </td>
792
+ </tr>
793
+ </tbody>
794
+ </table></div>
795
+ <p class="since">Since 1.2
796
+ </p>
797
+ </div>
798
+ <hr>
799
+ <div class="refsect2" lang="en">
800
+ <a name="cairo-scaled-font-get-font-matrix"></a><h3>cairo_scaled_font_get_font_matrix ()</h3>
801
+ <pre class="programlisting">void cairo_scaled_font_get_font_matrix (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
802
+ <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *font_matrix);</pre>
803
+ <p>
804
+ Stores the font matrix with which <em class="parameter"><code>scaled_font</code></em> was created into
805
+ <em class="parameter"><code>matrix</code></em>.</p>
806
+ <p>
807
+
808
+ </p>
809
+ <div class="variablelist"><table border="0">
810
+ <col align="left" valign="top">
811
+ <tbody>
812
+ <tr>
813
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
814
+ <td> a <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
815
+ </td>
816
+ </tr>
817
+ <tr>
818
+ <td><p><span class="term"><em class="parameter"><code>font_matrix</code></em> :</span></p></td>
819
+ <td> return value for the matrix
820
+ </td>
821
+ </tr>
822
+ </tbody>
823
+ </table></div>
824
+ <p class="since">Since 1.2
825
+ </p>
826
+ </div>
827
+ <hr>
828
+ <div class="refsect2" lang="en">
829
+ <a name="cairo-scaled-font-get-ctm"></a><h3>cairo_scaled_font_get_ctm ()</h3>
830
+ <pre class="programlisting">void cairo_scaled_font_get_ctm (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
831
+ <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *ctm);</pre>
832
+ <p>
833
+ Stores the CTM with which <em class="parameter"><code>scaled_font</code></em> was created into <em class="parameter"><code>ctm</code></em>.</p>
834
+ <p>
835
+
836
+ </p>
837
+ <div class="variablelist"><table border="0">
838
+ <col align="left" valign="top">
839
+ <tbody>
840
+ <tr>
841
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
842
+ <td> a <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
843
+ </td>
844
+ </tr>
845
+ <tr>
846
+ <td><p><span class="term"><em class="parameter"><code>ctm</code></em> :</span></p></td>
847
+ <td> return value for the CTM
848
+ </td>
849
+ </tr>
850
+ </tbody>
851
+ </table></div>
852
+ <p class="since">Since 1.2
853
+ </p>
854
+ </div>
855
+ <hr>
856
+ <div class="refsect2" lang="en">
857
+ <a name="cairo-scaled-font-get-scale-matrix"></a><h3>cairo_scaled_font_get_scale_matrix ()</h3>
858
+ <pre class="programlisting">void cairo_scaled_font_get_scale_matrix (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
859
+ <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *scale_matrix);</pre>
860
+ <p>
861
+ Stores the scale matrix of <em class="parameter"><code>scaled_font</code></em> into <em class="parameter"><code>matrix</code></em>.
862
+ The scale matrix is product of the font matrix and the ctm
863
+ associated with the scaled font, and hence is the matrix mapping from
864
+ font space to device space.</p>
865
+ <p>
866
+
867
+ </p>
868
+ <div class="variablelist"><table border="0">
869
+ <col align="left" valign="top">
870
+ <tbody>
871
+ <tr>
872
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
873
+ <td> a <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
874
+ </td>
875
+ </tr>
876
+ <tr>
877
+ <td><p><span class="term"><em class="parameter"><code>scale_matrix</code></em> :</span></p></td>
878
+ <td> return value for the matrix
879
+ </td>
880
+ </tr>
881
+ </tbody>
882
+ </table></div>
883
+ <p class="since">Since 1.8
884
+ </p>
885
+ </div>
886
+ <hr>
887
+ <div class="refsect2" lang="en">
888
+ <a name="cairo-scaled-font-get-type"></a><h3>cairo_scaled_font_get_type ()</h3>
889
+ <pre class="programlisting"><a class="link" href="cairo-font-face.html#cairo-font-type-t" title="enum cairo_font_type_t">cairo_font_type_t</a> cairo_scaled_font_get_type (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font);</pre>
890
+ <p>
891
+ This function returns the type of the backend used to create
892
+ a scaled font. See <a class="link" href="cairo-font-face.html#cairo-font-type-t" title="enum cairo_font_type_t"><span class="type">cairo_font_type_t</span></a> for available types.</p>
893
+ <p>
894
+
895
+ </p>
896
+ <div class="variablelist"><table border="0">
897
+ <col align="left" valign="top">
898
+ <tbody>
899
+ <tr>
900
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
901
+ <td> a <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
902
+ </td>
903
+ </tr>
904
+ <tr>
905
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
906
+ <td> The type of <em class="parameter"><code>scaled_font</code></em>.
907
+
908
+ </td>
909
+ </tr>
910
+ </tbody>
911
+ </table></div>
912
+ <p class="since">Since 1.2
913
+ </p>
914
+ </div>
915
+ <hr>
916
+ <div class="refsect2" lang="en">
917
+ <a name="cairo-scaled-font-get-reference-count"></a><h3>cairo_scaled_font_get_reference_count ()</h3>
918
+ <pre class="programlisting">unsigned int cairo_scaled_font_get_reference_count
919
+ (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font);</pre>
920
+ <p>
921
+ Returns the current reference count of <em class="parameter"><code>scaled_font</code></em>.</p>
922
+ <p>
923
+
924
+ </p>
925
+ <div class="variablelist"><table border="0">
926
+ <col align="left" valign="top">
927
+ <tbody>
928
+ <tr>
929
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
930
+ <td> a <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
931
+ </td>
932
+ </tr>
933
+ <tr>
934
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
935
+ <td> the current reference count of <em class="parameter"><code>scaled_font</code></em>. If the
936
+ object is a nil object, 0 will be returned.
937
+
938
+ </td>
939
+ </tr>
940
+ </tbody>
941
+ </table></div>
942
+ <p class="since">Since 1.4
943
+ </p>
944
+ </div>
945
+ <hr>
946
+ <div class="refsect2" lang="en">
947
+ <a name="cairo-scaled-font-set-user-data"></a><h3>cairo_scaled_font_set_user_data ()</h3>
948
+ <pre class="programlisting"><a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> cairo_scaled_font_set_user_data (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
949
+ const <a class="link" href="cairo-types.html#cairo-user-data-key-t" title="cairo_user_data_key_t">cairo_user_data_key_t</a> *key,
950
+ void *user_data,
951
+ <a class="link" href="cairo-types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()">cairo_destroy_func_t</a> destroy);</pre>
952
+ <p>
953
+ Attach user data to <em class="parameter"><code>scaled_font</code></em>. To remove user data from a surface,
954
+ call this function with the key that was used to set it and <code class="literal">NULL</code>
955
+ for <em class="parameter"><code>data</code></em>.</p>
956
+ <p>
957
+
958
+ </p>
959
+ <div class="variablelist"><table border="0">
960
+ <col align="left" valign="top">
961
+ <tbody>
962
+ <tr>
963
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
964
+ <td> a <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
965
+ </td>
966
+ </tr>
967
+ <tr>
968
+ <td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
969
+ <td> the address of a <a class="link" href="cairo-types.html#cairo-user-data-key-t" title="cairo_user_data_key_t"><span class="type">cairo_user_data_key_t</span></a> to attach the user data to
970
+ </td>
971
+ </tr>
972
+ <tr>
973
+ <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
974
+ <td> the user data to attach to the <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
975
+ </td>
976
+ </tr>
977
+ <tr>
978
+ <td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
979
+ <td> a <a class="link" href="cairo-types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()"><span class="type">cairo_destroy_func_t</span></a> which will be called when the
980
+ <a class="link" href="cairo-context.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> is destroyed or when new user data is attached using the
981
+ same key.
982
+ </td>
983
+ </tr>
984
+ <tr>
985
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
986
+ <td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a> or <a class="link" href="cairo-error-status.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a> if a
987
+ slot could not be allocated for the user data.
988
+
989
+ </td>
990
+ </tr>
991
+ </tbody>
992
+ </table></div>
993
+ <p class="since">Since 1.4
994
+ </p>
995
+ </div>
996
+ <hr>
997
+ <div class="refsect2" lang="en">
998
+ <a name="cairo-scaled-font-get-user-data"></a><h3>cairo_scaled_font_get_user_data ()</h3>
999
+ <pre class="programlisting">void* cairo_scaled_font_get_user_data (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font,
1000
+ const <a class="link" href="cairo-types.html#cairo-user-data-key-t" title="cairo_user_data_key_t">cairo_user_data_key_t</a> *key);</pre>
1001
+ <p>
1002
+ Return user data previously attached to <em class="parameter"><code>scaled_font</code></em> using the
1003
+ specified key. If no user data has been attached with the given
1004
+ key this function returns <code class="literal">NULL</code>.</p>
1005
+ <p>
1006
+
1007
+ </p>
1008
+ <div class="variablelist"><table border="0">
1009
+ <col align="left" valign="top">
1010
+ <tbody>
1011
+ <tr>
1012
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
1013
+ <td> a <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
1014
+ </td>
1015
+ </tr>
1016
+ <tr>
1017
+ <td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
1018
+ <td> the address of the <a class="link" href="cairo-types.html#cairo-user-data-key-t" title="cairo_user_data_key_t"><span class="type">cairo_user_data_key_t</span></a> the user data was
1019
+ attached to
1020
+ </td>
1021
+ </tr>
1022
+ <tr>
1023
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1024
+ <td> the user data previously attached or <code class="literal">NULL</code>.
1025
+
1026
+ </td>
1027
+ </tr>
1028
+ </tbody>
1029
+ </table></div>
1030
+ <p class="since">Since 1.4
1031
+ </p>
1032
+ </div>
1033
+ </div>
1034
+ <div class="refsect1" lang="en">
1035
+ <a name="cairo-scaled-font.see-also"></a><h2>See Also</h2>
1036
+ <p>
1037
+ </p>
1038
+ <div class="itemizedlist"><ul type="disc">
1039
+ <li><a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a></li>
1040
+ <li><a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a></li>
1041
+ <li><a class="link" href="cairo-font-options.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a></li>
1042
+ </ul></div>
1043
+ <p>
1044
+ </p>
1045
+ </div>
1046
+ </div>
1047
+ <div class="footer">
1048
+ <hr>
1049
+ Generated by GTK-Doc V1.10</div>
1050
+ </body>
1051
+ </html>