pango 2.1.0-x86-mingw32 → 2.2.0-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +2 -2
- data/ext/pango/rbpangocairo.c +7 -1
- data/lib/1.9/pango.so +0 -0
- data/lib/2.0/pango.so +0 -0
- data/lib/2.1/pango.so +0 -0
- data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
- data/vendor/local/bin/hb-shape.exe +0 -0
- data/vendor/local/bin/hb-view.exe +0 -0
- data/vendor/local/bin/libharfbuzz-0.dll +0 -0
- data/vendor/local/bin/libpango-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
- data/vendor/local/bin/libstdc++-6.dll +0 -0
- data/vendor/local/bin/pango-querymodules.exe +0 -0
- data/vendor/local/bin/pango-view.exe +0 -0
- data/vendor/local/include/harfbuzz/hb-common.h +7 -1
- data/vendor/local/include/harfbuzz/hb-ot-layout.h +0 -5
- data/vendor/local/include/harfbuzz/hb-ot-shape.h +54 -0
- data/vendor/local/include/harfbuzz/hb-ot.h +1 -8
- data/vendor/local/include/harfbuzz/hb-version.h +2 -2
- data/vendor/local/include/pango-1.0/pango/pango-features.h +2 -2
- data/vendor/local/lib/girepository-1.0/PangoFT2-1.0.typelib +0 -0
- data/vendor/local/lib/libharfbuzz.dll.a +0 -0
- data/vendor/local/lib/libharfbuzz.la +2 -2
- data/vendor/local/lib/libpango-1.0.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.la +1 -1
- data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangocairo-1.0.la +1 -1
- data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangoft2-1.0.la +1 -1
- data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangowin32-1.0.la +1 -1
- data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/harfbuzz.pc +1 -1
- data/vendor/local/lib/pkgconfig/pango.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangocairo.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangoft2.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangowin32.pc +1 -1
- data/vendor/local/share/gtk-doc/html/harfbuzz/ch01.html +1 -1
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-common.html +9 -1
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +1 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +1 -1
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.sgml +1 -0
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +18 -31
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +18 -31
- data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +17 -25
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +25 -39
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +44 -78
- data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +9 -9
- data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +41 -75
- data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +23 -26
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-10.html +19 -22
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-12.html +15 -18
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-14.html +17 -20
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-16.html +33 -36
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-18.html +17 -20
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-2.html +21 -24
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-20.html +19 -22
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-22.html +25 -28
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-24.html +15 -18
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-26.html +13 -16
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-30.html +10 -13
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-31-0.html +10 -13
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32-4.html +15 -18
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32.html +13 -16
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-34.html +10 -13
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-4.html +23 -26
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-6.html +23 -26
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-8.html +19 -22
- data/vendor/local/share/gtk-doc/html/pango/api-index-deprecated.html +162 -26
- data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +51 -54
- data/vendor/local/share/gtk-doc/html/pango/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/index.html +4 -4
- data/vendor/local/share/gtk-doc/html/pango/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +9 -9
- data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +25 -40
- data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +118 -169
- data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +15 -21
- data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +24 -39
- data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +24 -39
- data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +125 -240
- data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +46 -74
- data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +95 -189
- data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +137 -265
- data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +38 -66
- data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +20 -31
- data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +207 -143
- data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +47 -86
- data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +26 -43
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +106 -203
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +66 -122
- data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +29 -47
- data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +33 -57
- data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +49 -79
- data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +53 -90
- data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +9 -9
- data/vendor/local/share/gtk-doc/html/pango/pango-querymodules.html +9 -9
- data/vendor/local/share/gtk-doc/html/pango/pango.devhelp2 +34 -34
- data/vendor/local/share/gtk-doc/html/pango/pango.html +9 -9
- data/vendor/local/share/gtk-doc/html/pango/rendering.html +9 -9
- data/vendor/local/share/gtk-doc/html/pango/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/style.css +71 -16
- data/vendor/local/share/gtk-doc/html/pango/tools.html +9 -9
- data/vendor/local/share/gtk-doc/html/pango/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/up.png +0 -0
- data/vendor/local/share/man/man1/pango-querymodules.1 +2 -2
- data/vendor/local/share/man/man1/pango-view.1 +1 -1
- metadata +8 -4
Binary file
|
@@ -2,11 +2,11 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Pango Reference Manual</title>
|
5
|
+
<title>Pango Reference Manual: Pango Reference Manual</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="Pango Reference Manual">
|
8
8
|
<link rel="next" href="pango.html" title="Basic Pango Interfaces">
|
9
|
-
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
|
9
|
+
<meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
|
10
10
|
<link rel="stylesheet" href="style.css" type="text/css">
|
11
11
|
</head>
|
12
12
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<div class="titlepage">
|
15
15
|
<div>
|
16
16
|
<div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">Pango Reference Manual</p></th></tr></table></div>
|
17
|
-
<div><p class="releaseinfo">for Pango 1.36.
|
17
|
+
<div><p class="releaseinfo">for Pango 1.36.2
|
18
18
|
</p></div>
|
19
19
|
</div>
|
20
20
|
<hr>
|
@@ -141,6 +141,6 @@ markup language to encode text with attributes</span>
|
|
141
141
|
</div>
|
142
142
|
<div class="footer">
|
143
143
|
<hr>
|
144
|
-
Generated by GTK-Doc V1.19</div>
|
144
|
+
Generated by GTK-Doc V1.19.1</div>
|
145
145
|
</body>
|
146
146
|
</html>
|
Binary file
|
Binary file
|
@@ -2,22 +2,22 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Low Level Functionality</title>
|
5
|
+
<title>Pango Reference Manual: Low Level Functionality</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="Pango Reference Manual">
|
8
8
|
<link rel="up" href="index.html" title="Pango Reference Manual">
|
9
9
|
<link rel="prev" href="pango-CoreText-Fonts.html" title="CoreText Fonts">
|
10
10
|
<link rel="next" href="PangoRenderer.html" title="PangoRenderer">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.19.1 (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
|
-
<td
|
17
|
-
<td
|
18
|
-
<td><
|
19
|
-
<
|
20
|
-
<td><a accesskey="n" href="PangoRenderer.html"><img src="right.png" width="
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
|
16
|
+
<td width="100%" align="left"></td>
|
17
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
18
|
+
<td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
|
19
|
+
<td><a accesskey="p" href="pango-CoreText-Fonts.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
20
|
+
<td><a accesskey="n" href="PangoRenderer.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
21
21
|
</tr></table>
|
22
22
|
<div class="chapter">
|
23
23
|
<div class="titlepage"><div><div><h1 class="title">
|
@@ -63,6 +63,6 @@
|
|
63
63
|
</div>
|
64
64
|
<div class="footer">
|
65
65
|
<hr>
|
66
|
-
Generated by GTK-Doc V1.19</div>
|
66
|
+
Generated by GTK-Doc V1.19.1</div>
|
67
67
|
</body>
|
68
68
|
</html>
|
@@ -2,32 +2,29 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Bidirectional Text</title>
|
5
|
+
<title>Pango Reference Manual: Bidirectional Text</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="Pango Reference Manual">
|
8
8
|
<link rel="up" href="pango.html" title="Basic Pango Interfaces">
|
9
9
|
<link rel="prev" href="pango-Scripts-and-Languages.html" title="Scripts and Languages">
|
10
10
|
<link rel="next" href="pango-Vertical-Text.html" title="Vertical Text">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.19.1 (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
|
-
<td><a accesskey="u" href="pango.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
19
|
-
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
20
|
-
<th width="100%" align="center">Pango Reference Manual</th>
|
21
|
-
<td><a accesskey="n" href="pango-Vertical-Text.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
22
|
-
</tr>
|
23
|
-
<tr><td colspan="5" class="shortcuts">
|
24
|
-
<a href="#pango-Bidirectional-Text.synopsis" class="shortcut">Top</a>
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
|
16
|
+
<td width="100%" align="left">
|
17
|
+
<a href="#" class="shortcut">Top</a>
|
25
18
|
|
|
26
19
|
<a href="#pango-Bidirectional-Text.description" class="shortcut">Description</a>
|
27
20
|
|
|
28
21
|
<a href="#pango-Bidirectional-Text.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
29
|
-
</td
|
30
|
-
|
22
|
+
</td>
|
23
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
24
|
+
<td><a accesskey="u" href="pango.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
25
|
+
<td><a accesskey="p" href="pango-Scripts-and-Languages.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
26
|
+
<td><a accesskey="n" href="pango-Vertical-Text.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
27
|
+
</tr></table>
|
31
28
|
<div class="refentry">
|
32
29
|
<a name="pango-Bidirectional-Text"></a><div class="titlepage"></div>
|
33
30
|
<div class="refnamediv"><table width="100%"><tr>
|
@@ -64,15 +61,13 @@ enum <a class="link" href="pango-Bidirectional-Text.html#PangoBid
|
|
64
61
|
<a name="pango-Bidirectional-Text.description"></a><h2>Description</h2>
|
65
62
|
<p>
|
66
63
|
Pango supports bidirectional text (like Arabic and Hebrew) automatically.
|
67
|
-
Some applications however, need some help to correctly handle bidirectional text
|
68
|
-
</p>
|
64
|
+
Some applications however, need some help to correctly handle bidirectional text.</p>
|
69
65
|
<p>
|
70
66
|
The <a class="link" href="pango-Bidirectional-Text.html#PangoDirection"><span class="type">PangoDirection</span></a> type can be used with <a class="link" href="pango-Text-Processing.html#pango-context-set-base-dir" title="pango_context_set_base_dir ()"><code class="function">pango_context_set_base_dir()</code></a> to
|
71
67
|
instruct Pango about direction of text, though in most cases Pango detects
|
72
68
|
that correctly and automatically. The rest of the facilities in this section
|
73
69
|
are used internally by Pango already, and are provided to help applications
|
74
|
-
that need more direct control over bidirectional setting of text
|
75
|
-
</p>
|
70
|
+
that need more direct control over bidirectional setting of text.</p>
|
76
71
|
</div>
|
77
72
|
<div class="refsect1">
|
78
73
|
<a name="pango-Bidirectional-Text.details"></a><h2>Details</h2>
|
@@ -97,15 +92,13 @@ and <a class="link" href="pango-Bidirectional-Text.html#pango-find-base-dir" tit
|
|
97
92
|
or <a class="link" href="pango-Bidirectional-Text.html#PANGO-DIRECTION-WEAK-RTL:CAPS"><code class="literal">PANGO_DIRECTION_WEAK_RTL</code></a>, since every character is either
|
98
93
|
neutral or has a strong direction; on the other hand
|
99
94
|
<a class="link" href="pango-Bidirectional-Text.html#PANGO-DIRECTION-NEUTRAL:CAPS"><code class="literal">PANGO_DIRECTION_NEUTRAL</code></a> doesn't make sense to pass
|
100
|
-
to <a class="link" href="pango-Text-Processing.html#pango-itemize-with-base-dir" title="pango_itemize_with_base_dir ()"><code class="function">pango_itemize_with_base_dir()</code></a
|
101
|
-
</p>
|
95
|
+
to <a class="link" href="pango-Text-Processing.html#pango-itemize-with-base-dir" title="pango_itemize_with_base_dir ()"><code class="function">pango_itemize_with_base_dir()</code></a>.</p>
|
102
96
|
<p>
|
103
97
|
The <a class="link" href="pango-Bidirectional-Text.html#PANGO-DIRECTION-TTB-LTR:CAPS"><code class="literal">PANGO_DIRECTION_TTB_LTR</code></a>, <a class="link" href="pango-Bidirectional-Text.html#PANGO-DIRECTION-TTB-RTL:CAPS"><code class="literal">PANGO_DIRECTION_TTB_RTL</code></a>
|
104
98
|
values come from an earlier interpretation of this
|
105
99
|
enumeration as the writing direction of a block of
|
106
100
|
text and are no longer used; See <a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="type">PangoGravity</span></a> for how
|
107
|
-
vertical text is handled in Pango
|
108
|
-
</p>
|
101
|
+
vertical text is handled in Pango.</p>
|
109
102
|
<div class="variablelist"><table border="0" class="variablelist">
|
110
103
|
<colgroup>
|
111
104
|
<col align="left" valign="top">
|
@@ -159,14 +152,12 @@ vertical text is handled in Pango.
|
|
159
152
|
<p>
|
160
153
|
Determines the inherent direction of a character; either
|
161
154
|
<a class="link" href="pango-Bidirectional-Text.html#PANGO-DIRECTION-LTR:CAPS"><code class="literal">PANGO_DIRECTION_LTR</code></a>, <a class="link" href="pango-Bidirectional-Text.html#PANGO-DIRECTION-RTL:CAPS"><code class="literal">PANGO_DIRECTION_RTL</code></a>, or
|
162
|
-
<a class="link" href="pango-Bidirectional-Text.html#PANGO-DIRECTION-NEUTRAL:CAPS"><code class="literal">PANGO_DIRECTION_NEUTRAL</code></a
|
163
|
-
</p>
|
155
|
+
<a class="link" href="pango-Bidirectional-Text.html#PANGO-DIRECTION-NEUTRAL:CAPS"><code class="literal">PANGO_DIRECTION_NEUTRAL</code></a>.</p>
|
164
156
|
<p>
|
165
157
|
This function is useful to categorize characters into left-to-right
|
166
158
|
letters, right-to-left letters, and everything else. If full
|
167
159
|
Unicode bidirectional type of a character is needed,
|
168
|
-
<a class="link" href="pango-Bidirectional-Text.html#pango-bidi-type-for-unichar" title="pango_bidi_type_for_unichar ()"><code class="function">pango_bidi_type_for_unichar()</code></a> can be used instead
|
169
|
-
</p>
|
160
|
+
<a class="link" href="pango-Bidirectional-Text.html#pango-bidi-type-for-unichar" title="pango_bidi_type_for_unichar ()"><code class="function">pango_bidi_type_for_unichar()</code></a> can be used instead.</p>
|
170
161
|
<div class="variablelist"><table border="0" class="variablelist">
|
171
162
|
<colgroup>
|
172
163
|
<col align="left" valign="top">
|
@@ -191,8 +182,7 @@ Unicode bidirectional type of a character is needed,
|
|
191
182
|
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> length</code></em>);</pre>
|
192
183
|
<p>
|
193
184
|
Searches a string the first character that has a strong
|
194
|
-
direction, according to the Unicode bidirectional algorithm
|
195
|
-
</p>
|
185
|
+
direction, according to the Unicode bidirectional algorithm.</p>
|
196
186
|
<div class="variablelist"><table border="0" class="variablelist">
|
197
187
|
<colgroup>
|
198
188
|
<col align="left" valign="top">
|
@@ -221,19 +211,17 @@ If no such character is found, then <a class="link" href="pango-Bidirectional-Te
|
|
221
211
|
<a name="pango-get-mirror-char"></a><h3>pango_get_mirror_char ()</h3>
|
222
212
|
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> pango_get_mirror_char (<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html#gunichar"><span class="type">gunichar</span></a> ch</code></em>,
|
223
213
|
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html#gunichar"><span class="type">gunichar</span></a> *mirrored_ch</code></em>);</pre>
|
224
|
-
<div class="warning"
|
214
|
+
<div class="warning">
|
225
215
|
<h3 class="title">Warning</h3>
|
226
216
|
<p><code class="literal">pango_get_mirror_char</code> is deprecated and should not be used in newly-written code.</p>
|
227
217
|
</div>
|
228
218
|
<p>
|
229
219
|
If <em class="parameter"><code>ch</code></em> has the Unicode mirrored property and there is another Unicode
|
230
220
|
character that typically has a glyph that is the mirror image of <em class="parameter"><code>ch</code></em>'s
|
231
|
-
glyph, puts that character in the address pointed to by <em class="parameter"><code>mirrored_ch</code></em
|
232
|
-
</p>
|
221
|
+
glyph, puts that character in the address pointed to by <em class="parameter"><code>mirrored_ch</code></em>.</p>
|
233
222
|
<p>
|
234
223
|
Use <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html#g-unichar-get-mirror-char"><code class="function">g_unichar_get_mirror_char()</code></a> instead; the docs for that function
|
235
|
-
provide full details
|
236
|
-
</p>
|
224
|
+
provide full details.</p>
|
237
225
|
<div class="variablelist"><table border="0" class="variablelist">
|
238
226
|
<colgroup>
|
239
227
|
<col align="left" valign="top">
|
@@ -290,8 +278,7 @@ filled in, <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/sha
|
|
290
278
|
<p>
|
291
279
|
The <a class="link" href="pango-Bidirectional-Text.html#PangoBidiType"><span class="type">PangoBidiType</span></a> type represents the bidirectional character
|
292
280
|
type of a Unicode character as specified by the
|
293
|
-
<a class="ulink" href="http://www.unicode.org/reports/tr9/" target="_top">Unicode bidirectional algorithm</a
|
294
|
-
</p>
|
281
|
+
<a class="ulink" href="http://www.unicode.org/reports/tr9/" target="_top">Unicode bidirectional algorithm</a>.</p>
|
295
282
|
<div class="variablelist"><table border="0" class="variablelist">
|
296
283
|
<colgroup>
|
297
284
|
<col align="left" valign="top">
|
@@ -403,12 +390,10 @@ type of a Unicode character as specified by the
|
|
403
390
|
<pre class="programlisting"><a class="link" href="pango-Bidirectional-Text.html#PangoBidiType"><span class="returnvalue">PangoBidiType</span></a> pango_bidi_type_for_unichar (<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html#gunichar"><span class="type">gunichar</span></a> ch</code></em>);</pre>
|
404
391
|
<p>
|
405
392
|
Determines the normative bidirectional character type of a
|
406
|
-
character, as specified in the Unicode Character Database
|
407
|
-
</p>
|
393
|
+
character, as specified in the Unicode Character Database.</p>
|
408
394
|
<p>
|
409
395
|
A simplified version of this function is available as
|
410
|
-
<a class="link" href="pango-Bidirectional-Text.html#pango-unichar-direction" title="pango_unichar_direction ()"><code class="function">pango_unichar_direction()</code></a
|
411
|
-
</p>
|
396
|
+
<a class="link" href="pango-Bidirectional-Text.html#pango-unichar-direction" title="pango_unichar_direction ()"><code class="function">pango_unichar_direction()</code></a>.</p>
|
412
397
|
<div class="variablelist"><table border="0" class="variablelist">
|
413
398
|
<colgroup>
|
414
399
|
<col align="left" valign="top">
|
@@ -438,6 +423,6 @@ pango_context_get_base_dir(),
|
|
438
423
|
</div>
|
439
424
|
<div class="footer">
|
440
425
|
<hr>
|
441
|
-
Generated by GTK-Doc V1.19</div>
|
426
|
+
Generated by GTK-Doc V1.19.1</div>
|
442
427
|
</body>
|
443
428
|
</html>
|
@@ -2,34 +2,31 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Cairo Rendering</title>
|
5
|
+
<title>Pango Reference Manual: Cairo Rendering</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="Pango Reference Manual">
|
8
8
|
<link rel="up" href="rendering.html" title="Rendering with Pango">
|
9
9
|
<link rel="prev" href="pango-Xft-Fonts-and-Rendering.html" title="Xft Fonts and Rendering">
|
10
10
|
<link rel="next" href="pango-CoreText-Fonts.html" title="CoreText Fonts">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.19.1 (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
|
-
<td><a accesskey="u" href="rendering.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
19
|
-
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
20
|
-
<th width="100%" align="center">Pango Reference Manual</th>
|
21
|
-
<td><a accesskey="n" href="pango-CoreText-Fonts.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
22
|
-
</tr>
|
23
|
-
<tr><td colspan="5" class="shortcuts">
|
24
|
-
<a href="#pango-Cairo-Rendering.synopsis" class="shortcut">Top</a>
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
|
16
|
+
<td width="100%" align="left">
|
17
|
+
<a href="#" class="shortcut">Top</a>
|
25
18
|
|
|
26
19
|
<a href="#pango-Cairo-Rendering.description" class="shortcut">Description</a>
|
27
20
|
|
|
28
21
|
<a href="#pango-Cairo-Rendering.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
29
22
|
|
|
30
23
|
<a href="#pango-Cairo-Rendering.prerequisites" class="shortcut">Prerequisites</a>
|
31
|
-
</td
|
32
|
-
|
24
|
+
</td>
|
25
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
26
|
+
<td><a accesskey="u" href="rendering.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
27
|
+
<td><a accesskey="p" href="pango-Xft-Fonts-and-Rendering.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
28
|
+
<td><a accesskey="n" href="pango-CoreText-Fonts.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
29
|
+
</tr></table>
|
33
30
|
<div class="refentry">
|
34
31
|
<a name="pango-Cairo-Rendering"></a><div class="titlepage"></div>
|
35
32
|
<div class="refnamediv"><table width="100%"><tr>
|
@@ -47,22 +44,22 @@
|
|
47
44
|
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-set-default" title="pango_cairo_font_map_set_default ()">pango_cairo_font_map_set_default</a> (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);
|
48
45
|
<a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new" title="pango_cairo_font_map_new ()">pango_cairo_font_map_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
49
46
|
<a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new-for-font-type" title="pango_cairo_font_map_new_for_font_type ()">pango_cairo_font_map_new_for_font_type</a>
|
50
|
-
(<em class="parameter"><code><
|
51
|
-
<
|
47
|
+
(<em class="parameter"><code><span class="type">cairo_font_type_t</span> fonttype</code></em>);
|
48
|
+
<span class="returnvalue">cairo_font_type_t</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-get-font-type" title="pango_cairo_font_map_get_font_type ()">pango_cairo_font_map_get_font_type</a> (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);
|
52
49
|
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-set-resolution" title="pango_cairo_font_map_set_resolution ()">pango_cairo_font_map_set_resolution</a> (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>,
|
53
50
|
<em class="parameter"><code><span class="type">double</span> dpi</code></em>);
|
54
51
|
<span class="returnvalue">double</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-get-resolution" title="pango_cairo_font_map_get_resolution ()">pango_cairo_font_map_get_resolution</a> (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);
|
55
52
|
<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-create-context" title="pango_cairo_font_map_create_context ()">pango_cairo_font_map_create_context</a> (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);
|
56
|
-
<
|
53
|
+
<span class="returnvalue">cairo_scaled_font_t</span> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-get-scaled-font" title="pango_cairo_font_get_scaled_font ()">pango_cairo_font_get_scaled_font</a> (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFont"><span class="type">PangoCairoFont</span></a> *font</code></em>);
|
57
54
|
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-resolution" title="pango_cairo_context_set_resolution ()">pango_cairo_context_set_resolution</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
58
55
|
<em class="parameter"><code><span class="type">double</span> dpi</code></em>);
|
59
56
|
<span class="returnvalue">double</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-get-resolution" title="pango_cairo_context_get_resolution ()">pango_cairo_context_get_resolution</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);
|
60
57
|
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-font-options" title="pango_cairo_context_set_font_options ()">pango_cairo_context_set_font_options</a>
|
61
58
|
(<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
62
|
-
<em class="parameter"><code>const <
|
63
|
-
const <
|
59
|
+
<em class="parameter"><code>const <span class="type">cairo_font_options_t</span> *options</code></em>);
|
60
|
+
const <span class="returnvalue">cairo_font_options_t</span> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-get-font-options" title="pango_cairo_context_get_font_options ()">pango_cairo_context_get_font_options</a>
|
64
61
|
(<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);
|
65
|
-
<span class="returnvalue">void</span> (<a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()">*PangoCairoShapeRendererFunc</a>) (<em class="parameter"><code><
|
62
|
+
<span class="returnvalue">void</span> (<a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()">*PangoCairoShapeRendererFunc</a>) (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
66
63
|
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrShape" title="struct PangoAttrShape"><span class="type">PangoAttrShape</span></a> *attr</code></em>,
|
67
64
|
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> do_path</code></em>,
|
68
65
|
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);
|
@@ -74,35 +71,35 @@ const <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html#cai
|
|
74
71
|
<a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()"><span class="returnvalue">PangoCairoShapeRendererFunc</span></a> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-get-shape-renderer" title="pango_cairo_context_get_shape_renderer ()">pango_cairo_context_get_shape_renderer</a>
|
75
72
|
(<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
76
73
|
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> *data</code></em>);
|
77
|
-
<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-context" title="pango_cairo_create_context ()">pango_cairo_create_context</a> (<em class="parameter"><code><
|
78
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-context" title="pango_cairo_update_context ()">pango_cairo_update_context</a> (<em class="parameter"><code><
|
74
|
+
<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-context" title="pango_cairo_create_context ()">pango_cairo_create_context</a> (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>);
|
75
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-context" title="pango_cairo_update_context ()">pango_cairo_update_context</a> (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
79
76
|
<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);
|
80
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-layout" title="pango_cairo_create_layout ()">pango_cairo_create_layout</a> (<em class="parameter"><code><
|
81
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-layout" title="pango_cairo_update_layout ()">pango_cairo_update_layout</a> (<em class="parameter"><code><
|
77
|
+
<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-layout" title="pango_cairo_create_layout ()">pango_cairo_create_layout</a> (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>);
|
78
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-layout" title="pango_cairo_update_layout ()">pango_cairo_update_layout</a> (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
82
79
|
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
83
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-glyph-string" title="pango_cairo_show_glyph_string ()">pango_cairo_show_glyph_string</a> (<em class="parameter"><code><
|
80
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-glyph-string" title="pango_cairo_show_glyph_string ()">pango_cairo_show_glyph_string</a> (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
84
81
|
<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
|
85
82
|
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> *glyphs</code></em>);
|
86
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-glyph-item" title="pango_cairo_show_glyph_item ()">pango_cairo_show_glyph_item</a> (<em class="parameter"><code><
|
83
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-glyph-item" title="pango_cairo_show_glyph_item ()">pango_cairo_show_glyph_item</a> (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
87
84
|
<em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
|
88
85
|
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem"><span class="type">PangoGlyphItem</span></a> *glyph_item</code></em>);
|
89
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-layout-line" title="pango_cairo_show_layout_line ()">pango_cairo_show_layout_line</a> (<em class="parameter"><code><
|
86
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-layout-line" title="pango_cairo_show_layout_line ()">pango_cairo_show_layout_line</a> (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
90
87
|
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>);
|
91
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-layout" title="pango_cairo_show_layout ()">pango_cairo_show_layout</a> (<em class="parameter"><code><
|
88
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-layout" title="pango_cairo_show_layout ()">pango_cairo_show_layout</a> (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
92
89
|
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
93
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-error-underline" title="pango_cairo_show_error_underline ()">pango_cairo_show_error_underline</a> (<em class="parameter"><code><
|
90
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-error-underline" title="pango_cairo_show_error_underline ()">pango_cairo_show_error_underline</a> (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
94
91
|
<em class="parameter"><code><span class="type">double</span> x</code></em>,
|
95
92
|
<em class="parameter"><code><span class="type">double</span> y</code></em>,
|
96
93
|
<em class="parameter"><code><span class="type">double</span> width</code></em>,
|
97
94
|
<em class="parameter"><code><span class="type">double</span> height</code></em>);
|
98
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-glyph-string-path" title="pango_cairo_glyph_string_path ()">pango_cairo_glyph_string_path</a> (<em class="parameter"><code><
|
95
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-glyph-string-path" title="pango_cairo_glyph_string_path ()">pango_cairo_glyph_string_path</a> (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
99
96
|
<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
|
100
97
|
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> *glyphs</code></em>);
|
101
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-layout-line-path" title="pango_cairo_layout_line_path ()">pango_cairo_layout_line_path</a> (<em class="parameter"><code><
|
98
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-layout-line-path" title="pango_cairo_layout_line_path ()">pango_cairo_layout_line_path</a> (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
102
99
|
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>);
|
103
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-layout-path" title="pango_cairo_layout_path ()">pango_cairo_layout_path</a> (<em class="parameter"><code><
|
100
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-layout-path" title="pango_cairo_layout_path ()">pango_cairo_layout_path</a> (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
104
101
|
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
105
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-error-underline-path" title="pango_cairo_error_underline_path ()">pango_cairo_error_underline_path</a> (<em class="parameter"><code><
|
102
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-error-underline-path" title="pango_cairo_error_underline_path ()">pango_cairo_error_underline_path</a> (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
106
103
|
<em class="parameter"><code><span class="type">double</span> x</code></em>,
|
107
104
|
<em class="parameter"><code><span class="type">double</span> y</code></em>,
|
108
105
|
<em class="parameter"><code><span class="type">double</span> width</code></em>,
|
@@ -138,8 +135,7 @@ features as anti-aliased primitives, alpha-compositing, and
|
|
138
135
|
gradients. Multiple backends for Cairo are available, to allow
|
139
136
|
rendering to images, to PDF files, and to the screen on X and on other
|
140
137
|
windowing systems. The functions in this section allow using Pango
|
141
|
-
to render to Cairo surfaces
|
142
|
-
</p>
|
138
|
+
to render to Cairo surfaces.</p>
|
143
139
|
<p>
|
144
140
|
Using Pango with Cairo is straightforward. A <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> created
|
145
141
|
with <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-create-context" title="pango_cairo_font_map_create_context ()"><code class="function">pango_cairo_font_map_create_context()</code></a> can be used on any
|
@@ -148,8 +144,7 @@ current transformation matrix and target surface of the Cairo context
|
|
148
144
|
using <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-context" title="pango_cairo_update_context ()"><code class="function">pango_cairo_update_context()</code></a>. The convenience functions
|
149
145
|
<a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-layout" title="pango_cairo_create_layout ()"><code class="function">pango_cairo_create_layout()</code></a> and <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-layout" title="pango_cairo_update_layout ()"><code class="function">pango_cairo_update_layout()</code></a> handle
|
150
146
|
the common case where the program doesn't need to manipulate the
|
151
|
-
properties of the <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a
|
152
|
-
</p>
|
147
|
+
properties of the <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>.</p>
|
153
148
|
<p>
|
154
149
|
When you get the metrics of a layout or of a piece of a layout using
|
155
150
|
functions such as <a class="link" href="pango-Layout-Objects.html#pango-layout-get-extents" title="pango_layout_get_extents ()"><code class="function">pango_layout_get_extents()</code></a>, the reported metrics
|
@@ -160,8 +155,7 @@ units long. However, the results will be affected by hinting
|
|
160
155
|
pixel grid), so you shouldn't assume they are completely independent
|
161
156
|
of the current transformation matrix. Note that the basic metrics
|
162
157
|
functions in Pango report results in integer Pango units. To get
|
163
|
-
to the floating point units used in Cairo divide by <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a
|
164
|
-
</p>
|
158
|
+
to the floating point units used in Cairo divide by <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a>.</p>
|
165
159
|
<p>
|
166
160
|
</p>
|
167
161
|
<div class="example">
|
@@ -276,7 +270,7 @@ to the floating point units used in Cairo divide by <a class="link" href="pango-
|
|
276
270
|
|
277
271
|
<span class="normal"> </span><span class="comment">/* Center coordinates on the middle of the region we are drawing</span>
|
278
272
|
<span class="comment"> */</span>
|
279
|
-
<span class="normal"> </span><span class="function"
|
273
|
+
<span class="normal"> </span><span class="function">cairo_translate</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> RADIUS</span><span class="symbol">,</span><span class="normal"> RADIUS</span><span class="symbol">);</span>
|
280
274
|
|
281
275
|
<span class="normal"> </span><span class="comment">/* Create a PangoLayout, set the font and text */</span>
|
282
276
|
<span class="normal"> layout </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="pango-Cairo-Rendering.html#pango-cairo-create-layout">pango_cairo_create_layout</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
@@ -293,22 +287,22 @@ to the floating point units used in Cairo divide by <a class="link" href="pango-
|
|
293
287
|
<span class="normal"> </span><span class="type">double</span><span class="normal"> angle </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="number">360</span><span class="symbol">.</span><span class="normal"> </span><span class="symbol">*</span><span class="normal"> i</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">/</span><span class="normal"> N_WORDS</span><span class="symbol">;</span>
|
294
288
|
<span class="normal"> </span><span class="type">double</span><span class="normal"> red</span><span class="symbol">;</span>
|
295
289
|
|
296
|
-
<span class="normal"> </span><span class="function"
|
290
|
+
<span class="normal"> </span><span class="function">cairo_save</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
297
291
|
|
298
292
|
<span class="normal"> </span><span class="comment">/* Gradient from red at angle == 60 to blue at angle == 240 */</span>
|
299
293
|
<span class="normal"> red </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="number">1</span><span class="normal"> </span><span class="symbol">+</span><span class="normal"> </span><span class="function">cos</span><span class="normal"> </span><span class="symbol">((</span><span class="normal">angle </span><span class="symbol">-</span><span class="normal"> </span><span class="number">60</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">*</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html#G-PI:CAPS">G_PI</a> </span><span class="symbol">/</span><span class="normal"> </span><span class="number">180</span><span class="symbol">.))</span><span class="normal"> </span><span class="symbol">/</span><span class="normal"> </span><span class="number">2</span><span class="symbol">;</span>
|
300
|
-
<span class="normal"> </span><span class="function"
|
294
|
+
<span class="normal"> </span><span class="function">cairo_set_source_rgb</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> red</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1.0</span><span class="normal"> </span><span class="symbol">-</span><span class="normal"> red</span><span class="symbol">);</span>
|
301
295
|
|
302
|
-
<span class="normal"> </span><span class="function"
|
296
|
+
<span class="normal"> </span><span class="function">cairo_rotate</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> angle </span><span class="symbol">*</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html#G-PI:CAPS">G_PI</a> </span><span class="symbol">/</span><span class="normal"> </span><span class="number">180</span><span class="symbol">.);</span>
|
303
297
|
|
304
298
|
<span class="normal"> </span><span class="comment">/* Inform Pango to re-layout the text with the new transformation */</span>
|
305
299
|
<span class="normal"> </span><span class="function"><a href="pango-Cairo-Rendering.html#pango-cairo-update-layout">pango_cairo_update_layout</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> layout</span><span class="symbol">);</span>
|
306
300
|
|
307
301
|
<span class="normal"> </span><span class="function"><a href="pango-Layout-Objects.html#pango-layout-get-size">pango_layout_get_size</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">layout</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">width</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">height</span><span class="symbol">);</span>
|
308
|
-
<span class="normal"> </span><span class="function"
|
302
|
+
<span class="normal"> </span><span class="function">cairo_move_to</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">-</span><span class="normal"> </span><span class="symbol">((</span><span class="type">double</span><span class="symbol">)</span><span class="normal">width </span><span class="symbol">/</span><span class="normal"> <a href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS">PANGO_SCALE</a></span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">/</span><span class="normal"> </span><span class="number">2</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">-</span><span class="normal"> RADIUS</span><span class="symbol">);</span>
|
309
303
|
<span class="normal"> </span><span class="function"><a href="pango-Cairo-Rendering.html#pango-cairo-show-layout">pango_cairo_show_layout</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> layout</span><span class="symbol">);</span>
|
310
304
|
|
311
|
-
<span class="normal"> </span><span class="function"
|
305
|
+
<span class="normal"> </span><span class="function">cairo_restore</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
312
306
|
<span class="normal"> </span><span class="cbracket">}</span>
|
313
307
|
|
314
308
|
<span class="normal"> </span><span class="comment">/* free the layout object */</span>
|
@@ -330,19 +324,19 @@ to the floating point units used in Cairo divide by <a class="link" href="pango-
|
|
330
324
|
|
331
325
|
<span class="normal"> filename </span><span class="symbol">=</span><span class="normal"> argv</span><span class="symbol">[</span><span class="number">1</span><span class="symbol">];</span>
|
332
326
|
|
333
|
-
<span class="normal"> surface </span><span class="symbol">=</span><span class="normal"> </span><span class="function"
|
327
|
+
<span class="normal"> surface </span><span class="symbol">=</span><span class="normal"> </span><span class="function">cairo_image_surface_create</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">CAIRO_FORMAT_ARGB32</span><span class="symbol">,</span>
|
334
328
|
<span class="normal"> </span><span class="number">2</span><span class="normal"> </span><span class="symbol">*</span><span class="normal"> RADIUS</span><span class="symbol">,</span><span class="normal"> </span><span class="number">2</span><span class="normal"> </span><span class="symbol">*</span><span class="normal"> RADIUS</span><span class="symbol">);</span>
|
335
|
-
<span class="normal"> cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function"
|
329
|
+
<span class="normal"> cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function">cairo_create</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">);</span>
|
336
330
|
|
337
|
-
<span class="normal"> </span><span class="function"
|
338
|
-
<span class="normal"> </span><span class="function"
|
331
|
+
<span class="normal"> </span><span class="function">cairo_set_source_rgb</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1.0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1.0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1.0</span><span class="symbol">);</span>
|
332
|
+
<span class="normal"> </span><span class="function">cairo_paint</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
339
333
|
<span class="normal"> </span><span class="function">draw_text</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
340
|
-
<span class="normal"> </span><span class="function"
|
334
|
+
<span class="normal"> </span><span class="function">cairo_destroy</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
341
335
|
|
342
|
-
<span class="normal"> status </span><span class="symbol">=</span><span class="normal"> </span><span class="function"
|
343
|
-
<span class="normal"> </span><span class="function"
|
336
|
+
<span class="normal"> status </span><span class="symbol">=</span><span class="normal"> </span><span class="function">cairo_surface_write_to_png</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">,</span><span class="normal"> filename</span><span class="symbol">);</span>
|
337
|
+
<span class="normal"> </span><span class="function">cairo_surface_destroy</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">);</span>
|
344
338
|
|
345
|
-
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">status </span><span class="symbol">!=</span><span class="normal">
|
339
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">status </span><span class="symbol">!=</span><span class="normal"> CAIRO_STATUS_SUCCESS</span><span class="symbol">)</span>
|
346
340
|
<span class="normal"> </span><span class="cbracket">{</span>
|
347
341
|
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html#g-printerr">g_printerr</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Could not save png to '%s'</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">,</span><span class="normal"> filename</span><span class="symbol">);</span>
|
348
342
|
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">1</span><span class="symbol">;</span>
|
@@ -362,8 +356,7 @@ to the floating point units used in Cairo divide by <a class="link" href="pango-
|
|
362
356
|
<a name="rotated-example-output"></a><p class="title"><b>Figure 2. Output of <a class="xref" href="pango-Cairo-Rendering.html#rotated-example" title="Example 1. Using Pango with Cairo">Example 1, “Using Pango with Cairo”</a></b></p>
|
363
357
|
<div class="figure-contents"><div><img src="rotated-text.png" alt="Output of Example 1, “Using Pango with Cairo”"></div></div>
|
364
358
|
</div>
|
365
|
-
<p><br class="figure-break">
|
366
|
-
</p>
|
359
|
+
<p><br class="figure-break"></p>
|
367
360
|
</div>
|
368
361
|
<div class="refsect1">
|
369
362
|
<a name="pango-Cairo-Rendering.details"></a><h2>Details</h2>
|
@@ -373,8 +366,7 @@ to the floating point units used in Cairo divide by <a class="link" href="pango-
|
|
373
366
|
<p>
|
374
367
|
<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFont"><span class="type">PangoCairoFont</span></a> is an interface exported by fonts for
|
375
368
|
use with Cairo. The actual type of the font will depend
|
376
|
-
on the particular font technology Cairo was compiled to use
|
377
|
-
</p>
|
369
|
+
on the particular font technology Cairo was compiled to use.</p>
|
378
370
|
<p class="since">Since 1.18</p>
|
379
371
|
</div>
|
380
372
|
<hr>
|
@@ -384,8 +376,7 @@ on the particular font technology Cairo was compiled to use.
|
|
384
376
|
<p>
|
385
377
|
<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> is an interface exported by font maps for
|
386
378
|
use with Cairo. The actual type of the font map will depend
|
387
|
-
on the particular font technology Cairo was compiled to use
|
388
|
-
</p>
|
379
|
+
on the particular font technology Cairo was compiled to use.</p>
|
389
380
|
<p class="since">Since 1.10</p>
|
390
381
|
</div>
|
391
382
|
<hr>
|
@@ -393,25 +384,21 @@ on the particular font technology Cairo was compiled to use.
|
|
393
384
|
<a name="pango-cairo-font-map-get-default"></a><h3>pango_cairo_font_map_get_default ()</h3>
|
394
385
|
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> * pango_cairo_font_map_get_default (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
395
386
|
<p>
|
396
|
-
Gets a default <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> to use with Cairo
|
397
|
-
</p>
|
387
|
+
Gets a default <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> to use with Cairo.</p>
|
398
388
|
<p>
|
399
389
|
Note that the type of the returned object will depend
|
400
390
|
on the particular font backend Cairo was compiled to use;
|
401
391
|
You generally should only use the <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> and
|
402
|
-
<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> interfaces on the returned object
|
403
|
-
</p>
|
392
|
+
<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> interfaces on the returned object.</p>
|
404
393
|
<p>
|
405
394
|
The default Cairo fontmap can be changed by using
|
406
395
|
<a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-set-default" title="pango_cairo_font_map_set_default ()"><code class="function">pango_cairo_font_map_set_default()</code></a>. This can be used to
|
407
396
|
change the Cairo font backend that the default fontmap
|
408
|
-
uses for example
|
409
|
-
</p>
|
397
|
+
uses for example.</p>
|
410
398
|
<p>
|
411
399
|
Note that since Pango 1.32.6, the default fontmap is per-thread.
|
412
400
|
Each thread gets its own default fontmap. In this way,
|
413
|
-
PangoCairo can be used safely from multiple threads
|
414
|
-
</p>
|
401
|
+
PangoCairo can be used safely from multiple threads.</p>
|
415
402
|
<div class="variablelist"><table border="0" class="variablelist">
|
416
403
|
<colgroup>
|
417
404
|
<col align="left" valign="top">
|
@@ -431,25 +418,21 @@ for the current thread. This object is owned by Pango and must not be freed. <sp
|
|
431
418
|
<a name="pango-cairo-font-map-set-default"></a><h3>pango_cairo_font_map_set_default ()</h3>
|
432
419
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_font_map_set_default (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);</pre>
|
433
420
|
<p>
|
434
|
-
Sets a default <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> to use with Cairo
|
435
|
-
</p>
|
421
|
+
Sets a default <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> to use with Cairo.</p>
|
436
422
|
<p>
|
437
423
|
This can be used to change the Cairo font backend that the
|
438
424
|
default fontmap uses for example. The old default font map
|
439
|
-
is unreffed and the new font map referenced
|
440
|
-
</p>
|
425
|
+
is unreffed and the new font map referenced.</p>
|
441
426
|
<p>
|
442
427
|
Note that since Pango 1.32.6, the default fontmap is per-thread.
|
443
428
|
This function only changes the default fontmap for
|
444
429
|
the current thread. Default fontmaps of exisiting threads
|
445
430
|
are not changed. Default fontmaps of any new threads will
|
446
|
-
still be created using <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new" title="pango_cairo_font_map_new ()"><code class="function">pango_cairo_font_map_new()</code></a
|
447
|
-
</p>
|
431
|
+
still be created using <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new" title="pango_cairo_font_map_new ()"><code class="function">pango_cairo_font_map_new()</code></a>.</p>
|
448
432
|
<p>
|
449
433
|
A value of <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for <em class="parameter"><code>fontmap</code></em> will cause the current default
|
450
434
|
font map to be released and a new default font
|
451
|
-
map to be created on demand, using <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new" title="pango_cairo_font_map_new ()"><code class="function">pango_cairo_font_map_new()</code></a
|
452
|
-
</p>
|
435
|
+
map to be created on demand, using <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new" title="pango_cairo_font_map_new ()"><code class="function">pango_cairo_font_map_new()</code></a>.</p>
|
453
436
|
<div class="variablelist"><table border="0" class="variablelist">
|
454
437
|
<colgroup>
|
455
438
|
<col align="left" valign="top">
|
@@ -472,14 +455,12 @@ Creates a new <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap
|
|
472
455
|
to cache information about available fonts, and holds
|
473
456
|
certain global parameters such as the resolution.
|
474
457
|
In most cases, you can use <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-get-default" title="pango_cairo_font_map_get_default ()"><code class="function">pango_cairo_font_map_get_default()</code></a>
|
475
|
-
instead
|
476
|
-
</p>
|
458
|
+
instead.</p>
|
477
459
|
<p>
|
478
460
|
Note that the type of the returned object will depend
|
479
461
|
on the particular font backend Cairo was compiled to use;
|
480
462
|
You generally should only use the <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> and
|
481
|
-
<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> interfaces on the returned object
|
482
|
-
</p>
|
463
|
+
<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> interfaces on the returned object.</p>
|
483
464
|
<div class="variablelist"><table border="0" class="variablelist">
|
484
465
|
<colgroup>
|
485
466
|
<col align="left" valign="top">
|
@@ -498,16 +479,14 @@ which should be freed with <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/
|
|
498
479
|
<div class="refsect2">
|
499
480
|
<a name="pango-cairo-font-map-new-for-font-type"></a><h3>pango_cairo_font_map_new_for_font_type ()</h3>
|
500
481
|
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> * pango_cairo_font_map_new_for_font_type
|
501
|
-
(<em class="parameter"><code><
|
482
|
+
(<em class="parameter"><code><span class="type">cairo_font_type_t</span> fonttype</code></em>);</pre>
|
502
483
|
<p>
|
503
484
|
Creates a new <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> object of the type suitable
|
504
|
-
to be used with cairo font backend of type <em class="parameter"><code>fonttype</code></em
|
505
|
-
</p>
|
485
|
+
to be used with cairo font backend of type <em class="parameter"><code>fonttype</code></em>.</p>
|
506
486
|
<p>
|
507
487
|
In most cases one should simply use <em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new" title="pango_cairo_font_map_new ()"><code class="function">pango_cairo_font_map_new()</code></a></code></em>,
|
508
488
|
or in fact in most of those cases, just use
|
509
|
-
<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-get-default" title="pango_cairo_font_map_get_default ()"><code class="function">pango_cairo_font_map_get_default()</code></a></code></em
|
510
|
-
</p>
|
489
|
+
<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-get-default" title="pango_cairo_font_map_get_default ()"><code class="function">pango_cairo_font_map_get_default()</code></a></code></em>.</p>
|
511
490
|
<div class="variablelist"><table border="0" class="variablelist">
|
512
491
|
<colgroup>
|
513
492
|
<col align="left" valign="top">
|
@@ -516,7 +495,7 @@ or in fact in most of those cases, just use
|
|
516
495
|
<tbody>
|
517
496
|
<tr>
|
518
497
|
<td><p><span class="term"><em class="parameter"><code>fonttype</code></em> :</span></p></td>
|
519
|
-
<td>desired <
|
498
|
+
<td>desired <span class="type">cairo_font_type_t</span>
|
520
499
|
</td>
|
521
500
|
</tr>
|
522
501
|
<tr>
|
@@ -533,10 +512,9 @@ font backend is not supported / compiled in.</td>
|
|
533
512
|
<hr>
|
534
513
|
<div class="refsect2">
|
535
514
|
<a name="pango-cairo-font-map-get-font-type"></a><h3>pango_cairo_font_map_get_font_type ()</h3>
|
536
|
-
<pre class="programlisting"><
|
515
|
+
<pre class="programlisting"><span class="returnvalue">cairo_font_type_t</span> pango_cairo_font_map_get_font_type (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);</pre>
|
537
516
|
<p>
|
538
|
-
Gets the type of Cairo font backend that <em class="parameter"><code>fontmap</code></em> uses
|
539
|
-
</p>
|
517
|
+
Gets the type of Cairo font backend that <em class="parameter"><code>fontmap</code></em> uses.</p>
|
540
518
|
<div class="variablelist"><table border="0" class="variablelist">
|
541
519
|
<colgroup>
|
542
520
|
<col align="left" valign="top">
|
@@ -550,7 +528,7 @@ Gets the type of Cairo font backend that <em class="parameter"><code>fontmap</co
|
|
550
528
|
</tr>
|
551
529
|
<tr>
|
552
530
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
553
|
-
<td>the <
|
531
|
+
<td>the <span class="type">cairo_font_type_t</span> cairo font backend type</td>
|
554
532
|
</tr>
|
555
533
|
</tbody>
|
556
534
|
</table></div>
|
@@ -565,8 +543,7 @@ Gets the type of Cairo font backend that <em class="parameter"><code>fontmap</co
|
|
565
543
|
Sets the resolution for the fontmap. This is a scale factor between
|
566
544
|
points specified in a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> and Cairo units. The
|
567
545
|
default value is 96, meaning that a 10 point font will be 13
|
568
|
-
units high. (10 * 96. / 72. = 13.3)
|
569
|
-
</p>
|
546
|
+
units high. (10 * 96. / 72. = 13.3).</p>
|
570
547
|
<div class="variablelist"><table border="0" class="variablelist">
|
571
548
|
<colgroup>
|
572
549
|
<col align="left" valign="top">
|
@@ -592,8 +569,7 @@ involved; the terminology is conventional.)</td>
|
|
592
569
|
<a name="pango-cairo-font-map-get-resolution"></a><h3>pango_cairo_font_map_get_resolution ()</h3>
|
593
570
|
<pre class="programlisting"><span class="returnvalue">double</span> pango_cairo_font_map_get_resolution (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);</pre>
|
594
571
|
<p>
|
595
|
-
Gets the resolution for the fontmap. See <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-set-resolution" title="pango_cairo_font_map_set_resolution ()"><code class="function">pango_cairo_font_map_set_resolution()</code></a>
|
596
|
-
</p>
|
572
|
+
Gets the resolution for the fontmap. See <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-set-resolution" title="pango_cairo_font_map_set_resolution ()"><code class="function">pango_cairo_font_map_set_resolution()</code></a></p>
|
597
573
|
<div class="variablelist"><table border="0" class="variablelist">
|
598
574
|
<colgroup>
|
599
575
|
<col align="left" valign="top">
|
@@ -617,13 +593,12 @@ Gets the resolution for the fontmap. See <a class="link" href="pango-Cairo-Rende
|
|
617
593
|
<div class="refsect2">
|
618
594
|
<a name="pango-cairo-font-map-create-context"></a><h3>pango_cairo_font_map_create_context ()</h3>
|
619
595
|
<pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * pango_cairo_font_map_create_context (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);</pre>
|
620
|
-
<div class="warning"
|
596
|
+
<div class="warning">
|
621
597
|
<h3 class="title">Warning</h3>
|
622
598
|
<p><code class="literal">pango_cairo_font_map_create_context</code> has been deprecated since version 1.22 and should not be used in newly-written code. Use <a class="link" href="pango-Fonts.html#pango-font-map-create-context" title="pango_font_map_create_context ()"><code class="function">pango_font_map_create_context()</code></a> instead.</p>
|
623
599
|
</div>
|
624
600
|
<p>
|
625
|
-
Create a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> for the given fontmap
|
626
|
-
</p>
|
601
|
+
Create a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> for the given fontmap.</p>
|
627
602
|
<div class="variablelist"><table border="0" class="variablelist">
|
628
603
|
<colgroup>
|
629
604
|
<col align="left" valign="top">
|
@@ -646,12 +621,11 @@ Create a <a class="link" href="pango-Text-Processing.html#PangoContext"><span cl
|
|
646
621
|
<hr>
|
647
622
|
<div class="refsect2">
|
648
623
|
<a name="pango-cairo-font-get-scaled-font"></a><h3>pango_cairo_font_get_scaled_font ()</h3>
|
649
|
-
<pre class="programlisting"><
|
624
|
+
<pre class="programlisting"><span class="returnvalue">cairo_scaled_font_t</span> * pango_cairo_font_get_scaled_font (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFont"><span class="type">PangoCairoFont</span></a> *font</code></em>);</pre>
|
650
625
|
<p>
|
651
|
-
Gets the <
|
626
|
+
Gets the <span class="type">cairo_scaled_font_t</span> used by <em class="parameter"><code>font</code></em>.
|
652
627
|
The scaled font can be referenced and kept using
|
653
|
-
<
|
654
|
-
</p>
|
628
|
+
<code class="function">cairo_scaled_font_reference()</code>.</p>
|
655
629
|
<div class="variablelist"><table border="0" class="variablelist">
|
656
630
|
<colgroup>
|
657
631
|
<col align="left" valign="top">
|
@@ -665,7 +639,7 @@ The scaled font can be referenced and kept using
|
|
665
639
|
</tr>
|
666
640
|
<tr>
|
667
641
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
668
|
-
<td>the <
|
642
|
+
<td>the <span class="type">cairo_scaled_font_t</span> used by <em class="parameter"><code>font</code></em>,
|
669
643
|
or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>font</code></em> is <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
|
670
644
|
</tr>
|
671
645
|
</tbody>
|
@@ -681,8 +655,7 @@ or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-d
|
|
681
655
|
Sets the resolution for the context. This is a scale factor between
|
682
656
|
points specified in a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> and Cairo units. The
|
683
657
|
default value is 96, meaning that a 10 point font will be 13
|
684
|
-
units high. (10 * 96. / 72. = 13.3)
|
685
|
-
</p>
|
658
|
+
units high. (10 * 96. / 72. = 13.3).</p>
|
686
659
|
<div class="variablelist"><table border="0" class="variablelist">
|
687
660
|
<colgroup>
|
688
661
|
<col align="left" valign="top">
|
@@ -708,8 +681,7 @@ means to use the resolution from the font map.</td>
|
|
708
681
|
<a name="pango-cairo-context-get-resolution"></a><h3>pango_cairo_context_get_resolution ()</h3>
|
709
682
|
<pre class="programlisting"><span class="returnvalue">double</span> pango_cairo_context_get_resolution (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);</pre>
|
710
683
|
<p>
|
711
|
-
Gets the resolution for the context. See <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-resolution" title="pango_cairo_context_set_resolution ()"><code class="function">pango_cairo_context_set_resolution()</code></a>
|
712
|
-
</p>
|
684
|
+
Gets the resolution for the context. See <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-resolution" title="pango_cairo_context_set_resolution ()"><code class="function">pango_cairo_context_set_resolution()</code></a></p>
|
713
685
|
<div class="variablelist"><table border="0" class="variablelist">
|
714
686
|
<colgroup>
|
715
687
|
<col align="left" valign="top">
|
@@ -734,12 +706,11 @@ be returned if no resolution has previously been set.</td>
|
|
734
706
|
<a name="pango-cairo-context-set-font-options"></a><h3>pango_cairo_context_set_font_options ()</h3>
|
735
707
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_context_set_font_options
|
736
708
|
(<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
737
|
-
<em class="parameter"><code>const <
|
709
|
+
<em class="parameter"><code>const <span class="type">cairo_font_options_t</span> *options</code></em>);</pre>
|
738
710
|
<p>
|
739
711
|
Sets the font options used when rendering text with this context.
|
740
712
|
These options override any options that <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-context" title="pango_cairo_update_context ()"><code class="function">pango_cairo_update_context()</code></a>
|
741
|
-
derives from the target surface
|
742
|
-
</p>
|
713
|
+
derives from the target surface.</p>
|
743
714
|
<div class="variablelist"><table border="0" class="variablelist">
|
744
715
|
<colgroup>
|
745
716
|
<col align="left" valign="top">
|
@@ -752,7 +723,7 @@ derives from the target surface.
|
|
752
723
|
</tr>
|
753
724
|
<tr>
|
754
725
|
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
|
755
|
-
<td>a <
|
726
|
+
<td>a <span class="type">cairo_font_options_t</span>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to unset any previously set
|
756
727
|
options. A copy is made.</td>
|
757
728
|
</tr>
|
758
729
|
</tbody>
|
@@ -762,13 +733,12 @@ options. A copy is made.</td>
|
|
762
733
|
<hr>
|
763
734
|
<div class="refsect2">
|
764
735
|
<a name="pango-cairo-context-get-font-options"></a><h3>pango_cairo_context_get_font_options ()</h3>
|
765
|
-
<pre class="programlisting">const <
|
736
|
+
<pre class="programlisting">const <span class="returnvalue">cairo_font_options_t</span> * pango_cairo_context_get_font_options
|
766
737
|
(<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);</pre>
|
767
738
|
<p>
|
768
739
|
Retrieves any font rendering options previously set with
|
769
740
|
<a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-font-options" title="pango_cairo_context_set_font_options ()"><code class="function">pango_cairo_context_set_font_options()</code></a>. This function does not report options
|
770
|
-
that are derived from the target surface by <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-context" title="pango_cairo_update_context ()"><code class="function">pango_cairo_update_context()</code></a>
|
771
|
-
</p>
|
741
|
+
that are derived from the target surface by <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-context" title="pango_cairo_update_context ()"><code class="function">pango_cairo_update_context()</code></a></p>
|
772
742
|
<div class="variablelist"><table border="0" class="variablelist">
|
773
743
|
<colgroup>
|
774
744
|
<col align="left" valign="top">
|
@@ -792,14 +762,13 @@ and must not be modified or freed.</td>
|
|
792
762
|
<hr>
|
793
763
|
<div class="refsect2">
|
794
764
|
<a name="PangoCairoShapeRendererFunc"></a><h3>PangoCairoShapeRendererFunc ()</h3>
|
795
|
-
<pre class="programlisting"><span class="returnvalue">void</span> (*PangoCairoShapeRendererFunc) (<em class="parameter"><code><
|
765
|
+
<pre class="programlisting"><span class="returnvalue">void</span> (*PangoCairoShapeRendererFunc) (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
796
766
|
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrShape" title="struct PangoAttrShape"><span class="type">PangoAttrShape</span></a> *attr</code></em>,
|
797
767
|
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> do_path</code></em>,
|
798
768
|
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
|
799
769
|
<p>
|
800
770
|
Function type for rendering attributes of type <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SHAPE:CAPS"><code class="literal">PANGO_ATTR_SHAPE</code></a>
|
801
|
-
with Pango's Cairo renderer
|
802
|
-
</p>
|
771
|
+
with Pango's Cairo renderer.</p>
|
803
772
|
<div class="variablelist"><table border="0" class="variablelist">
|
804
773
|
<colgroup>
|
805
774
|
<col align="left" valign="top">
|
@@ -841,8 +810,7 @@ to <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-d
|
|
841
810
|
<p>
|
842
811
|
Sets callback function for context to use for rendering attributes
|
843
812
|
of type <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SHAPE:CAPS"><code class="literal">PANGO_ATTR_SHAPE</code></a>. See <a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()"><span class="type">PangoCairoShapeRendererFunc</span></a> for
|
844
|
-
details
|
845
|
-
</p>
|
813
|
+
details.</p>
|
846
814
|
<div class="variablelist"><table border="0" class="variablelist">
|
847
815
|
<colgroup>
|
848
816
|
<col align="left" valign="top">
|
@@ -880,13 +848,11 @@ context is freed to release <em class="parameter"><code>data</code></em>, or <a
|
|
880
848
|
<p>
|
881
849
|
Sets callback function for context to use for rendering attributes
|
882
850
|
of type <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SHAPE:CAPS"><code class="literal">PANGO_ATTR_SHAPE</code></a>. See <a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()"><span class="type">PangoCairoShapeRendererFunc</span></a> for
|
883
|
-
details
|
884
|
-
</p>
|
851
|
+
details.</p>
|
885
852
|
<p>
|
886
853
|
Retrieves callback function and associated user data for rendering
|
887
854
|
attributes of type <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SHAPE:CAPS"><code class="literal">PANGO_ATTR_SHAPE</code></a> as set by
|
888
|
-
<a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-shape-renderer" title="pango_cairo_context_set_shape_renderer ()"><code class="function">pango_cairo_context_set_shape_renderer()</code></a>, if any
|
889
|
-
</p>
|
855
|
+
<a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-shape-renderer" title="pango_cairo_context_set_shape_renderer ()"><code class="function">pango_cairo_context_set_shape_renderer()</code></a>, if any.</p>
|
890
856
|
<div class="variablelist"><table border="0" class="variablelist">
|
891
857
|
<colgroup>
|
892
858
|
<col align="left" valign="top">
|
@@ -913,18 +879,16 @@ if no shape rendering callback have been set.</td>
|
|
913
879
|
<hr>
|
914
880
|
<div class="refsect2">
|
915
881
|
<a name="pango-cairo-create-context"></a><h3>pango_cairo_create_context ()</h3>
|
916
|
-
<pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * pango_cairo_create_context (<em class="parameter"><code><
|
882
|
+
<pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * pango_cairo_create_context (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>);</pre>
|
917
883
|
<p>
|
918
884
|
Creates a context object set up to match the current transformation
|
919
885
|
and target surface of the Cairo context. This context can then be
|
920
|
-
used to create a layout using <a class="link" href="pango-Layout-Objects.html#pango-layout-new" title="pango_layout_new ()"><code class="function">pango_layout_new()</code></a
|
921
|
-
</p>
|
886
|
+
used to create a layout using <a class="link" href="pango-Layout-Objects.html#pango-layout-new" title="pango_layout_new ()"><code class="function">pango_layout_new()</code></a>.</p>
|
922
887
|
<p>
|
923
888
|
This function is a convenience function that creates a context using
|
924
889
|
the default font map, then updates it to <em class="parameter"><code>cr</code></em>. If you just need to
|
925
890
|
create a layout for use with <em class="parameter"><code>cr</code></em> and do not need to access <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>
|
926
|
-
directly, you can use <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-layout" title="pango_cairo_create_layout ()"><code class="function">pango_cairo_create_layout()</code></a> instead
|
927
|
-
</p>
|
891
|
+
directly, you can use <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-layout" title="pango_cairo_create_layout ()"><code class="function">pango_cairo_create_layout()</code></a> instead.</p>
|
928
892
|
<div class="variablelist"><table border="0" class="variablelist">
|
929
893
|
<colgroup>
|
930
894
|
<col align="left" valign="top">
|
@@ -948,15 +912,14 @@ directly, you can use <a class="link" href="pango-Cairo-Rendering.html#pango-cai
|
|
948
912
|
<hr>
|
949
913
|
<div class="refsect2">
|
950
914
|
<a name="pango-cairo-update-context"></a><h3>pango_cairo_update_context ()</h3>
|
951
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_update_context (<em class="parameter"><code><
|
915
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_update_context (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
952
916
|
<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);</pre>
|
953
917
|
<p>
|
954
918
|
Updates a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> previously created for use with Cairo to
|
955
919
|
match the current transformation and target surface of a Cairo
|
956
920
|
context. If any layouts have been created for the context,
|
957
921
|
it's necessary to call <a class="link" href="pango-Layout-Objects.html#pango-layout-context-changed" title="pango_layout_context_changed ()"><code class="function">pango_layout_context_changed()</code></a> on those
|
958
|
-
layouts
|
959
|
-
</p>
|
922
|
+
layouts.</p>
|
960
923
|
<div class="variablelist"><table border="0" class="variablelist">
|
961
924
|
<colgroup>
|
962
925
|
<col align="left" valign="top">
|
@@ -978,21 +941,19 @@ layouts.
|
|
978
941
|
<hr>
|
979
942
|
<div class="refsect2">
|
980
943
|
<a name="pango-cairo-create-layout"></a><h3>pango_cairo_create_layout ()</h3>
|
981
|
-
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * pango_cairo_create_layout (<em class="parameter"><code><
|
944
|
+
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * pango_cairo_create_layout (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>);</pre>
|
982
945
|
<p>
|
983
946
|
Creates a layout object set up to match the current transformation
|
984
947
|
and target surface of the Cairo context. This layout can then be
|
985
948
|
used for text measurement with functions like
|
986
949
|
<a class="link" href="pango-Layout-Objects.html#pango-layout-get-size" title="pango_layout_get_size ()"><code class="function">pango_layout_get_size()</code></a> or drawing with functions like
|
987
950
|
<a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-layout" title="pango_cairo_show_layout ()"><code class="function">pango_cairo_show_layout()</code></a>. If you change the transformation
|
988
|
-
or target surface for <em class="parameter"><code>cr</code></em>, you need to call <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-layout" title="pango_cairo_update_layout ()"><code class="function">pango_cairo_update_layout()</code></a>
|
989
|
-
</p>
|
951
|
+
or target surface for <em class="parameter"><code>cr</code></em>, you need to call <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-layout" title="pango_cairo_update_layout ()"><code class="function">pango_cairo_update_layout()</code></a></p>
|
990
952
|
<p>
|
991
953
|
This function is the most convenient way to use Cairo with Pango,
|
992
954
|
however it is slightly inefficient since it creates a separate
|
993
955
|
<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> object for each layout. This might matter in an
|
994
|
-
application that was laying out large amounts of text
|
995
|
-
</p>
|
956
|
+
application that was laying out large amounts of text.</p>
|
996
957
|
<div class="variablelist"><table border="0" class="variablelist">
|
997
958
|
<colgroup>
|
998
959
|
<col align="left" valign="top">
|
@@ -1016,13 +977,12 @@ application that was laying out large amounts of text.
|
|
1016
977
|
<hr>
|
1017
978
|
<div class="refsect2">
|
1018
979
|
<a name="pango-cairo-update-layout"></a><h3>pango_cairo_update_layout ()</h3>
|
1019
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_update_layout (<em class="parameter"><code><
|
980
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_update_layout (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1020
981
|
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
1021
982
|
<p>
|
1022
983
|
Updates the private <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> of a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> created with
|
1023
984
|
<a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-layout" title="pango_cairo_create_layout ()"><code class="function">pango_cairo_create_layout()</code></a> to match the current transformation
|
1024
|
-
and target surface of a Cairo context
|
1025
|
-
</p>
|
985
|
+
and target surface of a Cairo context.</p>
|
1026
986
|
<div class="variablelist"><table border="0" class="variablelist">
|
1027
987
|
<colgroup>
|
1028
988
|
<col align="left" valign="top">
|
@@ -1045,14 +1005,13 @@ and target surface of a Cairo context.
|
|
1045
1005
|
<hr>
|
1046
1006
|
<div class="refsect2">
|
1047
1007
|
<a name="pango-cairo-show-glyph-string"></a><h3>pango_cairo_show_glyph_string ()</h3>
|
1048
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_glyph_string (<em class="parameter"><code><
|
1008
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_glyph_string (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1049
1009
|
<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
|
1050
1010
|
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> *glyphs</code></em>);</pre>
|
1051
1011
|
<p>
|
1052
1012
|
Draws the glyphs in <em class="parameter"><code>glyphs</code></em> in the specified cairo context.
|
1053
1013
|
The origin of the glyphs (the left edge of the baseline) will
|
1054
|
-
be drawn at the current point of the cairo context
|
1055
|
-
</p>
|
1014
|
+
be drawn at the current point of the cairo context.</p>
|
1056
1015
|
<div class="variablelist"><table border="0" class="variablelist">
|
1057
1016
|
<colgroup>
|
1058
1017
|
<col align="left" valign="top">
|
@@ -1080,23 +1039,20 @@ be drawn at the current point of the cairo context.
|
|
1080
1039
|
<hr>
|
1081
1040
|
<div class="refsect2">
|
1082
1041
|
<a name="pango-cairo-show-glyph-item"></a><h3>pango_cairo_show_glyph_item ()</h3>
|
1083
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_glyph_item (<em class="parameter"><code><
|
1042
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_glyph_item (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1084
1043
|
<em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
|
1085
1044
|
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem"><span class="type">PangoGlyphItem</span></a> *glyph_item</code></em>);</pre>
|
1086
1045
|
<p>
|
1087
1046
|
Draws the glyphs in <em class="parameter"><code>glyph_item</code></em> in the specified cairo context,
|
1088
1047
|
embedding the text associated with the glyphs in the output if the
|
1089
1048
|
output format supports it (PDF for example), otherwise it acts
|
1090
|
-
similar to <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-glyph-string" title="pango_cairo_show_glyph_string ()"><code class="function">pango_cairo_show_glyph_string()</code></a
|
1091
|
-
</p>
|
1049
|
+
similar to <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-glyph-string" title="pango_cairo_show_glyph_string ()"><code class="function">pango_cairo_show_glyph_string()</code></a>.</p>
|
1092
1050
|
<p>
|
1093
1051
|
The origin of the glyphs (the left edge of the baseline) will
|
1094
|
-
be drawn at the current point of the cairo context
|
1095
|
-
</p>
|
1052
|
+
be drawn at the current point of the cairo context.</p>
|
1096
1053
|
<p>
|
1097
1054
|
Note that <em class="parameter"><code>text</code></em> is the start of the text for layout, which is then
|
1098
|
-
indexed by <code class="literal"><em class="parameter"><code>glyph_item->item->offset</code></em></code
|
1099
|
-
</p>
|
1055
|
+
indexed by <code class="literal"><em class="parameter"><code>glyph_item->item->offset</code></em></code>.</p>
|
1100
1056
|
<div class="variablelist"><table border="0" class="variablelist">
|
1101
1057
|
<colgroup>
|
1102
1058
|
<col align="left" valign="top">
|
@@ -1123,13 +1079,12 @@ indexed by <code class="literal"><em class="parameter"><code>glyph_item->item
|
|
1123
1079
|
<hr>
|
1124
1080
|
<div class="refsect2">
|
1125
1081
|
<a name="pango-cairo-show-layout-line"></a><h3>pango_cairo_show_layout_line ()</h3>
|
1126
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_layout_line (<em class="parameter"><code><
|
1082
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_layout_line (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1127
1083
|
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>);</pre>
|
1128
1084
|
<p>
|
1129
1085
|
Draws a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> in the specified cairo context.
|
1130
1086
|
The origin of the glyphs (the left edge of the line) will
|
1131
|
-
be drawn at the current point of the cairo context
|
1132
|
-
</p>
|
1087
|
+
be drawn at the current point of the cairo context.</p>
|
1133
1088
|
<div class="variablelist"><table border="0" class="variablelist">
|
1134
1089
|
<colgroup>
|
1135
1090
|
<col align="left" valign="top">
|
@@ -1152,13 +1107,12 @@ be drawn at the current point of the cairo context.
|
|
1152
1107
|
<hr>
|
1153
1108
|
<div class="refsect2">
|
1154
1109
|
<a name="pango-cairo-show-layout"></a><h3>pango_cairo_show_layout ()</h3>
|
1155
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_layout (<em class="parameter"><code><
|
1110
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_layout (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1156
1111
|
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
1157
1112
|
<p>
|
1158
1113
|
Draws a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> in the specified cairo context.
|
1159
1114
|
The top-left corner of the <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> will be drawn
|
1160
|
-
at the current point of the cairo context
|
1161
|
-
</p>
|
1115
|
+
at the current point of the cairo context.</p>
|
1162
1116
|
<div class="variablelist"><table border="0" class="variablelist">
|
1163
1117
|
<colgroup>
|
1164
1118
|
<col align="left" valign="top">
|
@@ -1180,7 +1134,7 @@ at the current point of the cairo context.
|
|
1180
1134
|
<hr>
|
1181
1135
|
<div class="refsect2">
|
1182
1136
|
<a name="pango-cairo-show-error-underline"></a><h3>pango_cairo_show_error_underline ()</h3>
|
1183
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_error_underline (<em class="parameter"><code><
|
1137
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_error_underline (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1184
1138
|
<em class="parameter"><code><span class="type">double</span> x</code></em>,
|
1185
1139
|
<em class="parameter"><code><span class="type">double</span> y</code></em>,
|
1186
1140
|
<em class="parameter"><code><span class="type">double</span> width</code></em>,
|
@@ -1190,8 +1144,7 @@ Draw a squiggly line in the specified cairo context that approximately
|
|
1190
1144
|
covers the given rectangle in the style of an underline used to indicate a
|
1191
1145
|
spelling error. (The width of the underline is rounded to an integer
|
1192
1146
|
number of up/down segments and the resulting rectangle is centered in the
|
1193
|
-
original rectangle)
|
1194
|
-
</p>
|
1147
|
+
original rectangle)</p>
|
1195
1148
|
<div class="variablelist"><table border="0" class="variablelist">
|
1196
1149
|
<colgroup>
|
1197
1150
|
<col align="left" valign="top">
|
@@ -1225,14 +1178,13 @@ original rectangle)
|
|
1225
1178
|
<hr>
|
1226
1179
|
<div class="refsect2">
|
1227
1180
|
<a name="pango-cairo-glyph-string-path"></a><h3>pango_cairo_glyph_string_path ()</h3>
|
1228
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_glyph_string_path (<em class="parameter"><code><
|
1181
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_glyph_string_path (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1229
1182
|
<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
|
1230
1183
|
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> *glyphs</code></em>);</pre>
|
1231
1184
|
<p>
|
1232
1185
|
Adds the glyphs in <em class="parameter"><code>glyphs</code></em> to the current path in the specified
|
1233
1186
|
cairo context. The origin of the glyphs (the left edge of the baseline)
|
1234
|
-
will be at the current point of the cairo context
|
1235
|
-
</p>
|
1187
|
+
will be at the current point of the cairo context.</p>
|
1236
1188
|
<div class="variablelist"><table border="0" class="variablelist">
|
1237
1189
|
<colgroup>
|
1238
1190
|
<col align="left" valign="top">
|
@@ -1260,13 +1212,12 @@ will be at the current point of the cairo context.
|
|
1260
1212
|
<hr>
|
1261
1213
|
<div class="refsect2">
|
1262
1214
|
<a name="pango-cairo-layout-line-path"></a><h3>pango_cairo_layout_line_path ()</h3>
|
1263
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_layout_line_path (<em class="parameter"><code><
|
1215
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_layout_line_path (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1264
1216
|
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>);</pre>
|
1265
1217
|
<p>
|
1266
1218
|
Adds the text in <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> to the current path in the
|
1267
1219
|
specified cairo context. The origin of the glyphs (the left edge
|
1268
|
-
of the line) will be at the current point of the cairo context
|
1269
|
-
</p>
|
1220
|
+
of the line) will be at the current point of the cairo context.</p>
|
1270
1221
|
<div class="variablelist"><table border="0" class="variablelist">
|
1271
1222
|
<colgroup>
|
1272
1223
|
<col align="left" valign="top">
|
@@ -1289,13 +1240,12 @@ of the line) will be at the current point of the cairo context.
|
|
1289
1240
|
<hr>
|
1290
1241
|
<div class="refsect2">
|
1291
1242
|
<a name="pango-cairo-layout-path"></a><h3>pango_cairo_layout_path ()</h3>
|
1292
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_layout_path (<em class="parameter"><code><
|
1243
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_layout_path (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1293
1244
|
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
1294
1245
|
<p>
|
1295
1246
|
Adds the text in a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> to the current path in the
|
1296
1247
|
specified cairo context. The top-left corner of the <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1297
|
-
will be at the current point of the cairo context
|
1298
|
-
</p>
|
1248
|
+
will be at the current point of the cairo context.</p>
|
1299
1249
|
<div class="variablelist"><table border="0" class="variablelist">
|
1300
1250
|
<colgroup>
|
1301
1251
|
<col align="left" valign="top">
|
@@ -1317,7 +1267,7 @@ will be at the current point of the cairo context.
|
|
1317
1267
|
<hr>
|
1318
1268
|
<div class="refsect2">
|
1319
1269
|
<a name="pango-cairo-error-underline-path"></a><h3>pango_cairo_error_underline_path ()</h3>
|
1320
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_error_underline_path (<em class="parameter"><code><
|
1270
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_error_underline_path (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1321
1271
|
<em class="parameter"><code><span class="type">double</span> x</code></em>,
|
1322
1272
|
<em class="parameter"><code><span class="type">double</span> y</code></em>,
|
1323
1273
|
<em class="parameter"><code><span class="type">double</span> width</code></em>,
|
@@ -1327,8 +1277,7 @@ Add a squiggly line to the current path in the specified cairo context that
|
|
1327
1277
|
approximately covers the given rectangle in the style of an underline used
|
1328
1278
|
to indicate a spelling error. (The width of the underline is rounded to an
|
1329
1279
|
integer number of up/down segments and the resulting rectangle is centered
|
1330
|
-
in the original rectangle)
|
1331
|
-
</p>
|
1280
|
+
in the original rectangle)</p>
|
1332
1281
|
<div class="variablelist"><table border="0" class="variablelist">
|
1333
1282
|
<colgroup>
|
1334
1283
|
<col align="left" valign="top">
|
@@ -1363,6 +1312,6 @@ in the original rectangle)
|
|
1363
1312
|
</div>
|
1364
1313
|
<div class="footer">
|
1365
1314
|
<hr>
|
1366
|
-
Generated by GTK-Doc V1.19</div>
|
1315
|
+
Generated by GTK-Doc V1.19.1</div>
|
1367
1316
|
</body>
|
1368
1317
|
</html>
|