pango 2.1.0-x86-mingw32 → 2.2.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -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>FreeType Fonts and Rendering</title>
|
5
|
+
<title>Pango Reference Manual: FreeType Fonts and 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-Win32-Fonts-and-Rendering.html" title="Win32 Fonts and Rendering">
|
10
10
|
<link rel="next" href="pango-Xft-Fonts-and-Rendering.html" title="Xft Fonts and Rendering">
|
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-Xft-Fonts-and-Rendering.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-FreeType-Fonts-and-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-FreeType-Fonts-and-Rendering.description" class="shortcut">Description</a>
|
27
20
|
|
|
28
21
|
<a href="#pango-FreeType-Fonts-and-Rendering.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="rendering.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
25
|
+
<td><a accesskey="p" href="pango-Win32-Fonts-and-Rendering.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
26
|
+
<td><a accesskey="n" href="pango-Xft-Fonts-and-Rendering.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-FreeType-Fonts-and-Rendering"></a><div class="titlepage"></div>
|
33
30
|
<div class="refnamediv"><table width="100%"><tr>
|
@@ -109,8 +106,7 @@
|
|
109
106
|
<a name="pango-FreeType-Fonts-and-Rendering.description"></a><h2>Description</h2>
|
110
107
|
<p>
|
111
108
|
The macros and functions in this section are used to access fonts and render
|
112
|
-
text to bitmaps using the FreeType 2 library
|
113
|
-
</p>
|
109
|
+
text to bitmaps using the FreeType 2 library.</p>
|
114
110
|
</div>
|
115
111
|
<div class="refsect1">
|
116
112
|
<a name="pango-FreeType-Fonts-and-Rendering.details"></a><h2>Details</h2>
|
@@ -118,22 +114,20 @@ text to bitmaps using the FreeType 2 library.
|
|
118
114
|
<a name="PangoFT2FontMap-struct"></a><h3>PangoFT2FontMap</h3>
|
119
115
|
<pre class="programlisting">typedef struct _PangoFT2FontMap PangoFT2FontMap;</pre>
|
120
116
|
<p>
|
121
|
-
The <a class="link" href="pango-FreeType-Fonts-and-Rendering.html#PangoFT2FontMap"><span class="type">PangoFT2FontMap</span></a> is the <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> implementation for FreeType fonts
|
122
|
-
</p>
|
117
|
+
The <a class="link" href="pango-FreeType-Fonts-and-Rendering.html#PangoFT2FontMap"><span class="type">PangoFT2FontMap</span></a> is the <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> implementation for FreeType fonts.</p>
|
123
118
|
</div>
|
124
119
|
<hr>
|
125
120
|
<div class="refsect2">
|
126
121
|
<a name="PANGO-RENDER-TYPE-FT2:CAPS"></a><h3>PANGO_RENDER_TYPE_FT2</h3>
|
127
122
|
<pre class="programlisting">#define PANGO_RENDER_TYPE_FT2 "PangoRenderFT2"
|
128
123
|
</pre>
|
129
|
-
<div class="warning"
|
124
|
+
<div class="warning">
|
130
125
|
<h3 class="title">Warning</h3>
|
131
126
|
<p><code class="literal">PANGO_RENDER_TYPE_FT2</code> is deprecated and should not be used in newly-written code.</p>
|
132
127
|
</div>
|
133
128
|
<p>
|
134
129
|
A string constant that was used to identify shape engines that work
|
135
|
-
with the FreeType backend. See <a class="link" href="PangoFcFont.html#PANGO-RENDER-TYPE-FC:CAPS" title="PANGO_RENDER_TYPE_FC"><code class="literal">PANGO_RENDER_TYPE_FC</code></a> for the replacement
|
136
|
-
</p>
|
130
|
+
with the FreeType backend. See <a class="link" href="PangoFcFont.html#PANGO-RENDER-TYPE-FC:CAPS" title="PANGO_RENDER_TYPE_FC"><code class="literal">PANGO_RENDER_TYPE_FC</code></a> for the replacement.</p>
|
137
131
|
</div>
|
138
132
|
<hr>
|
139
133
|
<div class="refsect2">
|
@@ -144,8 +138,7 @@ Create a new <a class="link" href="pango-FreeType-Fonts-and-Rendering.html#Pango
|
|
144
138
|
to cache information about available fonts, and holds
|
145
139
|
certain global parameters such as the resolution and
|
146
140
|
the default substitute function (see
|
147
|
-
<a class="link" href="pango-FreeType-Fonts-and-Rendering.html#pango-ft2-font-map-set-default-substitute" title="pango_ft2_font_map_set_default_substitute ()"><code class="function">pango_ft2_font_map_set_default_substitute()</code></a>)
|
148
|
-
</p>
|
141
|
+
<a class="link" href="pango-FreeType-Fonts-and-Rendering.html#pango-ft2-font-map-set-default-substitute" title="pango_ft2_font_map_set_default_substitute ()"><code class="function">pango_ft2_font_map_set_default_substitute()</code></a>).</p>
|
149
142
|
<div class="variablelist"><table border="0" class="variablelist">
|
150
143
|
<colgroup>
|
151
144
|
<col align="left" valign="top">
|
@@ -166,8 +159,7 @@ with <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk
|
|
166
159
|
<em class="parameter"><code><span class="type">double</span> dpi_x</code></em>,
|
167
160
|
<em class="parameter"><code><span class="type">double</span> dpi_y</code></em>);</pre>
|
168
161
|
<p>
|
169
|
-
Sets the horizontal and vertical resolutions for the fontmap
|
170
|
-
</p>
|
162
|
+
Sets the horizontal and vertical resolutions for the fontmap.</p>
|
171
163
|
<div class="variablelist"><table border="0" class="variablelist">
|
172
164
|
<colgroup>
|
173
165
|
<col align="left" valign="top">
|
@@ -195,13 +187,12 @@ Sets the horizontal and vertical resolutions for the fontmap.
|
|
195
187
|
<div class="refsect2">
|
196
188
|
<a name="pango-ft2-font-map-create-context"></a><h3>pango_ft2_font_map_create_context ()</h3>
|
197
189
|
<pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * pango_ft2_font_map_create_context (<em class="parameter"><code><a class="link" href="pango-FreeType-Fonts-and-Rendering.html#PangoFT2FontMap"><span class="type">PangoFT2FontMap</span></a> *fontmap</code></em>);</pre>
|
198
|
-
<div class="warning"
|
190
|
+
<div class="warning">
|
199
191
|
<h3 class="title">Warning</h3>
|
200
192
|
<p><code class="literal">pango_ft2_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>
|
201
193
|
</div>
|
202
194
|
<p>
|
203
|
-
Create a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> for the given fontmap
|
204
|
-
</p>
|
195
|
+
Create a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> for the given fontmap.</p>
|
205
196
|
<div class="variablelist"><table border="0" class="variablelist">
|
206
197
|
<colgroup>
|
207
198
|
<col align="left" valign="top">
|
@@ -227,8 +218,7 @@ Create a <a class="link" href="pango-Text-Processing.html#PangoContext"><span cl
|
|
227
218
|
<pre class="programlisting"><span class="returnvalue">void</span> (*PangoFT2SubstituteFunc) (<em class="parameter"><code><span class="type">FcPattern</span> *pattern</code></em>,
|
228
219
|
<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>
|
229
220
|
<p>
|
230
|
-
Function type for doing final config tweaking on prepared FcPatterns
|
231
|
-
</p>
|
221
|
+
Function type for doing final config tweaking on prepared FcPatterns.</p>
|
232
222
|
<div class="variablelist"><table border="0" class="variablelist">
|
233
223
|
<colgroup>
|
234
224
|
<col align="left" valign="top">
|
@@ -258,8 +248,7 @@ Function type for doing final config tweaking on prepared FcPatterns.
|
|
258
248
|
Sets a function that will be called to do final configuration
|
259
249
|
substitution on a <span class="type">FcPattern</span> before it is used to load
|
260
250
|
the font. This function can be used to do things like set
|
261
|
-
hinting and antialiasing options
|
262
|
-
</p>
|
251
|
+
hinting and antialiasing options.</p>
|
263
252
|
<div class="variablelist"><table border="0" class="variablelist">
|
264
253
|
<colgroup>
|
265
254
|
<col align="left" valign="top">
|
@@ -299,8 +288,7 @@ Call this function any time the results of the
|
|
299
288
|
default substitution function set with
|
300
289
|
<a class="link" href="pango-FreeType-Fonts-and-Rendering.html#pango-ft2-font-map-set-default-substitute" title="pango_ft2_font_map_set_default_substitute ()"><code class="function">pango_ft2_font_map_set_default_substitute()</code></a> change.
|
301
290
|
That is, if your substitution function will return different
|
302
|
-
results for the same input pattern, you must call this function
|
303
|
-
</p>
|
291
|
+
results for the same input pattern, you must call this function.</p>
|
304
292
|
<div class="variablelist"><table border="0" class="variablelist">
|
305
293
|
<colgroup>
|
306
294
|
<col align="left" valign="top">
|
@@ -319,15 +307,14 @@ results for the same input pattern, you must call this function.
|
|
319
307
|
<a name="pango-ft2-get-context"></a><h3>pango_ft2_get_context ()</h3>
|
320
308
|
<pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * pango_ft2_get_context (<em class="parameter"><code><span class="type">double</span> dpi_x</code></em>,
|
321
309
|
<em class="parameter"><code><span class="type">double</span> dpi_y</code></em>);</pre>
|
322
|
-
<div class="warning"
|
310
|
+
<div class="warning">
|
323
311
|
<h3 class="title">Warning</h3>
|
324
312
|
<p><code class="literal">pango_ft2_get_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>
|
325
313
|
</div>
|
326
314
|
<p>
|
327
315
|
Retrieves a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> for the default PangoFT2 fontmap
|
328
316
|
(see <a class="link" href="pango-FreeType-Fonts-and-Rendering.html#pango-ft2-font-map-for-display" title="pango_ft2_font_map_for_display ()"><code class="function">pango_ft2_font_map_for_display()</code></a>) and sets the resolution
|
329
|
-
for the default fontmap to <em class="parameter"><code>dpi_x</code></em> by <em class="parameter"><code>dpi_y</code></em
|
330
|
-
</p>
|
317
|
+
for the default fontmap to <em class="parameter"><code>dpi_x</code></em> by <em class="parameter"><code>dpi_y</code></em>.</p>
|
331
318
|
<div class="variablelist"><table border="0" class="variablelist">
|
332
319
|
<colgroup>
|
333
320
|
<col align="left" valign="top">
|
@@ -359,8 +346,7 @@ for the default fontmap to <em class="parameter"><code>dpi_x</code></em> by <em
|
|
359
346
|
<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> x</code></em>,
|
360
347
|
<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> y</code></em>);</pre>
|
361
348
|
<p>
|
362
|
-
Renders a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> onto a FreeType2 bitmap
|
363
|
-
</p>
|
349
|
+
Renders a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> onto a FreeType2 bitmap.</p>
|
364
350
|
<div class="variablelist"><table border="0" class="variablelist">
|
365
351
|
<colgroup>
|
366
352
|
<col align="left" valign="top">
|
@@ -405,8 +391,7 @@ transforming the layed-out coordinates through a transformation
|
|
405
391
|
matrix. Note that the transformation matrix for <em class="parameter"><code>font</code></em> is not
|
406
392
|
changed, so to produce correct rendering results, the <em class="parameter"><code>font</code></em>
|
407
393
|
must have been loaded using a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> with an identical
|
408
|
-
transformation matrix to that passed in to this function
|
409
|
-
</p>
|
394
|
+
transformation matrix to that passed in to this function.</p>
|
410
395
|
<div class="variablelist"><table border="0" class="variablelist">
|
411
396
|
<colgroup>
|
412
397
|
<col align="left" valign="top">
|
@@ -451,8 +436,7 @@ in user space coordinates)</td>
|
|
451
436
|
<em class="parameter"><code><span class="type">int</span> x</code></em>,
|
452
437
|
<em class="parameter"><code><span class="type">int</span> y</code></em>);</pre>
|
453
438
|
<p>
|
454
|
-
Render a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> onto a FreeType2 bitmap
|
455
|
-
</p>
|
439
|
+
Render a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> onto a FreeType2 bitmap</p>
|
456
440
|
<div class="variablelist"><table border="0" class="variablelist">
|
457
441
|
<colgroup>
|
458
442
|
<col align="left" valign="top">
|
@@ -492,8 +476,7 @@ Render a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span
|
|
492
476
|
location specified in fixed-point Pango units rather than
|
493
477
|
pixels. (Using this will avoid extra inaccuracies from
|
494
478
|
rounding to integer pixels multiple times, even if the
|
495
|
-
final glyph positions are integers.)
|
496
|
-
</p>
|
479
|
+
final glyph positions are integers.)</p>
|
497
480
|
<div class="variablelist"><table border="0" class="variablelist">
|
498
481
|
<colgroup>
|
499
482
|
<col align="left" valign="top">
|
@@ -529,8 +512,7 @@ final glyph positions are integers.)
|
|
529
512
|
<em class="parameter"><code><span class="type">int</span> x</code></em>,
|
530
513
|
<em class="parameter"><code><span class="type">int</span> y</code></em>);</pre>
|
531
514
|
<p>
|
532
|
-
Render a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> onto a FreeType2 bitmap
|
533
|
-
</p>
|
515
|
+
Render a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> onto a FreeType2 bitmap</p>
|
534
516
|
<div class="variablelist"><table border="0" class="variablelist">
|
535
517
|
<colgroup>
|
536
518
|
<col align="left" valign="top">
|
@@ -569,8 +551,7 @@ Render a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span clas
|
|
569
551
|
location specified in fixed-point Pango units rather than
|
570
552
|
pixels. (Using this will avoid extra inaccuracies from
|
571
553
|
rounding to integer pixels multiple times, even if the
|
572
|
-
final glyph positions are integers.)
|
573
|
-
</p>
|
554
|
+
final glyph positions are integers.)</p>
|
574
555
|
<div class="variablelist"><table border="0" class="variablelist">
|
575
556
|
<colgroup>
|
576
557
|
<col align="left" valign="top">
|
@@ -602,19 +583,17 @@ final glyph positions are integers.)
|
|
602
583
|
<div class="refsect2">
|
603
584
|
<a name="pango-ft2-get-unknown-glyph"></a><h3>pango_ft2_get_unknown_glyph ()</h3>
|
604
585
|
<pre class="programlisting"><a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph"><span class="returnvalue">PangoGlyph</span></a> pango_ft2_get_unknown_glyph (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>);</pre>
|
605
|
-
<div class="warning"
|
586
|
+
<div class="warning">
|
606
587
|
<h3 class="title">Warning</h3>
|
607
588
|
<p><code class="literal">pango_ft2_get_unknown_glyph</code> is deprecated and should not be used in newly-written code.</p>
|
608
589
|
</div>
|
609
590
|
<p>
|
610
591
|
Return the index of a glyph suitable for drawing unknown characters with
|
611
|
-
<em class="parameter"><code>font</code></em>, or <a class="link" href="pango-Glyph-Storage.html#PANGO-GLYPH-EMPTY:CAPS" title="PANGO_GLYPH_EMPTY"><code class="literal">PANGO_GLYPH_EMPTY</code></a> if no suitable glyph found
|
612
|
-
</p>
|
592
|
+
<em class="parameter"><code>font</code></em>, or <a class="link" href="pango-Glyph-Storage.html#PANGO-GLYPH-EMPTY:CAPS" title="PANGO_GLYPH_EMPTY"><code class="literal">PANGO_GLYPH_EMPTY</code></a> if no suitable glyph found.</p>
|
613
593
|
<p>
|
614
594
|
If you want to draw an unknown-box for a character that is not covered
|
615
595
|
by the font,
|
616
|
-
use <a class="link" href="pango-Glyph-Storage.html#PANGO-GET-UNKNOWN-GLYPH:CAPS" title="PANGO_GET_UNKNOWN_GLYPH()"><code class="function">PANGO_GET_UNKNOWN_GLYPH()</code></a> instead
|
617
|
-
</p>
|
596
|
+
use <a class="link" href="pango-Glyph-Storage.html#PANGO-GET-UNKNOWN-GLYPH:CAPS" title="PANGO_GET_UNKNOWN_GLYPH()"><code class="function">PANGO_GET_UNKNOWN_GLYPH()</code></a> instead.</p>
|
618
597
|
<div class="variablelist"><table border="0" class="variablelist">
|
619
598
|
<colgroup>
|
620
599
|
<col align="left" valign="top">
|
@@ -640,16 +619,14 @@ use <a class="link" href="pango-Glyph-Storage.html#PANGO-GET-UNKNOWN-GLYPH:CAPS"
|
|
640
619
|
<pre class="programlisting"><span class="returnvalue">int</span> pango_ft2_font_get_kerning (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
|
641
620
|
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph"><span class="type">PangoGlyph</span></a> left</code></em>,
|
642
621
|
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph"><span class="type">PangoGlyph</span></a> right</code></em>);</pre>
|
643
|
-
<div class="warning"
|
622
|
+
<div class="warning">
|
644
623
|
<h3 class="title">Warning</h3>
|
645
624
|
<p><code class="literal">pango_ft2_font_get_kerning</code> is deprecated and should not be used in newly-written code.</p>
|
646
625
|
</div>
|
647
626
|
<p>
|
648
|
-
Retrieves kerning information for a combination of two glyphs
|
649
|
-
</p>
|
627
|
+
Retrieves kerning information for a combination of two glyphs.</p>
|
650
628
|
<p>
|
651
|
-
Use <a class="link" href="PangoFcFont.html#pango-fc-font-kern-glyphs" title="pango_fc_font_kern_glyphs ()"><code class="function">pango_fc_font_kern_glyphs()</code></a> instead
|
652
|
-
</p>
|
629
|
+
Use <a class="link" href="PangoFcFont.html#pango-fc-font-kern-glyphs" title="pango_fc_font_kern_glyphs ()"><code class="function">pango_fc_font_kern_glyphs()</code></a> instead.</p>
|
653
630
|
<div class="variablelist"><table border="0" class="variablelist">
|
654
631
|
<colgroup>
|
655
632
|
<col align="left" valign="top">
|
@@ -683,19 +660,17 @@ the given combination of glyphs.</td>
|
|
683
660
|
<div class="refsect2">
|
684
661
|
<a name="pango-ft2-font-get-face"></a><h3>pango_ft2_font_get_face ()</h3>
|
685
662
|
<pre class="programlisting"><span class="returnvalue">FT_Face</span> pango_ft2_font_get_face (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>);</pre>
|
686
|
-
<div class="warning"
|
663
|
+
<div class="warning">
|
687
664
|
<h3 class="title">Warning</h3>
|
688
665
|
<p><code class="literal">pango_ft2_font_get_face</code> is deprecated and should not be used in newly-written code.</p>
|
689
666
|
</div>
|
690
667
|
<p>
|
691
668
|
Returns the native FreeType2 <span class="type">FT_Face</span> structure used for this <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>.
|
692
|
-
This may be useful if you want to use FreeType2 functions directly
|
693
|
-
</p>
|
669
|
+
This may be useful if you want to use FreeType2 functions directly.</p>
|
694
670
|
<p>
|
695
671
|
Use <a class="link" href="PangoFcFont.html#pango-fc-font-lock-face" title="pango_fc_font_lock_face ()"><code class="function">pango_fc_font_lock_face()</code></a> instead; when you are done with a
|
696
672
|
face from <a class="link" href="PangoFcFont.html#pango-fc-font-lock-face" title="pango_fc_font_lock_face ()"><code class="function">pango_fc_font_lock_face()</code></a> you must call
|
697
|
-
<a class="link" href="PangoFcFont.html#pango-fc-font-unlock-face" title="pango_fc_font_unlock_face ()"><code class="function">pango_fc_font_unlock_face()</code></a
|
698
|
-
</p>
|
673
|
+
<a class="link" href="PangoFcFont.html#pango-fc-font-unlock-face" title="pango_fc_font_unlock_face ()"><code class="function">pango_fc_font_unlock_face()</code></a>.</p>
|
699
674
|
<div class="variablelist"><table border="0" class="variablelist">
|
700
675
|
<colgroup>
|
701
676
|
<col align="left" valign="top">
|
@@ -720,14 +695,13 @@ or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-d
|
|
720
695
|
<a name="pango-ft2-font-get-coverage"></a><h3>pango_ft2_font_get_coverage ()</h3>
|
721
696
|
<pre class="programlisting"><a class="link" href="pango-Coverage-Maps.html#PangoCoverage" title="PangoCoverage"><span class="returnvalue">PangoCoverage</span></a> * pango_ft2_font_get_coverage (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
|
722
697
|
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>);</pre>
|
723
|
-
<div class="warning"
|
698
|
+
<div class="warning">
|
724
699
|
<h3 class="title">Warning</h3>
|
725
700
|
<p><code class="literal">pango_ft2_font_get_coverage</code> is deprecated and should not be used in newly-written code.</p>
|
726
701
|
</div>
|
727
702
|
<p>
|
728
703
|
Gets the <a class="link" href="pango-Coverage-Maps.html#PangoCoverage" title="PangoCoverage"><span class="type">PangoCoverage</span></a> for a <span class="type">PangoFT2Font</span>. Use
|
729
|
-
<a class="link" href="pango-Fonts.html#pango-font-get-coverage" title="pango_font_get_coverage ()"><code class="function">pango_font_get_coverage()</code></a> instead
|
730
|
-
</p>
|
704
|
+
<a class="link" href="pango-Fonts.html#pango-font-get-coverage" title="pango_font_get_coverage ()"><code class="function">pango_font_get_coverage()</code></a> instead.</p>
|
731
705
|
<div class="variablelist"><table border="0" class="variablelist">
|
732
706
|
<colgroup>
|
733
707
|
<col align="left" valign="top">
|
@@ -753,7 +727,7 @@ Gets the <a class="link" href="pango-Coverage-Maps.html#PangoCoverage" title="Pa
|
|
753
727
|
<div class="refsect2">
|
754
728
|
<a name="pango-ft2-font-map-for-display"></a><h3>pango_ft2_font_map_for_display ()</h3>
|
755
729
|
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> * pango_ft2_font_map_for_display (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
756
|
-
<div class="warning"
|
730
|
+
<div class="warning">
|
757
731
|
<h3 class="title">Warning</h3>
|
758
732
|
<p><code class="literal">pango_ft2_font_map_for_display</code> is deprecated and should not be used in newly-written code.</p>
|
759
733
|
</div>
|
@@ -762,8 +736,7 @@ Returns a <a class="link" href="pango-FreeType-Fonts-and-Rendering.html#PangoFT2
|
|
762
736
|
not be freed. If the font map is no longer needed, it can
|
763
737
|
be released with <a class="link" href="pango-FreeType-Fonts-and-Rendering.html#pango-ft2-shutdown-display" title="pango_ft2_shutdown_display ()"><code class="function">pango_ft2_shutdown_display()</code></a>. Use of the
|
764
738
|
global PangoFT2 fontmap is deprecated; use <a class="link" href="pango-FreeType-Fonts-and-Rendering.html#pango-ft2-font-map-new" title="pango_ft2_font_map_new ()"><code class="function">pango_ft2_font_map_new()</code></a>
|
765
|
-
instead
|
766
|
-
</p>
|
739
|
+
instead.</p>
|
767
740
|
<div class="variablelist"><table border="0" class="variablelist">
|
768
741
|
<colgroup>
|
769
742
|
<col align="left" valign="top">
|
@@ -779,19 +752,18 @@ instead.
|
|
779
752
|
<div class="refsect2">
|
780
753
|
<a name="pango-ft2-shutdown-display"></a><h3>pango_ft2_shutdown_display ()</h3>
|
781
754
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_ft2_shutdown_display (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
782
|
-
<div class="warning"
|
755
|
+
<div class="warning">
|
783
756
|
<h3 class="title">Warning</h3>
|
784
757
|
<p><code class="literal">pango_ft2_shutdown_display</code> is deprecated and should not be used in newly-written code.</p>
|
785
758
|
</div>
|
786
759
|
<p>
|
787
760
|
Free the global fontmap. (See <a class="link" href="pango-FreeType-Fonts-and-Rendering.html#pango-ft2-font-map-for-display" title="pango_ft2_font_map_for_display ()"><code class="function">pango_ft2_font_map_for_display()</code></a>)
|
788
|
-
Use of the global PangoFT2 fontmap is deprecated
|
789
|
-
</p>
|
761
|
+
Use of the global PangoFT2 fontmap is deprecated.</p>
|
790
762
|
</div>
|
791
763
|
</div>
|
792
764
|
</div>
|
793
765
|
<div class="footer">
|
794
766
|
<hr>
|
795
|
-
Generated by GTK-Doc V1.19</div>
|
767
|
+
Generated by GTK-Doc V1.19.1</div>
|
796
768
|
</body>
|
797
769
|
</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>Glyph Storage</title>
|
5
|
+
<title>Pango Reference Manual: Glyph Storage</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-Text-Processing.html" title="Rendering">
|
10
10
|
<link rel="next" href="pango-Fonts.html" title="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="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-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-Glyph-Storage.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-Glyph-Storage.description" class="shortcut">Description</a>
|
27
20
|
|
|
28
21
|
<a href="#pango-Glyph-Storage.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-Text-Processing.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
26
|
+
<td><a accesskey="n" href="pango-Fonts.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-Glyph-Storage"></a><div class="titlepage"></div>
|
33
30
|
<div class="refnamediv"><table width="100%"><tr>
|
@@ -183,8 +180,7 @@ struct <a class="link" href="pango-Glyph-Storage.html#PangoGlyphIte
|
|
183
180
|
<a class="link" href="pango-Text-Processing.html#pango-shape" title="pango_shape ()"><code class="function">pango_shape()</code></a> produces a string of glyphs which
|
184
181
|
can be measured or drawn to the screen. The following
|
185
182
|
structures are used to store information about
|
186
|
-
glyphs
|
187
|
-
</p>
|
183
|
+
glyphs.</p>
|
188
184
|
</div>
|
189
185
|
<div class="refsect1">
|
190
186
|
<a name="pango-Glyph-Storage.details"></a><h2>Details</h2>
|
@@ -197,12 +193,10 @@ The <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANG
|
|
197
193
|
for Pango distances and device units. (The definition of device
|
198
194
|
units is dependent on the output device; it will typically be pixels
|
199
195
|
for a screen, and points for a printer.) <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a> is currently
|
200
|
-
1024, but this may be changed in the future
|
201
|
-
</p>
|
196
|
+
1024, but this may be changed in the future.</p>
|
202
197
|
<p>
|
203
198
|
When setting font sizes, device units are always considered to be
|
204
|
-
points (as in "12 point font"), rather than pixels
|
205
|
-
</p>
|
199
|
+
points (as in "12 point font"), rather than pixels.</p>
|
206
200
|
</div>
|
207
201
|
<hr>
|
208
202
|
<div class="refsect2">
|
@@ -210,8 +204,7 @@ points (as in "12 point font"), rather than pixels.
|
|
210
204
|
<pre class="programlisting">#define PANGO_PIXELS(d) (((int)(d) + 512) >> 10)
|
211
205
|
</pre>
|
212
206
|
<p>
|
213
|
-
Converts a dimension to device units by rounding
|
214
|
-
</p>
|
207
|
+
Converts a dimension to device units by rounding.</p>
|
215
208
|
<div class="variablelist"><table border="0" class="variablelist">
|
216
209
|
<colgroup>
|
217
210
|
<col align="left" valign="top">
|
@@ -235,8 +228,7 @@ Converts a dimension to device units by rounding.
|
|
235
228
|
<pre class="programlisting">#define PANGO_PIXELS_FLOOR(d) (((int)(d)) >> 10)
|
236
229
|
</pre>
|
237
230
|
<p>
|
238
|
-
Converts a dimension to device units by flooring
|
239
|
-
</p>
|
231
|
+
Converts a dimension to device units by flooring.</p>
|
240
232
|
<div class="variablelist"><table border="0" class="variablelist">
|
241
233
|
<colgroup>
|
242
234
|
<col align="left" valign="top">
|
@@ -261,8 +253,7 @@ Converts a dimension to device units by flooring.
|
|
261
253
|
<pre class="programlisting">#define PANGO_PIXELS_CEIL(d) (((int)(d) + 1023) >> 10)
|
262
254
|
</pre>
|
263
255
|
<p>
|
264
|
-
Converts a dimension to device units by ceiling
|
265
|
-
</p>
|
256
|
+
Converts a dimension to device units by ceiling.</p>
|
266
257
|
<div class="variablelist"><table border="0" class="variablelist">
|
267
258
|
<colgroup>
|
268
259
|
<col align="left" valign="top">
|
@@ -287,8 +278,7 @@ Converts a dimension to device units by ceiling.
|
|
287
278
|
<pre class="programlisting">#define PANGO_UNITS_ROUND(d)</pre>
|
288
279
|
<p>
|
289
280
|
Rounds a dimension to whole device units, but does not
|
290
|
-
convert it to device units
|
291
|
-
</p>
|
281
|
+
convert it to device units.</p>
|
292
282
|
<div class="variablelist"><table border="0" class="variablelist">
|
293
283
|
<colgroup>
|
294
284
|
<col align="left" valign="top">
|
@@ -313,8 +303,7 @@ convert it to device units.
|
|
313
303
|
<pre class="programlisting"><span class="returnvalue">double</span> pango_units_to_double (<em class="parameter"><code><span class="type">int</span> i</code></em>);</pre>
|
314
304
|
<p>
|
315
305
|
Converts a number in Pango units to floating-point: divides
|
316
|
-
it by <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a
|
317
|
-
</p>
|
306
|
+
it by <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a>.</p>
|
318
307
|
<div class="variablelist"><table border="0" class="variablelist">
|
319
308
|
<colgroup>
|
320
309
|
<col align="left" valign="top">
|
@@ -339,8 +328,7 @@ it by <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PA
|
|
339
328
|
<pre class="programlisting"><span class="returnvalue">int</span> pango_units_from_double (<em class="parameter"><code><span class="type">double</span> d</code></em>);</pre>
|
340
329
|
<p>
|
341
330
|
Converts a floating-point number to Pango units: multiplies
|
342
|
-
it by <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a> and rounds to nearest integer
|
343
|
-
</p>
|
331
|
+
it by <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a> and rounds to nearest integer.</p>
|
344
332
|
<div class="variablelist"><table border="0" class="variablelist">
|
345
333
|
<colgroup>
|
346
334
|
<col align="left" valign="top">
|
@@ -372,8 +360,7 @@ it by <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PA
|
|
372
360
|
<p>
|
373
361
|
The <a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> structure represents a rectangle. It is frequently
|
374
362
|
used to represent the logical or ink extents of a single glyph or section
|
375
|
-
of text. (See, for instance, <a class="link" href="pango-Fonts.html#pango-font-get-glyph-extents" title="pango_font_get_glyph_extents ()"><code class="function">pango_font_get_glyph_extents()</code></a>)
|
376
|
-
</p>
|
363
|
+
of text. (See, for instance, <a class="link" href="pango-Fonts.html#pango-font-get-glyph-extents" title="pango_font_get_glyph_extents ()"><code class="function">pango_font_get_glyph_extents()</code></a>)</p>
|
377
364
|
<div class="variablelist"><table border="0" class="variablelist">
|
378
365
|
<colgroup>
|
379
366
|
<col align="left" valign="top">
|
@@ -408,8 +395,7 @@ of text. (See, for instance, <a class="link" href="pango-Fonts.html#pango-font-g
|
|
408
395
|
Extracts the <em class="firstterm">ascent</em> from a <a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a>
|
409
396
|
representing glyph extents. The ascent is the distance from the
|
410
397
|
baseline to the highest point of the character. This is positive if the
|
411
|
-
glyph ascends above the baseline
|
412
|
-
</p>
|
398
|
+
glyph ascends above the baseline.</p>
|
413
399
|
<div class="variablelist"><table border="0" class="variablelist">
|
414
400
|
<colgroup>
|
415
401
|
<col align="left" valign="top">
|
@@ -431,8 +417,7 @@ glyph ascends above the baseline.
|
|
431
417
|
Extracts the <em class="firstterm">descent</em> from a <a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a>
|
432
418
|
representing glyph extents. The descent is the distance from the
|
433
419
|
baseline to the lowest point of the character. This is positive if the
|
434
|
-
glyph descends below the baseline
|
435
|
-
</p>
|
420
|
+
glyph descends below the baseline.</p>
|
436
421
|
<div class="variablelist"><table border="0" class="variablelist">
|
437
422
|
<colgroup>
|
438
423
|
<col align="left" valign="top">
|
@@ -455,8 +440,7 @@ Extracts the <em class="firstterm">left bearing</em> from a <a class="link" href
|
|
455
440
|
representing glyph extents. The left bearing is the distance from the
|
456
441
|
horizontal origin to the farthest left point of the character.
|
457
442
|
This is positive for characters drawn completely to the right of the
|
458
|
-
glyph origin
|
459
|
-
</p>
|
443
|
+
glyph origin.</p>
|
460
444
|
<div class="variablelist"><table border="0" class="variablelist">
|
461
445
|
<colgroup>
|
462
446
|
<col align="left" valign="top">
|
@@ -479,8 +463,7 @@ Extracts the <em class="firstterm">right bearing</em> from a <a class="link" hre
|
|
479
463
|
representing glyph extents. The right bearing is the distance from the
|
480
464
|
horizontal origin to the farthest right point of the character.
|
481
465
|
This is positive except for characters drawn completely to the left of the
|
482
|
-
horizontal origin
|
483
|
-
</p>
|
466
|
+
horizontal origin.</p>
|
484
467
|
<div class="variablelist"><table border="0" class="variablelist">
|
485
468
|
<colgroup>
|
486
469
|
<col align="left" valign="top">
|
@@ -500,24 +483,20 @@ horizontal origin.
|
|
500
483
|
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *nearest</code></em>);</pre>
|
501
484
|
<p>
|
502
485
|
Converts extents from Pango units to device units, dividing by the
|
503
|
-
<a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a> factor and performing rounding
|
504
|
-
</p>
|
486
|
+
<a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a> factor and performing rounding.</p>
|
505
487
|
<p>
|
506
488
|
The <em class="parameter"><code>inclusive</code></em> rectangle is converted by flooring the x/y coordinates and extending
|
507
489
|
width/height, such that the final rectangle completely includes the original
|
508
|
-
rectangle
|
509
|
-
</p>
|
490
|
+
rectangle.</p>
|
510
491
|
<p>
|
511
492
|
The <em class="parameter"><code>nearest</code></em> rectangle is converted by rounding the coordinates
|
512
|
-
of the rectangle to the nearest device unit (pixel)
|
513
|
-
</p>
|
493
|
+
of the rectangle to the nearest device unit (pixel).</p>
|
514
494
|
<p>
|
515
495
|
The rule to which argument to use is: if you want the resulting device-space
|
516
496
|
rectangle to completely contain the original rectangle, pass it in as <em class="parameter"><code>inclusive</code></em>.
|
517
497
|
If you want two touching-but-not-overlapping rectangles stay
|
518
498
|
touching-but-not-overlapping after rounding to device units, pass them in
|
519
|
-
as <em class="parameter"><code>nearest</code></em
|
520
|
-
</p>
|
499
|
+
as <em class="parameter"><code>nearest</code></em>.</p>
|
521
500
|
<div class="variablelist"><table border="0" class="variablelist">
|
522
501
|
<colgroup>
|
523
502
|
<col align="left" valign="top">
|
@@ -553,16 +532,13 @@ as <em class="parameter"><code>nearest</code></em>.
|
|
553
532
|
<p>
|
554
533
|
A structure specifying a transformation between user-space
|
555
534
|
coordinates and device coordinates. The transformation
|
556
|
-
is given by
|
557
|
-
</p>
|
535
|
+
is given by</p>
|
558
536
|
<p>
|
559
537
|
</p>
|
560
538
|
<pre class="programlisting">
|
561
539
|
x_device = x_user * matrix->xx + y_user * matrix->xy + matrix->x0;
|
562
540
|
y_device = x_user * matrix->yx + y_user * matrix->yy + matrix->y0;
|
563
541
|
</pre>
|
564
|
-
<p>
|
565
|
-
</p>
|
566
542
|
<div class="variablelist"><table border="0" class="variablelist">
|
567
543
|
<colgroup>
|
568
544
|
<col align="left" valign="top">
|
@@ -603,8 +579,7 @@ y_device = x_user * matrix->yx + y_user * matrix->yy + matrix->y0;
|
|
603
579
|
<pre class="programlisting">#define PANGO_TYPE_MATRIX (pango_matrix_get_type ())
|
604
580
|
</pre>
|
605
581
|
<p>
|
606
|
-
The GObject type for <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a>
|
607
|
-
</p>
|
582
|
+
The GObject type for <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a></p>
|
608
583
|
</div>
|
609
584
|
<hr>
|
610
585
|
<div class="refsect2">
|
@@ -613,8 +588,7 @@ The GObject type for <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"
|
|
613
588
|
</pre>
|
614
589
|
<p>
|
615
590
|
Constant that can be used to initialize a PangoMatrix to
|
616
|
-
the identity transform
|
617
|
-
</p>
|
591
|
+
the identity transform.</p>
|
618
592
|
<p>
|
619
593
|
</p>
|
620
594
|
<div class="informalexample">
|
@@ -630,8 +604,6 @@ the identity transform.
|
|
630
604
|
</table>
|
631
605
|
</div>
|
632
606
|
|
633
|
-
<p>
|
634
|
-
</p>
|
635
607
|
<p class="since">Since 1.6</p>
|
636
608
|
</div>
|
637
609
|
<hr>
|
@@ -639,8 +611,7 @@ the identity transform.
|
|
639
611
|
<a name="pango-matrix-copy"></a><h3>pango_matrix_copy ()</h3>
|
640
612
|
<pre class="programlisting"><a class="link" href="pango-Glyph-Storage.html#PangoMatrix"><span class="returnvalue">PangoMatrix</span></a> * pango_matrix_copy (<em class="parameter"><code>const <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a> *matrix</code></em>);</pre>
|
641
613
|
<p>
|
642
|
-
Copies a <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a
|
643
|
-
</p>
|
614
|
+
Copies a <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a>.</p>
|
644
615
|
<div class="variablelist"><table border="0" class="variablelist">
|
645
616
|
<colgroup>
|
646
617
|
<col align="left" valign="top">
|
@@ -667,8 +638,7 @@ be freed with <a class="link" href="pango-Glyph-Storage.html#pango-matrix-free"
|
|
667
638
|
<a name="pango-matrix-free"></a><h3>pango_matrix_free ()</h3>
|
668
639
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_matrix_free (<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a> *matrix</code></em>);</pre>
|
669
640
|
<p>
|
670
|
-
Free a <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a> created with <a class="link" href="pango-Glyph-Storage.html#pango-matrix-copy" title="pango_matrix_copy ()"><code class="function">pango_matrix_copy()</code></a
|
671
|
-
</p>
|
641
|
+
Free a <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a> created with <a class="link" href="pango-Glyph-Storage.html#pango-matrix-copy" title="pango_matrix_copy ()"><code class="function">pango_matrix_copy()</code></a>.</p>
|
672
642
|
<div class="variablelist"><table border="0" class="variablelist">
|
673
643
|
<colgroup>
|
674
644
|
<col align="left" valign="top">
|
@@ -691,8 +661,7 @@ Free a <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"><span class="
|
|
691
661
|
<p>
|
692
662
|
Changes the transformation represented by <em class="parameter"><code>matrix</code></em> to be the
|
693
663
|
transformation given by first translating by (<em class="parameter"><code>tx</code></em>, <em class="parameter"><code>ty</code></em>)
|
694
|
-
then applying the original transformation
|
695
|
-
</p>
|
664
|
+
then applying the original transformation.</p>
|
696
665
|
<div class="variablelist"><table border="0" class="variablelist">
|
697
666
|
<colgroup>
|
698
667
|
<col align="left" valign="top">
|
@@ -726,8 +695,7 @@ then applying the original transformation.
|
|
726
695
|
Changes the transformation represented by <em class="parameter"><code>matrix</code></em> to be the
|
727
696
|
transformation given by first scaling by <em class="parameter"><code>sx</code></em> in the X direction
|
728
697
|
and <em class="parameter"><code>sy</code></em> in the Y direction then applying the original
|
729
|
-
transformation
|
730
|
-
</p>
|
698
|
+
transformation.</p>
|
731
699
|
<div class="variablelist"><table border="0" class="variablelist">
|
732
700
|
<colgroup>
|
733
701
|
<col align="left" valign="top">
|
@@ -759,8 +727,7 @@ transformation.
|
|
759
727
|
<p>
|
760
728
|
Changes the transformation represented by <em class="parameter"><code>matrix</code></em> to be the
|
761
729
|
transformation given by first rotating by <em class="parameter"><code>degrees</code></em> degrees
|
762
|
-
counter-clockwise then applying the original transformation
|
763
|
-
</p>
|
730
|
+
counter-clockwise then applying the original transformation.</p>
|
764
731
|
<div class="variablelist"><table border="0" class="variablelist">
|
765
732
|
<colgroup>
|
766
733
|
<col align="left" valign="top">
|
@@ -788,8 +755,7 @@ counter-clockwise then applying the original transformation.
|
|
788
755
|
<p>
|
789
756
|
Changes the transformation represented by <em class="parameter"><code>matrix</code></em> to be the
|
790
757
|
transformation given by first applying transformation
|
791
|
-
given by <em class="parameter"><code>new_matrix</code></em> then applying the original transformation
|
792
|
-
</p>
|
758
|
+
given by <em class="parameter"><code>new_matrix</code></em> then applying the original transformation.</p>
|
793
759
|
<div class="variablelist"><table border="0" class="variablelist">
|
794
760
|
<colgroup>
|
795
761
|
<col align="left" valign="top">
|
@@ -817,8 +783,7 @@ given by <em class="parameter"><code>new_matrix</code></em> then applying the or
|
|
817
783
|
<em class="parameter"><code><span class="type">double</span> *x</code></em>,
|
818
784
|
<em class="parameter"><code><span class="type">double</span> *y</code></em>);</pre>
|
819
785
|
<p>
|
820
|
-
Transforms the point (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>) by <em class="parameter"><code>matrix</code></em
|
821
|
-
</p>
|
786
|
+
Transforms the point (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>) by <em class="parameter"><code>matrix</code></em>.</p>
|
822
787
|
<div class="variablelist"><table border="0" class="variablelist">
|
823
788
|
<colgroup>
|
824
789
|
<col align="left" valign="top">
|
@@ -854,8 +819,7 @@ Transforms the point (<em class="parameter"><code>x</code></em>, <em class="para
|
|
854
819
|
Transforms the distance vector (<em class="parameter"><code>dx</code></em>,<em class="parameter"><code>dy</code></em>) by <em class="parameter"><code>matrix</code></em>. This is
|
855
820
|
similar to <a class="link" href="pango-Glyph-Storage.html#pango-matrix-transform-point" title="pango_matrix_transform_point ()"><code class="function">pango_matrix_transform_point()</code></a> except that the translation
|
856
821
|
components of the transformation are ignored. The calculation of
|
857
|
-
the returned vector is as follows
|
858
|
-
</p>
|
822
|
+
the returned vector is as follows:</p>
|
859
823
|
<p>
|
860
824
|
</p>
|
861
825
|
<pre class="programlisting">
|
@@ -863,13 +827,10 @@ dx2 = dx1 * xx + dy1 * xy;
|
|
863
827
|
dy2 = dx1 * yx + dy1 * yy;
|
864
828
|
</pre>
|
865
829
|
<p>
|
866
|
-
</p>
|
867
|
-
<p>
|
868
830
|
Affine transformations are position invariant, so the same vector
|
869
831
|
always transforms to the same vector. If (<em class="parameter"><code>x1</code></em>,<em class="parameter"><code>y1</code></em>) transforms
|
870
832
|
to (<em class="parameter"><code>x2</code></em>,<em class="parameter"><code>y2</code></em>) then (<em class="parameter"><code>x1</code></em>+<em class="parameter"><code>dx1</code></em>,<em class="parameter"><code>y1</code></em>+<em class="parameter"><code>dy1</code></em>) will transform to
|
871
|
-
(<em class="parameter"><code>x1</code></em>+<em class="parameter"><code>dx2</code></em>,<em class="parameter"><code>y1</code></em>+<em class="parameter"><code>dy2</code></em>) for all values of <em class="parameter"><code>x1</code></em> and <em class="parameter"><code>x2</code></em
|
872
|
-
</p>
|
833
|
+
(<em class="parameter"><code>x1</code></em>+<em class="parameter"><code>dx2</code></em>,<em class="parameter"><code>y1</code></em>+<em class="parameter"><code>dy2</code></em>) for all values of <em class="parameter"><code>x1</code></em> and <em class="parameter"><code>x2</code></em>.</p>
|
873
834
|
<div class="variablelist"><table border="0" class="variablelist">
|
874
835
|
<colgroup>
|
875
836
|
<col align="left" valign="top">
|
@@ -902,17 +863,14 @@ to (<em class="parameter"><code>x2</code></em>,<em class="parameter"><code>y2</c
|
|
902
863
|
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *rect</code></em>);</pre>
|
903
864
|
<p>
|
904
865
|
First transforms <em class="parameter"><code>rect</code></em> using <em class="parameter"><code>matrix</code></em>, then calculates the bounding box
|
905
|
-
of the transformed rectangle. The rectangle should be in Pango units
|
906
|
-
</p>
|
866
|
+
of the transformed rectangle. The rectangle should be in Pango units.</p>
|
907
867
|
<p>
|
908
868
|
This function is useful for example when you want to draw a rotated
|
909
869
|
<em class="parameter"><code>PangoLayout</code></em> to an image buffer, and want to know how large the image
|
910
|
-
should be and how much you should shift the layout when rendering
|
911
|
-
</p>
|
870
|
+
should be and how much you should shift the layout when rendering.</p>
|
912
871
|
<p>
|
913
872
|
If you have a rectangle in device units (pixels), use
|
914
|
-
<a class="link" href="pango-Glyph-Storage.html#pango-matrix-transform-pixel-rectangle" title="pango_matrix_transform_pixel_rectangle ()"><code class="function">pango_matrix_transform_pixel_rectangle()</code></a
|
915
|
-
</p>
|
873
|
+
<a class="link" href="pango-Glyph-Storage.html#pango-matrix-transform-pixel-rectangle" title="pango_matrix_transform_pixel_rectangle ()"><code class="function">pango_matrix_transform_pixel_rectangle()</code></a>.</p>
|
916
874
|
<p>
|
917
875
|
If you have the rectangle in Pango units and want to convert to
|
918
876
|
transformed pixel bounding box, it is more accurate to transform it first
|
@@ -921,8 +879,7 @@ first argument, for an inclusive rounded rectangle.
|
|
921
879
|
However, there are valid reasons that you may want to convert
|
922
880
|
to pixels first and then transform, for example when the transformed
|
923
881
|
coordinates may overflow in Pango units (large matrix translation for
|
924
|
-
example)
|
925
|
-
</p>
|
882
|
+
example).</p>
|
926
883
|
<div class="variablelist"><table border="0" class="variablelist">
|
927
884
|
<colgroup>
|
928
885
|
<col align="left" valign="top">
|
@@ -952,18 +909,15 @@ example).
|
|
952
909
|
<p>
|
953
910
|
First transforms the <em class="parameter"><code>rect</code></em> using <em class="parameter"><code>matrix</code></em>, then calculates the bounding box
|
954
911
|
of the transformed rectangle. The rectangle should be in device units
|
955
|
-
(pixels)
|
956
|
-
</p>
|
912
|
+
(pixels).</p>
|
957
913
|
<p>
|
958
914
|
This function is useful for example when you want to draw a rotated
|
959
915
|
<em class="parameter"><code>PangoLayout</code></em> to an image buffer, and want to know how large the image
|
960
|
-
should be and how much you should shift the layout when rendering
|
961
|
-
</p>
|
916
|
+
should be and how much you should shift the layout when rendering.</p>
|
962
917
|
<p>
|
963
918
|
For better accuracy, you should use <a class="link" href="pango-Glyph-Storage.html#pango-matrix-transform-rectangle" title="pango_matrix_transform_rectangle ()"><code class="function">pango_matrix_transform_rectangle()</code></a> on
|
964
919
|
original rectangle in Pango units and convert to pixels afterward
|
965
|
-
using <a class="link" href="pango-Glyph-Storage.html#pango-extents-to-pixels" title="pango_extents_to_pixels ()"><code class="function">pango_extents_to_pixels()</code></a>'s first argument
|
966
|
-
</p>
|
920
|
+
using <a class="link" href="pango-Glyph-Storage.html#pango-extents-to-pixels" title="pango_extents_to_pixels ()"><code class="function">pango_extents_to_pixels()</code></a>'s first argument.</p>
|
967
921
|
<div class="variablelist"><table border="0" class="variablelist">
|
968
922
|
<colgroup>
|
969
923
|
<col align="left" valign="top">
|
@@ -991,8 +945,7 @@ using <a class="link" href="pango-Glyph-Storage.html#pango-extents-to-pixels" ti
|
|
991
945
|
<p>
|
992
946
|
Returns the scale factor of a matrix on the height of the font.
|
993
947
|
That is, the scale factor in the direction perpendicular to the
|
994
|
-
vector that the X coordinate is mapped to
|
995
|
-
</p>
|
948
|
+
vector that the X coordinate is mapped to.</p>
|
996
949
|
<div class="variablelist"><table border="0" class="variablelist">
|
997
950
|
<colgroup>
|
998
951
|
<col align="left" valign="top">
|
@@ -1019,8 +972,7 @@ or 1.0 if <em class="parameter"><code>matrix</code></em> is <a href="/home/kou/w
|
|
1019
972
|
<pre class="programlisting">typedef guint32 PangoGlyph;
|
1020
973
|
</pre>
|
1021
974
|
<p>
|
1022
|
-
A <a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph"><span class="type">PangoGlyph</span></a> represents a single glyph in the output form of a string
|
1023
|
-
</p>
|
975
|
+
A <a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph"><span class="type">PangoGlyph</span></a> represents a single glyph in the output form of a string.</p>
|
1024
976
|
</div>
|
1025
977
|
<hr>
|
1026
978
|
<div class="refsect2">
|
@@ -1031,8 +983,7 @@ A <a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph">
|
|
1031
983
|
The <a class="link" href="pango-Glyph-Storage.html#PANGO-GLYPH-EMPTY:CAPS" title="PANGO_GLYPH_EMPTY"><code class="literal">PANGO_GLYPH_EMPTY</code></a> macro represents a <a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph"><span class="type">PangoGlyph</span></a> value that has a
|
1032
984
|
special meaning, which is a zero-width empty glyph. This is useful for
|
1033
985
|
example in shaper modules, to use as the glyph for various zero-width
|
1034
|
-
Unicode characters (those passing <a class="link" href="pango-Miscellaneous-Utilities.html#pango-is-zero-width" title="pango_is_zero_width ()"><code class="function">pango_is_zero_width()</code></a>)
|
1035
|
-
</p>
|
986
|
+
Unicode characters (those passing <a class="link" href="pango-Miscellaneous-Utilities.html#pango-is-zero-width" title="pango_is_zero_width ()"><code class="function">pango_is_zero_width()</code></a>).</p>
|
1036
987
|
</div>
|
1037
988
|
<hr>
|
1038
989
|
<div class="refsect2">
|
@@ -1043,12 +994,10 @@ Unicode characters (those passing <a class="link" href="pango-Miscellaneous-Util
|
|
1043
994
|
The <a class="link" href="pango-Glyph-Storage.html#PANGO-GLYPH-INVALID-INPUT:CAPS" title="PANGO_GLYPH_INVALID_INPUT"><code class="literal">PANGO_GLYPH_INVALID_INPUT</code></a> macro represents a <a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph"><span class="type">PangoGlyph</span></a> value that has a
|
1044
995
|
special meaning of invalid input. <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> produces one such glyph
|
1045
996
|
per invalid input UTF-8 byte and such a glyph is rendered as a crossed
|
1046
|
-
box
|
1047
|
-
</p>
|
997
|
+
box.</p>
|
1048
998
|
<p>
|
1049
999
|
Note that this value is defined such that it has the <a class="link" href="pango-Glyph-Storage.html#PANGO-GLYPH-UNKNOWN-FLAG:CAPS" title="PANGO_GLYPH_UNKNOWN_FLAG"><code class="literal">PANGO_GLYPH_UNKNOWN_FLAG</code></a>
|
1050
|
-
on
|
1051
|
-
</p>
|
1000
|
+
on.</p>
|
1052
1001
|
<p class="since">Since 1.20</p>
|
1053
1002
|
</div>
|
1054
1003
|
<hr>
|
@@ -1059,8 +1008,7 @@ on.
|
|
1059
1008
|
<p>
|
1060
1009
|
The <a class="link" href="pango-Glyph-Storage.html#PANGO-GLYPH-UNKNOWN-FLAG:CAPS" title="PANGO_GLYPH_UNKNOWN_FLAG"><code class="literal">PANGO_GLYPH_UNKNOWN_FLAG</code></a> macro is a flag value that can be added to
|
1061
1010
|
a <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> value of a valid Unicode character, to produce a <a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph"><span class="type">PangoGlyph</span></a>
|
1062
|
-
value, representing an unknown-character glyph for the respective <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
|
1063
|
-
</p>
|
1011
|
+
value, representing an unknown-character glyph for the respective <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>.</p>
|
1064
1012
|
</div>
|
1065
1013
|
<hr>
|
1066
1014
|
<div class="refsect2">
|
@@ -1070,8 +1018,7 @@ value, representing an unknown-character glyph for the respective <a href="/home
|
|
1070
1018
|
<p>
|
1071
1019
|
The way this unknown glyphs are rendered is backend specific. For example,
|
1072
1020
|
a box with the hexadecimal Unicode code-point of the character written in it
|
1073
|
-
is what is done in the most common backends
|
1074
|
-
</p>
|
1021
|
+
is what is done in the most common backends.</p>
|
1075
1022
|
<div class="variablelist"><table border="0" class="variablelist">
|
1076
1023
|
<colgroup>
|
1077
1024
|
<col align="left" valign="top">
|
@@ -1101,8 +1048,7 @@ is what is done in the most common backends.
|
|
1101
1048
|
<p>
|
1102
1049
|
The <a class="link" href="pango-Glyph-Storage.html#PangoGlyphInfo" title="struct PangoGlyphInfo"><span class="type">PangoGlyphInfo</span></a> structure represents a single glyph together with
|
1103
1050
|
positioning information and visual attributes.
|
1104
|
-
It contains the following fields
|
1105
|
-
</p>
|
1051
|
+
It contains the following fields.</p>
|
1106
1052
|
<div class="variablelist"><table border="0" class="variablelist">
|
1107
1053
|
<colgroup>
|
1108
1054
|
<col align="left" valign="top">
|
@@ -1135,8 +1081,7 @@ It contains the following fields.
|
|
1135
1081
|
</pre>
|
1136
1082
|
<p>
|
1137
1083
|
The <a class="link" href="pango-Glyph-Storage.html#PangoGlyphGeometry" title="struct PangoGlyphGeometry"><span class="type">PangoGlyphGeometry</span></a> structure contains width and positioning
|
1138
|
-
information for a single glyph
|
1139
|
-
</p>
|
1084
|
+
information for a single glyph.</p>
|
1140
1085
|
<div class="variablelist"><table border="0" class="variablelist">
|
1141
1086
|
<colgroup>
|
1142
1087
|
<col align="left" valign="top">
|
@@ -1170,8 +1115,7 @@ Pango. Dimensions are stored in 1/<a class="link" href="pango-Glyph-Storage.html
|
|
1170
1115
|
a point on a printer.) <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a> is currently 1024, and
|
1171
1116
|
may change in the future (unlikely though), but you should not
|
1172
1117
|
depend on its exact value. The <a class="link" href="pango-Glyph-Storage.html#PANGO-PIXELS:CAPS" title="PANGO_PIXELS()"><code class="function">PANGO_PIXELS()</code></a> macro can be used
|
1173
|
-
to convert from glyph units into device units with correct rounding
|
1174
|
-
</p>
|
1118
|
+
to convert from glyph units into device units with correct rounding.</p>
|
1175
1119
|
</div>
|
1176
1120
|
<hr>
|
1177
1121
|
<div class="refsect2">
|
@@ -1183,8 +1127,7 @@ to convert from glyph units into device units with correct rounding.
|
|
1183
1127
|
<p>
|
1184
1128
|
The PangoGlyphVisAttr is used to communicate information between
|
1185
1129
|
the shaping phase and the rendering phase. More attributes may be
|
1186
|
-
added in the future
|
1187
|
-
</p>
|
1130
|
+
added in the future.</p>
|
1188
1131
|
<div class="variablelist"><table border="0" class="variablelist">
|
1189
1132
|
<colgroup>
|
1190
1133
|
<col align="left" valign="top">
|
@@ -1220,8 +1163,7 @@ follow the glyphs for the base character.)</td>
|
|
1220
1163
|
The <a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> structure is used to store strings
|
1221
1164
|
of glyphs with geometry and visual attribute information.
|
1222
1165
|
The storage for the glyph information is owned
|
1223
|
-
by the structure which simplifies memory management
|
1224
|
-
</p>
|
1166
|
+
by the structure which simplifies memory management.</p>
|
1225
1167
|
</div>
|
1226
1168
|
<hr>
|
1227
1169
|
<div class="refsect2">
|
@@ -1236,8 +1178,7 @@ A <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem"><span class="ty
|
|
1236
1178
|
resulting from shaping the text corresponding to an item.
|
1237
1179
|
As an example of the usage of <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem"><span class="type">PangoGlyphItem</span></a>, the results
|
1238
1180
|
of shaping text with <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> is a list of <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>,
|
1239
|
-
each of which contains a list of <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem"><span class="type">PangoGlyphItem</span></a
|
1240
|
-
</p>
|
1181
|
+
each of which contains a list of <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem"><span class="type">PangoGlyphItem</span></a>.</p>
|
1241
1182
|
</div>
|
1242
1183
|
<hr>
|
1243
1184
|
<div class="refsect2">
|
@@ -1262,8 +1203,7 @@ iterator is the logical direction of text. That is, with increasing
|
|
1262
1203
|
<em class="parameter"><code>start_index</code></em> and <em class="parameter"><code>start_char</code></em> values. If <em class="parameter"><code>glyph_item</code></em> is right-to-left
|
1263
1204
|
(that is, if <code class="literal"><em class="parameter"><code>glyph_item->item->analysis.level</code></em></code> is odd),
|
1264
1205
|
then <em class="parameter"><code>start_glyph</code></em> decreases as the iterator moves forward. Moreover,
|
1265
|
-
in right-to-left cases, <em class="parameter"><code>start_glyph</code></em> is greater than <em class="parameter"><code>end_glyph</code></em
|
1266
|
-
</p>
|
1206
|
+
in right-to-left cases, <em class="parameter"><code>start_glyph</code></em> is greater than <em class="parameter"><code>end_glyph</code></em>.</p>
|
1267
1207
|
<p>
|
1268
1208
|
An iterator should be initialized using either of
|
1269
1209
|
<a class="link" href="pango-Glyph-Storage.html#pango-glyph-item-iter-init-start" title="pango_glyph_item_iter_init_start ()"><code class="function">pango_glyph_item_iter_init_start()</code></a> and
|
@@ -1286,19 +1226,15 @@ for (have_cluster = pango_glyph_item_iter_init_start (&cluster_iter,
|
|
1286
1226
|
}
|
1287
1227
|
</pre>
|
1288
1228
|
<p>
|
1289
|
-
</p>
|
1290
|
-
<p>
|
1291
1229
|
Note that <em class="parameter"><code>text</code></em> is the start of the text for layout, which is then
|
1292
1230
|
indexed by <code class="literal"><em class="parameter"><code>glyph_item->item->offset</code></em></code> to get to the
|
1293
1231
|
text of <em class="parameter"><code>glyph_item</code></em>. The <em class="parameter"><code>start_index</code></em> and <em class="parameter"><code>end_index</code></em> values can directly
|
1294
1232
|
index into <em class="parameter"><code>text</code></em>. The <em class="parameter"><code>start_glyph</code></em>, <em class="parameter"><code>end_glyph</code></em>, <em class="parameter"><code>start_char</code></em>, and <em class="parameter"><code>end_char</code></em>
|
1295
1233
|
values however are zero-based for the <em class="parameter"><code>glyph_item</code></em>. For each cluster, the
|
1296
1234
|
item pointed at by the start variables is included in the cluster while
|
1297
|
-
the one pointed at by end variables is not
|
1298
|
-
</p>
|
1235
|
+
the one pointed at by end variables is not.</p>
|
1299
1236
|
<p>
|
1300
|
-
None of the members of a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> should be modified manually
|
1301
|
-
</p>
|
1237
|
+
None of the members of a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> should be modified manually.</p>
|
1302
1238
|
<p class="since">Since 1.22</p>
|
1303
1239
|
</div>
|
1304
1240
|
<hr>
|
@@ -1307,16 +1243,14 @@ None of the members of a <a class="link" href="pango-Glyph-Storage.html#PangoGly
|
|
1307
1243
|
<pre class="programlisting">#define PANGO_TYPE_GLYPH_STRING (pango_glyph_string_get_type ())
|
1308
1244
|
</pre>
|
1309
1245
|
<p>
|
1310
|
-
The <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a
|
1311
|
-
</p>
|
1246
|
+
The <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a>.</p>
|
1312
1247
|
</div>
|
1313
1248
|
<hr>
|
1314
1249
|
<div class="refsect2">
|
1315
1250
|
<a name="pango-glyph-string-new"></a><h3>pango_glyph_string_new ()</h3>
|
1316
1251
|
<pre class="programlisting"><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="returnvalue">PangoGlyphString</span></a> * pango_glyph_string_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
1317
1252
|
<p>
|
1318
|
-
Create a new <a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a
|
1319
|
-
</p>
|
1253
|
+
Create a new <a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a>.</p>
|
1320
1254
|
<div class="variablelist"><table border="0" class="variablelist">
|
1321
1255
|
<colgroup>
|
1322
1256
|
<col align="left" valign="top">
|
@@ -1334,8 +1268,7 @@ should be freed with <a class="link" href="pango-Glyph-Storage.html#pango-glyph-
|
|
1334
1268
|
<a name="pango-glyph-string-copy"></a><h3>pango_glyph_string_copy ()</h3>
|
1335
1269
|
<pre class="programlisting"><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="returnvalue">PangoGlyphString</span></a> * pango_glyph_string_copy (<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> *string</code></em>);</pre>
|
1336
1270
|
<p>
|
1337
|
-
Copy a glyph string and associated storage
|
1338
|
-
</p>
|
1271
|
+
Copy a glyph string and associated storage.</p>
|
1339
1272
|
<div class="variablelist"><table border="0" class="variablelist">
|
1340
1273
|
<colgroup>
|
1341
1274
|
<col align="left" valign="top">
|
@@ -1362,8 +1295,7 @@ or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-d
|
|
1362
1295
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_glyph_string_set_size (<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> *string</code></em>,
|
1363
1296
|
<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> new_len</code></em>);</pre>
|
1364
1297
|
<p>
|
1365
|
-
Resize a glyph string to the given length
|
1366
|
-
</p>
|
1298
|
+
Resize a glyph string to the given length.</p>
|
1367
1299
|
<div class="variablelist"><table border="0" class="variablelist">
|
1368
1300
|
<colgroup>
|
1369
1301
|
<col align="left" valign="top">
|
@@ -1386,8 +1318,7 @@ Resize a glyph string to the given length.
|
|
1386
1318
|
<a name="pango-glyph-string-free"></a><h3>pango_glyph_string_free ()</h3>
|
1387
1319
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_glyph_string_free (<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> *string</code></em>);</pre>
|
1388
1320
|
<p>
|
1389
|
-
Free a glyph string and associated storage
|
1390
|
-
</p>
|
1321
|
+
Free a glyph string and associated storage.</p>
|
1391
1322
|
<div class="variablelist"><table border="0" class="variablelist">
|
1392
1323
|
<colgroup>
|
1393
1324
|
<col align="left" valign="top">
|
@@ -1410,8 +1341,7 @@ Free a glyph string and associated storage.
|
|
1410
1341
|
<p>
|
1411
1342
|
Compute the logical and ink extents of a glyph string. See the documentation
|
1412
1343
|
for <a class="link" href="pango-Fonts.html#pango-font-get-glyph-extents" title="pango_font_get_glyph_extents ()"><code class="function">pango_font_get_glyph_extents()</code></a> for details about the interpretation
|
1413
|
-
of the rectangles
|
1414
|
-
</p>
|
1344
|
+
of the rectangles.</p>
|
1415
1345
|
<div class="variablelist"><table border="0" class="variablelist">
|
1416
1346
|
<colgroup>
|
1417
1347
|
<col align="left" valign="top">
|
@@ -1456,8 +1386,7 @@ glyph string or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/loca
|
|
1456
1386
|
Computes the extents of a sub-portion of a glyph string. The extents are
|
1457
1387
|
relative to the start of the glyph string range (the origin of their
|
1458
1388
|
coordinate system is at the start of the range, not at the start of the entire
|
1459
|
-
glyph string)
|
1460
|
-
</p>
|
1389
|
+
glyph string).</p>
|
1461
1390
|
<div class="variablelist"><table border="0" class="variablelist">
|
1462
1391
|
<colgroup>
|
1463
1392
|
<col align="left" valign="top">
|
@@ -1508,8 +1437,7 @@ indicate that the result is not needed. <span class="annotation">[<acronym title
|
|
1508
1437
|
Computes the logical width of the glyph string as can also be computed
|
1509
1438
|
using <a class="link" href="pango-Glyph-Storage.html#pango-glyph-string-extents" title="pango_glyph_string_extents ()"><code class="function">pango_glyph_string_extents()</code></a>. However, since this only computes the
|
1510
1439
|
width, it's much faster. This is in fact only a convenience function that
|
1511
|
-
computes the sum of geometry.width for each glyph in the <em class="parameter"><code>glyphs</code></em
|
1512
|
-
</p>
|
1440
|
+
computes the sum of geometry.width for each glyph in the <em class="parameter"><code>glyphs</code></em>.</p>
|
1513
1441
|
<div class="variablelist"><table border="0" class="variablelist">
|
1514
1442
|
<colgroup>
|
1515
1443
|
<col align="left" valign="top">
|
@@ -1542,8 +1470,7 @@ computes the sum of geometry.width for each glyph in the <em class="parameter"><
|
|
1542
1470
|
<p>
|
1543
1471
|
Converts from character position to x position. (X position
|
1544
1472
|
is measured from the left edge of the run). Character positions
|
1545
|
-
are computed by dividing up each cluster into equal portions
|
1546
|
-
</p>
|
1473
|
+
are computed by dividing up each cluster into equal portions.</p>
|
1547
1474
|
<div class="variablelist"><table border="0" class="variablelist">
|
1548
1475
|
<colgroup>
|
1549
1476
|
<col align="left" valign="top">
|
@@ -1602,8 +1529,7 @@ are computed by dividing up each cluster into equal portions.
|
|
1602
1529
|
In scripts where positioning within a cluster is not allowed
|
1603
1530
|
(such as Thai), the returned value may not be a valid cursor
|
1604
1531
|
position; the caller must combine the result with the logical
|
1605
|
-
attributes for the text to compute the valid cursor position
|
1606
|
-
</p>
|
1532
|
+
attributes for the text to compute the valid cursor position.</p>
|
1607
1533
|
<div class="variablelist"><table border="0" class="variablelist">
|
1608
1534
|
<colgroup>
|
1609
1535
|
<col align="left" valign="top">
|
@@ -1660,11 +1586,9 @@ edge of the character. <span class="annotation">[<acronym title="Parameter for r
|
|
1660
1586
|
Given a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> resulting from <a class="link" href="pango-Text-Processing.html#pango-shape" title="pango_shape ()"><code class="function">pango_shape()</code></a> and the corresponding
|
1661
1587
|
text, determine the screen width corresponding to each character. When
|
1662
1588
|
multiple characters compose a single cluster, the width of the entire
|
1663
|
-
cluster is divided equally among the characters
|
1664
|
-
</p>
|
1589
|
+
cluster is divided equally among the characters.</p>
|
1665
1590
|
<p>
|
1666
|
-
See also <a class="link" href="pango-Glyph-Storage.html#pango-glyph-item-get-logical-widths" title="pango_glyph_item_get_logical_widths ()"><code class="function">pango_glyph_item_get_logical_widths()</code></a
|
1667
|
-
</p>
|
1591
|
+
See also <a class="link" href="pango-Glyph-Storage.html#pango-glyph-item-get-logical-widths" title="pango_glyph_item_get_logical_widths ()"><code class="function">pango_glyph_item_get_logical_widths()</code></a>.</p>
|
1668
1592
|
<div class="variablelist"><table border="0" class="variablelist">
|
1669
1593
|
<colgroup>
|
1670
1594
|
<col align="left" valign="top">
|
@@ -1705,16 +1629,14 @@ with the resulting character widths. <span class="annotation">[<acronym title="P
|
|
1705
1629
|
<pre class="programlisting">#define PANGO_TYPE_GLYPH_ITEM (pango_glyph_item_get_type ())
|
1706
1630
|
</pre>
|
1707
1631
|
<p>
|
1708
|
-
The <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem"><span class="type">PangoGlyphItem</span></a
|
1709
|
-
</p>
|
1632
|
+
The <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem"><span class="type">PangoGlyphItem</span></a>.</p>
|
1710
1633
|
</div>
|
1711
1634
|
<hr>
|
1712
1635
|
<div class="refsect2">
|
1713
1636
|
<a name="pango-glyph-item-copy"></a><h3>pango_glyph_item_copy ()</h3>
|
1714
1637
|
<pre class="programlisting"><a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem"><span class="returnvalue">PangoGlyphItem</span></a> * pango_glyph_item_copy (<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem"><span class="type">PangoGlyphItem</span></a> *orig</code></em>);</pre>
|
1715
1638
|
<p>
|
1716
|
-
Make a deep copy of an existing <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem"><span class="type">PangoGlyphItem</span></a> structure
|
1717
|
-
</p>
|
1639
|
+
Make a deep copy of an existing <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem"><span class="type">PangoGlyphItem</span></a> structure.</p>
|
1718
1640
|
<div class="variablelist"><table border="0" class="variablelist">
|
1719
1641
|
<colgroup>
|
1720
1642
|
<col align="left" valign="top">
|
@@ -1741,8 +1663,7 @@ if <em class="parameter"><code>orig</code></em> was <a href="/home/kou/work/ruby
|
|
1741
1663
|
<a name="pango-glyph-item-free"></a><h3>pango_glyph_item_free ()</h3>
|
1742
1664
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_glyph_item_free (<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem"><span class="type">PangoGlyphItem</span></a> *glyph_item</code></em>);</pre>
|
1743
1665
|
<p>
|
1744
|
-
Frees a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem"><span class="type">PangoGlyphItem</span></a> and resources to which it points
|
1745
|
-
</p>
|
1666
|
+
Frees a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem"><span class="type">PangoGlyphItem</span></a> and resources to which it points.</p>
|
1746
1667
|
<div class="variablelist"><table border="0" class="variablelist">
|
1747
1668
|
<colgroup>
|
1748
1669
|
<col align="left" valign="top">
|
@@ -1769,12 +1690,10 @@ used to be in <em class="parameter"><code>orig</code></em>. You can think of <em
|
|
1769
1690
|
the returned item. <em class="parameter"><code>split_index</code></em> may not be 0, and it may not be
|
1770
1691
|
greater than or equal to the length of <em class="parameter"><code>orig</code></em> (that is, there must
|
1771
1692
|
be at least one byte assigned to each item, you can't create a
|
1772
|
-
zero-length item)
|
1773
|
-
</p>
|
1693
|
+
zero-length item).</p>
|
1774
1694
|
<p>
|
1775
1695
|
This function is similar in function to <a class="link" href="pango-Text-Processing.html#pango-item-split" title="pango_item_split ()"><code class="function">pango_item_split()</code></a> (and uses
|
1776
|
-
it internally.)
|
1777
|
-
</p>
|
1696
|
+
it internally.)</p>
|
1778
1697
|
<div class="variablelist"><table border="0" class="variablelist">
|
1779
1698
|
<colgroup>
|
1780
1699
|
<col align="left" valign="top">
|
@@ -1816,20 +1735,17 @@ on an attribute list. The idea is that if you have attributes
|
|
1816
1735
|
that don't affect shaping, such as color or underline, to avoid
|
1817
1736
|
affecting shaping, you filter them out (<a class="link" href="pango-Text-Attributes.html#pango-attr-list-filter" title="pango_attr_list_filter ()"><code class="function">pango_attr_list_filter()</code></a>),
|
1818
1737
|
apply the shaping process and then reapply them to the result using
|
1819
|
-
this function
|
1820
|
-
</p>
|
1738
|
+
this function.</p>
|
1821
1739
|
<p>
|
1822
1740
|
All attributes that start or end inside a cluster are applied
|
1823
1741
|
to that cluster; for instance, if half of a cluster is underlined
|
1824
1742
|
and the other-half strikethrough, then the cluster will end
|
1825
1743
|
up with both underline and strikethrough attributes. In these
|
1826
1744
|
cases, it may happen that item->extra_attrs for some of the
|
1827
|
-
result items can have multiple attributes of the same type
|
1828
|
-
</p>
|
1745
|
+
result items can have multiple attributes of the same type.</p>
|
1829
1746
|
<p>
|
1830
1747
|
This function takes ownership of <em class="parameter"><code>glyph_item</code></em>; it will be reused
|
1831
|
-
as one of the elements in the list
|
1832
|
-
</p>
|
1748
|
+
as one of the elements in the list.</p>
|
1833
1749
|
<div class="variablelist"><table border="0" class="variablelist">
|
1834
1750
|
<colgroup>
|
1835
1751
|
<col align="left" valign="top">
|
@@ -1870,8 +1786,7 @@ the elements using <a class="link" href="pango-Glyph-Storage.html#pango-glyph-it
|
|
1870
1786
|
<em class="parameter"><code><span class="type">int</span> letter_spacing</code></em>);</pre>
|
1871
1787
|
<p>
|
1872
1788
|
Adds spacing between the graphemes of <em class="parameter"><code>glyph_item</code></em> to
|
1873
|
-
give the effect of typographic letter spacing
|
1874
|
-
</p>
|
1789
|
+
give the effect of typographic letter spacing.</p>
|
1875
1790
|
<div class="variablelist"><table border="0" class="variablelist">
|
1876
1791
|
<colgroup>
|
1877
1792
|
<col align="left" valign="top">
|
@@ -1916,11 +1831,9 @@ negative values will give ugly results.</td>
|
|
1916
1831
|
Given a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem"><span class="type">PangoGlyphItem</span></a> and the corresponding
|
1917
1832
|
text, determine the screen width corresponding to each character. When
|
1918
1833
|
multiple characters compose a single cluster, the width of the entire
|
1919
|
-
cluster is divided equally among the characters
|
1920
|
-
</p>
|
1834
|
+
cluster is divided equally among the characters.</p>
|
1921
1835
|
<p>
|
1922
|
-
See also <a class="link" href="pango-Glyph-Storage.html#pango-glyph-string-get-logical-widths" title="pango_glyph_string_get_logical_widths ()"><code class="function">pango_glyph_string_get_logical_widths()</code></a
|
1923
|
-
</p>
|
1836
|
+
See also <a class="link" href="pango-Glyph-Storage.html#pango-glyph-string-get-logical-widths" title="pango_glyph_string_get_logical_widths ()"><code class="function">pango_glyph_string_get_logical_widths()</code></a>.</p>
|
1924
1837
|
<div class="variablelist"><table border="0" class="variablelist">
|
1925
1838
|
<colgroup>
|
1926
1839
|
<col align="left" valign="top">
|
@@ -1956,8 +1869,7 @@ the resulting character widths. <span class="annotation">[<acronym title="Parame
|
|
1956
1869
|
<pre class="programlisting">#define PANGO_TYPE_GLYPH_ITEM_ITER (pango_glyph_item_iter_get_type ())
|
1957
1870
|
</pre>
|
1958
1871
|
<p>
|
1959
|
-
The <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a
|
1960
|
-
</p>
|
1872
|
+
The <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a>.</p>
|
1961
1873
|
<p class="since">Since 1.22</p>
|
1962
1874
|
</div>
|
1963
1875
|
<hr>
|
@@ -1965,8 +1877,7 @@ The <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-
|
|
1965
1877
|
<a name="pango-glyph-item-iter-copy"></a><h3>pango_glyph_item_iter_copy ()</h3>
|
1966
1878
|
<pre class="programlisting"><a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="returnvalue">PangoGlyphItemIter</span></a> * pango_glyph_item_iter_copy (<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> *orig</code></em>);</pre>
|
1967
1879
|
<p>
|
1968
|
-
Make a shallow copy of an existing <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> structure
|
1969
|
-
</p>
|
1880
|
+
Make a shallow copy of an existing <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> structure.</p>
|
1970
1881
|
<div class="variablelist"><table border="0" class="variablelist">
|
1971
1882
|
<colgroup>
|
1972
1883
|
<col align="left" valign="top">
|
@@ -1993,8 +1904,7 @@ if <em class="parameter"><code>orig</code></em> was <a href="/home/kou/work/ruby
|
|
1993
1904
|
<a name="pango-glyph-item-iter-free"></a><h3>pango_glyph_item_iter_free ()</h3>
|
1994
1905
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_glyph_item_iter_free (<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> *iter</code></em>);</pre>
|
1995
1906
|
<p>
|
1996
|
-
Frees a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> created by <a class="link" href="pango-Glyph-Storage.html#pango-glyph-item-iter-copy" title="pango_glyph_item_iter_copy ()"><code class="function">pango_glyph_item_iter_copy()</code></a
|
1997
|
-
</p>
|
1907
|
+
Frees a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> created by <a class="link" href="pango-Glyph-Storage.html#pango-glyph-item-iter-copy" title="pango_glyph_item_iter_copy ()"><code class="function">pango_glyph_item_iter_copy()</code></a>.</p>
|
1998
1908
|
<div class="variablelist"><table border="0" class="variablelist">
|
1999
1909
|
<colgroup>
|
2000
1910
|
<col align="left" valign="top">
|
@@ -2017,8 +1927,7 @@ Frees a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span
|
|
2017
1927
|
<p>
|
2018
1928
|
Initializes a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> structure to point to the
|
2019
1929
|
first cluster in a glyph item.
|
2020
|
-
See <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> for details of cluster orders
|
2021
|
-
</p>
|
1930
|
+
See <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> for details of cluster orders.</p>
|
2022
1931
|
<div class="variablelist"><table border="0" class="variablelist">
|
2023
1932
|
<colgroup>
|
2024
1933
|
<col align="left" valign="top">
|
@@ -2056,8 +1965,7 @@ See <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span cla
|
|
2056
1965
|
<p>
|
2057
1966
|
Initializes a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> structure to point to the
|
2058
1967
|
last cluster in a glyph item.
|
2059
|
-
See <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> for details of cluster orders
|
2060
|
-
</p>
|
1968
|
+
See <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> for details of cluster orders.</p>
|
2061
1969
|
<div class="variablelist"><table border="0" class="variablelist">
|
2062
1970
|
<colgroup>
|
2063
1971
|
<col align="left" valign="top">
|
@@ -2092,8 +2000,7 @@ See <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span cla
|
|
2092
2000
|
<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_glyph_item_iter_next_cluster (<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> *iter</code></em>);</pre>
|
2093
2001
|
<p>
|
2094
2002
|
Advances the iterator to the next cluster in the glyph item.
|
2095
|
-
See <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> for details of cluster orders
|
2096
|
-
</p>
|
2003
|
+
See <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> for details of cluster orders.</p>
|
2097
2004
|
<div class="variablelist"><table border="0" class="variablelist">
|
2098
2005
|
<colgroup>
|
2099
2006
|
<col align="left" valign="top">
|
@@ -2121,8 +2028,7 @@ last cluster.</td>
|
|
2121
2028
|
<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_glyph_item_iter_prev_cluster (<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> *iter</code></em>);</pre>
|
2122
2029
|
<p>
|
2123
2030
|
Moves the iterator to the preceding cluster in the glyph item.
|
2124
|
-
See <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> for details of cluster orders
|
2125
|
-
</p>
|
2031
|
+
See <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItemIter"><span class="type">PangoGlyphItemIter</span></a> for details of cluster orders.</p>
|
2126
2032
|
<div class="variablelist"><table border="0" class="variablelist">
|
2127
2033
|
<colgroup>
|
2128
2034
|
<col align="left" valign="top">
|
@@ -2148,6 +2054,6 @@ first cluster.</td>
|
|
2148
2054
|
</div>
|
2149
2055
|
<div class="footer">
|
2150
2056
|
<hr>
|
2151
|
-
Generated by GTK-Doc V1.19</div>
|
2057
|
+
Generated by GTK-Doc V1.19.1</div>
|
2152
2058
|
</body>
|
2153
2059
|
</html>
|