cairo 1.14.1-x64-mingw32 → 1.14.2-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of cairo might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/NEWS +21 -0
- data/Rakefile +17 -6
- data/ext/cairo/cairo.def +1 -0
- data/ext/cairo/extconf.rb +23 -10
- data/ext/cairo/rb_cairo.c +3 -0
- data/ext/cairo/rb_cairo.h +3 -3
- data/ext/cairo/rb_cairo_context.c +1 -1
- data/ext/cairo/rb_cairo_io.c +4 -0
- data/ext/cairo/rb_cairo_io.h +2 -0
- data/ext/cairo/rb_cairo_pattern.c +4 -4
- data/ext/cairo/rb_cairo_private.h +2 -0
- data/ext/cairo/rb_cairo_surface.c +64 -232
- data/lib/2.0/cairo.so +0 -0
- data/lib/2.1/cairo.so +0 -0
- data/lib/2.2/cairo.so +0 -0
- data/lib/cairo.rb +20 -19
- data/lib/cairo/region.rb +14 -0
- data/test/test_region.rb +26 -0
- data/vendor/local/bin/fc-cache.exe +0 -0
- data/vendor/local/bin/fc-cat.exe +0 -0
- data/vendor/local/bin/fc-list.exe +0 -0
- data/vendor/local/bin/fc-match.exe +0 -0
- data/vendor/local/bin/fc-pattern.exe +0 -0
- data/vendor/local/bin/fc-query.exe +0 -0
- data/vendor/local/bin/fc-scan.exe +0 -0
- data/vendor/local/bin/fc-validate.exe +0 -0
- data/vendor/local/bin/freetype-config +2 -2
- data/vendor/local/bin/libcairo-2.dll +0 -0
- data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
- data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
- data/vendor/local/bin/libfontconfig-1.dll +0 -0
- data/vendor/local/bin/libfreetype-6.dll +0 -0
- data/vendor/local/bin/libgcc_s_seh-1.dll +0 -0
- data/vendor/local/bin/libpixman-1-0.dll +0 -0
- data/vendor/local/bin/libpng-config +1 -1
- data/vendor/local/bin/libpng16-16.dll +0 -0
- data/vendor/local/bin/libpng16-config +1 -1
- data/vendor/local/bin/libstdc++-6.dll +0 -0
- data/vendor/local/bin/libwinpthread-1.dll +0 -0
- data/vendor/local/bin/libxml2-2.dll +0 -0
- data/vendor/local/bin/png-fix-itxt.exe +0 -0
- data/vendor/local/bin/pngfix.exe +0 -0
- data/vendor/local/bin/xmlcatalog.exe +0 -0
- data/vendor/local/bin/xmllint.exe +0 -0
- data/vendor/local/bin/zlib1.dll +0 -0
- data/vendor/local/include/cairo/cairo-version.h +1 -1
- data/vendor/local/include/freetype2/config/ftconfig.h +19 -2
- data/vendor/local/include/freetype2/config/ftheader.h +7 -5
- data/vendor/local/include/freetype2/config/ftoption.h +9 -22
- data/vendor/local/include/freetype2/config/ftstdlib.h +2 -3
- data/vendor/local/include/freetype2/freetype.h +38 -17
- data/vendor/local/include/freetype2/ft2build.h +1 -1
- data/vendor/local/include/freetype2/ftadvanc.h +2 -2
- data/vendor/local/include/freetype2/ftautoh.h +50 -2
- data/vendor/local/include/freetype2/ftbbox.h +1 -1
- data/vendor/local/include/freetype2/ftbdf.h +1 -1
- data/vendor/local/include/freetype2/ftbitmap.h +11 -3
- data/vendor/local/include/freetype2/ftbzip2.h +1 -1
- data/vendor/local/include/freetype2/ftcache.h +3 -3
- data/vendor/local/include/freetype2/ftcffdrv.h +1 -1
- data/vendor/local/include/freetype2/ftcid.h +2 -1
- data/vendor/local/include/freetype2/fterrdef.h +1 -1
- data/vendor/local/include/freetype2/fterrors.h +1 -1
- data/vendor/local/include/freetype2/{ftxf86.h → ftfntfmt.h} +22 -14
- data/vendor/local/include/freetype2/ftgasp.h +1 -1
- data/vendor/local/include/freetype2/ftglyph.h +1 -1
- data/vendor/local/include/freetype2/ftgxval.h +1 -1
- data/vendor/local/include/freetype2/ftgzip.h +1 -1
- data/vendor/local/include/freetype2/ftimage.h +7 -13
- data/vendor/local/include/freetype2/ftincrem.h +1 -1
- data/vendor/local/include/freetype2/ftlcdfil.h +2 -2
- data/vendor/local/include/freetype2/ftlist.h +1 -1
- data/vendor/local/include/freetype2/ftlzw.h +1 -1
- data/vendor/local/include/freetype2/ftmac.h +1 -1
- data/vendor/local/include/freetype2/ftmm.h +17 -11
- data/vendor/local/include/freetype2/ftmodapi.h +4 -2
- data/vendor/local/include/freetype2/ftmoderr.h +1 -1
- data/vendor/local/include/freetype2/ftotval.h +1 -1
- data/vendor/local/include/freetype2/ftoutln.h +1 -1
- data/vendor/local/include/freetype2/ftpfr.h +1 -1
- data/vendor/local/include/freetype2/ftrender.h +3 -8
- data/vendor/local/include/freetype2/ftsizes.h +1 -1
- data/vendor/local/include/freetype2/ftsnames.h +1 -1
- data/vendor/local/include/freetype2/ftstroke.h +1 -1
- data/vendor/local/include/freetype2/ftsynth.h +5 -3
- data/vendor/local/include/freetype2/ftsystem.h +10 -1
- data/vendor/local/include/freetype2/fttrigon.h +1 -1
- data/vendor/local/include/freetype2/ftttdrv.h +85 -22
- data/vendor/local/include/freetype2/fttypes.h +1 -1
- data/vendor/local/include/freetype2/ftwinfnt.h +3 -3
- data/vendor/local/include/freetype2/t1tables.h +4 -3
- data/vendor/local/include/freetype2/ttnameid.h +116 -116
- data/vendor/local/include/freetype2/tttables.h +2 -2
- data/vendor/local/include/freetype2/tttags.h +1 -1
- data/vendor/local/include/freetype2/ttunpat.h +1 -1
- data/vendor/local/include/libpng16/png.h +63 -80
- data/vendor/local/include/libpng16/pngconf.h +8 -30
- data/vendor/local/include/libpng16/pnglibconf.h +10 -4
- data/vendor/local/include/png.h +63 -80
- data/vendor/local/include/pngconf.h +8 -30
- data/vendor/local/include/pnglibconf.h +10 -4
- data/vendor/local/lib/libcairo-gobject.a +0 -0
- data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
- data/vendor/local/lib/libcairo-gobject.la +2 -2
- data/vendor/local/lib/libcairo-script-interpreter.a +0 -0
- data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
- data/vendor/local/lib/libcairo-script-interpreter.la +2 -2
- data/vendor/local/lib/libcairo.a +0 -0
- data/vendor/local/lib/libcairo.dll.a +0 -0
- data/vendor/local/lib/libcairo.la +2 -2
- data/vendor/local/lib/libfontconfig.dll.a +0 -0
- data/vendor/local/lib/libfreetype.a +0 -0
- data/vendor/local/lib/libfreetype.dll.a +0 -0
- data/vendor/local/lib/libfreetype.la +4 -4
- data/vendor/local/lib/libpixman-1.a +0 -0
- data/vendor/local/lib/libpixman-1.dll.a +0 -0
- data/vendor/local/lib/libpng.a +0 -0
- data/vendor/local/lib/libpng.dll.a +0 -0
- data/vendor/local/lib/libpng.la +4 -4
- data/vendor/local/lib/libpng16.a +0 -0
- data/vendor/local/lib/libpng16.dll.a +0 -0
- data/vendor/local/lib/libpng16.la +4 -4
- data/vendor/local/lib/libxml2.a +0 -0
- data/vendor/local/lib/libxml2.dll.a +0 -0
- data/vendor/local/lib/libz.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/cairo-fc.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-ft.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-gobject.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-pdf.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-png.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-ps.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-script.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-svg.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-win32.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo.pc +1 -1
- data/vendor/local/lib/pkgconfig/freetype2.pc +1 -1
- data/vendor/local/lib/pkgconfig/libpng.pc +1 -1
- data/vendor/local/lib/pkgconfig/libpng16.pc +1 -1
- data/vendor/local/share/aclocal/freetype2.m4 +1 -1
- data/vendor/local/share/gtk-doc/html/cairo/bindings-errors.html +12 -12
- data/vendor/local/share/gtk-doc/html/cairo/bindings-fonts.html +12 -12
- data/vendor/local/share/gtk-doc/html/cairo/bindings-memory.html +12 -12
- data/vendor/local/share/gtk-doc/html/cairo/bindings-overloading.html +13 -13
- data/vendor/local/share/gtk-doc/html/cairo/bindings-path.html +12 -12
- data/vendor/local/share/gtk-doc/html/cairo/bindings-patterns.html +35 -35
- data/vendor/local/share/gtk-doc/html/cairo/bindings-return-values.html +10 -10
- data/vendor/local/share/gtk-doc/html/cairo/bindings-streams.html +11 -11
- data/vendor/local/share/gtk-doc/html/cairo/bindings-surfaces.html +13 -13
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +294 -225
- data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +387 -269
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +432 -302
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +325 -217
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PNG-Support.html +298 -193
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +1121 -812
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +513 -383
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-(CGFont)-Fonts.html +126 -83
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html +172 -119
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Raster-Sources.html +581 -372
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Recording-Surfaces.html +179 -130
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +888 -539
- data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +287 -192
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Script-Surfaces.html +374 -231
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Transformations.html +395 -219
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Types.html +125 -75
- data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +630 -464
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Version-Information.html +225 -200
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +336 -214
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +277 -186
- data/vendor/local/share/gtk-doc/html/cairo/cairo-XCB-Surfaces.html +495 -350
- data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +557 -362
- data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-XRender-Backend.html +158 -111
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html +655 -441
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +389 -280
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html +667 -451
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html +579 -351
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html +2006 -1545
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +892 -618
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +1624 -1188
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +2903 -2104
- data/vendor/local/share/gtk-doc/html/cairo/cairo-drawing.html +13 -13
- data/vendor/local/share/gtk-doc/html/cairo/cairo-fonts.html +13 -13
- data/vendor/local/share/gtk-doc/html/cairo/cairo-support.html +13 -13
- data/vendor/local/share/gtk-doc/html/cairo/cairo-surfaces.html +13 -13
- data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +1115 -758
- data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +419 -604
- data/vendor/local/share/gtk-doc/html/cairo/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/index-1.10.html +56 -56
- data/vendor/local/share/gtk-doc/html/cairo/index-1.12.html +70 -70
- data/vendor/local/share/gtk-doc/html/cairo/index-1.2.html +58 -58
- data/vendor/local/share/gtk-doc/html/cairo/index-1.4.html +39 -39
- data/vendor/local/share/gtk-doc/html/cairo/index-1.6.html +30 -30
- data/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +38 -38
- data/vendor/local/share/gtk-doc/html/cairo/index-all.html +426 -426
- data/vendor/local/share/gtk-doc/html/cairo/index.html +6 -6
- data/vendor/local/share/gtk-doc/html/cairo/index.sgml +234 -325
- data/vendor/local/share/gtk-doc/html/cairo/language-bindings.html +12 -12
- data/vendor/local/share/gtk-doc/html/cairo/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/style.css +221 -26
- data/vendor/local/share/gtk-doc/html/cairo/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/up.png +0 -0
- data/vendor/local/share/license/cairo/README +1 -1
- data/vendor/local/share/license/freetype/README +6 -6
- data/vendor/local/share/license/freetype/README.git +1 -1
- data/vendor/local/share/license/libpng/README +2 -2
- data/vendor/local/share/man/man1/freetype-config.1 +1 -1
- data/vendor/local/share/man/man3/libpng.3 +85 -92
- data/vendor/local/share/man/man3/libpngpf.3 +2 -2
- data/vendor/local/share/man/man5/png.5 +1 -1
- metadata +23 -19
@@ -2,30 +2,27 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Win32 Fonts</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
5
|
+
<title>Cairo: A Vector Graphics Library: Win32 Fonts</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
8
|
<link rel="up" href="cairo-fonts.html" title="Fonts">
|
9
9
|
<link rel="prev" href="cairo-FreeType-Fonts.html" title="FreeType Fonts">
|
10
10
|
<link rel="next" href="cairo-Quartz-(CGFont)-Fonts.html" title="Quartz (CGFont) Fonts">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.20 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="
|
16
|
-
<
|
17
|
-
<
|
18
|
-
<
|
19
|
-
<
|
20
|
-
|
21
|
-
<td><a accesskey="
|
22
|
-
|
23
|
-
<
|
24
|
-
<a href="
|
25
|
-
|
26
|
-
<a href="#cairo-Win32-Fonts.description" class="shortcut">Description</a>
|
27
|
-
</td></tr>
|
28
|
-
</table>
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
|
16
|
+
<td width="100%" align="left" class="shortcuts">
|
17
|
+
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
|
18
|
+
<a href="#cairo-Win32-Fonts.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
|
19
|
+
<a href="#cairo-Win32-Fonts.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
|
20
|
+
</td>
|
21
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
22
|
+
<td><a accesskey="u" href="cairo-fonts.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
23
|
+
<td><a accesskey="p" href="cairo-FreeType-Fonts.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
24
|
+
<td><a accesskey="n" href="cairo-Quartz-(CGFont)-Fonts.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
25
|
+
</tr></table>
|
29
26
|
<div class="refentry">
|
30
27
|
<a name="cairo-Win32-Fonts"></a><div class="titlepage"></div>
|
31
28
|
<div class="refnamediv"><table width="100%"><tr>
|
@@ -33,294 +30,419 @@
|
|
33
30
|
<h2><span class="refentrytitle"><a name="cairo-Win32-Fonts.top_of_page"></a>Win32 Fonts</span></h2>
|
34
31
|
<p>Win32 Fonts — Font support for Microsoft Windows</p>
|
35
32
|
</td>
|
36
|
-
<td valign="top" align="right"></td>
|
33
|
+
<td class="gallery_image" valign="top" align="right"></td>
|
37
34
|
</tr></table></div>
|
38
|
-
<div class="
|
39
|
-
<a name="cairo-Win32-Fonts.
|
40
|
-
<
|
41
|
-
<
|
42
|
-
|
43
|
-
<
|
44
|
-
|
45
|
-
<
|
46
|
-
|
47
|
-
|
48
|
-
<a class="link" href="cairo-
|
49
|
-
|
50
|
-
<
|
51
|
-
<
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
<
|
57
|
-
|
58
|
-
|
59
|
-
</
|
35
|
+
<div class="refsect1">
|
36
|
+
<a name="cairo-Win32-Fonts.functions"></a><h2>Functions</h2>
|
37
|
+
<div class="informaltable"><table width="100%" border="0">
|
38
|
+
<colgroup>
|
39
|
+
<col width="150px" class="functions_return">
|
40
|
+
<col class="functions_name">
|
41
|
+
</colgroup>
|
42
|
+
<tbody>
|
43
|
+
<tr>
|
44
|
+
<td class="function_type">
|
45
|
+
<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> *
|
46
|
+
</td>
|
47
|
+
<td class="function_name">
|
48
|
+
<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>
|
49
|
+
</td>
|
50
|
+
</tr>
|
51
|
+
<tr>
|
52
|
+
<td class="function_type">
|
53
|
+
<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> *
|
54
|
+
</td>
|
55
|
+
<td class="function_name">
|
56
|
+
<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>
|
57
|
+
</td>
|
58
|
+
</tr>
|
59
|
+
<tr>
|
60
|
+
<td class="function_type">
|
61
|
+
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> *
|
62
|
+
</td>
|
63
|
+
<td class="function_name">
|
64
|
+
<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>
|
65
|
+
</td>
|
66
|
+
</tr>
|
67
|
+
<tr>
|
68
|
+
<td class="function_type">
|
69
|
+
<a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="returnvalue">cairo_status_t</span></a>
|
70
|
+
</td>
|
71
|
+
<td class="function_name">
|
72
|
+
<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>
|
73
|
+
</td>
|
74
|
+
</tr>
|
75
|
+
<tr>
|
76
|
+
<td class="function_type">
|
77
|
+
<span class="returnvalue">void</span>
|
78
|
+
</td>
|
79
|
+
<td class="function_name">
|
80
|
+
<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>
|
81
|
+
</td>
|
82
|
+
</tr>
|
83
|
+
<tr>
|
84
|
+
<td class="function_type">
|
85
|
+
<span class="returnvalue">double</span>
|
86
|
+
</td>
|
87
|
+
<td class="function_name">
|
88
|
+
<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>
|
89
|
+
</td>
|
90
|
+
</tr>
|
91
|
+
<tr>
|
92
|
+
<td class="function_type">
|
93
|
+
<span class="returnvalue">void</span>
|
94
|
+
</td>
|
95
|
+
<td class="function_name">
|
96
|
+
<a class="link" href="cairo-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>
|
97
|
+
</td>
|
98
|
+
</tr>
|
99
|
+
<tr>
|
100
|
+
<td class="function_type">
|
101
|
+
<span class="returnvalue">void</span>
|
102
|
+
</td>
|
103
|
+
<td class="function_name">
|
104
|
+
<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>
|
105
|
+
</td>
|
106
|
+
</tr>
|
107
|
+
</tbody>
|
108
|
+
</table></div>
|
60
109
|
</div>
|
61
110
|
<div class="refsect1">
|
62
|
-
<a name="cairo-Win32-Fonts.
|
63
|
-
<
|
64
|
-
|
65
|
-
|
66
|
-
|
111
|
+
<a name="cairo-Win32-Fonts.other"></a><h2>Types and Values</h2>
|
112
|
+
<div class="informaltable"><table width="100%" border="0">
|
113
|
+
<colgroup>
|
114
|
+
<col width="150px" class="name">
|
115
|
+
<col class="description">
|
116
|
+
</colgroup>
|
117
|
+
<tbody><tr>
|
118
|
+
<td class="define_keyword">#define</td>
|
119
|
+
<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>
|
120
|
+
</tr></tbody>
|
121
|
+
</table></div>
|
67
122
|
</div>
|
68
123
|
<div class="refsect1">
|
69
|
-
<a name="cairo-Win32-Fonts.
|
70
|
-
<
|
71
|
-
<a name="CAIRO-HAS-WIN32-FONT:CAPS"></a><h3>CAIRO_HAS_WIN32_FONT</h3>
|
72
|
-
<pre class="programlisting">#define CAIRO_HAS_WIN32_FONT 1
|
124
|
+
<a name="cairo-Win32-Fonts.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
125
|
+
<pre class="screen">
|
73
126
|
</pre>
|
74
|
-
<p>
|
75
|
-
Defined if the Microsoft Windows font backend is available.
|
76
|
-
This macro can be used to conditionally compile backend-specific code.
|
77
|
-
</p>
|
78
|
-
<p class="since">Since 1.8</p>
|
79
127
|
</div>
|
80
|
-
<
|
128
|
+
<div class="refsect1">
|
129
|
+
<a name="cairo-Win32-Fonts.description"></a><h2>Description</h2>
|
130
|
+
<p>The Microsoft Windows font backend is primarily used to render text on
|
131
|
+
Microsoft Windows systems.</p>
|
132
|
+
</div>
|
133
|
+
<div class="refsect1">
|
134
|
+
<a name="cairo-Win32-Fonts.functions_details"></a><h2>Functions</h2>
|
81
135
|
<div class="refsect2">
|
82
|
-
<a name="cairo-win32-font-face-create-for-logfontw"></a><h3>cairo_win32_font_face_create_for_logfontw
|
83
|
-
<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>
|
84
|
-
|
85
|
-
<
|
86
|
-
Creates a new font for the Win32 font backend based on a
|
136
|
+
<a name="cairo-win32-font-face-create-for-logfontw"></a><h3>cairo_win32_font_face_create_for_logfontw ()</h3>
|
137
|
+
<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> *
|
138
|
+
cairo_win32_font_face_create_for_logfontw
|
139
|
+
(<em class="parameter"><code><span class="type">LOGFONTW</span> *logfont</code></em>);</pre>
|
140
|
+
<p>Creates a new font for the Win32 font backend based on a
|
87
141
|
<span class="type">LOGFONT</span>. This font can then be used with
|
88
|
-
<a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face
|
142
|
+
<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>.
|
89
143
|
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>
|
90
|
-
returned from <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-create" title="cairo_scaled_font_create
|
91
|
-
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
|
92
|
-
|
93
|
-
<
|
94
|
-
<
|
95
|
-
<
|
96
|
-
<
|
97
|
-
<
|
98
|
-
<
|
144
|
+
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
|
145
|
+
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>
|
146
|
+
<div class="refsect3">
|
147
|
+
<a name="id-1.4.6.7.2.5"></a><h4>Parameters</h4>
|
148
|
+
<div class="informaltable"><table width="100%" border="0">
|
149
|
+
<colgroup>
|
150
|
+
<col width="150px" class="parameters_name">
|
151
|
+
<col class="parameters_description">
|
152
|
+
<col width="200px" class="parameters_annotations">
|
153
|
+
</colgroup>
|
154
|
+
<tbody><tr>
|
155
|
+
<td class="parameter_name"><p>logfont</p></td>
|
156
|
+
<td class="parameter_description"><p>A <span class="type">LOGFONTW</span> structure specifying the font to use.
|
99
157
|
The lfHeight, lfWidth, lfOrientation and lfEscapement
|
100
|
-
fields of this structure are ignored.</td>
|
101
|
-
</
|
102
|
-
|
103
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
104
|
-
<td>a newly created <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>. Free with
|
105
|
-
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-destroy" title="cairo_font_face_destroy ()"><code class="function">cairo_font_face_destroy()</code></a> when you are done using it.</td>
|
106
|
-
</tr>
|
107
|
-
</tbody>
|
158
|
+
fields of this structure are ignored.</p></td>
|
159
|
+
<td class="parameter_annotations"> </td>
|
160
|
+
</tr></tbody>
|
108
161
|
</table></div>
|
162
|
+
</div>
|
163
|
+
<div class="refsect3">
|
164
|
+
<a name="id-1.4.6.7.2.6"></a><h4>Returns</h4>
|
165
|
+
<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
|
166
|
+
<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>
|
167
|
+
<p></p>
|
168
|
+
</div>
|
109
169
|
<p class="since">Since 1.0</p>
|
110
170
|
</div>
|
111
171
|
<hr>
|
112
172
|
<div class="refsect2">
|
113
|
-
<a name="cairo-win32-font-face-create-for-hfont"></a><h3>cairo_win32_font_face_create_for_hfont
|
114
|
-
<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>
|
115
|
-
|
116
|
-
<
|
117
|
-
Creates a new font for the Win32 font backend based on a
|
173
|
+
<a name="cairo-win32-font-face-create-for-hfont"></a><h3>cairo_win32_font_face_create_for_hfont ()</h3>
|
174
|
+
<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> *
|
175
|
+
cairo_win32_font_face_create_for_hfont
|
176
|
+
(<em class="parameter"><code><span class="type">HFONT</span> font</code></em>);</pre>
|
177
|
+
<p>Creates a new font for the Win32 font backend based on a
|
118
178
|
<span class="type">HFONT</span>. This font can then be used with
|
119
|
-
<a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face
|
179
|
+
<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>.
|
120
180
|
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>
|
121
|
-
returned from <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-create" title="cairo_scaled_font_create
|
122
|
-
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
|
123
|
-
|
124
|
-
<
|
125
|
-
<
|
126
|
-
<
|
127
|
-
<
|
128
|
-
<
|
129
|
-
<
|
130
|
-
</
|
131
|
-
<tr>
|
132
|
-
<td
|
133
|
-
<td
|
134
|
-
<
|
135
|
-
</tr>
|
136
|
-
</tbody>
|
181
|
+
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
|
182
|
+
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>
|
183
|
+
<div class="refsect3">
|
184
|
+
<a name="id-1.4.6.7.3.5"></a><h4>Parameters</h4>
|
185
|
+
<div class="informaltable"><table width="100%" border="0">
|
186
|
+
<colgroup>
|
187
|
+
<col width="150px" class="parameters_name">
|
188
|
+
<col class="parameters_description">
|
189
|
+
<col width="200px" class="parameters_annotations">
|
190
|
+
</colgroup>
|
191
|
+
<tbody><tr>
|
192
|
+
<td class="parameter_name"><p>font</p></td>
|
193
|
+
<td class="parameter_description"><p>An <span class="type">HFONT</span> structure specifying the font to use.</p></td>
|
194
|
+
<td class="parameter_annotations"> </td>
|
195
|
+
</tr></tbody>
|
137
196
|
</table></div>
|
197
|
+
</div>
|
198
|
+
<div class="refsect3">
|
199
|
+
<a name="id-1.4.6.7.3.6"></a><h4>Returns</h4>
|
200
|
+
<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
|
201
|
+
<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>
|
202
|
+
<p></p>
|
203
|
+
</div>
|
138
204
|
<p class="since">Since 1.2</p>
|
139
205
|
</div>
|
140
206
|
<hr>
|
141
207
|
<div class="refsect2">
|
142
|
-
<a name="cairo-win32-font-face-create-for-logfontw-hfont"></a><h3>cairo_win32_font_face_create_for_logfontw_hfont
|
143
|
-
<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>
|
144
|
-
|
145
|
-
|
146
|
-
<
|
147
|
-
Creates a new font for the Win32 font backend based on a
|
208
|
+
<a name="cairo-win32-font-face-create-for-logfontw-hfont"></a><h3>cairo_win32_font_face_create_for_logfontw_hfont ()</h3>
|
209
|
+
<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> *
|
210
|
+
cairo_win32_font_face_create_for_logfontw_hfont
|
211
|
+
(<em class="parameter"><code><span class="type">LOGFONTW</span> *logfont</code></em>,
|
212
|
+
<em class="parameter"><code><span class="type">HFONT</span> font</code></em>);</pre>
|
213
|
+
<p>Creates a new font for the Win32 font backend based on a
|
148
214
|
<span class="type">LOGFONT</span>. This font can then be used with
|
149
|
-
<a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face
|
215
|
+
<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>.
|
150
216
|
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>
|
151
|
-
returned from <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-create" title="cairo_scaled_font_create
|
152
|
-
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
|
153
|
-
|
154
|
-
<
|
155
|
-
<
|
217
|
+
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
|
218
|
+
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>
|
219
|
+
<div class="refsect3">
|
220
|
+
<a name="id-1.4.6.7.4.5"></a><h4>Parameters</h4>
|
221
|
+
<div class="informaltable"><table width="100%" border="0">
|
222
|
+
<colgroup>
|
223
|
+
<col width="150px" class="parameters_name">
|
224
|
+
<col class="parameters_description">
|
225
|
+
<col width="200px" class="parameters_annotations">
|
226
|
+
</colgroup>
|
156
227
|
<tbody>
|
157
228
|
<tr>
|
158
|
-
<td
|
159
|
-
<td>A <span class="type">LOGFONTW</span> structure specifying the font to use.
|
160
|
-
If <em class="parameter"><code>font</code></em>
|
229
|
+
<td class="parameter_name"><p>logfont</p></td>
|
230
|
+
<td class="parameter_description"><p>A <span class="type">LOGFONTW</span> structure specifying the font to use.
|
231
|
+
If <em class="parameter"><code>font</code></em>
|
232
|
+
is <code class="literal">NULL</code> then the lfHeight, lfWidth, lfOrientation and lfEscapement
|
161
233
|
fields of this structure are ignored. Otherwise lfWidth, lfOrientation and
|
162
|
-
lfEscapement must be zero.</td>
|
234
|
+
lfEscapement must be zero.</p></td>
|
235
|
+
<td class="parameter_annotations"> </td>
|
163
236
|
</tr>
|
164
237
|
<tr>
|
165
|
-
<td
|
166
|
-
<td>An <span class="type">HFONT</span> that can be used when the font matrix is a scale by
|
167
|
-
-lfHeight and the CTM is identity.</td>
|
168
|
-
</
|
169
|
-
<tr>
|
170
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
171
|
-
<td>a newly created <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>. Free with
|
172
|
-
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-destroy" title="cairo_font_face_destroy ()"><code class="function">cairo_font_face_destroy()</code></a> when you are done using it.</td>
|
238
|
+
<td class="parameter_name"><p>font</p></td>
|
239
|
+
<td class="parameter_description"><p>An <span class="type">HFONT</span> that can be used when the font matrix is a scale by
|
240
|
+
-lfHeight and the CTM is identity.</p></td>
|
241
|
+
<td class="parameter_annotations"> </td>
|
173
242
|
</tr>
|
174
243
|
</tbody>
|
175
244
|
</table></div>
|
245
|
+
</div>
|
246
|
+
<div class="refsect3">
|
247
|
+
<a name="id-1.4.6.7.4.6"></a><h4>Returns</h4>
|
248
|
+
<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
|
249
|
+
<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>
|
250
|
+
<p></p>
|
251
|
+
</div>
|
176
252
|
<p class="since">Since 1.6</p>
|
177
253
|
</div>
|
178
254
|
<hr>
|
179
255
|
<div class="refsect2">
|
180
|
-
<a name="cairo-win32-scaled-font-select-font"></a><h3>cairo_win32_scaled_font_select_font
|
181
|
-
<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>
|
182
|
-
|
183
|
-
<
|
184
|
-
Selects the font into the given device context and changes the
|
256
|
+
<a name="cairo-win32-scaled-font-select-font"></a><h3>cairo_win32_scaled_font_select_font ()</h3>
|
257
|
+
<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>
|
258
|
+
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>,
|
259
|
+
<em class="parameter"><code><span class="type">HDC</span> hdc</code></em>);</pre>
|
260
|
+
<p>Selects the font into the given device context and changes the
|
185
261
|
map mode and world transformation of the device context to match
|
186
262
|
that of the font. This function is intended for use when using
|
187
263
|
layout APIs such as Uniscribe to do text layout with the
|
188
264
|
cairo font. After finishing using the device context, you must call
|
189
|
-
<a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-done-font" title="cairo_win32_scaled_font_done_font
|
190
|
-
by this function
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
<
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
<
|
201
|
-
<col
|
265
|
+
<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
|
266
|
+
by this function.</p>
|
267
|
+
<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
|
268
|
+
coordinates from the device context to font space.</p>
|
269
|
+
<p>Normally, calls to <code class="function">SaveDC()</code> and <code class="function">RestoreDC()</code> would be made around
|
270
|
+
the use of this function to preserve the original graphics state.</p>
|
271
|
+
<div class="refsect3">
|
272
|
+
<a name="id-1.4.6.7.5.7"></a><h4>Parameters</h4>
|
273
|
+
<div class="informaltable"><table width="100%" border="0">
|
274
|
+
<colgroup>
|
275
|
+
<col width="150px" class="parameters_name">
|
276
|
+
<col class="parameters_description">
|
277
|
+
<col width="200px" class="parameters_annotations">
|
278
|
+
</colgroup>
|
202
279
|
<tbody>
|
203
280
|
<tr>
|
204
|
-
<td
|
205
|
-
<td>A <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> from the Win32 font backend. Such an
|
206
|
-
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
|
281
|
+
<td class="parameter_name"><p>scaled_font</p></td>
|
282
|
+
<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
|
283
|
+
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>
|
284
|
+
<td class="parameter_annotations"> </td>
|
207
285
|
</tr>
|
208
286
|
<tr>
|
209
|
-
<td
|
210
|
-
<td>a device context</td>
|
211
|
-
</
|
212
|
-
<tr>
|
213
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
214
|
-
<td>
|
215
|
-
<a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a> if the operation succeeded.
|
216
|
-
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
|
217
|
-
the device context is unchanged.</td>
|
287
|
+
<td class="parameter_name"><p>hdc</p></td>
|
288
|
+
<td class="parameter_description"><p>a device context</p></td>
|
289
|
+
<td class="parameter_annotations"> </td>
|
218
290
|
</tr>
|
219
291
|
</tbody>
|
220
292
|
</table></div>
|
293
|
+
</div>
|
294
|
+
<div class="refsect3">
|
295
|
+
<a name="id-1.4.6.7.5.8"></a><h4>Returns</h4>
|
296
|
+
<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.
|
297
|
+
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
|
298
|
+
the device context is unchanged.</p>
|
299
|
+
<p></p>
|
300
|
+
</div>
|
221
301
|
<p class="since">Since 1.0</p>
|
222
302
|
</div>
|
223
303
|
<hr>
|
224
304
|
<div class="refsect2">
|
225
|
-
<a name="cairo-win32-scaled-font-done-font"></a><h3>cairo_win32_scaled_font_done_font
|
226
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
227
|
-
<
|
228
|
-
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
|
229
|
-
|
230
|
-
<
|
231
|
-
<
|
305
|
+
<a name="cairo-win32-scaled-font-done-font"></a><h3>cairo_win32_scaled_font_done_font ()</h3>
|
306
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
307
|
+
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>
|
308
|
+
<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>
|
309
|
+
<div class="refsect3">
|
310
|
+
<a name="id-1.4.6.7.6.5"></a><h4>Parameters</h4>
|
311
|
+
<div class="informaltable"><table width="100%" border="0">
|
312
|
+
<colgroup>
|
313
|
+
<col width="150px" class="parameters_name">
|
314
|
+
<col class="parameters_description">
|
315
|
+
<col width="200px" class="parameters_annotations">
|
316
|
+
</colgroup>
|
232
317
|
<tbody><tr>
|
233
|
-
<td
|
234
|
-
<td>A scaled font from the Win32 font backend.</td>
|
318
|
+
<td class="parameter_name"><p>scaled_font</p></td>
|
319
|
+
<td class="parameter_description"><p>A scaled font from the Win32 font backend.</p></td>
|
320
|
+
<td class="parameter_annotations"> </td>
|
235
321
|
</tr></tbody>
|
236
322
|
</table></div>
|
323
|
+
</div>
|
237
324
|
<p class="since">Since 1.0</p>
|
238
325
|
</div>
|
239
326
|
<hr>
|
240
327
|
<div class="refsect2">
|
241
|
-
<a name="cairo-win32-scaled-font-get-metrics-factor"></a><h3>cairo_win32_scaled_font_get_metrics_factor
|
242
|
-
<pre class="programlisting"><span class="returnvalue">double</span>
|
243
|
-
|
244
|
-
<
|
245
|
-
Gets a scale factor between logical coordinates in the coordinate
|
246
|
-
space used by <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-select-font" title="cairo_win32_scaled_font_select_font
|
328
|
+
<a name="cairo-win32-scaled-font-get-metrics-factor"></a><h3>cairo_win32_scaled_font_get_metrics_factor ()</h3>
|
329
|
+
<pre class="programlisting"><span class="returnvalue">double</span>
|
330
|
+
cairo_win32_scaled_font_get_metrics_factor
|
331
|
+
(<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>
|
332
|
+
<p>Gets a scale factor between logical coordinates in the coordinate
|
333
|
+
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
|
247
334
|
coordinate system used by the Windows functions to return metrics) and
|
248
|
-
font space coordinates
|
249
|
-
|
250
|
-
<
|
251
|
-
<
|
252
|
-
<
|
253
|
-
<
|
254
|
-
<
|
255
|
-
<
|
256
|
-
</
|
257
|
-
<tr>
|
258
|
-
<td
|
259
|
-
<td>
|
260
|
-
|
261
|
-
</tr>
|
262
|
-
</tbody>
|
335
|
+
font space coordinates.</p>
|
336
|
+
<div class="refsect3">
|
337
|
+
<a name="id-1.4.6.7.7.5"></a><h4>Parameters</h4>
|
338
|
+
<div class="informaltable"><table width="100%" border="0">
|
339
|
+
<colgroup>
|
340
|
+
<col width="150px" class="parameters_name">
|
341
|
+
<col class="parameters_description">
|
342
|
+
<col width="200px" class="parameters_annotations">
|
343
|
+
</colgroup>
|
344
|
+
<tbody><tr>
|
345
|
+
<td class="parameter_name"><p>scaled_font</p></td>
|
346
|
+
<td class="parameter_description"><p>a scaled font from the Win32 font backend</p></td>
|
347
|
+
<td class="parameter_annotations"> </td>
|
348
|
+
</tr></tbody>
|
263
349
|
</table></div>
|
350
|
+
</div>
|
351
|
+
<div class="refsect3">
|
352
|
+
<a name="id-1.4.6.7.7.6"></a><h4>Returns</h4>
|
353
|
+
<p> factor to multiply logical units by to get font space
|
354
|
+
coordinates.</p>
|
355
|
+
<p></p>
|
356
|
+
</div>
|
264
357
|
<p class="since">Since 1.0</p>
|
265
358
|
</div>
|
266
359
|
<hr>
|
267
360
|
<div class="refsect2">
|
268
|
-
<a name="cairo-win32-scaled-font-get-logical-to-device"></a><h3>cairo_win32_scaled_font_get_logical_to_device
|
269
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
270
|
-
|
271
|
-
|
272
|
-
<
|
273
|
-
Gets the transformation mapping the logical space used by <em class="parameter"><code>scaled_font</code></em>
|
274
|
-
|
275
|
-
|
276
|
-
<div class="
|
277
|
-
<
|
361
|
+
<a name="cairo-win32-scaled-font-get-logical-to-device"></a><h3>cairo_win32_scaled_font_get_logical_to_device ()</h3>
|
362
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
363
|
+
cairo_win32_scaled_font_get_logical_to_device
|
364
|
+
(<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>,
|
365
|
+
<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>
|
366
|
+
<p>Gets the transformation mapping the logical space used by <em class="parameter"><code>scaled_font</code></em>
|
367
|
+
|
368
|
+
to device space.</p>
|
369
|
+
<div class="refsect3">
|
370
|
+
<a name="id-1.4.6.7.8.5"></a><h4>Parameters</h4>
|
371
|
+
<div class="informaltable"><table width="100%" border="0">
|
372
|
+
<colgroup>
|
373
|
+
<col width="150px" class="parameters_name">
|
374
|
+
<col class="parameters_description">
|
375
|
+
<col width="200px" class="parameters_annotations">
|
376
|
+
</colgroup>
|
278
377
|
<tbody>
|
279
378
|
<tr>
|
280
|
-
<td
|
281
|
-
<td>a scaled font from the Win32 font backend</td>
|
379
|
+
<td class="parameter_name"><p>scaled_font</p></td>
|
380
|
+
<td class="parameter_description"><p>a scaled font from the Win32 font backend</p></td>
|
381
|
+
<td class="parameter_annotations"> </td>
|
282
382
|
</tr>
|
283
383
|
<tr>
|
284
|
-
<td
|
285
|
-
<td>matrix to return</td>
|
384
|
+
<td class="parameter_name"><p>logical_to_device</p></td>
|
385
|
+
<td class="parameter_description"><p>matrix to return</p></td>
|
386
|
+
<td class="parameter_annotations"> </td>
|
286
387
|
</tr>
|
287
388
|
</tbody>
|
288
389
|
</table></div>
|
390
|
+
</div>
|
289
391
|
<p class="since">Since 1.4</p>
|
290
392
|
</div>
|
291
393
|
<hr>
|
292
394
|
<div class="refsect2">
|
293
|
-
<a name="cairo-win32-scaled-font-get-device-to-logical"></a><h3>cairo_win32_scaled_font_get_device_to_logical
|
294
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
295
|
-
|
296
|
-
|
297
|
-
<
|
298
|
-
Gets the transformation mapping device space to the logical space
|
299
|
-
used by <em class="parameter"><code>scaled_font</code></em
|
300
|
-
|
301
|
-
<div class="
|
302
|
-
<
|
395
|
+
<a name="cairo-win32-scaled-font-get-device-to-logical"></a><h3>cairo_win32_scaled_font_get_device_to_logical ()</h3>
|
396
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
397
|
+
cairo_win32_scaled_font_get_device_to_logical
|
398
|
+
(<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>,
|
399
|
+
<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>
|
400
|
+
<p>Gets the transformation mapping device space to the logical space
|
401
|
+
used by <em class="parameter"><code>scaled_font</code></em>
|
402
|
+
.</p>
|
403
|
+
<div class="refsect3">
|
404
|
+
<a name="id-1.4.6.7.9.5"></a><h4>Parameters</h4>
|
405
|
+
<div class="informaltable"><table width="100%" border="0">
|
406
|
+
<colgroup>
|
407
|
+
<col width="150px" class="parameters_name">
|
408
|
+
<col class="parameters_description">
|
409
|
+
<col width="200px" class="parameters_annotations">
|
410
|
+
</colgroup>
|
303
411
|
<tbody>
|
304
412
|
<tr>
|
305
|
-
<td
|
306
|
-
<td>a scaled font from the Win32 font backend</td>
|
413
|
+
<td class="parameter_name"><p>scaled_font</p></td>
|
414
|
+
<td class="parameter_description"><p>a scaled font from the Win32 font backend</p></td>
|
415
|
+
<td class="parameter_annotations"> </td>
|
307
416
|
</tr>
|
308
417
|
<tr>
|
309
|
-
<td
|
310
|
-
<td>matrix to return</td>
|
418
|
+
<td class="parameter_name"><p>device_to_logical</p></td>
|
419
|
+
<td class="parameter_description"><p>matrix to return</p></td>
|
420
|
+
<td class="parameter_annotations"> </td>
|
311
421
|
</tr>
|
312
422
|
</tbody>
|
313
423
|
</table></div>
|
424
|
+
</div>
|
314
425
|
<p class="since">Since 1.4</p>
|
315
426
|
</div>
|
316
427
|
</div>
|
317
428
|
<div class="refsect1">
|
429
|
+
<a name="cairo-Win32-Fonts.other_details"></a><h2>Types and Values</h2>
|
430
|
+
<div class="refsect2">
|
431
|
+
<a name="CAIRO-HAS-WIN32-FONT:CAPS"></a><h3>CAIRO_HAS_WIN32_FONT</h3>
|
432
|
+
<pre class="programlisting">#define CAIRO_HAS_WIN32_FONT 1
|
433
|
+
</pre>
|
434
|
+
<p>Defined if the Microsoft Windows font backend is available.
|
435
|
+
This macro can be used to conditionally compile backend-specific code.</p>
|
436
|
+
<p class="since">Since 1.8</p>
|
437
|
+
</div>
|
438
|
+
</div>
|
439
|
+
<div class="refsect1">
|
318
440
|
<a name="cairo-Win32-Fonts.see-also"></a><h2>See Also</h2>
|
319
|
-
<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>
|
441
|
+
<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>
|
320
442
|
</div>
|
321
443
|
</div>
|
322
444
|
<div class="footer">
|
323
445
|
<hr>
|
324
|
-
Generated by GTK-Doc V1.
|
446
|
+
Generated by GTK-Doc V1.20</div>
|
325
447
|
</body>
|
326
448
|
</html>
|