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.
- data/ChangeLog +32 -0
- data/NEWS +9 -1
- data/README +1 -0
- data/Rakefile +2 -2
- data/cairo/DLL_FAQ.txt +397 -0
- data/cairo/README.txt +53 -0
- data/cairo/USAGE.txt +94 -0
- data/cairo/bin/libcairo-2.dll +0 -0
- data/cairo/bin/libpng12-0.dll +0 -0
- data/cairo/bin/zlib1.dll +0 -0
- data/cairo/include/cairo/cairo-deprecated.h +0 -4
- data/cairo/include/cairo/cairo-features.h +7 -22
- data/cairo/include/cairo/cairo-pdf.h +1 -1
- data/cairo/include/cairo/cairo-ps.h +1 -1
- data/cairo/include/cairo/cairo-svg.h +1 -1
- data/cairo/include/cairo/cairo-version.h +8 -0
- data/cairo/include/cairo/cairo-win32.h +9 -1
- data/cairo/include/cairo/cairo.h +420 -32
- data/cairo/include/libpng12/png.h +3592 -0
- data/cairo/include/libpng12/pngconf.h +1481 -0
- data/cairo/include/png.h +36 -13
- data/cairo/include/pngconf.h +3 -3
- data/cairo/include/zconf.h +332 -0
- data/cairo/include/zlib.h +1357 -0
- data/cairo/lib/cairo.def +22 -0
- data/cairo/lib/cairo.lib +0 -0
- data/cairo/lib/libcairo.dll.a +0 -0
- data/cairo/lib/libpng.def +1 -0
- data/cairo/lib/libpng.lib +0 -0
- data/cairo/lib/libpng12.dll.a +0 -0
- data/cairo/lib/pkgconfig/cairo-pdf.pc +5 -5
- data/cairo/lib/pkgconfig/cairo-png.pc +5 -5
- data/cairo/lib/pkgconfig/cairo-ps.pc +5 -5
- data/cairo/lib/pkgconfig/cairo-svg.pc +4 -4
- data/cairo/lib/pkgconfig/cairo-win32-font.pc +4 -4
- data/cairo/lib/pkgconfig/cairo-win32.pc +4 -4
- data/cairo/lib/pkgconfig/cairo.pc +4 -4
- data/cairo/lib/pkgconfig/libpng.pc +3 -2
- data/cairo/lib/pkgconfig/libpng12.pc +3 -2
- data/cairo/lib/zdll.exp +0 -0
- data/cairo/lib/zdll.lib +0 -0
- data/cairo/lib/zlib.def +60 -0
- data/cairo/manifest/cairo-dev_1.8.0-1_win32.mft +76 -0
- data/cairo/manifest/cairo_1.8.0-1_win32.mft +5 -0
- data/cairo/manifest/{libpng-dev-1.2.29.mft → libpng-dev_1.2.32-1_win32.mft} +5 -2
- data/cairo/manifest/libpng_1.2.32-1_win32.mft +2 -0
- data/cairo/share/doc/{cairo-1.6.4-2 → cairo_1.8.0-1_win32}/COPYING +0 -0
- data/cairo/share/doc/{cairo-1.6.4-2 → cairo_1.8.0-1_win32}/COPYING-LGPL-2.1 +0 -0
- data/cairo/share/doc/{cairo-1.6.4-2 → cairo_1.8.0-1_win32}/COPYING-MPL-1.1 +0 -0
- data/cairo/share/gtk-doc/html/cairo/bindings-errors.html +15 -11
- data/cairo/share/gtk-doc/html/cairo/bindings-fonts.html +15 -11
- data/cairo/share/gtk-doc/html/cairo/bindings-memory.html +20 -16
- data/cairo/share/gtk-doc/html/cairo/bindings-overloading.html +16 -12
- data/cairo/share/gtk-doc/html/cairo/bindings-path.html +17 -13
- data/cairo/share/gtk-doc/html/cairo/bindings-patterns.html +25 -21
- data/cairo/share/gtk-doc/html/cairo/bindings-return-values.html +17 -13
- data/cairo/share/gtk-doc/html/cairo/bindings-streams.html +14 -10
- data/cairo/share/gtk-doc/html/cairo/bindings-surfaces.html +19 -15
- data/cairo/share/gtk-doc/html/cairo/cairo-context.html +2721 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-drawing.html +57 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-error-status.html +361 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-font-face.html +418 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-font-options.html +695 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-fonts.html +63 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-ft-font.html +318 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-image-surface.html +486 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-cairo-matrix-t.html → cairo-matrix.html} +137 -156
- data/cairo/share/gtk-doc/html/cairo/{cairo-Paths.html → cairo-paths.html} +275 -306
- data/cairo/share/gtk-doc/html/cairo/cairo-pattern.html +1524 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-PDF-Surfaces.html → cairo-pdf-surface.html} +60 -70
- data/cairo/share/gtk-doc/html/cairo/cairo-png-functions.html +332 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-PostScript-Surfaces.html → cairo-ps-surface.html} +131 -150
- data/cairo/share/gtk-doc/html/cairo/cairo-quartz-font.html +153 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-Quartz-Surfaces.html → cairo-quartz-surface.html} +53 -62
- data/cairo/share/gtk-doc/html/cairo/cairo-scaled-font.html +1051 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-support.html +54 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-surface.html +1064 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-surfaces.html +69 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-svg-surface.html +324 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-text.html +1264 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-Transformations.html → cairo-transformations.html} +98 -115
- data/cairo/share/gtk-doc/html/cairo/cairo-types.html +134 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-user-font.html +769 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-version-info.html +355 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-win32-font.html +366 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-win32-surface.html +321 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-XLib-Surfaces.html → cairo-xlib-surface.html} +104 -121
- data/cairo/share/gtk-doc/html/cairo/cairo.devhelp +390 -405
- data/cairo/share/gtk-doc/html/cairo/cairo.devhelp2 +390 -405
- data/cairo/share/gtk-doc/html/cairo/index-1.2.html +63 -59
- data/cairo/share/gtk-doc/html/cairo/index-1.4.html +45 -41
- data/cairo/share/gtk-doc/html/cairo/index-1.6.html +29 -23
- data/cairo/share/gtk-doc/html/cairo/index-1.8.html +107 -0
- data/cairo/share/gtk-doc/html/cairo/index-all.html +759 -0
- data/cairo/share/gtk-doc/html/cairo/index.html +51 -41
- data/cairo/share/gtk-doc/html/cairo/index.sgml +478 -466
- data/cairo/share/gtk-doc/html/cairo/language-bindings.html +22 -18
- data/cairo/share/gtk-doc/html/cairo/style.css +14 -2
- data/cairo/share/man/man3/libpng.3 +443 -17
- data/cairo/share/man/man3/libpngpf.3 +618 -102
- data/cairo/share/man/man5/png.5 +1 -1
- data/cairo/src/tml/make/cairo_1.8.0-1_win32.log +1021 -0
- data/cairo/src/tml/make/cairo_1.8.0-1_win32.sh +68 -0
- data/cairo/src/tml/make/libpng_1.2.32-1_win32.log +269 -0
- data/cairo/src/tml/make/libpng_1.2.32-1_win32.sh +63 -0
- data/cairo/test/example_d.exe +0 -0
- data/cairo/test/minigzip_d.exe +0 -0
- data/cairo/test/testzlib_d.exe +0 -0
- data/cairo/test/untgz_d.exe +0 -0
- data/doc/en/cairo-context.html +81 -91
- data/doc/en/cairo-font-options.html +11 -26
- data/doc/en/cairo-text-cluster-flag.html +35 -0
- data/doc/en/cairo-user-font-face-text-to-glyphs-data.html +3 -3
- data/doc/en/cairo.html +38 -42
- data/doc/en/index.html +129 -142
- data/doc/ja/cairo-font-options.html +3 -25
- data/doc/ja/cairo-text-cluster-flag.html +46 -0
- data/doc/ja/cairo-user-font-face-text-to-glyphs-data.html +16 -15
- data/doc/ja/cairo.html +3 -7
- data/doc/ja/index.html +9 -17
- data/src/cairo.def +1 -1
- data/src/cairo.so +0 -0
- data/src/lib/cairo/constants.rb +3 -1
- data/src/libruby-cairo.a +0 -0
- data/src/rb_cairo.c +2 -2
- data/src/rb_cairo.h +5 -5
- data/src/rb_cairo_constants.c +12 -19
- data/src/rb_cairo_context.c +25 -21
- data/src/rb_cairo_font_face.c +44 -29
- data/src/rb_cairo_font_options.c +1 -23
- data/src/rb_cairo_scaled_font.c +5 -5
- data/test/test_constants.rb +6 -9
- data/test/test_context.rb +0 -12
- data/test/test_font_face.rb +7 -7
- data/test/test_font_options.rb +2 -21
- data/test/test_scaled_font.rb +3 -3
- data/test/test_text_to_glyphs_data.rb +19 -15
- metadata +68 -45
- data/cairo/make/cairo-1.6.4-2.sh +0 -55
- data/cairo/make/libpng-1.2.29.sh +0 -35
- data/cairo/manifest/cairo-1.6.4-2.mft +0 -6
- data/cairo/manifest/cairo-dev-1.6.4-2.mft +0 -72
- data/cairo/manifest/libpng-1.2.29.mft +0 -2
- data/cairo/share/gtk-doc/html/cairo/Drawing.html +0 -53
- data/cairo/share/gtk-doc/html/cairo/Fonts.html +0 -56
- data/cairo/share/gtk-doc/html/cairo/Support.html +0 -50
- data/cairo/share/gtk-doc/html/cairo/Surfaces.html +0 -65
- data/cairo/share/gtk-doc/html/cairo/cairo-Error-Handling.html +0 -328
- data/cairo/share/gtk-doc/html/cairo/cairo-Font-Options.html +0 -720
- data/cairo/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +0 -297
- data/cairo/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +0 -484
- data/cairo/share/gtk-doc/html/cairo/cairo-PNG-Support.html +0 -345
- data/cairo/share/gtk-doc/html/cairo/cairo-Patterns.html +0 -1560
- data/cairo/share/gtk-doc/html/cairo/cairo-Quartz-Fonts.html +0 -161
- data/cairo/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +0 -337
- data/cairo/share/gtk-doc/html/cairo/cairo-Scaled-Fonts.html +0 -823
- data/cairo/share/gtk-doc/html/cairo/cairo-Text.html +0 -836
- data/cairo/share/gtk-doc/html/cairo/cairo-Types.html +0 -143
- data/cairo/share/gtk-doc/html/cairo/cairo-Version-Information.html +0 -325
- data/cairo/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +0 -381
- data/cairo/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +0 -331
- data/cairo/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +0 -427
- data/cairo/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +0 -995
- data/cairo/share/gtk-doc/html/cairo/cairo-cairo-t.html +0 -2795
- data/cairo/share/gtk-doc/html/cairo/ix01.html +0 -693
- data/doc/en/cairo-lcd-filter.html +0 -39
- data/doc/ja/cairo-lcd-filter.html +0 -63
@@ -1,381 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
5
|
-
<title>Win32 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="Fonts.html" title="Fonts">
|
9
|
-
<link rel="prev" href="cairo-FreeType-Fonts.html" title="FreeType Fonts">
|
10
|
-
<link rel="next" href="cairo-Quartz-Fonts.html" title="Quartz (CGFont) Fonts">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
|
12
|
-
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
<link rel="chapter" href="Drawing.html" title="Drawing">
|
14
|
-
<link rel="chapter" href="Fonts.html" title="Fonts">
|
15
|
-
<link rel="chapter" href="Surfaces.html" title="Surfaces">
|
16
|
-
<link rel="chapter" href="Support.html" title="Utilities">
|
17
|
-
<link rel="index" href="ix01.html" title="Index">
|
18
|
-
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
19
|
-
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
20
|
-
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
21
|
-
<link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
22
|
-
</head>
|
23
|
-
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
24
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
25
|
-
<tr valign="middle">
|
26
|
-
<td><a accesskey="p" href="cairo-FreeType-Fonts.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
27
|
-
<td><a accesskey="u" href="Fonts.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
28
|
-
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
29
|
-
<th width="100%" align="center">Cairo: A Vector Graphics Library</th>
|
30
|
-
<td><a accesskey="n" href="cairo-Quartz-Fonts.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
31
|
-
</tr>
|
32
|
-
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2626010" class="shortcut">Top</a>
|
33
|
-
 | 
