comparison CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html @ 68:5028fdace37b

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 16:23:26 -0400
parents
children
comparison
equal deleted inserted replaced
67:0e9998148a16 68:5028fdace37b
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>Win32 Fonts: Cairo: A Vector Graphics Library</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7 <link rel="home" 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-FreeType-Fonts.html" title="FreeType Fonts">
10 <link rel="next" href="cairo-Quartz-(CGFont)-Fonts.html" title="Quartz (CGFont) Fonts">
11 <meta name="generator" content="GTK-Doc V1.27 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16 <td width="100%" align="left" class="shortcuts">
17 <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
18 <a href="#cairo-Win32-Fonts.description" class="shortcut">Description</a></span>
19 </td>
20 <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
21 <td><a accesskey="u" href="cairo-fonts.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
22 <td><a accesskey="p" href="cairo-FreeType-Fonts.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
23 <td><a accesskey="n" href="cairo-Quartz-(CGFont)-Fonts.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
24 </tr></table>
25 <div class="refentry">
26 <a name="cairo-Win32-Fonts"></a><div class="titlepage"></div>
27 <div class="refnamediv"><table width="100%"><tr>
28 <td valign="top">
29 <h2><span class="refentrytitle"><a name="cairo-Win32-Fonts.top_of_page"></a>Win32 Fonts</span></h2>
30 <p>Win32 Fonts — Font support for Microsoft Windows</p>
31 </td>
32 <td class="gallery_image" valign="top" align="right"></td>
33 </tr></table></div>
34 <div class="refsect1">
35 <a name="cairo-Win32-Fonts.functions"></a><h2>Functions</h2>
36 <div class="informaltable"><table class="informaltable" width="100%" border="0">
37 <colgroup>
38 <col width="150px" class="functions_return">
39 <col class="functions_name">
40 </colgroup>
41 <tbody>
42 <tr>
43 <td class="function_type">
44 <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> *
45 </td>
46 <td class="function_name">
47 <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-font-face-create-for-logfontw" title="cairo_win32_font_face_create_for_logfontw ()">cairo_win32_font_face_create_for_logfontw</a> <span class="c_punctuation">()</span>
48 </td>
49 </tr>
50 <tr>
51 <td class="function_type">
52 <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> *
53 </td>
54 <td class="function_name">
55 <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-font-face-create-for-hfont" title="cairo_win32_font_face_create_for_hfont ()">cairo_win32_font_face_create_for_hfont</a> <span class="c_punctuation">()</span>
56 </td>
57 </tr>
58 <tr>
59 <td class="function_type">
60 <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> *
61 </td>
62 <td class="function_name">
63 <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-font-face-create-for-logfontw-hfont" title="cairo_win32_font_face_create_for_logfontw_hfont ()">cairo_win32_font_face_create_for_logfontw_hfont</a> <span class="c_punctuation">()</span>
64 </td>
65 </tr>
66 <tr>
67 <td class="function_type">
68 <a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="returnvalue">cairo_status_t</span></a>
69 </td>
70 <td class="function_name">
71 <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-select-font" title="cairo_win32_scaled_font_select_font ()">cairo_win32_scaled_font_select_font</a> <span class="c_punctuation">()</span>
72 </td>
73 </tr>
74 <tr>
75 <td class="function_type">
76 <span class="returnvalue">void</span>
77 </td>
78 <td class="function_name">
79 <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-done-font" title="cairo_win32_scaled_font_done_font ()">cairo_win32_scaled_font_done_font</a> <span class="c_punctuation">()</span>
80 </td>
81 </tr>
82 <tr>
83 <td class="function_type">
84 <span class="returnvalue">double</span>
85 </td>
86 <td class="function_name">
87 <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-get-metrics-factor" title="cairo_win32_scaled_font_get_metrics_factor ()">cairo_win32_scaled_font_get_metrics_factor</a> <span class="c_punctuation">()</span>
88 </td>
89 </tr>
90 <tr>
91 <td class="function_type">
92 <span class="returnvalue">void</span>
93 </td>
94 <td class="function_name">
95 <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-get-logical-to-device" title="cairo_win32_scaled_font_get_logical_to_device ()">cairo_win32_scaled_font_get_logical_to_device</a> <span class="c_punctuation">()</span>
96 </td>
97 </tr>
98 <tr>
99 <td class="function_type">
100 <span class="returnvalue">void</span>
101 </td>
102 <td class="function_name">
103 <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-get-device-to-logical" title="cairo_win32_scaled_font_get_device_to_logical ()">cairo_win32_scaled_font_get_device_to_logical</a> <span class="c_punctuation">()</span>
104 </td>
105 </tr>
106 </tbody>
107 </table></div>
108 </div>
109 <div class="refsect1">
110 <a name="cairo-Win32-Fonts.other"></a><h2>Types and Values</h2>
111 <div class="informaltable"><table class="informaltable" width="100%" border="0">
112 <colgroup>
113 <col width="150px" class="name">
114 <col class="description">
115 </colgroup>
116 <tbody><tr>
117 <td class="define_keyword">#define</td>
118 <td class="function_name"><a class="link" href="cairo-Win32-Fonts.html#CAIRO-HAS-WIN32-FONT:CAPS" title="CAIRO_HAS_WIN32_FONT">CAIRO_HAS_WIN32_FONT</a></td>
119 </tr></tbody>
120 </table></div>
121 </div>
122 <div class="refsect1">
123 <a name="cairo-Win32-Fonts.description"></a><h2>Description</h2>
124 <p>The Microsoft Windows font backend is primarily used to render text on
125 Microsoft Windows systems.</p>
126 </div>
127 <div class="refsect1">
128 <a name="cairo-Win32-Fonts.functions_details"></a><h2>Functions</h2>
129 <div class="refsect2">
130 <a name="cairo-win32-font-face-create-for-logfontw"></a><h3>cairo_win32_font_face_create_for_logfontw ()</h3>
131 <pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> *
132 cairo_win32_font_face_create_for_logfontw
133 (<em class="parameter"><code><span class="type">LOGFONTW</span> *logfont</code></em>);</pre>
134 <p>Creates a new font for the Win32 font backend based on a
135 <span class="type">LOGFONT</span>. This font can then be used with
136 <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-cairo-scaled-font-t.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a>.
137 The <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
138 returned from <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a> is also for the Win32 backend
139 and can be used with functions such as <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-select-font" title="cairo_win32_scaled_font_select_font ()"><code class="function">cairo_win32_scaled_font_select_font()</code></a>.</p>
140 <div class="refsect3">
141 <a name="cairo-win32-font-face-create-for-logfontw.parameters"></a><h4>Parameters</h4>
142 <div class="informaltable"><table class="informaltable" width="100%" border="0">
143 <colgroup>
144 <col width="150px" class="parameters_name">
145 <col class="parameters_description">
146 <col width="200px" class="parameters_annotations">
147 </colgroup>
148 <tbody><tr>
149 <td class="parameter_name"><p>logfont</p></td>
150 <td class="parameter_description"><p>A <span class="type">LOGFONTW</span> structure specifying the font to use.
151 The lfHeight, lfWidth, lfOrientation and lfEscapement
152 fields of this structure are ignored.</p></td>
153 <td class="parameter_annotations"> </td>
154 </tr></tbody>
155 </table></div>
156 </div>
157 <div class="refsect3">
158 <a name="cairo-win32-font-face-create-for-logfontw.returns"></a><h4>Returns</h4>
159 <p> a newly created <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>. Free with
160 <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-destroy" title="cairo_font_face_destroy ()"><code class="function">cairo_font_face_destroy()</code></a> when you are done using it.</p>
161 </div>
162 <p class="since">Since: 1.0</p>
163 </div>
164 <hr>
165 <div class="refsect2">
166 <a name="cairo-win32-font-face-create-for-hfont"></a><h3>cairo_win32_font_face_create_for_hfont ()</h3>
167 <pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> *
168 cairo_win32_font_face_create_for_hfont
169 (<em class="parameter"><code><span class="type">HFONT</span> font</code></em>);</pre>
170 <p>Creates a new font for the Win32 font backend based on a
171 <span class="type">HFONT</span>. This font can then be used with
172 <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-cairo-scaled-font-t.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a>.
173 The <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
174 returned from <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a> is also for the Win32 backend
175 and can be used with functions such as <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-select-font" title="cairo_win32_scaled_font_select_font ()"><code class="function">cairo_win32_scaled_font_select_font()</code></a>.</p>
176 <div class="refsect3">
177 <a name="cairo-win32-font-face-create-for-hfont.parameters"></a><h4>Parameters</h4>
178 <div class="informaltable"><table class="informaltable" width="100%" border="0">
179 <colgroup>
180 <col width="150px" class="parameters_name">
181 <col class="parameters_description">
182 <col width="200px" class="parameters_annotations">
183 </colgroup>
184 <tbody><tr>
185 <td class="parameter_name"><p>font</p></td>
186 <td class="parameter_description"><p>An <span class="type">HFONT</span> structure specifying the font to use.</p></td>
187 <td class="parameter_annotations"> </td>
188 </tr></tbody>
189 </table></div>
190 </div>
191 <div class="refsect3">
192 <a name="cairo-win32-font-face-create-for-hfont.returns"></a><h4>Returns</h4>
193 <p> a newly created <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>. Free with
194 <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-destroy" title="cairo_font_face_destroy ()"><code class="function">cairo_font_face_destroy()</code></a> when you are done using it.</p>
195 </div>
196 <p class="since">Since: 1.2</p>
197 </div>
198 <hr>
199 <div class="refsect2">
200 <a name="cairo-win32-font-face-create-for-logfontw-hfont"></a><h3>cairo_win32_font_face_create_for_logfontw_hfont ()</h3>
201 <pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> *
202 cairo_win32_font_face_create_for_logfontw_hfont
203 (<em class="parameter"><code><span class="type">LOGFONTW</span> *logfont</code></em>,
204 <em class="parameter"><code><span class="type">HFONT</span> font</code></em>);</pre>
205 <p>Creates a new font for the Win32 font backend based on a
206 <span class="type">LOGFONT</span>. This font can then be used with
207 <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-cairo-scaled-font-t.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a>.
208 The <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a>
209 returned from <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a> is also for the Win32 backend
210 and can be used with functions such as <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-select-font" title="cairo_win32_scaled_font_select_font ()"><code class="function">cairo_win32_scaled_font_select_font()</code></a>.</p>
211 <div class="refsect3">
212 <a name="cairo-win32-font-face-create-for-logfontw-hfont.parameters"></a><h4>Parameters</h4>
213 <div class="informaltable"><table class="informaltable" width="100%" border="0">
214 <colgroup>
215 <col width="150px" class="parameters_name">
216 <col class="parameters_description">
217 <col width="200px" class="parameters_annotations">
218 </colgroup>
219 <tbody>
220 <tr>
221 <td class="parameter_name"><p>logfont</p></td>
222 <td class="parameter_description"><p>A <span class="type">LOGFONTW</span> structure specifying the font to use.
223 If <em class="parameter"><code>font</code></em>
224 is <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> then the lfHeight, lfWidth, lfOrientation and lfEscapement
225 fields of this structure are ignored. Otherwise lfWidth, lfOrientation and
226 lfEscapement must be zero.</p></td>
227 <td class="parameter_annotations"> </td>
228 </tr>
229 <tr>
230 <td class="parameter_name"><p>font</p></td>
231 <td class="parameter_description"><p>An <span class="type">HFONT</span> that can be used when the font matrix is a scale by
232 -lfHeight and the CTM is identity.</p></td>
233 <td class="parameter_annotations"> </td>
234 </tr>
235 </tbody>
236 </table></div>
237 </div>
238 <div class="refsect3">
239 <a name="cairo-win32-font-face-create-for-logfontw-hfont.returns"></a><h4>Returns</h4>
240 <p> a newly created <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>. Free with
241 <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-destroy" title="cairo_font_face_destroy ()"><code class="function">cairo_font_face_destroy()</code></a> when you are done using it.</p>
242 </div>
243 <p class="since">Since: 1.6</p>
244 </div>
245 <hr>
246 <div class="refsect2">
247 <a name="cairo-win32-scaled-font-select-font"></a><h3>cairo_win32_scaled_font_select_font ()</h3>
248 <pre class="programlisting"><a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="returnvalue">cairo_status_t</span></a>
249 cairo_win32_scaled_font_select_font (<em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> *scaled_font</code></em>,
250 <em class="parameter"><code><span class="type">HDC</span> hdc</code></em>);</pre>
251 <p>Selects the font into the given device context and changes the
252 map mode and world transformation of the device context to match
253 that of the font. This function is intended for use when using
254 layout APIs such as Uniscribe to do text layout with the
255 cairo font. After finishing using the device context, you must call
256 <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-done-font" title="cairo_win32_scaled_font_done_font ()"><code class="function">cairo_win32_scaled_font_done_font()</code></a> to release any resources allocated
257 by this function.</p>
258 <p>See <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-get-metrics-factor" title="cairo_win32_scaled_font_get_metrics_factor ()"><code class="function">cairo_win32_scaled_font_get_metrics_factor()</code></a> for converting logical
259 coordinates from the device context to font space.</p>
260 <p>Normally, calls to <code class="function">SaveDC()</code> and <code class="function">RestoreDC()</code> would be made around
261 the use of this function to preserve the original graphics state.</p>
262 <div class="refsect3">
263 <a name="cairo-win32-scaled-font-select-font.parameters"></a><h4>Parameters</h4>
264 <div class="informaltable"><table class="informaltable" width="100%" border="0">
265 <colgroup>
266 <col width="150px" class="parameters_name">
267 <col class="parameters_description">
268 <col width="200px" class="parameters_annotations">
269 </colgroup>
270 <tbody>
271 <tr>
272 <td class="parameter_name"><p>scaled_font</p></td>
273 <td class="parameter_description"><p>A <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> from the Win32 font backend. Such an
274 object can be created with <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-font-face-create-for-logfontw" title="cairo_win32_font_face_create_for_logfontw ()"><code class="function">cairo_win32_font_face_create_for_logfontw()</code></a>.</p></td>
275 <td class="parameter_annotations"> </td>
276 </tr>
277 <tr>
278 <td class="parameter_name"><p>hdc</p></td>
279 <td class="parameter_description"><p>a device context</p></td>
280 <td class="parameter_annotations"> </td>
281 </tr>
282 </tbody>
283 </table></div>
284 </div>
285 <div class="refsect3">
286 <a name="cairo-win32-scaled-font-select-font.returns"></a><h4>Returns</h4>
287 <p> <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a> if the operation succeeded.
288 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
289 the device context is unchanged.</p>
290 </div>
291 <p class="since">Since: 1.0</p>
292 </div>
293 <hr>
294 <div class="refsect2">
295 <a name="cairo-win32-scaled-font-done-font"></a><h3>cairo_win32_scaled_font_done_font ()</h3>
296 <pre class="programlisting"><span class="returnvalue">void</span>
297 cairo_win32_scaled_font_done_font (<em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> *scaled_font</code></em>);</pre>
298 <p>Releases any resources allocated by <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-select-font" title="cairo_win32_scaled_font_select_font ()"><code class="function">cairo_win32_scaled_font_select_font()</code></a></p>
299 <div class="refsect3">
300 <a name="cairo-win32-scaled-font-done-font.parameters"></a><h4>Parameters</h4>
301 <div class="informaltable"><table class="informaltable" width="100%" border="0">
302 <colgroup>
303 <col width="150px" class="parameters_name">
304 <col class="parameters_description">
305 <col width="200px" class="parameters_annotations">
306 </colgroup>
307 <tbody><tr>
308 <td class="parameter_name"><p>scaled_font</p></td>
309 <td class="parameter_description"><p>A scaled font from the Win32 font backend.</p></td>
310 <td class="parameter_annotations"> </td>
311 </tr></tbody>
312 </table></div>
313 </div>
314 <p class="since">Since: 1.0</p>
315 </div>
316 <hr>
317 <div class="refsect2">
318 <a name="cairo-win32-scaled-font-get-metrics-factor"></a><h3>cairo_win32_scaled_font_get_metrics_factor ()</h3>
319 <pre class="programlisting"><span class="returnvalue">double</span>
320 cairo_win32_scaled_font_get_metrics_factor
321 (<em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> *scaled_font</code></em>);</pre>
322 <p>Gets a scale factor between logical coordinates in the coordinate
323 space used by <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-select-font" title="cairo_win32_scaled_font_select_font ()"><code class="function">cairo_win32_scaled_font_select_font()</code></a> (that is, the
324 coordinate system used by the Windows functions to return metrics) and
325 font space coordinates.</p>
326 <div class="refsect3">
327 <a name="cairo-win32-scaled-font-get-metrics-factor.parameters"></a><h4>Parameters</h4>
328 <div class="informaltable"><table class="informaltable" width="100%" border="0">
329 <colgroup>
330 <col width="150px" class="parameters_name">
331 <col class="parameters_description">
332 <col width="200px" class="parameters_annotations">
333 </colgroup>
334 <tbody><tr>
335 <td class="parameter_name"><p>scaled_font</p></td>
336 <td class="parameter_description"><p>a scaled font from the Win32 font backend</p></td>
337 <td class="parameter_annotations"> </td>
338 </tr></tbody>
339 </table></div>
340 </div>
341 <div class="refsect3">
342 <a name="cairo-win32-scaled-font-get-metrics-factor.returns"></a><h4>Returns</h4>
343 <p> factor to multiply logical units by to get font space
344 coordinates.</p>
345 </div>
346 <p class="since">Since: 1.0</p>
347 </div>
348 <hr>
349 <div class="refsect2">
350 <a name="cairo-win32-scaled-font-get-logical-to-device"></a><h3>cairo_win32_scaled_font_get_logical_to_device ()</h3>
351 <pre class="programlisting"><span class="returnvalue">void</span>
352 cairo_win32_scaled_font_get_logical_to_device
353 (<em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> *scaled_font</code></em>,
354 <em class="parameter"><code><a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *logical_to_device</code></em>);</pre>
355 <p>Gets the transformation mapping the logical space used by <em class="parameter"><code>scaled_font</code></em>
356
357 to device space.</p>
358 <div class="refsect3">
359 <a name="cairo-win32-scaled-font-get-logical-to-device.parameters"></a><h4>Parameters</h4>
360 <div class="informaltable"><table class="informaltable" width="100%" border="0">
361 <colgroup>
362 <col width="150px" class="parameters_name">
363 <col class="parameters_description">
364 <col width="200px" class="parameters_annotations">
365 </colgroup>
366 <tbody>
367 <tr>
368 <td class="parameter_name"><p>scaled_font</p></td>
369 <td class="parameter_description"><p>a scaled font from the Win32 font backend</p></td>
370 <td class="parameter_annotations"> </td>
371 </tr>
372 <tr>
373 <td class="parameter_name"><p>logical_to_device</p></td>
374 <td class="parameter_description"><p>matrix to return</p></td>
375 <td class="parameter_annotations"> </td>
376 </tr>
377 </tbody>
378 </table></div>
379 </div>
380 <p class="since">Since: 1.4</p>
381 </div>
382 <hr>
383 <div class="refsect2">
384 <a name="cairo-win32-scaled-font-get-device-to-logical"></a><h3>cairo_win32_scaled_font_get_device_to_logical ()</h3>
385 <pre class="programlisting"><span class="returnvalue">void</span>
386 cairo_win32_scaled_font_get_device_to_logical
387 (<em class="parameter"><code><a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> *scaled_font</code></em>,
388 <em class="parameter"><code><a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *device_to_logical</code></em>);</pre>
389 <p>Gets the transformation mapping device space to the logical space
390 used by <em class="parameter"><code>scaled_font</code></em>
391 .</p>
392 <div class="refsect3">
393 <a name="cairo-win32-scaled-font-get-device-to-logical.parameters"></a><h4>Parameters</h4>
394 <div class="informaltable"><table class="informaltable" width="100%" border="0">
395 <colgroup>
396 <col width="150px" class="parameters_name">
397 <col class="parameters_description">
398 <col width="200px" class="parameters_annotations">
399 </colgroup>
400 <tbody>
401 <tr>
402 <td class="parameter_name"><p>scaled_font</p></td>
403 <td class="parameter_description"><p>a scaled font from the Win32 font backend</p></td>
404 <td class="parameter_annotations"> </td>
405 </tr>
406 <tr>
407 <td class="parameter_name"><p>device_to_logical</p></td>
408 <td class="parameter_description"><p>matrix to return</p></td>
409 <td class="parameter_annotations"> </td>
410 </tr>
411 </tbody>
412 </table></div>
413 </div>
414 <p class="since">Since: 1.4</p>
415 </div>
416 </div>
417 <div class="refsect1">
418 <a name="cairo-Win32-Fonts.other_details"></a><h2>Types and Values</h2>
419 <div class="refsect2">
420 <a name="CAIRO-HAS-WIN32-FONT:CAPS"></a><h3>CAIRO_HAS_WIN32_FONT</h3>
421 <pre class="programlisting">#define CAIRO_HAS_WIN32_FONT 1
422 </pre>
423 <p>Defined if the Microsoft Windows font backend is available.
424 This macro can be used to conditionally compile backend-specific code.</p>
425 <p class="since">Since: 1.8</p>
426 </div>
427 </div>
428 <div class="refsect1">
429 <a name="cairo-Win32-Fonts.see-also"></a><h2>See Also</h2>
430 <p><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a></p>
431 </div>
432 </div>
433 <div class="footer">
434 <hr>Generated by GTK-Doc V1.27</div>
435 </body>
436 </html>