|
34
|
-
<a href="#id2649329" class="shortcut">Description</a></nobr></td></tr>
|
35
|
-
</table>
|
36
|
-
<div class="refentry" lang="en">
|
37
|
-
<a name="cairo-Win32-Fonts"></a><div class="titlepage"></div>
|
38
|
-
<div class="refnamediv"><table width="100%"><tr>
|
39
|
-
<td valign="top">
|
40
|
-
<h2>
|
41
|
-
<a name="id2626010"></a><span class="refentrytitle">Win32 Fonts</span>
|
42
|
-
</h2>
|
43
|
-
<p>Win32 Fonts — Font support for Microsoft Windows</p>
|
44
|
-
</td>
|
45
|
-
<td valign="top" align="right"></td>
|
46
|
-
</tr></table></div>
|
47
|
-
<div class="refsynopsisdiv">
|
48
|
-
<h2>Synopsis</h2>
|
49
|
-
<pre class="synopsis">
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
#define <a class="link" href="cairo-Win32-Fonts.html#CAIRO-HAS-WIN32-FONT:CAPS">CAIRO_HAS_WIN32_FONT</a>
|
54
|
-
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a>* <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-font-face-create-for-logfontw">cairo_win32_font_face_create_for_logfontw</a>
|
55
|
-
(LOGFONTW *logfont);
|
56
|
-
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a>* <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-font-face-create-for-hfont">cairo_win32_font_face_create_for_hfont</a>
|
57
|
-
(HFONT font);
|
58
|
-
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a>* <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-font-face-create-for-logfontw-hfont">cairo_win32_font_face_create_for_logfontw_hfont</a>
|
59
|
-
(LOGFONTW *logfont,
|
60
|
-
HFONT font);
|
61
|
-
<a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-select-font">cairo_win32_scaled_font_select_font</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
62
|
-
HDC hdc);
|
63
|
-
void <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-done-font">cairo_win32_scaled_font_done_font</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);
|
64
|
-
double <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-get-metrics-factor">cairo_win32_scaled_font_get_metrics_factor</a>
|
65
|
-
(<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);
|
66
|
-
void <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-get-logical-to-device">cairo_win32_scaled_font_get_logical_to_device</a>
|
67
|
-
(<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
68
|
-
<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *logical_to_device);
|
69
|
-
void <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-get-device-to-logical">cairo_win32_scaled_font_get_device_to_logical</a>
|
70
|
-
(<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
71
|
-
<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *device_to_logical);
|
72
|
-
</pre>
|
73
|
-
</div>
|
74
|
-
<div class="refsect1" lang="en">
|
75
|
-
<a name="id2649329"></a><h2>Description</h2>
|
76
|
-
<p>
|
77
|
-
The Microsoft Windows font backend is primarily used to render text on
|
78
|
-
Microsoft Windows systems.
|
79
|
-
</p>
|
80
|
-
</div>
|
81
|
-
<div class="refsect1" lang="en">
|
82
|
-
<a name="id2649346"></a><h2>Details</h2>
|
83
|
-
<div class="refsect2" lang="en">
|
84
|
-
<a name="id2649357"></a><h3>
|
85
|
-
<a name="CAIRO-HAS-WIN32-FONT:CAPS"></a>CAIRO_HAS_WIN32_FONT</h3>
|
86
|
-
<a class="indexterm" name="id2649368"></a><pre class="programlisting">#define CAIRO_HAS_WIN32_FONT 1
|
87
|
-
</pre>
|
88
|
-
<p>
|
89
|
-
Defined if the Microsoft Windows font backend is available.
|
90
|
-
This macro can be used to conditionally compile backend-specific code.
|
91
|
-
</p>
|
92
|
-
</div>
|
93
|
-
<hr>
|
94
|
-
<div class="refsect2" lang="en">
|
95
|
-
<a name="id2649386"></a><h3>
|
96
|
-
<a name="cairo-win32-font-face-create-for-logfontw"></a>cairo_win32_font_face_create_for_logfontw ()</h3>
|
97
|
-
<a class="indexterm" name="id2649398"></a><pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a>* cairo_win32_font_face_create_for_logfontw
|
98
|
-
(LOGFONTW *logfont);</pre>
|
99
|
-
<p>
|
100
|
-
Creates a new font for the Win32 font backend based on a
|
101
|
-
<span class="type">LOGFONT</span>. This font can then be used with
|
102
|
-
<a class="link" href="cairo-Text.html#cairo-set-font-face"><code class="function">cairo_set_font_face()</code></a> or <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-create"><code class="function">cairo_scaled_font_create()</code></a>.
|
103
|
-
The <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
104
|
-
returned from <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-create"><code class="function">cairo_scaled_font_create()</code></a> is also for the Win32 backend
|
105
|
-
and can be used with functions such as <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-select-font"><code class="function">cairo_win32_scaled_font_select_font()</code></a>.</p>
|
106
|
-
<p>
|
107
|
-
|
108
|
-
</p>
|
109
|
-
<div class="variablelist"><table border="0">
|
110
|
-
<col align="left" valign="top">
|
111
|
-
<tbody>
|
112
|
-
<tr>
|
113
|
-
<td><p><span class="term"><em class="parameter"><code>logfont</code></em> :</span></p></td>
|
114
|
-
<td> A <span class="type">LOGFONTW</span> structure specifying the font to use.
|
115
|
-
The lfHeight, lfWidth, lfOrientation and lfEscapement
|
116
|
-
fields of this structure are ignored.
|
117
|
-
</td>
|
118
|
-
</tr>
|
119
|
-
<tr>
|
120
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
121
|
-
<td> a newly created <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t"><span class="type">cairo_font_face_t</span></a>. Free with
|
122
|
-
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-destroy"><code class="function">cairo_font_face_destroy()</code></a> when you are done using it.
|
123
|
-
</td>
|
124
|
-
</tr>
|
125
|
-
</tbody>
|
126
|
-
</table></div>
|
127
|
-
</div>
|
128
|
-
<hr>
|
129
|
-
<div class="refsect2" lang="en">
|
130
|
-
<a name="id2649536"></a><h3>
|
131
|
-
<a name="cairo-win32-font-face-create-for-hfont"></a>cairo_win32_font_face_create_for_hfont ()</h3>
|
132
|
-
<a class="indexterm" name="id2649549"></a><pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a>* cairo_win32_font_face_create_for_hfont
|
133
|
-
(HFONT font);</pre>
|
134
|
-
<p>
|
135
|
-
Creates a new font for the Win32 font backend based on a
|
136
|
-
<span class="type">HFONT</span>. This font can then be used with
|
137
|
-
<a class="link" href="cairo-Text.html#cairo-set-font-face"><code class="function">cairo_set_font_face()</code></a> or <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-create"><code class="function">cairo_scaled_font_create()</code></a>.
|
138
|
-
The <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
139
|
-
returned from <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-create"><code class="function">cairo_scaled_font_create()</code></a> is also for the Win32 backend
|
140
|
-
and can be used with functions such as <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-select-font"><code class="function">cairo_win32_scaled_font_select_font()</code></a>.</p>
|
141
|
-
<p>
|
142
|
-
|
143
|
-
</p>
|
144
|
-
<div class="variablelist"><table border="0">
|
145
|
-
<col align="left" valign="top">
|
146
|
-
<tbody>
|
147
|
-
<tr>
|
148
|
-
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
|
149
|
-
<td> An <span class="type">HFONT</span> structure specifying the font to use.
|
150
|
-
</td>
|
151
|
-
</tr>
|
152
|
-
<tr>
|
153
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
154
|
-
<td> a newly created <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t"><span class="type">cairo_font_face_t</span></a>. Free with
|
155
|
-
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-destroy"><code class="function">cairo_font_face_destroy()</code></a> when you are done using it.
|
156
|
-
</td>
|
157
|
-
</tr>
|
158
|
-
</tbody>
|
159
|
-
</table></div>
|
160
|
-
</div>
|
161
|
-
<hr>
|
162
|
-
<div class="refsect2" lang="en">
|
163
|
-
<a name="id2649687"></a><h3>
|
164
|
-
<a name="cairo-win32-font-face-create-for-logfontw-hfont"></a>cairo_win32_font_face_create_for_logfontw_hfont ()</h3>
|
165
|
-
<a class="indexterm" name="id2649701"></a><pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a>* cairo_win32_font_face_create_for_logfontw_hfont
|
166
|
-
(LOGFONTW *logfont,
|
167
|
-
HFONT font);</pre>
|
168
|
-
<p>
|
169
|
-
Creates a new font for the Win32 font backend based on a
|
170
|
-
<span class="type">LOGFONT</span>. This font can then be used with
|
171
|
-
<a class="link" href="cairo-Text.html#cairo-set-font-face"><code class="function">cairo_set_font_face()</code></a> or <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-create"><code class="function">cairo_scaled_font_create()</code></a>.
|
172
|
-
The <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
173
|
-
returned from <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-create"><code class="function">cairo_scaled_font_create()</code></a> is also for the Win32 backend
|
174
|
-
and can be used with functions such as <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-select-font"><code class="function">cairo_win32_scaled_font_select_font()</code></a>.</p>
|
175
|
-
<p>
|
176
|
-
|
177
|
-
</p>
|
178
|
-
<div class="variablelist"><table border="0">
|
179
|
-
<col align="left" valign="top">
|
180
|
-
<tbody>
|
181
|
-
<tr>
|
182
|
-
<td><p><span class="term"><em class="parameter"><code>logfont</code></em> :</span></p></td>
|
183
|
-
<td> A <span class="type">LOGFONTW</span> structure specifying the font to use.
|
184
|
-
If hfont is null then the lfHeight, lfWidth, lfOrientation and lfEscapement
|
185
|
-
fields of this structure are ignored. Otherwise lfWidth, lfOrientation and
|
186
|
-
lfEscapement must be zero.
|
187
|
-
</td>
|
188
|
-
</tr>
|
189
|
-
<tr>
|
190
|
-
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
|
191
|
-
<td> An <span class="type">HFONT</span> that can be used when the font matrix is a scale by
|
192
|
-
-lfHeight and the CTM is identity.
|
193
|
-
</td>
|
194
|
-
</tr>
|
195
|
-
<tr>
|
196
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
197
|
-
<td> a newly created <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t"><span class="type">cairo_font_face_t</span></a>. Free with
|
198
|
-
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-destroy"><code class="function">cairo_font_face_destroy()</code></a> when you are done using it.
|
199
|
-
</td>
|
200
|
-
</tr>
|
201
|
-
</tbody>
|
202
|
-
</table></div>
|
203
|
-
</div>
|
204
|
-
<hr>
|
205
|
-
<div class="refsect2" lang="en">
|
206
|
-
<a name="id2650194"></a><h3>
|
207
|
-
<a name="cairo-win32-scaled-font-select-font"></a>cairo_win32_scaled_font_select_font ()</h3>
|
208
|
-
<a class="indexterm" name="id2650206"></a><pre class="programlisting"><a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> cairo_win32_scaled_font_select_font (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
209
|
-
HDC hdc);</pre>
|
210
|
-
<p>
|
211
|
-
Selects the font into the given device context and changes the
|
212
|
-
map mode and world transformation of the device context to match
|
213
|
-
that of the font. This function is intended for use when using
|
214
|
-
layout APIs such as Uniscribe to do text layout with the
|
215
|
-
cairo font. After finishing using the device context, you must call
|
216
|
-
<a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-done-font"><code class="function">cairo_win32_scaled_font_done_font()</code></a> to release any resources allocated
|
217
|
-
by this function.
|
218
|
-
</p>
|
219
|
-
<p>
|
220
|
-
See <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-get-metrics-factor"><code class="function">cairo_win32_scaled_font_get_metrics_factor()</code></a> for converting logical
|
221
|
-
coordinates from the device context to font space.
|
222
|
-
</p>
|
223
|
-
<p>
|
224
|
-
Normally, calls to <code class="function">SaveDC()</code> and <code class="function">RestoreDC()</code> would be made around
|
225
|
-
the use of this function to preserve the original graphics state.</p>
|
226
|
-
<p>
|
227
|
-
|
228
|
-
</p>
|
229
|
-
<div class="variablelist"><table border="0">
|
230
|
-
<col align="left" valign="top">
|
231
|
-
<tbody>
|
232
|
-
<tr>
|
233
|
-
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
234
|
-
<td> A <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a> from the Win32 font backend. Such an
|
235
|
-
object can be created with <code class="function">cairo_win32_scaled_font_create_for_logfontw()</code>.
|
236
|
-
</td>
|
237
|
-
</tr>
|
238
|
-
<tr>
|
239
|
-
<td><p><span class="term"><em class="parameter"><code>hdc</code></em> :</span></p></td>
|
240
|
-
<td> a device context
|
241
|
-
</td>
|
242
|
-
</tr>
|
243
|
-
<tr>
|
244
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
245
|
-
<td> <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a> if the operation succeeded.
|
246
|
-
otherwise an error such as <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a> and
|
247
|
-
the device context is unchanged.
|
248
|
-
</td>
|
249
|
-
</tr>
|
250
|
-
</tbody>
|
251
|
-
</table></div>
|
252
|
-
</div>
|
253
|
-
<hr>
|
254
|
-
<div class="refsect2" lang="en">
|
255
|
-
<a name="id2650379"></a><h3>
|
256
|
-
<a name="cairo-win32-scaled-font-done-font"></a>cairo_win32_scaled_font_done_font ()</h3>
|
257
|
-
<a class="indexterm" name="id2650391"></a><pre class="programlisting">void cairo_win32_scaled_font_done_font (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);</pre>
|
258
|
-
<p>
|
259
|
-
Releases any resources allocated by <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-select-font"><code class="function">cairo_win32_scaled_font_select_font()</code></a></p>
|
260
|
-
<p>
|
261
|
-
|
262
|
-
</p>
|
263
|
-
<div class="variablelist"><table border="0">
|
264
|
-
<col align="left" valign="top">
|
265
|
-
<tbody><tr>
|
266
|
-
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
267
|
-
<td> A scaled font from the Win32 font backend.
|
268
|
-
</td>
|
269
|
-
</tr></tbody>
|
270
|
-
</table></div>
|
271
|
-
</div>
|
272
|
-
<hr>
|
273
|
-
<div class="refsect2" lang="en">
|
274
|
-
<a name="id2650451"></a><h3>
|
275
|
-
<a name="cairo-win32-scaled-font-get-metrics-factor"></a>cairo_win32_scaled_font_get_metrics_factor ()</h3>
|
276
|
-
<a class="indexterm" name="id2650466"></a><pre class="programlisting">double cairo_win32_scaled_font_get_metrics_factor
|
277
|
-
(<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);</pre>
|
278
|
-
<p>
|
279
|
-
Gets a scale factor between logical coordinates in the coordinate
|
280
|
-
space used by <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-select-font"><code class="function">cairo_win32_scaled_font_select_font()</code></a> (that is, the
|
281
|
-
coordinate system used by the Windows functions to return metrics) and
|
282
|
-
font space coordinates.</p>
|
283
|
-
<p>
|
284
|
-
|
285
|
-
</p>
|
286
|
-
<div class="variablelist"><table border="0">
|
287
|
-
<col align="left" valign="top">
|
288
|
-
<tbody>
|
289
|
-
<tr>
|
290
|
-
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
291
|
-
<td> a scaled font from the Win32 font backend
|
292
|
-
</td>
|
293
|
-
</tr>
|
294
|
-
<tr>
|
295
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
296
|
-
<td> factor to multiply logical units by to get font space
|
297
|
-
coordinates.
|
298
|
-
</td>
|
299
|
-
</tr>
|
300
|
-
</tbody>
|
301
|
-
</table></div>
|
302
|
-
</div>
|
303
|
-
<hr>
|
304
|
-
<div class="refsect2" lang="en">
|
305
|
-
<a name="id2650542"></a><h3>
|
306
|
-
<a name="cairo-win32-scaled-font-get-logical-to-device"></a>cairo_win32_scaled_font_get_logical_to_device ()</h3>
|
307
|
-
<a class="indexterm" name="id2650559"></a><pre class="programlisting">void cairo_win32_scaled_font_get_logical_to_device
|
308
|
-
(<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
309
|
-
<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *logical_to_device);</pre>
|
310
|
-
<p>
|
311
|
-
Gets the transformation mapping the logical space used by <em class="parameter"><code>scaled_font</code></em>
|
312
|
-
to device space.</p>
|
313
|
-
<p>
|
314
|
-
|
315
|
-
</p>
|
316
|
-
<div class="variablelist"><table border="0">
|
317
|
-
<col align="left" valign="top">
|
318
|
-
<tbody>
|
319
|
-
<tr>
|
320
|
-
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
321
|
-
<td> a scaled font from the Win32 font backend
|
322
|
-
</td>
|
323
|
-
</tr>
|
324
|
-
<tr>
|
325
|
-
<td><p><span class="term"><em class="parameter"><code>logical_to_device</code></em> :</span></p></td>
|
326
|
-
<td> matrix to return
|
327
|
-
</td>
|
328
|
-
</tr>
|
329
|
-
</tbody>
|
330
|
-
</table></div>
|
331
|
-
<p class="since">Since 1.4
|
332
|
-
</p>
|
333
|
-
</div>
|
334
|
-
<hr>
|
335
|
-
<div class="refsect2" lang="en">
|
336
|
-
<a name="id2650646"></a><h3>
|
337
|
-
<a name="cairo-win32-scaled-font-get-device-to-logical"></a>cairo_win32_scaled_font_get_device_to_logical ()</h3>
|
338
|
-
<a class="indexterm" name="id2650663"></a><pre class="programlisting">void cairo_win32_scaled_font_get_device_to_logical
|
339
|
-
(<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
340
|
-
<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *device_to_logical);</pre>
|
341
|
-
<p>
|
342
|
-
Gets the transformation mapping device space to the logical space
|
343
|
-
used by <em class="parameter"><code>scaled_font</code></em>.</p>
|
344
|
-
<p>
|
345
|
-
|
346
|
-
</p>
|
347
|
-
<div class="variablelist"><table border="0">
|
348
|
-
<col align="left" valign="top">
|
349
|
-
<tbody>
|
350
|
-
<tr>
|
351
|
-
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
352
|
-
<td> a scaled font from the Win32 font backend
|
353
|
-
</td>
|
354
|
-
</tr>
|
355
|
-
<tr>
|
356
|
-
<td><p><span class="term"><em class="parameter"><code>device_to_logical</code></em> :</span></p></td>
|
357
|
-
<td> matrix to return
|
358
|
-
</td>
|
359
|
-
</tr>
|
360
|
-
</tbody>
|
361
|
-
</table></div>
|
362
|
-
<p class="since">Since 1.4
|
363
|
-
</p>
|
364
|
-
</div>
|
365
|
-
</div>
|
366
|
-
<div class="refsect1" lang="en">
|
367
|
-
<a name="id2650752"></a><h2>See Also</h2>
|
368
|
-
<p>
|
369
|
-
</p>
|
370
|
-
<div class="itemizedlist"><ul type="disc"><li><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t"><span class="type">cairo_font_face_t</span></a></li></ul></div>
|
371
|
-
<p>
|
372
|
-
</p>
|
373
|
-
</div>
|
374
|
-
<div class="refsect1" lang="en">
|
375
|
-
<a name="id2650775"></a><div class="refsect2" lang="en"><a name="id2650776"></a></div>
|
376
|
-
<hr>
|
377
|
-
<div class="refsect2" lang="en"><a name="id2650777"></a></div>
|
378
|
-
</div>
|
379
|
-
</div>
|
380
|
-
</body>
|
381
|
-
</html>
|
@@ -1,331 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
5
|
-
<title>Win32 Surfaces</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="Surfaces.html" title="Surfaces">
|
9
|
-
<link rel="prev" href="cairo-PostScript-Surfaces.html" title="PostScript Surfaces">
|
10
|
-
<link rel="next" href="cairo-SVG-Surfaces.html" title="SVG Surfaces">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
|
12
|
-
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
<link rel="chapter" href="Drawing.html" title="Drawing">
|
14
|
-
<link rel="chapter" href="Fonts.html" title="Fonts">
|
15
|
-
<link rel="chapter" href="Surfaces.html" title="Surfaces">
|
16
|
-
<link rel="chapter" href="Support.html" title="Utilities">
|
17
|
-
<link rel="index" href="ix01.html" title="Index">
|
18
|
-
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
19
|
-
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
20
|
-
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
21
|
-
<link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
22
|
-
</head>
|
23
|
-
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
24
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
25
|
-
<tr valign="middle">
|
26
|
-
<td><a accesskey="p" href="cairo-PostScript-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>
|
28
|
-
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
29
|
-
<th width="100%" align="center">Cairo: A Vector Graphics Library</th>
|
30
|
-
<td><a accesskey="n" href="cairo-SVG-Surfaces.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
31
|
-
</tr>
|
32
|
-
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2589480" class="shortcut">Top</a>
|
33
|
-
 | 
|
34
|
-
<a href="#id2666636" class="shortcut">Description</a></nobr></td></tr>
|
35
|
-
</table>
|
36
|
-
<div class="refentry" lang="en">
|
37
|
-
<a name="cairo-Win32-Surfaces"></a><div class="titlepage"></div>
|
38
|
-
<div class="refnamediv"><table width="100%"><tr>
|
39
|
-
<td valign="top">
|
40
|
-
<h2>
|
41
|
-
<a name="id2589480"></a><span class="refentrytitle">Win32 Surfaces</span>
|
42
|
-
</h2>
|
43
|
-
<p>Win32 Surfaces — Microsoft Windows surface support</p>
|
44
|
-
</td>
|
45
|
-
<td valign="top" align="right"></td>
|
46
|
-
</tr></table></div>
|
47
|
-
<div class="refsynopsisdiv">
|
48
|
-
<h2>Synopsis</h2>
|
49
|
-
<pre class="synopsis">
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
#define <a class="link" href="cairo-Win32-Surfaces.html#CAIRO-HAS-WIN32-SURFACE:CAPS">CAIRO_HAS_WIN32_SURFACE</a>
|
54
|
-
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-surface-create">cairo_win32_surface_create</a> (HDC hdc);
|
55
|
-
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-surface-create-with-dib">cairo_win32_surface_create_with_dib</a> (<a class="link" href="cairo-Image-Surfaces.html#cairo-format-t">cairo_format_t</a> format,
|
56
|
-
int width,
|
57
|
-
int height);
|
58
|
-
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-surface-create-with-ddb">cairo_win32_surface_create_with_ddb</a> (HDC hdc,
|
59
|
-
<a class="link" href="cairo-Image-Surfaces.html#cairo-format-t">cairo_format_t</a> format,
|
60
|
-
int width,
|
61
|
-
int height);
|
62
|
-
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-printing-surface-create">cairo_win32_printing_surface_create</a> (HDC hdc);
|
63
|
-
HDC <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-surface-get-dc">cairo_win32_surface_get_dc</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);
|
64
|
-
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-surface-get-image">cairo_win32_surface_get_image</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);
|
65
|
-
</pre>
|
66
|
-
</div>
|
67
|
-
<div class="refsect1" lang="en">
|
68
|
-
<a name="id2666636"></a><h2>Description</h2>
|
69
|
-
<p>
|
70
|
-
The Microsoft Windows surface is used to render cairo graphics to
|
71
|
-
Microsoft Windows windows, bitmaps, and printing device contexts.
|
72
|
-
</p>
|
73
|
-
<p>
|
74
|
-
The surface returned by <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-printing-surface-create"><code class="function">cairo_win32_printing_surface_create()</code></a> is of surface
|
75
|
-
type <a class="link" href="cairo-cairo-surface-t.html#CAIRO-SURFACE-TYPE-WIN32-PRINTING:CAPS"><code class="literal">CAIRO_SURFACE_TYPE_WIN32_PRINTING</code></a> and is a multi-page vector surface
|
76
|
-
type.
|
77
|
-
</p>
|
78
|
-
<p>
|
79
|
-
The surface returned by the other win32 constructors is of surface type
|
80
|
-
<a class="link" href="cairo-cairo-surface-t.html#CAIRO-SURFACE-TYPE-WIN32:CAPS"><code class="literal">CAIRO_SURFACE_TYPE_WIN32</code></a> and is a raster surface type.
|
81
|
-
</p>
|
82
|
-
</div>
|
83
|
-
<div class="refsect1" lang="en">
|
84
|
-
<a name="id2666688"></a><h2>Details</h2>
|
85
|
-
<div class="refsect2" lang="en">
|
86
|
-
<a name="id2666699"></a><h3>
|
87
|
-
<a name="CAIRO-HAS-WIN32-SURFACE:CAPS"></a>CAIRO_HAS_WIN32_SURFACE</h3>
|
88
|
-
<a class="indexterm" name="id2666710"></a><pre class="programlisting">#define CAIRO_HAS_WIN32_SURFACE 1
|
89
|
-
</pre>
|
90
|
-
<p>
|
91
|
-
Defined if the Microsoft Windows surface backend is available.
|
92
|
-
This macro can be used to conditionally compile backend-specific code.
|
93
|
-
</p>
|
94
|
-
</div>
|
95
|
-
<hr>
|
96
|
-
<div class="refsect2" lang="en">
|
97
|
-
<a name="id2666727"></a><h3>
|
98
|
-
<a name="cairo-win32-surface-create"></a>cairo_win32_surface_create ()</h3>
|
99
|
-
<a class="indexterm" name="id2666738"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_win32_surface_create (HDC hdc);</pre>
|
100
|
-
<p>
|
101
|
-
Creates a cairo surface that targets the given DC. The DC will be
|
102
|
-
queried for its initial clip extents, and this will be used as the
|
103
|
-
size of the cairo surface. The resulting surface will always be of
|
104
|
-
format <a class="link" href="cairo-Image-Surfaces.html#CAIRO-FORMAT-RGB24:CAPS"><code class="literal">CAIRO_FORMAT_RGB24</code></a>; should you need another surface format,
|
105
|
-
you will need to create one through
|
106
|
-
<a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-surface-create-with-dib"><code class="function">cairo_win32_surface_create_with_dib()</code></a>.</p>
|
107
|
-
<p>
|
108
|
-
|
109
|
-
</p>
|
110
|
-
<div class="variablelist"><table border="0">
|
111
|
-
<col align="left" valign="top">
|
112
|
-
<tbody>
|
113
|
-
<tr>
|
114
|
-
<td><p><span class="term"><em class="parameter"><code>hdc</code></em> :</span></p></td>
|
115
|
-
<td> the DC to create a surface for
|
116
|
-
</td>
|
117
|
-
</tr>
|
118
|
-
<tr>
|
119
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
120
|
-
<td> the newly created surface
|
121
|
-
</td>
|
122
|
-
</tr>
|
123
|
-
</tbody>
|
124
|
-
</table></div>
|
125
|
-
</div>
|
126
|
-
<hr>
|
127
|
-
<div class="refsect2" lang="en">
|
128
|
-
<a name="id2666821"></a><h3>
|
129
|
-
<a name="cairo-win32-surface-create-with-dib"></a>cairo_win32_surface_create_with_dib ()</h3>
|
130
|
-
<a class="indexterm" name="id2666836"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_win32_surface_create_with_dib (<a class="link" href="cairo-Image-Surfaces.html#cairo-format-t">cairo_format_t</a> format,
|
131
|
-
int width,
|
132
|
-
int height);</pre>
|
133
|
-
<p>
|
134
|
-
Creates a device-independent-bitmap surface not associated with
|
135
|
-
any particular existing surface or device context. The created
|
136
|
-
bitmap will be uninitialized.</p>
|
137
|
-
<p>
|
138
|
-
|
139
|
-
</p>
|
140
|
-
<div class="variablelist"><table border="0">
|
141
|
-
<col align="left" valign="top">
|
142
|
-
<tbody>
|
143
|
-
<tr>
|
144
|
-
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
|
145
|
-
<td> format of pixels in the surface to create
|
146
|
-
</td>
|
147
|
-
</tr>
|
148
|
-
<tr>
|
149
|
-
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
|
150
|
-
<td> width of the surface, in pixels
|
151
|
-
</td>
|
152
|
-
</tr>
|
153
|
-
<tr>
|
154
|
-
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
|
155
|
-
<td> height of the surface, in pixels
|
156
|
-
</td>
|
157
|
-
</tr>
|
158
|
-
<tr>
|
159
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
160
|
-
<td> the newly created surface
|
161
|
-
|
162
|
-
</td>
|
163
|
-
</tr>
|
164
|
-
</tbody>
|
165
|
-
</table></div>
|
166
|
-
<p class="since">Since 1.2
|
167
|
-
</p>
|
168
|
-
</div>
|
169
|
-
<hr>
|
170
|
-
<div class="refsect2" lang="en">
|
171
|
-
<a name="id2657879"></a><h3>
|
172
|
-
<a name="cairo-win32-surface-create-with-ddb"></a>cairo_win32_surface_create_with_ddb ()</h3>
|
173
|
-
<a class="indexterm" name="id2657896"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_win32_surface_create_with_ddb (HDC hdc,
|
174
|
-
<a class="link" href="cairo-Image-Surfaces.html#cairo-format-t">cairo_format_t</a> format,
|
175
|
-
int width,
|
176
|
-
int height);</pre>
|
177
|
-
<p>
|
178
|
-
Creates a device-independent-bitmap surface not associated with
|
179
|
-
any particular existing surface or device context. The created
|
180
|
-
bitmap will be uninitialized.</p>
|
181
|
-
<p>
|
182
|
-
|
183
|
-
</p>
|
184
|
-
<div class="variablelist"><table border="0">
|
185
|
-
<col align="left" valign="top">
|
186
|
-
<tbody>
|
187
|
-
<tr>
|
188
|
-
<td><p><span class="term"><em class="parameter"><code>hdc</code></em> :</span></p></td>
|
189
|
-
<td> the DC to create a surface for
|
190
|
-
</td>
|
191
|
-
</tr>
|
192
|
-
<tr>
|
193
|
-
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
|
194
|
-
<td> format of pixels in the surface to create
|
195
|
-
</td>
|
196
|
-
</tr>
|
197
|
-
<tr>
|
198
|
-
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
|
199
|
-
<td> width of the surface, in pixels
|
200
|
-
</td>
|
201
|
-
</tr>
|
202
|
-
<tr>
|
203
|
-
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
|
204
|
-
<td> height of the surface, in pixels
|
205
|
-
</td>
|
206
|
-
</tr>
|
207
|
-
<tr>
|
208
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
209
|
-
<td> the newly created surface
|
210
|
-
|
211
|
-
</td>
|
212
|
-
</tr>
|
213
|
-
</tbody>
|
214
|
-
</table></div>
|
215
|
-
<p class="since">Since 1.4
|
216
|
-
</p>
|
217
|
-
</div>
|
218
|
-
<hr>
|
219
|
-
<div class="refsect2" lang="en">
|
220
|
-
<a name="id2658031"></a><h3>
|
221
|
-
<a name="cairo-win32-printing-surface-create"></a>cairo_win32_printing_surface_create ()</h3>
|
222
|
-
<a class="indexterm" name="id2658045"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_win32_printing_surface_create (HDC hdc);</pre>
|
223
|
-
<p>
|
224
|
-
Creates a cairo surface that targets the given DC. The DC will be
|
225
|
-
queried for its initial clip extents, and this will be used as the
|
226
|
-
size of the cairo surface. The DC should be a printing DC;
|
227
|
-
antialiasing will be ignored, and GDI will be used as much as
|
228
|
-
possible to draw to the surface.
|
229
|
-
</p>
|
230
|
-
<p>
|
231
|
-
The returned surface will be wrapped using the paginated surface to
|
232
|
-
provide correct complex rendering behaviour; <code class="function">show_page()</code> and
|
233
|
-
associated methods must be used for correct output.</p>
|
234
|
-
<p>
|
235
|
-
|
236
|
-
</p>
|
237
|
-
<div class="variablelist"><table border="0">
|
238
|
-
<col align="left" valign="top">
|
239
|
-
<tbody>
|
240
|
-
<tr>
|
241
|
-
<td><p><span class="term"><em class="parameter"><code>hdc</code></em> :</span></p></td>
|
242
|
-
<td> the DC to create a surface for
|
243
|
-
</td>
|
244
|
-
</tr>
|
245
|
-
<tr>
|
246
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
247
|
-
<td> the newly created surface
|
248
|
-
</td>
|
249
|
-
</tr>
|
250
|
-
</tbody>
|
251
|
-
</table></div>
|
252
|
-
</div>
|
253
|
-
<hr>
|
254
|
-
<div class="refsect2" lang="en">
|
255
|
-
<a name="id2664421"></a><h3>
|
256
|
-
<a name="cairo-win32-surface-get-dc"></a>cairo_win32_surface_get_dc ()</h3>
|
257
|
-
<a class="indexterm" name="id2664435"></a><pre class="programlisting">HDC cairo_win32_surface_get_dc (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);</pre>
|
258
|
-
<p>
|
259
|
-
Returns the HDC associated with this surface, or <code class="literal">NULL</code> if none.
|
260
|
-
Also returns <code class="literal">NULL</code> if the surface is not a win32 surface.</p>
|
261
|
-
<p>
|
262
|
-
|
263
|
-
</p>
|
264
|
-
<div class="variablelist"><table border="0">
|
265
|
-
<col align="left" valign="top">
|
266
|
-
<tbody>
|
267
|
-
<tr>
|
268
|
-
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
269
|
-
<td> a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a>
|
270
|
-
</td>
|
271
|
-
</tr>
|
272
|
-
<tr>
|
273
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
274
|
-
<td> HDC or <code class="literal">NULL</code> if no HDC available.
|
275
|
-
|
276
|
-
</td>
|
277
|
-
</tr>
|
278
|
-
</tbody>
|
279
|
-
</table></div>
|
280
|
-
<p class="since">Since 1.2
|
281
|
-
</p>
|
282
|
-
</div>
|
283
|
-
<hr>
|
284
|
-
<div class="refsect2" lang="en">
|
285
|
-
<a name="id2664538"></a><h3>
|
286
|
-
<a name="cairo-win32-surface-get-image"></a>cairo_win32_surface_get_image ()</h3>
|
287
|
-
<a class="indexterm" name="id2664554"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_win32_surface_get_image (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);</pre>
|
288
|
-
<p>
|
289
|
-
Returns a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> image surface that refers to the same bits
|
290
|
-
as the DIB of the Win32 surface. If the passed-in win32 surface
|
291
|
-
is not a DIB surface, <code class="literal">NULL</code> is returned.</p>
|
292
|
-
<p>
|
293
|
-
|
294
|
-
</p>
|
295
|
-
<div class="variablelist"><table border="0">
|
296
|
-
<col align="left" valign="top">
|
297
|
-
<tbody>
|
298
|
-
<tr>
|
299
|
-
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
300
|
-
<td> a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a>
|
301
|
-
</td>
|
302
|
-
</tr>
|
303
|
-
<tr>
|
304
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
305
|
-
<td> a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> (owned by the win32 <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a>),
|
306
|
-
or <code class="literal">NULL</code> if the win32 surface is not a DIB.
|
307
|
-
|
308
|
-
</td>
|
309
|
-
</tr>
|
310
|
-
</tbody>
|
311
|
-
</table></div>
|
312
|
-
<p class="since">Since 1.4
|
313
|
-
</p>
|
314
|
-
</div>
|
315
|
-
</div>
|
316
|
-
<div class="refsect1" lang="en">
|
317
|
-
<a name="id2664674"></a><h2>See Also</h2>
|
318
|
-
<p>
|
319
|
-
</p>
|
320
|
-
<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>
|
321
|
-
<p>
|
322
|
-
</p>
|
323
|
-
</div>
|
324
|
-
<div class="refsect1" lang="en">
|
325
|
-
<a name="id2664697"></a><div class="refsect2" lang="en"><a name="id2664698"></a></div>
|
326
|
-
<hr>
|
327
|
-
<div class="refsect2" lang="en"><a name="id2664699"></a></div>
|
328
|
-
</div>
|
329
|
-
</div>
|
330
|
-
</body>
|
331
|
-
</html>
|