pango 1.0.3-x86-mingw32 → 1.1.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/pango/extconf.rb +3 -0
- data/ext/pango/rbpango.c +312 -12
- data/ext/pango/rbpango.h +33 -22
- data/ext/pango/rbpangoanalysis.c +98 -58
- data/ext/pango/rbpangoattribute.c +94 -85
- data/ext/pango/rbpangoattriterator.c +39 -28
- data/ext/pango/rbpangoattrlist.c +42 -32
- data/ext/pango/rbpangocairo.c +38 -172
- data/ext/pango/rbpangocairocontext.c +151 -0
- data/ext/pango/rbpangocolor.c +49 -38
- data/ext/pango/rbpangocontext.c +109 -102
- data/ext/pango/rbpangoconversions.h +111 -0
- data/ext/pango/rbpangocoverage.c +45 -37
- data/ext/pango/rbpangoengine.c +22 -12
- data/ext/pango/rbpangofont.c +52 -43
- data/ext/pango/rbpangofontdescription.c +102 -91
- data/ext/pango/rbpangofontface.c +32 -21
- data/ext/pango/rbpangofontfamily.c +31 -20
- data/ext/pango/rbpangofontmap.c +44 -36
- data/ext/pango/rbpangofontmetrics.c +41 -30
- data/ext/pango/rbpangofontset.c +32 -21
- data/ext/pango/rbpangofontsetsimple.c +34 -24
- data/ext/pango/rbpangoglyphinfo.c +48 -35
- data/ext/pango/rbpangoglyphitem.c +43 -33
- data/ext/pango/rbpangoglyphstring.c +59 -59
- data/ext/pango/rbpangogravity.c +34 -23
- data/ext/pango/rbpangoitem.c +43 -34
- data/ext/pango/rbpangolanguage.c +44 -34
- data/ext/pango/rbpangolayout.c +167 -160
- data/ext/pango/rbpangolayoutiter.c +70 -59
- data/ext/pango/rbpangolayoutline.c +106 -71
- data/ext/pango/rbpangologattr.c +42 -31
- data/ext/pango/rbpangomatrix.c +47 -35
- data/ext/pango/rbpangoprivate.h +53 -0
- data/ext/pango/rbpangorectangle.c +58 -49
- data/ext/pango/rbpangorenderer.c +81 -70
- data/ext/pango/rbpangoscript.c +37 -27
- data/ext/pango/rbpangoscriptiter.c +32 -22
- data/ext/pango/rbpangotabarray.c +48 -37
- data/lib/1.8/pango.so +0 -0
- data/lib/1.9/pango.so +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/pango-querymodules.exe +0 -0
- data/vendor/local/bin/pango-view.exe +0 -0
- data/vendor/local/etc/pango/pango.modules +1 -1
- data/vendor/local/include/pango-1.0/pango/pango-attributes.h +1 -1
- data/vendor/local/include/pango-1.0/pango/pango-context.h +3 -3
- data/vendor/local/include/pango-1.0/pango/pango-features.h +3 -3
- data/vendor/local/include/pango-1.0/pango/pango-font.h +3 -3
- data/vendor/local/include/pango-1.0/pango/pango-language.h +3 -3
- data/vendor/local/include/pango-1.0/pango/pango-layout.h +6 -1
- data/vendor/local/include/pango-1.0/pango/pango-renderer.h +1 -1
- data/vendor/local/include/pango-1.0/pango/pango-script.h +6 -6
- data/vendor/local/include/pango-1.0/pango/pango-utils.h +6 -6
- data/vendor/local/lib/libpango-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
- data/vendor/local/lib/pango-1.0.def +2 -0
- data/vendor/local/lib/pango-1.0.lib +0 -0
- data/vendor/local/lib/pangocairo-1.0.lib +0 -0
- data/vendor/local/lib/pangoft2-1.0.lib +0 -0
- data/vendor/local/lib/pangowin32-1.0.def +1 -1
- data/vendor/local/lib/pangowin32-1.0.lib +0 -0
- 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/manifest/{pango-dev_1.28.3-1_win32.mft → pango-dev_1.29.4-1_win32.mft} +5 -5
- data/vendor/local/manifest/{pango_1.28.3-1_win32.mft → pango_1.29.4-1_win32.mft} +2 -2
- data/vendor/local/share/doc/{pango-1.28.3 → pango-1.29.4}/COPYING +0 -0
- data/vendor/local/share/doc/{pango-dev-1.28.3 → pango-dev-1.29.4}/COPYING +0 -0
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +9 -10
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +25 -27
- data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +19 -28
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +42 -60
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +97 -147
- data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +6 -6
- data/vendor/local/share/gtk-doc/html/pango/index-1.10.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/index-1.12.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/index-1.14.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/index-1.16.html +5 -5
- data/vendor/local/share/gtk-doc/html/pango/index-1.18.html +3 -5
- data/vendor/local/share/gtk-doc/html/pango/index-1.2.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/index-1.20.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/index-1.22.html +5 -5
- data/vendor/local/share/gtk-doc/html/pango/index-1.24.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/index-1.26.html +4 -4
- data/vendor/local/share/gtk-doc/html/pango/index-1.28.html +8 -11
- data/vendor/local/share/gtk-doc/html/pango/index-1.30.html +38 -0
- data/vendor/local/share/gtk-doc/html/pango/index-1.4.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/index-1.6.html +4 -4
- data/vendor/local/share/gtk-doc/html/pango/index-1.8.html +4 -4
- data/vendor/local/share/gtk-doc/html/pango/index-all.html +38 -40
- data/vendor/local/share/gtk-doc/html/pango/index-deprecated.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/index.html +6 -5
- data/vendor/local/share/gtk-doc/html/pango/index.sgml +71 -34
- data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango-ATSUI-Fonts.html +4 -66
- data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +52 -50
- data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +217 -278
- data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +40 -41
- data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +37 -49
- data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +481 -628
- data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +76 -118
- data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +302 -452
- data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +492 -517
- data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +134 -164
- data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +34 -45
- data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +244 -359
- data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +117 -122
- data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +112 -120
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +394 -523
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +269 -364
- data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +26 -40
- data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +72 -75
- data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +97 -145
- data/vendor/local/share/gtk-doc/html/pango/pango-X-Fonts-and-Rendering.html +114 -188
- data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +114 -176
- data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +42 -8
- data/vendor/local/share/gtk-doc/html/pango/pango-pango-renderer.html +106 -150
- data/vendor/local/share/gtk-doc/html/pango/pango-querymodules.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango.devhelp2 +35 -35
- data/vendor/local/share/gtk-doc/html/pango/pango.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/rendering.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/pango/tools.html +3 -3
- data/vendor/local/share/man/man1/pango-querymodules.1 +12 -3
- data/vendor/local/share/man/man1/pango-view.1 +2 -2
- data/vendor/local/src/dieterv/packaging/pango_1.29.4-1_win32.log +806 -0
- data/vendor/local/src/{tml/packaging/pango_1.28.3-1_win32.sh → dieterv/packaging/pango_1.29.4-1_win32.sh} +7 -7
- metadata +19 -19
- data/ChangeLog +0 -721
- data/ext/pango/rbpangoinits.c +0 -72
- data/ext/pango/rbpangomain.c +0 -202
- data/vendor/local/share/gtk-doc/html/pango/pango.devhelp +0 -799
- data/vendor/local/src/tml/packaging/pango_1.28.3-1_win32.log +0 -950
@@ -3,12 +3,12 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>Rendering</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.76.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.html" title="Basic Pango Interfaces">
|
10
10
|
<link rel="next" href="pango-Glyph-Storage.html" title="Glyph Storage">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.18 (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">
|
@@ -39,71 +39,71 @@
|
|
39
39
|
</tr></table></div>
|
40
40
|
<div class="refsynopsisdiv">
|
41
41
|
<a name="pango-Text-Processing.synopsis"></a><h2>Synopsis</h2>
|
42
|
-
<a name="PangoContext"></a><pre class="synopsis"> <a class="link" href="pango-Text-Processing.html#PangoContext-struct" title="PangoContext">PangoContext</a>;
|
43
|
-
struct <a class="link" href="pango-Text-Processing.html#PangoItem" title="struct PangoItem">PangoItem</a>;
|
42
|
+
<a name="PangoContext"></a><a name="PangoItem"></a><pre class="synopsis"> <a class="link" href="pango-Text-Processing.html#PangoContext-struct" title="PangoContext">PangoContext</a>;
|
43
|
+
struct <a class="link" href="pango-Text-Processing.html#PangoItem-struct" title="struct PangoItem">PangoItem</a>;
|
44
44
|
struct <a class="link" href="pango-Text-Processing.html#PangoAnalysis" title="struct PangoAnalysis">PangoAnalysis</a>;
|
45
45
|
#define <a class="link" href="pango-Text-Processing.html#PANGO-ANALYSIS-FLAG-CENTERED-BASELINE:CAPS" title="PANGO_ANALYSIS_FLAG_CENTERED_BASELINE">PANGO_ANALYSIS_FLAG_CENTERED_BASELINE</a>
|
46
46
|
#define <a class="link" href="pango-Text-Processing.html#PANGO-TYPE-DIRECTION:CAPS" title="PANGO_TYPE_DIRECTION">PANGO_TYPE_DIRECTION</a>
|
47
47
|
|
48
|
-
<span class="returnvalue">GList</span> * <a class="link" href="pango-Text-Processing.html#pango-itemize" title="pango_itemize ()">pango_itemize</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
48
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * <a class="link" href="pango-Text-Processing.html#pango-itemize" title="pango_itemize ()">pango_itemize</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
49
49
|
<em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
|
50
50
|
<em class="parameter"><code><span class="type">int</span> start_index</code></em>,
|
51
51
|
<em class="parameter"><code><span class="type">int</span> length</code></em>,
|
52
|
-
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"
|
52
|
+
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *attrs</code></em>,
|
53
53
|
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *cached_iter</code></em>);
|
54
|
-
<span class="returnvalue">GList</span> * <a class="link" href="pango-Text-Processing.html#pango-itemize-with-base-dir" title="pango_itemize_with_base_dir ()">pango_itemize_with_base_dir</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
55
|
-
<em class="parameter"><code><a class="link" href="pango-Bidirectional-Text.html#PangoDirection"
|
54
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * <a class="link" href="pango-Text-Processing.html#pango-itemize-with-base-dir" title="pango_itemize_with_base_dir ()">pango_itemize_with_base_dir</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
55
|
+
<em class="parameter"><code><a class="link" href="pango-Bidirectional-Text.html#PangoDirection"><span class="type">PangoDirection</span></a> base_dir</code></em>,
|
56
56
|
<em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
|
57
57
|
<em class="parameter"><code><span class="type">int</span> start_index</code></em>,
|
58
58
|
<em class="parameter"><code><span class="type">int</span> length</code></em>,
|
59
|
-
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"
|
59
|
+
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *attrs</code></em>,
|
60
60
|
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *cached_iter</code></em>);
|
61
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Processing.html#pango-item-free" title="pango_item_free ()">pango_item_free</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoItem"
|
62
|
-
<a class="link" href="pango-Text-Processing.html#PangoItem"
|
63
|
-
<a class="link" href="pango-Text-Processing.html#PangoItem"
|
64
|
-
<a class="link" href="pango-Text-Processing.html#PangoItem"
|
61
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Processing.html#pango-item-free" title="pango_item_free ()">pango_item_free</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a> *item</code></em>);
|
62
|
+
<a class="link" href="pango-Text-Processing.html#PangoItem"><span class="returnvalue">PangoItem</span></a> * <a class="link" href="pango-Text-Processing.html#pango-item-copy" title="pango_item_copy ()">pango_item_copy</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a> *item</code></em>);
|
63
|
+
<a class="link" href="pango-Text-Processing.html#PangoItem"><span class="returnvalue">PangoItem</span></a> * <a class="link" href="pango-Text-Processing.html#pango-item-new" title="pango_item_new ()">pango_item_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
64
|
+
<a class="link" href="pango-Text-Processing.html#PangoItem"><span class="returnvalue">PangoItem</span></a> * <a class="link" href="pango-Text-Processing.html#pango-item-split" title="pango_item_split ()">pango_item_split</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a> *orig</code></em>,
|
65
65
|
<em class="parameter"><code><span class="type">int</span> split_index</code></em>,
|
66
66
|
<em class="parameter"><code><span class="type">int</span> split_offset</code></em>);
|
67
|
-
<span class="returnvalue">GList</span> * <a class="link" href="pango-Text-Processing.html#pango-reorder-items" title="pango_reorder_items ()">pango_reorder_items</a> (<em class="parameter"><code><span class="type">GList</span> *logical_items</code></em>);
|
67
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * <a class="link" href="pango-Text-Processing.html#pango-reorder-items" title="pango_reorder_items ()">pango_reorder_items</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *logical_items</code></em>);
|
68
68
|
|
69
69
|
<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * <a class="link" href="pango-Text-Processing.html#pango-context-new" title="pango_context_new ()">pango_context_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
70
70
|
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Processing.html#pango-context-set-font-map" title="pango_context_set_font_map ()">pango_context_set_font_map</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
71
71
|
<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> *font_map</code></em>);
|
72
72
|
<a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> * <a class="link" href="pango-Text-Processing.html#pango-context-get-font-map" title="pango_context_get_font_map ()">pango_context_get_font_map</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);
|
73
|
-
<a class="link" href="pango-Fonts.html#PangoFontDescription"
|
73
|
+
<a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * <a class="link" href="pango-Text-Processing.html#pango-context-get-font-description" title="pango_context_get_font_description ()">pango_context_get_font_description</a>
|
74
74
|
(<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);
|
75
75
|
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Processing.html#pango-context-set-font-description" title="pango_context_set_font_description ()">pango_context_set_font_description</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
76
|
-
<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"
|
77
|
-
<a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"
|
76
|
+
<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);
|
77
|
+
<a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="returnvalue">PangoLanguage</span></a> * <a class="link" href="pango-Text-Processing.html#pango-context-get-language" title="pango_context_get_language ()">pango_context_get_language</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);
|
78
78
|
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Processing.html#pango-context-set-language" title="pango_context_set_language ()">pango_context_set_language</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
79
|
-
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"
|
80
|
-
<a class="link" href="pango-Bidirectional-Text.html#PangoDirection"
|
79
|
+
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>);
|
80
|
+
<a class="link" href="pango-Bidirectional-Text.html#PangoDirection"><span class="returnvalue">PangoDirection</span></a> <a class="link" href="pango-Text-Processing.html#pango-context-get-base-dir" title="pango_context_get_base_dir ()">pango_context_get_base_dir</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);
|
81
81
|
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Processing.html#pango-context-set-base-dir" title="pango_context_set_base_dir ()">pango_context_set_base_dir</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
82
|
-
<em class="parameter"><code><a class="link" href="pango-Bidirectional-Text.html#PangoDirection"
|
83
|
-
<a class="link" href="pango-Vertical-Text.html#PangoGravity"
|
82
|
+
<em class="parameter"><code><a class="link" href="pango-Bidirectional-Text.html#PangoDirection"><span class="type">PangoDirection</span></a> direction</code></em>);
|
83
|
+
<a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="returnvalue">PangoGravity</span></a> <a class="link" href="pango-Text-Processing.html#pango-context-get-base-gravity" title="pango_context_get_base_gravity ()">pango_context_get_base_gravity</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);
|
84
84
|
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Processing.html#pango-context-set-base-gravity" title="pango_context_set_base_gravity ()">pango_context_set_base_gravity</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
85
|
-
<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravity"
|
86
|
-
<a class="link" href="pango-Vertical-Text.html#PangoGravity"
|
87
|
-
<a class="link" href="pango-Vertical-Text.html#PangoGravityHint"
|
85
|
+
<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="type">PangoGravity</span></a> gravity</code></em>);
|
86
|
+
<a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="returnvalue">PangoGravity</span></a> <a class="link" href="pango-Text-Processing.html#pango-context-get-gravity" title="pango_context_get_gravity ()">pango_context_get_gravity</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);
|
87
|
+
<a class="link" href="pango-Vertical-Text.html#PangoGravityHint"><span class="returnvalue">PangoGravityHint</span></a> <a class="link" href="pango-Text-Processing.html#pango-context-get-gravity-hint" title="pango_context_get_gravity_hint ()">pango_context_get_gravity_hint</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);
|
88
88
|
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Processing.html#pango-context-set-gravity-hint" title="pango_context_set_gravity_hint ()">pango_context_set_gravity_hint</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
89
|
-
<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravityHint"
|
90
|
-
const <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"
|
89
|
+
<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravityHint"><span class="type">PangoGravityHint</span></a> hint</code></em>);
|
90
|
+
const <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"><span class="returnvalue">PangoMatrix</span></a> * <a class="link" href="pango-Text-Processing.html#pango-context-get-matrix" title="pango_context_get_matrix ()">pango_context_get_matrix</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);
|
91
91
|
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Processing.html#pango-context-set-matrix" title="pango_context_set_matrix ()">pango_context_set_matrix</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
92
|
-
<em class="parameter"><code>const <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"
|
92
|
+
<em class="parameter"><code>const <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a> *matrix</code></em>);
|
93
93
|
<a class="link" href="pango-Fonts.html#PangoFont"><span class="returnvalue">PangoFont</span></a> * <a class="link" href="pango-Text-Processing.html#pango-context-load-font" title="pango_context_load_font ()">pango_context_load_font</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
94
|
-
<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"
|
94
|
+
<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);
|
95
95
|
<a class="link" href="pango-Fonts.html#PangoFontset"><span class="returnvalue">PangoFontset</span></a> * <a class="link" href="pango-Text-Processing.html#pango-context-load-fontset" title="pango_context_load_fontset ()">pango_context_load_fontset</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
96
|
-
<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"
|
97
|
-
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"
|
98
|
-
<a class="link" href="pango-Fonts.html#PangoFontMetrics"
|
99
|
-
<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"
|
100
|
-
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"
|
96
|
+
<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
|
97
|
+
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>);
|
98
|
+
<a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="returnvalue">PangoFontMetrics</span></a> * <a class="link" href="pango-Text-Processing.html#pango-context-get-metrics" title="pango_context_get_metrics ()">pango_context_get_metrics</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
99
|
+
<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
|
100
|
+
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>);
|
101
101
|
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Processing.html#pango-context-list-families" title="pango_context_list_families ()">pango_context_list_families</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
102
102
|
<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a> ***families</code></em>,
|
103
103
|
<em class="parameter"><code><span class="type">int</span> *n_families</code></em>);
|
104
104
|
|
105
105
|
|
106
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Processing.html#pango-break" title="pango_break ()">pango_break</a> (<em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>,
|
106
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Processing.html#pango-break" title="pango_break ()">pango_break</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>,
|
107
107
|
<em class="parameter"><code><span class="type">int</span> length</code></em>,
|
108
108
|
<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoAnalysis" title="struct PangoAnalysis"><span class="type">PangoAnalysis</span></a> *analysis</code></em>,
|
109
109
|
<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoLogAttr" title="PangoLogAttr"><span class="type">PangoLogAttr</span></a> *attrs</code></em>,
|
@@ -111,32 +111,36 @@ const <a class="link" href="pango-Glyph-Storage.html#PangoMatrix" title="struct
|
|
111
111
|
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Processing.html#pango-get-log-attrs" title="pango_get_log_attrs ()">pango_get_log_attrs</a> (<em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
|
112
112
|
<em class="parameter"><code><span class="type">int</span> length</code></em>,
|
113
113
|
<em class="parameter"><code><span class="type">int</span> level</code></em>,
|
114
|
-
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"
|
114
|
+
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>,
|
115
115
|
<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoLogAttr" title="PangoLogAttr"><span class="type">PangoLogAttr</span></a> *log_attrs</code></em>,
|
116
116
|
<em class="parameter"><code><span class="type">int</span> attrs_len</code></em>);
|
117
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Processing.html#pango-find-paragraph-boundary" title="pango_find_paragraph_boundary ()">pango_find_paragraph_boundary</a> (<em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>,
|
118
|
-
<em class="parameter"><code><span class="type">gint</span> length</code></em>,
|
119
|
-
<em class="parameter"><code><span class="type">gint</span> *paragraph_delimiter_index</code></em>,
|
120
|
-
<em class="parameter"><code><span class="type">gint</span> *next_paragraph_start</code></em>);
|
121
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Processing.html#pango-default-break" title="pango_default_break ()">pango_default_break</a> (<em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>,
|
117
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Processing.html#pango-find-paragraph-boundary" title="pango_find_paragraph_boundary ()">pango_find_paragraph_boundary</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>,
|
118
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> length</code></em>,
|
119
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *paragraph_delimiter_index</code></em>,
|
120
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *next_paragraph_start</code></em>);
|
121
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Processing.html#pango-default-break" title="pango_default_break ()">pango_default_break</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>,
|
122
122
|
<em class="parameter"><code><span class="type">int</span> length</code></em>,
|
123
123
|
<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoAnalysis" title="struct PangoAnalysis"><span class="type">PangoAnalysis</span></a> *analysis</code></em>,
|
124
124
|
<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoLogAttr" title="PangoLogAttr"><span class="type">PangoLogAttr</span></a> *attrs</code></em>,
|
125
125
|
<em class="parameter"><code><span class="type">int</span> attrs_len</code></em>);
|
126
126
|
<a class="link" href="pango-Text-Processing.html#PangoLogAttr" title="PangoLogAttr">PangoLogAttr</a>;
|
127
127
|
|
128
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Processing.html#pango-shape" title="pango_shape ()">pango_shape</a> (<em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>,
|
129
|
-
<em class="parameter"><code><span class="type">gint</span> length</code></em>,
|
128
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Processing.html#pango-shape" title="pango_shape ()">pango_shape</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>,
|
129
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> length</code></em>,
|
130
130
|
<em class="parameter"><code>const <a class="link" href="pango-Text-Processing.html#PangoAnalysis" title="struct PangoAnalysis"><span class="type">PangoAnalysis</span></a> *analysis</code></em>,
|
131
|
-
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"
|
131
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> *glyphs</code></em>);
|
132
132
|
</pre>
|
133
133
|
</div>
|
134
134
|
<div class="refsect1">
|
135
135
|
<a name="pango-Text-Processing.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
136
136
|
<pre class="synopsis">
|
137
|
-
GObject
|
137
|
+
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
|
138
138
|
+----PangoContext
|
139
139
|
</pre>
|
140
|
+
<pre class="synopsis">
|
141
|
+
GBoxed
|
142
|
+
+----PangoItem
|
143
|
+
</pre>
|
140
144
|
</div>
|
141
145
|
<div class="refsect1">
|
142
146
|
<a name="pango-Text-Processing.description"></a><h2>Description</h2>
|
@@ -159,7 +163,7 @@ used to control the itemization process.
|
|
159
163
|
</div>
|
160
164
|
<hr>
|
161
165
|
<div class="refsect2">
|
162
|
-
<a name="PangoItem"></a><h3>struct PangoItem</h3>
|
166
|
+
<a name="PangoItem-struct"></a><h3>struct PangoItem</h3>
|
163
167
|
<pre class="programlisting">struct PangoItem {
|
164
168
|
gint offset;
|
165
169
|
gint length;
|
@@ -168,35 +172,9 @@ used to control the itemization process.
|
|
168
172
|
};
|
169
173
|
</pre>
|
170
174
|
<p>
|
171
|
-
The <a class="link" href="pango-Text-Processing.html#PangoItem"
|
175
|
+
The <a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a> structure stores information about
|
172
176
|
a segment of text. It contains the following fields:
|
173
177
|
</p>
|
174
|
-
<div class="variablelist"><table border="0">
|
175
|
-
<col align="left" valign="top">
|
176
|
-
<tbody>
|
177
|
-
<tr>
|
178
|
-
<td><p><span class="term"><span class="type">gint</span> <em class="structfield"><code><a name="PangoItem.offset"></a>offset</code></em>;</span></p></td>
|
179
|
-
<td>the offset of the segment from the beginning of the
|
180
|
-
string in bytes.
|
181
|
-
</td>
|
182
|
-
</tr>
|
183
|
-
<tr>
|
184
|
-
<td><p><span class="term"><span class="type">gint</span> <em class="structfield"><code><a name="PangoItem.length"></a>length</code></em>;</span></p></td>
|
185
|
-
<td>the length of the segment in bytes.
|
186
|
-
</td>
|
187
|
-
</tr>
|
188
|
-
<tr>
|
189
|
-
<td><p><span class="term"><span class="type">gint</span> <em class="structfield"><code><a name="PangoItem.num-chars"></a>num_chars</code></em>;</span></p></td>
|
190
|
-
<td>the length of the segment in characters.
|
191
|
-
</td>
|
192
|
-
</tr>
|
193
|
-
<tr>
|
194
|
-
<td><p><span class="term"><a class="link" href="pango-Text-Processing.html#PangoAnalysis" title="struct PangoAnalysis"><span class="type">PangoAnalysis</span></a> <em class="structfield"><code><a name="PangoItem.analysis"></a>analysis</code></em>;</span></p></td>
|
195
|
-
<td>the properties of the segment.
|
196
|
-
</td>
|
197
|
-
</tr>
|
198
|
-
</tbody>
|
199
|
-
</table></div>
|
200
178
|
</div>
|
201
179
|
<hr>
|
202
180
|
<div class="refsect2">
|
@@ -226,48 +204,39 @@ fields:
|
|
226
204
|
<tbody>
|
227
205
|
<tr>
|
228
206
|
<td><p><span class="term"><a class="link" href="PangoEngineShape.html" title="PangoEngineShape"><span class="type">PangoEngineShape</span></a> *<em class="structfield"><code><a name="PangoAnalysis.shape-engine"></a>shape_engine</code></em>;</span></p></td>
|
229
|
-
<td>the engine for doing rendering-system-dependent processing
|
230
|
-
</td>
|
207
|
+
<td>the engine for doing rendering-system-dependent processing.</td>
|
231
208
|
</tr>
|
232
209
|
<tr>
|
233
210
|
<td><p><span class="term"><a class="link" href="PangoEngineLang.html" title="PangoEngineLang"><span class="type">PangoEngineLang</span></a> *<em class="structfield"><code><a name="PangoAnalysis.lang-engine"></a>lang_engine</code></em>;</span></p></td>
|
234
|
-
<td>the engine for doing rendering-system-independent processing
|
235
|
-
</td>
|
211
|
+
<td>the engine for doing rendering-system-independent processing.</td>
|
236
212
|
</tr>
|
237
213
|
<tr>
|
238
214
|
<td><p><span class="term"><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *<em class="structfield"><code><a name="PangoAnalysis.font"></a>font</code></em>;</span></p></td>
|
239
|
-
<td>the font for this segment
|
240
|
-
</td>
|
215
|
+
<td>the font for this segment.</td>
|
241
216
|
</tr>
|
242
217
|
<tr>
|
243
|
-
<td><p><span class="term"><span class="type">guint8</span> <em class="structfield"><code><a name="PangoAnalysis.level"></a>level</code></em>;</span></p></td>
|
244
|
-
<td>the bidirectional level for this segment
|
245
|
-
</td>
|
218
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="PangoAnalysis.level"></a>level</code></em>;</span></p></td>
|
219
|
+
<td>the bidirectional level for this segment.</td>
|
246
220
|
</tr>
|
247
221
|
<tr>
|
248
|
-
<td><p><span class="term"><span class="type">guint8</span> <em class="structfield"><code><a name="PangoAnalysis.gravity"></a>gravity</code></em>;</span></p></td>
|
249
|
-
<td>the glyph orientation for this segment (A <a class="link" href="pango-Vertical-Text.html#PangoGravity"
|
250
|
-
</td>
|
222
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="PangoAnalysis.gravity"></a>gravity</code></em>;</span></p></td>
|
223
|
+
<td>the glyph orientation for this segment (A <a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="type">PangoGravity</span></a>).</td>
|
251
224
|
</tr>
|
252
225
|
<tr>
|
253
|
-
<td><p><span class="term"><span class="type">guint8</span> <em class="structfield"><code><a name="PangoAnalysis.flags"></a>flags</code></em>;</span></p></td>
|
254
|
-
<td>boolean flags for this segment (currently only one) (Since: 1.16)
|
255
|
-
</td>
|
226
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="PangoAnalysis.flags"></a>flags</code></em>;</span></p></td>
|
227
|
+
<td>boolean flags for this segment (currently only one) (Since: 1.16).</td>
|
256
228
|
</tr>
|
257
229
|
<tr>
|
258
|
-
<td><p><span class="term"><span class="type">guint8</span> <em class="structfield"><code><a name="PangoAnalysis.script"></a>script</code></em>;</span></p></td>
|
259
|
-
<td>the detected script for this segment (A <a class="link" href="pango-Scripts-and-Languages.html#PangoScript"
|
260
|
-
</td>
|
230
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="PangoAnalysis.script"></a>script</code></em>;</span></p></td>
|
231
|
+
<td>the detected script for this segment (A <a class="link" href="pango-Scripts-and-Languages.html#PangoScript"><span class="type">PangoScript</span></a>) (Since: 1.18).</td>
|
261
232
|
</tr>
|
262
233
|
<tr>
|
263
|
-
<td><p><span class="term"><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"
|
264
|
-
<td>the detected language for this segment
|
265
|
-
</td>
|
234
|
+
<td><p><span class="term"><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *<em class="structfield"><code><a name="PangoAnalysis.language"></a>language</code></em>;</span></p></td>
|
235
|
+
<td>the detected language for this segment.</td>
|
266
236
|
</tr>
|
267
237
|
<tr>
|
268
|
-
<td><p><span class="term"><span class="type">GSList</span> *<em class="structfield"><code><a name="PangoAnalysis.extra-attrs"></a>extra_attrs</code></em>;</span></p></td>
|
269
|
-
<td>extra attributes for this segment
|
270
|
-
</td>
|
238
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *<em class="structfield"><code><a name="PangoAnalysis.extra-attrs"></a>extra_attrs</code></em>;</span></p></td>
|
239
|
+
<td>extra attributes for this segment.</td>
|
271
240
|
</tr>
|
272
241
|
</tbody>
|
273
242
|
</table></div>
|
@@ -289,17 +258,17 @@ Since: 1.16
|
|
289
258
|
<pre class="programlisting">#define PANGO_TYPE_DIRECTION (pango_direction_get_type())
|
290
259
|
</pre>
|
291
260
|
<p>
|
292
|
-
The <span class="type">GObject</span> type for <a class="link" href="pango-Bidirectional-Text.html#PangoDirection"
|
261
|
+
The <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Bidirectional-Text.html#PangoDirection"><span class="type">PangoDirection</span></a>.
|
293
262
|
</p>
|
294
263
|
</div>
|
295
264
|
<hr>
|
296
265
|
<div class="refsect2">
|
297
266
|
<a name="pango-itemize"></a><h3>pango_itemize ()</h3>
|
298
|
-
<pre class="programlisting"><span class="returnvalue">GList</span> * pango_itemize (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
267
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * pango_itemize (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
299
268
|
<em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
|
300
269
|
<em class="parameter"><code><span class="type">int</span> start_index</code></em>,
|
301
270
|
<em class="parameter"><code><span class="type">int</span> length</code></em>,
|
302
|
-
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"
|
271
|
+
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *attrs</code></em>,
|
303
272
|
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *cached_iter</code></em>);</pre>
|
304
273
|
<p>
|
305
274
|
Breaks a piece of text into segments with consistent
|
@@ -320,39 +289,37 @@ the range covering the position just after <em class="parameter"><code>start_ind
|
|
320
289
|
<tr>
|
321
290
|
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
|
322
291
|
<td>a structure holding information that affects
|
323
|
-
|
324
|
-
</td>
|
292
|
+
the itemization process.</td>
|
325
293
|
</tr>
|
326
294
|
<tr>
|
327
295
|
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
|
328
|
-
<td>the text to itemize
|
329
|
-
</td>
|
296
|
+
<td>the text to itemize.</td>
|
330
297
|
</tr>
|
331
298
|
<tr>
|
332
299
|
<td><p><span class="term"><em class="parameter"><code>start_index</code></em> :</span></p></td>
|
333
|
-
<td>first byte in <em class="parameter"><code>text</code></em> to process
|
334
|
-
</td>
|
300
|
+
<td>first byte in <em class="parameter"><code>text</code></em> to process</td>
|
335
301
|
</tr>
|
336
302
|
<tr>
|
337
303
|
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
338
304
|
<td>the number of bytes (not characters) to process
|
339
|
-
|
340
|
-
|
341
|
-
</td>
|
305
|
+
after <em class="parameter"><code>start_index</code></em>.
|
306
|
+
This must be >= 0.</td>
|
342
307
|
</tr>
|
343
308
|
<tr>
|
344
309
|
<td><p><span class="term"><em class="parameter"><code>attrs</code></em> :</span></p></td>
|
345
|
-
<td>the set of attributes that apply to <em class="parameter"><code>text</code></em
|
346
|
-
</td>
|
310
|
+
<td>the set of attributes that apply to <em class="parameter"><code>text</code></em>.</td>
|
347
311
|
</tr>
|
348
312
|
<tr>
|
349
313
|
<td><p><span class="term"><em class="parameter"><code>cached_iter</code></em> :</span></p></td>
|
350
|
-
<td>Cached attribute iterator, or <a href="/
|
314
|
+
<td>Cached attribute iterator, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
|
351
315
|
</td>
|
352
316
|
</tr>
|
353
317
|
<tr>
|
354
318
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
355
|
-
<td> a
|
319
|
+
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of <a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a>
|
320
|
+
structures. The items should be freed using <a class="link" href="pango-Text-Processing.html#pango-item-free" title="pango_item_free ()"><code class="function">pango_item_free()</code></a>
|
321
|
+
probably in combination with <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-foreach"><code class="function">g_list_foreach()</code></a>, and the list itself
|
322
|
+
using <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a>. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>][<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> Pango.Item]</span>
|
356
323
|
</td>
|
357
324
|
</tr>
|
358
325
|
</tbody>
|
@@ -361,12 +328,12 @@ the range covering the position just after <em class="parameter"><code>start_ind
|
|
361
328
|
<hr>
|
362
329
|
<div class="refsect2">
|
363
330
|
<a name="pango-itemize-with-base-dir"></a><h3>pango_itemize_with_base_dir ()</h3>
|
364
|
-
<pre class="programlisting"><span class="returnvalue">GList</span> * pango_itemize_with_base_dir (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
365
|
-
<em class="parameter"><code><a class="link" href="pango-Bidirectional-Text.html#PangoDirection"
|
331
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * pango_itemize_with_base_dir (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
332
|
+
<em class="parameter"><code><a class="link" href="pango-Bidirectional-Text.html#PangoDirection"><span class="type">PangoDirection</span></a> base_dir</code></em>,
|
366
333
|
<em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
|
367
334
|
<em class="parameter"><code><span class="type">int</span> start_index</code></em>,
|
368
335
|
<em class="parameter"><code><span class="type">int</span> length</code></em>,
|
369
|
-
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"
|
336
|
+
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *attrs</code></em>,
|
370
337
|
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *cached_iter</code></em>);</pre>
|
371
338
|
<p>
|
372
339
|
Like <a class="link" href="pango-Text-Processing.html#pango-itemize" title="pango_itemize ()"><code class="function">pango_itemize()</code></a>, but the base direction to use when
|
@@ -379,47 +346,40 @@ is specified explicitly rather than gotten from the <a class="link" href="pango-
|
|
379
346
|
<tr>
|
380
347
|
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
|
381
348
|
<td>a structure holding information that affects
|
382
|
-
|
383
|
-
</td>
|
349
|
+
the itemization process.</td>
|
384
350
|
</tr>
|
385
351
|
<tr>
|
386
352
|
<td><p><span class="term"><em class="parameter"><code>base_dir</code></em> :</span></p></td>
|
387
|
-
<td>base direction to use for bidirectional processing
|
388
|
-
</td>
|
353
|
+
<td>base direction to use for bidirectional processing</td>
|
389
354
|
</tr>
|
390
355
|
<tr>
|
391
356
|
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
|
392
|
-
<td>the text to itemize
|
393
|
-
</td>
|
357
|
+
<td>the text to itemize.</td>
|
394
358
|
</tr>
|
395
359
|
<tr>
|
396
360
|
<td><p><span class="term"><em class="parameter"><code>start_index</code></em> :</span></p></td>
|
397
|
-
<td>first byte in <em class="parameter"><code>text</code></em> to process
|
398
|
-
</td>
|
361
|
+
<td>first byte in <em class="parameter"><code>text</code></em> to process</td>
|
399
362
|
</tr>
|
400
363
|
<tr>
|
401
364
|
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
402
365
|
<td>the number of bytes (not characters) to process
|
403
|
-
|
404
|
-
This must be >= 0.
|
405
|
-
</td>
|
366
|
+
after <em class="parameter"><code>start_index</code></em>. This must be >= 0.</td>
|
406
367
|
</tr>
|
407
368
|
<tr>
|
408
369
|
<td><p><span class="term"><em class="parameter"><code>attrs</code></em> :</span></p></td>
|
409
|
-
<td>the set of attributes that apply to <em class="parameter"><code>text</code></em
|
410
|
-
</td>
|
370
|
+
<td>the set of attributes that apply to <em class="parameter"><code>text</code></em>.</td>
|
411
371
|
</tr>
|
412
372
|
<tr>
|
413
373
|
<td><p><span class="term"><em class="parameter"><code>cached_iter</code></em> :</span></p></td>
|
414
|
-
<td>Cached attribute iterator, or <a href="/
|
374
|
+
<td>Cached attribute iterator, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
|
415
375
|
</td>
|
416
376
|
</tr>
|
417
377
|
<tr>
|
418
378
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
419
|
-
<td>
|
420
|
-
|
421
|
-
|
422
|
-
|
379
|
+
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of
|
380
|
+
<a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a> structures. The items should be freed using
|
381
|
+
<a class="link" href="pango-Text-Processing.html#pango-item-free" title="pango_item_free ()"><code class="function">pango_item_free()</code></a> probably in combination with
|
382
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-foreach"><code class="function">g_list_foreach()</code></a>, and the list itself using <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a>. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>][<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> Pango.Item]</span>
|
423
383
|
</td>
|
424
384
|
</tr>
|
425
385
|
</tbody>
|
@@ -429,15 +389,15 @@ and the list itself using <code class="function">g_list_free()</code>.
|
|
429
389
|
<hr>
|
430
390
|
<div class="refsect2">
|
431
391
|
<a name="pango-item-free"></a><h3>pango_item_free ()</h3>
|
432
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_item_free (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoItem"
|
392
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_item_free (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a> *item</code></em>);</pre>
|
433
393
|
<p>
|
434
|
-
Free a <a class="link" href="pango-Text-Processing.html#PangoItem"
|
394
|
+
Free a <a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a> and all associated memory.
|
435
395
|
</p>
|
436
396
|
<div class="variablelist"><table border="0">
|
437
397
|
<col align="left" valign="top">
|
438
398
|
<tbody><tr>
|
439
399
|
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
|
440
|
-
<td>a <a class="link" href="pango-Text-Processing.html#PangoItem"
|
400
|
+
<td>a <a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a>, may be <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
441
401
|
</td>
|
442
402
|
</tr></tbody>
|
443
403
|
</table></div>
|
@@ -445,24 +405,23 @@ Free a <a class="link" href="pango-Text-Processing.html#PangoItem" title="struct
|
|
445
405
|
<hr>
|
446
406
|
<div class="refsect2">
|
447
407
|
<a name="pango-item-copy"></a><h3>pango_item_copy ()</h3>
|
448
|
-
<pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoItem"
|
408
|
+
<pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoItem"><span class="returnvalue">PangoItem</span></a> * pango_item_copy (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a> *item</code></em>);</pre>
|
449
409
|
<p>
|
450
|
-
Copy an existing <a class="link" href="pango-Text-Processing.html#PangoItem"
|
410
|
+
Copy an existing <a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a> structure.
|
451
411
|
</p>
|
452
412
|
<div class="variablelist"><table border="0">
|
453
413
|
<col align="left" valign="top">
|
454
414
|
<tbody>
|
455
415
|
<tr>
|
456
416
|
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
|
457
|
-
<td>a <a class="link" href="pango-Text-Processing.html#PangoItem"
|
417
|
+
<td>a <a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a>, may be <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
458
418
|
</td>
|
459
419
|
</tr>
|
460
420
|
<tr>
|
461
421
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
462
|
-
<td>
|
463
|
-
|
464
|
-
|
465
|
-
</td>
|
422
|
+
<td>the newly allocated <a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a>, which should
|
423
|
+
be freed with <a class="link" href="pango-Text-Processing.html#pango-item-free" title="pango_item_free ()"><code class="function">pango_item_free()</code></a>, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if
|
424
|
+
<em class="parameter"><code>item</code></em> was NULL.</td>
|
466
425
|
</tr>
|
467
426
|
</tbody>
|
468
427
|
</table></div>
|
@@ -470,24 +429,23 @@ Copy an existing <a class="link" href="pango-Text-Processing.html#PangoItem" tit
|
|
470
429
|
<hr>
|
471
430
|
<div class="refsect2">
|
472
431
|
<a name="pango-item-new"></a><h3>pango_item_new ()</h3>
|
473
|
-
<pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoItem"
|
432
|
+
<pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoItem"><span class="returnvalue">PangoItem</span></a> * pango_item_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
474
433
|
<p>
|
475
|
-
Creates a new <a class="link" href="pango-Text-Processing.html#PangoItem"
|
434
|
+
Creates a new <a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a> structure initialized to default values.
|
476
435
|
</p>
|
477
436
|
<div class="variablelist"><table border="0">
|
478
437
|
<col align="left" valign="top">
|
479
438
|
<tbody><tr>
|
480
439
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
481
|
-
<td>
|
482
|
-
|
483
|
-
</td>
|
440
|
+
<td>the newly allocated <a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a>, which should
|
441
|
+
be freed with <a class="link" href="pango-Text-Processing.html#pango-item-free" title="pango_item_free ()"><code class="function">pango_item_free()</code></a>.</td>
|
484
442
|
</tr></tbody>
|
485
443
|
</table></div>
|
486
444
|
</div>
|
487
445
|
<hr>
|
488
446
|
<div class="refsect2">
|
489
447
|
<a name="pango-item-split"></a><h3>pango_item_split ()</h3>
|
490
|
-
<pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoItem"
|
448
|
+
<pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoItem"><span class="returnvalue">PangoItem</span></a> * pango_item_split (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a> *orig</code></em>,
|
491
449
|
<em class="parameter"><code><span class="type">int</span> split_index</code></em>,
|
492
450
|
<em class="parameter"><code><span class="type">int</span> split_offset</code></em>);</pre>
|
493
451
|
<p>
|
@@ -507,13 +465,12 @@ length of the split items itself.
|
|
507
465
|
<tbody>
|
508
466
|
<tr>
|
509
467
|
<td><p><span class="term"><em class="parameter"><code>orig</code></em> :</span></p></td>
|
510
|
-
<td>a <a class="link" href="pango-Text-Processing.html#PangoItem"
|
468
|
+
<td>a <a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a>
|
511
469
|
</td>
|
512
470
|
</tr>
|
513
471
|
<tr>
|
514
472
|
<td><p><span class="term"><em class="parameter"><code>split_index</code></em> :</span></p></td>
|
515
|
-
<td>byte index of position to split item, relative to the start of the item
|
516
|
-
</td>
|
473
|
+
<td>byte index of position to split item, relative to the start of the item</td>
|
517
474
|
</tr>
|
518
475
|
<tr>
|
519
476
|
<td><p><span class="term"><em class="parameter"><code>split_offset</code></em> :</span></p></td>
|
@@ -522,9 +479,8 @@ length of the split items itself.
|
|
522
479
|
</tr>
|
523
480
|
<tr>
|
524
481
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
525
|
-
<td>
|
526
|
-
|
527
|
-
</td>
|
482
|
+
<td>new item representing text before <em class="parameter"><code>split_index</code></em>, which
|
483
|
+
should be freed with <a class="link" href="pango-Text-Processing.html#pango-item-free" title="pango_item_free ()"><code class="function">pango_item_free()</code></a>.</td>
|
528
484
|
</tr>
|
529
485
|
</tbody>
|
530
486
|
</table></div>
|
@@ -532,7 +488,7 @@ length of the split items itself.
|
|
532
488
|
<hr>
|
533
489
|
<div class="refsect2">
|
534
490
|
<a name="pango-reorder-items"></a><h3>pango_reorder_items ()</h3>
|
535
|
-
<pre class="programlisting"><span class="returnvalue">GList</span> * pango_reorder_items (<em class="parameter"><code><span class="type">GList</span> *logical_items</code></em>);</pre>
|
491
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * pango_reorder_items (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *logical_items</code></em>);</pre>
|
536
492
|
<p>
|
537
493
|
From a list of items in logical order and the associated
|
538
494
|
directional levels, produce a list in visual order.
|
@@ -543,16 +499,15 @@ The original list is unmodified.
|
|
543
499
|
<tbody>
|
544
500
|
<tr>
|
545
501
|
<td><p><span class="term"><em class="parameter"><code>logical_items</code></em> :</span></p></td>
|
546
|
-
<td>a <span class="type">GList</span> of <a class="link" href="pango-Text-Processing.html#PangoItem"
|
547
|
-
</td>
|
502
|
+
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of <a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a> in logical order.</td>
|
548
503
|
</tr>
|
549
504
|
<tr>
|
550
505
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
551
|
-
<td>
|
552
|
-
|
506
|
+
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a>
|
507
|
+
of <a class="link" href="pango-Text-Processing.html#PangoItem"><span class="type">PangoItem</span></a> structures in visual order.
|
553
508
|
(Please open a bug if you use this function.
|
554
|
-
|
555
|
-
|
509
|
+
It is not a particularly convenient interface, and the code
|
510
|
+
is duplicated elsewhere in Pango for that reason.). <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>][<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> Pango.Item]</span>
|
556
511
|
</td>
|
557
512
|
</tr>
|
558
513
|
</tbody>
|
@@ -575,16 +530,15 @@ together and hence users are recommended to use that.
|
|
575
530
|
If you are using Pango as part of a higher-level system,
|
576
531
|
that system may have it's own way of create a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>.
|
577
532
|
For instance, the GTK+ toolkit has, among others,
|
578
|
-
<code class="function">gdk_pango_context_get_for_screen()</code>, and
|
579
|
-
<code class="function">gtk_widget_get_pango_context()</code>. Use those instead.
|
533
|
+
<a href="http://library.gnome.org/devel/gdk/gdk3-Pango-Interaction.html#gdk-pango-context-get-for-screen"><code class="function">gdk_pango_context_get_for_screen()</code></a>, and
|
534
|
+
<a href="http://library.gnome.org/devel/gtk3/GtkWidget.html#gtk-widget-get-pango-context"><code class="function">gtk_widget_get_pango_context()</code></a>. Use those instead.
|
580
535
|
</p>
|
581
536
|
<div class="variablelist"><table border="0">
|
582
537
|
<col align="left" valign="top">
|
583
538
|
<tbody><tr>
|
584
539
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
585
|
-
<td>
|
586
|
-
|
587
|
-
</td>
|
540
|
+
<td>the newly allocated <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>, which should
|
541
|
+
be freed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</td>
|
588
542
|
</tr></tbody>
|
589
543
|
</table></div>
|
590
544
|
</div>
|
@@ -608,8 +562,7 @@ via one of the recommended methods should already have a suitable font map.
|
|
608
562
|
</tr>
|
609
563
|
<tr>
|
610
564
|
<td><p><span class="term"><em class="parameter"><code>font_map</code></em> :</span></p></td>
|
611
|
-
<td>the <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> to set
|
612
|
-
</td>
|
565
|
+
<td>the <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> to set.</td>
|
613
566
|
</tr>
|
614
567
|
</tbody>
|
615
568
|
</table></div>
|
@@ -631,9 +584,8 @@ Gets the <span class="type">PangoFontmap</span> used to look up fonts for this c
|
|
631
584
|
</tr>
|
632
585
|
<tr>
|
633
586
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
634
|
-
<td>
|
635
|
-
is owned by Pango and should not be unreferenced.
|
636
|
-
|
587
|
+
<td>the font map for the <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>.
|
588
|
+
This value is owned by Pango and should not be unreferenced. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
|
637
589
|
</td>
|
638
590
|
</tr>
|
639
591
|
</tbody>
|
@@ -643,7 +595,7 @@ Gets the <span class="type">PangoFontmap</span> used to look up fonts for this c
|
|
643
595
|
<hr>
|
644
596
|
<div class="refsect2">
|
645
597
|
<a name="pango-context-get-font-description"></a><h3>pango_context_get_font_description ()</h3>
|
646
|
-
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontDescription"
|
598
|
+
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * pango_context_get_font_description
|
647
599
|
(<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);</pre>
|
648
600
|
<p>
|
649
601
|
Retrieve the default font description for the context.
|
@@ -658,9 +610,8 @@ Retrieve the default font description for the context.
|
|
658
610
|
</tr>
|
659
611
|
<tr>
|
660
612
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
661
|
-
<td>
|
662
|
-
|
663
|
-
</td>
|
613
|
+
<td>a pointer to the context's default font description.
|
614
|
+
This value must not be modified or freed.</td>
|
664
615
|
</tr>
|
665
616
|
</tbody>
|
666
617
|
</table></div>
|
@@ -669,7 +620,7 @@ Retrieve the default font description for the context.
|
|
669
620
|
<div class="refsect2">
|
670
621
|
<a name="pango-context-set-font-description"></a><h3>pango_context_set_font_description ()</h3>
|
671
622
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_context_set_font_description (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
672
|
-
<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"
|
623
|
+
<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
|
673
624
|
<p>
|
674
625
|
Set the default font description for the context
|
675
626
|
</p>
|
@@ -683,8 +634,7 @@ Set the default font description for the context
|
|
683
634
|
</tr>
|
684
635
|
<tr>
|
685
636
|
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
|
686
|
-
<td>the new pango font description
|
687
|
-
</td>
|
637
|
+
<td>the new pango font description</td>
|
688
638
|
</tr>
|
689
639
|
</tbody>
|
690
640
|
</table></div>
|
@@ -692,7 +642,7 @@ Set the default font description for the context
|
|
692
642
|
<hr>
|
693
643
|
<div class="refsect2">
|
694
644
|
<a name="pango-context-get-language"></a><h3>pango_context_get_language ()</h3>
|
695
|
-
<pre class="programlisting"><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"
|
645
|
+
<pre class="programlisting"><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="returnvalue">PangoLanguage</span></a> * pango_context_get_language (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);</pre>
|
696
646
|
<p>
|
697
647
|
Retrieves the global language tag for the context.
|
698
648
|
</p>
|
@@ -706,8 +656,7 @@ Retrieves the global language tag for the context.
|
|
706
656
|
</tr>
|
707
657
|
<tr>
|
708
658
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
709
|
-
<td>
|
710
|
-
</td>
|
659
|
+
<td>the global language tag.</td>
|
711
660
|
</tr>
|
712
661
|
</tbody>
|
713
662
|
</table></div>
|
@@ -716,7 +665,7 @@ Retrieves the global language tag for the context.
|
|
716
665
|
<div class="refsect2">
|
717
666
|
<a name="pango-context-set-language"></a><h3>pango_context_set_language ()</h3>
|
718
667
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_context_set_language (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
719
|
-
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"
|
668
|
+
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>);</pre>
|
720
669
|
<p>
|
721
670
|
Sets the global language tag for the context. The default language
|
722
671
|
for the locale of the running process can be found using
|
@@ -732,8 +681,7 @@ for the locale of the running process can be found using
|
|
732
681
|
</tr>
|
733
682
|
<tr>
|
734
683
|
<td><p><span class="term"><em class="parameter"><code>language</code></em> :</span></p></td>
|
735
|
-
<td>the new language tag
|
736
|
-
</td>
|
684
|
+
<td>the new language tag.</td>
|
737
685
|
</tr>
|
738
686
|
</tbody>
|
739
687
|
</table></div>
|
@@ -741,7 +689,7 @@ for the locale of the running process can be found using
|
|
741
689
|
<hr>
|
742
690
|
<div class="refsect2">
|
743
691
|
<a name="pango-context-get-base-dir"></a><h3>pango_context_get_base_dir ()</h3>
|
744
|
-
<pre class="programlisting"><a class="link" href="pango-Bidirectional-Text.html#PangoDirection"
|
692
|
+
<pre class="programlisting"><a class="link" href="pango-Bidirectional-Text.html#PangoDirection"><span class="returnvalue">PangoDirection</span></a> pango_context_get_base_dir (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);</pre>
|
745
693
|
<p>
|
746
694
|
Retrieves the base direction for the context. See
|
747
695
|
<a class="link" href="pango-Text-Processing.html#pango-context-set-base-dir" title="pango_context_set_base_dir ()"><code class="function">pango_context_set_base_dir()</code></a>.
|
@@ -756,8 +704,7 @@ Retrieves the base direction for the context. See
|
|
756
704
|
</tr>
|
757
705
|
<tr>
|
758
706
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
759
|
-
<td>
|
760
|
-
</td>
|
707
|
+
<td>the base direction for the context.</td>
|
761
708
|
</tr>
|
762
709
|
</tbody>
|
763
710
|
</table></div>
|
@@ -766,7 +713,7 @@ Retrieves the base direction for the context. See
|
|
766
713
|
<div class="refsect2">
|
767
714
|
<a name="pango-context-set-base-dir"></a><h3>pango_context_set_base_dir ()</h3>
|
768
715
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_context_set_base_dir (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
769
|
-
<em class="parameter"><code><a class="link" href="pango-Bidirectional-Text.html#PangoDirection"
|
716
|
+
<em class="parameter"><code><a class="link" href="pango-Bidirectional-Text.html#PangoDirection"><span class="type">PangoDirection</span></a> direction</code></em>);</pre>
|
770
717
|
<p>
|
771
718
|
Sets the base direction for the context.
|
772
719
|
</p>
|
@@ -788,8 +735,7 @@ for paragraphs that do not contain any strong characters themselves.
|
|
788
735
|
</tr>
|
789
736
|
<tr>
|
790
737
|
<td><p><span class="term"><em class="parameter"><code>direction</code></em> :</span></p></td>
|
791
|
-
<td>the new base direction
|
792
|
-
</td>
|
738
|
+
<td>the new base direction</td>
|
793
739
|
</tr>
|
794
740
|
</tbody>
|
795
741
|
</table></div>
|
@@ -797,7 +743,7 @@ for paragraphs that do not contain any strong characters themselves.
|
|
797
743
|
<hr>
|
798
744
|
<div class="refsect2">
|
799
745
|
<a name="pango-context-get-base-gravity"></a><h3>pango_context_get_base_gravity ()</h3>
|
800
|
-
<pre class="programlisting"><a class="link" href="pango-Vertical-Text.html#PangoGravity"
|
746
|
+
<pre class="programlisting"><a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="returnvalue">PangoGravity</span></a> pango_context_get_base_gravity (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);</pre>
|
801
747
|
<p>
|
802
748
|
Retrieves the base gravity for the context. See
|
803
749
|
<a class="link" href="pango-Text-Processing.html#pango-context-set-base-gravity" title="pango_context_set_base_gravity ()"><code class="function">pango_context_set_base_gravity()</code></a>.
|
@@ -812,9 +758,7 @@ Retrieves the base gravity for the context. See
|
|
812
758
|
</tr>
|
813
759
|
<tr>
|
814
760
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
815
|
-
<td>
|
816
|
-
|
817
|
-
</td>
|
761
|
+
<td>the base gravity for the context.</td>
|
818
762
|
</tr>
|
819
763
|
</tbody>
|
820
764
|
</table></div>
|
@@ -824,7 +768,7 @@ Retrieves the base gravity for the context. See
|
|
824
768
|
<div class="refsect2">
|
825
769
|
<a name="pango-context-set-base-gravity"></a><h3>pango_context_set_base_gravity ()</h3>
|
826
770
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_context_set_base_gravity (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
827
|
-
<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravity"
|
771
|
+
<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="type">PangoGravity</span></a> gravity</code></em>);</pre>
|
828
772
|
<p>
|
829
773
|
Sets the base gravity for the context.
|
830
774
|
</p>
|
@@ -841,8 +785,7 @@ The base gravity is used in laying vertical text out.
|
|
841
785
|
</tr>
|
842
786
|
<tr>
|
843
787
|
<td><p><span class="term"><em class="parameter"><code>gravity</code></em> :</span></p></td>
|
844
|
-
<td>the new base gravity
|
845
|
-
</td>
|
788
|
+
<td>the new base gravity</td>
|
846
789
|
</tr>
|
847
790
|
</tbody>
|
848
791
|
</table></div>
|
@@ -851,7 +794,7 @@ The base gravity is used in laying vertical text out.
|
|
851
794
|
<hr>
|
852
795
|
<div class="refsect2">
|
853
796
|
<a name="pango-context-get-gravity"></a><h3>pango_context_get_gravity ()</h3>
|
854
|
-
<pre class="programlisting"><a class="link" href="pango-Vertical-Text.html#PangoGravity"
|
797
|
+
<pre class="programlisting"><a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="returnvalue">PangoGravity</span></a> pango_context_get_gravity (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);</pre>
|
855
798
|
<p>
|
856
799
|
Retrieves the gravity for the context. This is similar to
|
857
800
|
<a class="link" href="pango-Text-Processing.html#pango-context-get-base-gravity" title="pango_context_get_base_gravity ()"><code class="function">pango_context_get_base_gravity()</code></a>, except for when the base gravity
|
@@ -868,9 +811,7 @@ to return the gravity from the current context matrix.
|
|
868
811
|
</tr>
|
869
812
|
<tr>
|
870
813
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
871
|
-
<td>
|
872
|
-
|
873
|
-
</td>
|
814
|
+
<td>the resolved gravity for the context.</td>
|
874
815
|
</tr>
|
875
816
|
</tbody>
|
876
817
|
</table></div>
|
@@ -879,7 +820,7 @@ to return the gravity from the current context matrix.
|
|
879
820
|
<hr>
|
880
821
|
<div class="refsect2">
|
881
822
|
<a name="pango-context-get-gravity-hint"></a><h3>pango_context_get_gravity_hint ()</h3>
|
882
|
-
<pre class="programlisting"><a class="link" href="pango-Vertical-Text.html#PangoGravityHint"
|
823
|
+
<pre class="programlisting"><a class="link" href="pango-Vertical-Text.html#PangoGravityHint"><span class="returnvalue">PangoGravityHint</span></a> pango_context_get_gravity_hint (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);</pre>
|
883
824
|
<p>
|
884
825
|
Retrieves the gravity hint for the context. See
|
885
826
|
<a class="link" href="pango-Text-Processing.html#pango-context-set-gravity-hint" title="pango_context_set_gravity_hint ()"><code class="function">pango_context_set_gravity_hint()</code></a> for details.
|
@@ -894,9 +835,7 @@ Retrieves the gravity hint for the context. See
|
|
894
835
|
</tr>
|
895
836
|
<tr>
|
896
837
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
897
|
-
<td>
|
898
|
-
|
899
|
-
</td>
|
838
|
+
<td>the gravity hint for the context.</td>
|
900
839
|
</tr>
|
901
840
|
</tbody>
|
902
841
|
</table></div>
|
@@ -906,7 +845,7 @@ Retrieves the gravity hint for the context. See
|
|
906
845
|
<div class="refsect2">
|
907
846
|
<a name="pango-context-set-gravity-hint"></a><h3>pango_context_set_gravity_hint ()</h3>
|
908
847
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_context_set_gravity_hint (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
909
|
-
<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravityHint"
|
848
|
+
<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravityHint"><span class="type">PangoGravityHint</span></a> hint</code></em>);</pre>
|
910
849
|
<p>
|
911
850
|
Sets the gravity hint for the context.
|
912
851
|
</p>
|
@@ -925,8 +864,7 @@ is set <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-EAST:CAPS"><
|
|
925
864
|
</tr>
|
926
865
|
<tr>
|
927
866
|
<td><p><span class="term"><em class="parameter"><code>hint</code></em> :</span></p></td>
|
928
|
-
<td>the new gravity hint
|
929
|
-
</td>
|
867
|
+
<td>the new gravity hint</td>
|
930
868
|
</tr>
|
931
869
|
</tbody>
|
932
870
|
</table></div>
|
@@ -935,7 +873,7 @@ is set <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-EAST:CAPS"><
|
|
935
873
|
<hr>
|
936
874
|
<div class="refsect2">
|
937
875
|
<a name="pango-context-get-matrix"></a><h3>pango_context_get_matrix ()</h3>
|
938
|
-
<pre class="programlisting">const <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"
|
876
|
+
<pre class="programlisting">const <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"><span class="returnvalue">PangoMatrix</span></a> * pango_context_get_matrix (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);</pre>
|
939
877
|
<p>
|
940
878
|
Gets the transformation matrix that will be applied when
|
941
879
|
rendering with this context. See <a class="link" href="pango-Text-Processing.html#pango-context-set-matrix" title="pango_context_set_matrix ()"><code class="function">pango_context_set_matrix()</code></a>.
|
@@ -950,12 +888,10 @@ rendering with this context. See <a class="link" href="pango-Text-Processing.htm
|
|
950
888
|
</tr>
|
951
889
|
<tr>
|
952
890
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
953
|
-
<td>
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
</td>
|
891
|
+
<td>the matrix, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if no matrix has been set
|
892
|
+
(which is the same as the identity matrix). The returned
|
893
|
+
matrix is owned by Pango and must not be modified or
|
894
|
+
freed.</td>
|
959
895
|
</tr>
|
960
896
|
</tbody>
|
961
897
|
</table></div>
|
@@ -965,7 +901,7 @@ rendering with this context. See <a class="link" href="pango-Text-Processing.htm
|
|
965
901
|
<div class="refsect2">
|
966
902
|
<a name="pango-context-set-matrix"></a><h3>pango_context_set_matrix ()</h3>
|
967
903
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_context_set_matrix (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
968
|
-
<em class="parameter"><code>const <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"
|
904
|
+
<em class="parameter"><code>const <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a> *matrix</code></em>);</pre>
|
969
905
|
<p>
|
970
906
|
Sets the transformation matrix that will be applied when rendering
|
971
907
|
with this context. Note that reported metrics are in the user space
|
@@ -984,8 +920,8 @@ matrices, depending on how the text is fit to the pixel grid.
|
|
984
920
|
</tr>
|
985
921
|
<tr>
|
986
922
|
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
987
|
-
<td>a <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"
|
988
|
-
(No matrix set is the same as setting the identity matrix.)
|
923
|
+
<td>a <a class="link" href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a>, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to unset any existing
|
924
|
+
matrix. (No matrix set is the same as setting the identity matrix.). <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
|
989
925
|
</td>
|
990
926
|
</tr>
|
991
927
|
</tbody>
|
@@ -996,7 +932,7 @@ matrices, depending on how the text is fit to the pixel grid.
|
|
996
932
|
<div class="refsect2">
|
997
933
|
<a name="pango-context-load-font"></a><h3>pango_context_load_font ()</h3>
|
998
934
|
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFont"><span class="returnvalue">PangoFont</span></a> * pango_context_load_font (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
999
|
-
<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"
|
935
|
+
<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
|
1000
936
|
<p>
|
1001
937
|
Loads the font in one of the fontmaps in the context
|
1002
938
|
that is the closest match for <em class="parameter"><code>desc</code></em>.
|
@@ -1011,12 +947,12 @@ that is the closest match for <em class="parameter"><code>desc</code></em>.
|
|
1011
947
|
</tr>
|
1012
948
|
<tr>
|
1013
949
|
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
|
1014
|
-
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"
|
1015
|
-
</td>
|
950
|
+
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> describing the font to load</td>
|
1016
951
|
</tr>
|
1017
952
|
<tr>
|
1018
953
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1019
|
-
<td>
|
954
|
+
<td>the newly allocated <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> that
|
955
|
+
was loaded, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if no font matched. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
|
1020
956
|
</td>
|
1021
957
|
</tr>
|
1022
958
|
</tbody>
|
@@ -1026,8 +962,8 @@ that is the closest match for <em class="parameter"><code>desc</code></em>.
|
|
1026
962
|
<div class="refsect2">
|
1027
963
|
<a name="pango-context-load-fontset"></a><h3>pango_context_load_fontset ()</h3>
|
1028
964
|
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontset"><span class="returnvalue">PangoFontset</span></a> * pango_context_load_fontset (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
1029
|
-
<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"
|
1030
|
-
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"
|
965
|
+
<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
|
966
|
+
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>);</pre>
|
1031
967
|
<p>
|
1032
968
|
Load a set of fonts in the context that can be used to render
|
1033
969
|
a font matching <em class="parameter"><code>desc</code></em>.
|
@@ -1042,17 +978,16 @@ a font matching <em class="parameter"><code>desc</code></em>.
|
|
1042
978
|
</tr>
|
1043
979
|
<tr>
|
1044
980
|
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
|
1045
|
-
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"
|
1046
|
-
</td>
|
981
|
+
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> describing the fonts to load</td>
|
1047
982
|
</tr>
|
1048
983
|
<tr>
|
1049
984
|
<td><p><span class="term"><em class="parameter"><code>language</code></em> :</span></p></td>
|
1050
|
-
<td>a <a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"
|
1051
|
-
</td>
|
985
|
+
<td>a <a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> the fonts will be used for</td>
|
1052
986
|
</tr>
|
1053
987
|
<tr>
|
1054
988
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1055
|
-
<td>
|
989
|
+
<td>the newly allocated <a class="link" href="pango-Fonts.html#PangoFontset"><span class="type">PangoFontset</span></a> loaded,
|
990
|
+
or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if no font matched. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
|
1056
991
|
</td>
|
1057
992
|
</tr>
|
1058
993
|
</tbody>
|
@@ -1061,9 +996,9 @@ a font matching <em class="parameter"><code>desc</code></em>.
|
|
1061
996
|
<hr>
|
1062
997
|
<div class="refsect2">
|
1063
998
|
<a name="pango-context-get-metrics"></a><h3>pango_context_get_metrics ()</h3>
|
1064
|
-
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMetrics"
|
1065
|
-
<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"
|
1066
|
-
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"
|
999
|
+
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="returnvalue">PangoFontMetrics</span></a> * pango_context_get_metrics (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
1000
|
+
<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
|
1001
|
+
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>);</pre>
|
1067
1002
|
<p>
|
1068
1003
|
Get overall metric information for a particular font
|
1069
1004
|
description. Since the metrics may be substantially different for
|
@@ -1072,7 +1007,7 @@ the metrics should be retrieved that correspond to the script(s)
|
|
1072
1007
|
used by that language.
|
1073
1008
|
</p>
|
1074
1009
|
<p>
|
1075
|
-
The <a class="link" href="pango-Fonts.html#PangoFontDescription"
|
1010
|
+
The <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> is interpreted in the same way as
|
1076
1011
|
by <a class="link" href="pango-Text-Processing.html#pango-itemize" title="pango_itemize ()"><code class="function">pango_itemize()</code></a>, and the family name may be a comma separated
|
1077
1012
|
list of figures. If characters from multiple of these families
|
1078
1013
|
would be used to render the string, then the returned fonts would
|
@@ -1089,24 +1024,23 @@ individual families.
|
|
1089
1024
|
</tr>
|
1090
1025
|
<tr>
|
1091
1026
|
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
|
1092
|
-
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"
|
1093
|
-
|
1027
|
+
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> structure. <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> means that the
|
1028
|
+
font description from the context will be used. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
|
1094
1029
|
</td>
|
1095
1030
|
</tr>
|
1096
1031
|
<tr>
|
1097
1032
|
<td><p><span class="term"><em class="parameter"><code>language</code></em> :</span></p></td>
|
1098
|
-
<td>language tag used to determine which script to get
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1033
|
+
<td>language tag used to determine which script to get
|
1034
|
+
the metrics for. <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> means that the language tag from the context
|
1035
|
+
will be used. If no language tag is set on the context, metrics
|
1036
|
+
for the default language (as determined by <a class="link" href="pango-Scripts-and-Languages.html#pango-language-get-default" title="pango_language_get_default ()"><code class="function">pango_language_get_default()</code></a>)
|
1037
|
+
will be returned. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
|
1103
1038
|
</td>
|
1104
1039
|
</tr>
|
1105
1040
|
<tr>
|
1106
1041
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1107
|
-
<td>
|
1108
|
-
|
1109
|
-
</td>
|
1042
|
+
<td>a <a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> object. The caller must call <a class="link" href="pango-Fonts.html#pango-font-metrics-unref" title="pango_font_metrics_unref ()"><code class="function">pango_font_metrics_unref()</code></a>
|
1043
|
+
when finished using the object.</td>
|
1110
1044
|
</tr>
|
1111
1045
|
</tbody>
|
1112
1046
|
</table></div>
|
@@ -1130,13 +1064,14 @@ List all families for a context.
|
|
1130
1064
|
</tr>
|
1131
1065
|
<tr>
|
1132
1066
|
<td><p><span class="term"><em class="parameter"><code>families</code></em> :</span></p></td>
|
1133
|
-
<td>location to store a pointer to
|
1134
|
-
|
1067
|
+
<td>location to store a pointer to
|
1068
|
+
an array of <a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a> *. This array should be freed
|
1069
|
+
with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>. <span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>][<a href="http://foldoc.org/array"><span class="acronym">array</span></a> length=n_families]</span>
|
1135
1070
|
</td>
|
1136
1071
|
</tr>
|
1137
1072
|
<tr>
|
1138
1073
|
<td><p><span class="term"><em class="parameter"><code>n_families</code></em> :</span></p></td>
|
1139
|
-
<td>location to store the number of elements in <em class="parameter"><code>descs</code></em>
|
1074
|
+
<td>location to store the number of elements in <em class="parameter"><code>descs</code></em>. <span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>]</span>
|
1140
1075
|
</td>
|
1141
1076
|
</tr>
|
1142
1077
|
</tbody>
|
@@ -1145,7 +1080,7 @@ List all families for a context.
|
|
1145
1080
|
<hr>
|
1146
1081
|
<div class="refsect2">
|
1147
1082
|
<a name="pango-break"></a><h3>pango_break ()</h3>
|
1148
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_break (<em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>,
|
1083
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_break (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>,
|
1149
1084
|
<em class="parameter"><code><span class="type">int</span> length</code></em>,
|
1150
1085
|
<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoAnalysis" title="struct PangoAnalysis"><span class="type">PangoAnalysis</span></a> *analysis</code></em>,
|
1151
1086
|
<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoLogAttr" title="PangoLogAttr"><span class="type">PangoLogAttr</span></a> *attrs</code></em>,
|
@@ -1160,13 +1095,11 @@ purposes you may want to use <a class="link" href="pango-Text-Processing.html#pa
|
|
1160
1095
|
<tbody>
|
1161
1096
|
<tr>
|
1162
1097
|
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
|
1163
|
-
<td>the text to process
|
1164
|
-
</td>
|
1098
|
+
<td>the text to process</td>
|
1165
1099
|
</tr>
|
1166
1100
|
<tr>
|
1167
1101
|
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
1168
|
-
<td>length of <em class="parameter"><code>text</code></em> in bytes (may be -1 if <em class="parameter"><code>text</code></em> is nul-terminated)
|
1169
|
-
</td>
|
1102
|
+
<td>length of <em class="parameter"><code>text</code></em> in bytes (may be -1 if <em class="parameter"><code>text</code></em> is nul-terminated)</td>
|
1170
1103
|
</tr>
|
1171
1104
|
<tr>
|
1172
1105
|
<td><p><span class="term"><em class="parameter"><code>analysis</code></em> :</span></p></td>
|
@@ -1176,8 +1109,7 @@ purposes you may want to use <a class="link" href="pango-Text-Processing.html#pa
|
|
1176
1109
|
</tr>
|
1177
1110
|
<tr>
|
1178
1111
|
<td><p><span class="term"><em class="parameter"><code>attrs</code></em> :</span></p></td>
|
1179
|
-
<td>an array to store character information in
|
1180
|
-
</td>
|
1112
|
+
<td>an array to store character information in</td>
|
1181
1113
|
</tr>
|
1182
1114
|
<tr>
|
1183
1115
|
<td><p><span class="term"><em class="parameter"><code>attrs_len</code></em> :</span></p></td>
|
@@ -1193,7 +1125,7 @@ purposes you may want to use <a class="link" href="pango-Text-Processing.html#pa
|
|
1193
1125
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_get_log_attrs (<em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
|
1194
1126
|
<em class="parameter"><code><span class="type">int</span> length</code></em>,
|
1195
1127
|
<em class="parameter"><code><span class="type">int</span> level</code></em>,
|
1196
|
-
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"
|
1128
|
+
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>,
|
1197
1129
|
<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoLogAttr" title="PangoLogAttr"><span class="type">PangoLogAttr</span></a> *log_attrs</code></em>,
|
1198
1130
|
<em class="parameter"><code><span class="type">int</span> attrs_len</code></em>);</pre>
|
1199
1131
|
<p>
|
@@ -1210,8 +1142,7 @@ the word is a word).
|
|
1210
1142
|
<tbody>
|
1211
1143
|
<tr>
|
1212
1144
|
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
|
1213
|
-
<td>text to process
|
1214
|
-
</td>
|
1145
|
+
<td>text to process</td>
|
1215
1146
|
</tr>
|
1216
1147
|
<tr>
|
1217
1148
|
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
@@ -1220,23 +1151,19 @@ the word is a word).
|
|
1220
1151
|
</tr>
|
1221
1152
|
<tr>
|
1222
1153
|
<td><p><span class="term"><em class="parameter"><code>level</code></em> :</span></p></td>
|
1223
|
-
<td>embedding level, or -1 if unknown
|
1224
|
-
</td>
|
1154
|
+
<td>embedding level, or -1 if unknown</td>
|
1225
1155
|
</tr>
|
1226
1156
|
<tr>
|
1227
1157
|
<td><p><span class="term"><em class="parameter"><code>language</code></em> :</span></p></td>
|
1228
|
-
<td>language tag
|
1229
|
-
</td>
|
1158
|
+
<td>language tag</td>
|
1230
1159
|
</tr>
|
1231
1160
|
<tr>
|
1232
1161
|
<td><p><span class="term"><em class="parameter"><code>log_attrs</code></em> :</span></p></td>
|
1233
|
-
<td>array with one <a class="link" href="pango-Text-Processing.html#PangoLogAttr" title="PangoLogAttr"><span class="type">PangoLogAttr</span></a> per character in <em class="parameter"><code>text</code></em>, plus one extra, to be filled in
|
1234
|
-
</td>
|
1162
|
+
<td>array with one <a class="link" href="pango-Text-Processing.html#PangoLogAttr" title="PangoLogAttr"><span class="type">PangoLogAttr</span></a> per character in <em class="parameter"><code>text</code></em>, plus one extra, to be filled in</td>
|
1235
1163
|
</tr>
|
1236
1164
|
<tr>
|
1237
1165
|
<td><p><span class="term"><em class="parameter"><code>attrs_len</code></em> :</span></p></td>
|
1238
|
-
<td>length of <em class="parameter"><code>log_attrs</code></em> array
|
1239
|
-
</td>
|
1166
|
+
<td>length of <em class="parameter"><code>log_attrs</code></em> array</td>
|
1240
1167
|
</tr>
|
1241
1168
|
</tbody>
|
1242
1169
|
</table></div>
|
@@ -1244,10 +1171,10 @@ the word is a word).
|
|
1244
1171
|
<hr>
|
1245
1172
|
<div class="refsect2">
|
1246
1173
|
<a name="pango-find-paragraph-boundary"></a><h3>pango_find_paragraph_boundary ()</h3>
|
1247
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_find_paragraph_boundary (<em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>,
|
1248
|
-
<em class="parameter"><code><span class="type">gint</span> length</code></em>,
|
1249
|
-
<em class="parameter"><code><span class="type">gint</span> *paragraph_delimiter_index</code></em>,
|
1250
|
-
<em class="parameter"><code><span class="type">gint</span> *next_paragraph_start</code></em>);</pre>
|
1174
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_find_paragraph_boundary (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>,
|
1175
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> length</code></em>,
|
1176
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *paragraph_delimiter_index</code></em>,
|
1177
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *next_paragraph_start</code></em>);</pre>
|
1251
1178
|
<p>
|
1252
1179
|
Locates a paragraph boundary in <em class="parameter"><code>text</code></em>. A boundary is caused by
|
1253
1180
|
delimiter characters, such as a newline, carriage return, carriage
|
@@ -1266,23 +1193,19 @@ off the end).
|
|
1266
1193
|
<tbody>
|
1267
1194
|
<tr>
|
1268
1195
|
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
|
1269
|
-
<td>UTF-8 text
|
1270
|
-
</td>
|
1196
|
+
<td>UTF-8 text</td>
|
1271
1197
|
</tr>
|
1272
1198
|
<tr>
|
1273
1199
|
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
1274
|
-
<td>length of <em class="parameter"><code>text</code></em> in bytes, or -1 if nul-terminated
|
1275
|
-
</td>
|
1200
|
+
<td>length of <em class="parameter"><code>text</code></em> in bytes, or -1 if nul-terminated</td>
|
1276
1201
|
</tr>
|
1277
1202
|
<tr>
|
1278
1203
|
<td><p><span class="term"><em class="parameter"><code>paragraph_delimiter_index</code></em> :</span></p></td>
|
1279
|
-
<td>return location for index of delimiter
|
1280
|
-
</td>
|
1204
|
+
<td>return location for index of delimiter</td>
|
1281
1205
|
</tr>
|
1282
1206
|
<tr>
|
1283
1207
|
<td><p><span class="term"><em class="parameter"><code>next_paragraph_start</code></em> :</span></p></td>
|
1284
|
-
<td>return location for start of next paragraph
|
1285
|
-
</td>
|
1208
|
+
<td>return location for start of next paragraph</td>
|
1286
1209
|
</tr>
|
1287
1210
|
</tbody>
|
1288
1211
|
</table></div>
|
@@ -1290,7 +1213,7 @@ off the end).
|
|
1290
1213
|
<hr>
|
1291
1214
|
<div class="refsect2">
|
1292
1215
|
<a name="pango-default-break"></a><h3>pango_default_break ()</h3>
|
1293
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_default_break (<em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>,
|
1216
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_default_break (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>,
|
1294
1217
|
<em class="parameter"><code><span class="type">int</span> length</code></em>,
|
1295
1218
|
<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoAnalysis" title="struct PangoAnalysis"><span class="type">PangoAnalysis</span></a> *analysis</code></em>,
|
1296
1219
|
<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoLogAttr" title="PangoLogAttr"><span class="type">PangoLogAttr</span></a> *attrs</code></em>,
|
@@ -1299,7 +1222,7 @@ off the end).
|
|
1299
1222
|
This is the default break algorithm, used if no language
|
1300
1223
|
engine overrides it. Normally you should use <a class="link" href="pango-Text-Processing.html#pango-break" title="pango_break ()"><code class="function">pango_break()</code></a>
|
1301
1224
|
instead. Unlike <a class="link" href="pango-Text-Processing.html#pango-break" title="pango_break ()"><code class="function">pango_break()</code></a>,
|
1302
|
-
<em class="parameter"><code>analysis</code></em> can be <a href="/
|
1225
|
+
<em class="parameter"><code>analysis</code></em> can be <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, but only do that if you know what
|
1303
1226
|
you're doing. If you need an analysis to pass to <a class="link" href="pango-Text-Processing.html#pango-break" title="pango_break ()"><code class="function">pango_break()</code></a>,
|
1304
1227
|
you need to <a class="link" href="pango-Text-Processing.html#pango-itemize" title="pango_itemize ()"><code class="function">pango_itemize()</code></a>. In most cases however you should
|
1305
1228
|
simply use <a class="link" href="pango-Text-Processing.html#pango-get-log-attrs" title="pango_get_log_attrs ()"><code class="function">pango_get_log_attrs()</code></a>.
|
@@ -1309,13 +1232,11 @@ simply use <a class="link" href="pango-Text-Processing.html#pango-get-log-attrs"
|
|
1309
1232
|
<tbody>
|
1310
1233
|
<tr>
|
1311
1234
|
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
|
1312
|
-
<td>text to break
|
1313
|
-
</td>
|
1235
|
+
<td>text to break</td>
|
1314
1236
|
</tr>
|
1315
1237
|
<tr>
|
1316
1238
|
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
1317
|
-
<td>length of text in bytes (may be -1 if <em class="parameter"><code>text</code></em> is nul-terminated)
|
1318
|
-
</td>
|
1239
|
+
<td>length of text in bytes (may be -1 if <em class="parameter"><code>text</code></em> is nul-terminated)</td>
|
1319
1240
|
</tr>
|
1320
1241
|
<tr>
|
1321
1242
|
<td><p><span class="term"><em class="parameter"><code>analysis</code></em> :</span></p></td>
|
@@ -1324,8 +1245,7 @@ simply use <a class="link" href="pango-Text-Processing.html#pango-get-log-attrs"
|
|
1324
1245
|
</tr>
|
1325
1246
|
<tr>
|
1326
1247
|
<td><p><span class="term"><em class="parameter"><code>attrs</code></em> :</span></p></td>
|
1327
|
-
<td>logical attributes to fill in
|
1328
|
-
</td>
|
1248
|
+
<td>logical attributes to fill in</td>
|
1329
1249
|
</tr>
|
1330
1250
|
<tr>
|
1331
1251
|
<td><p><span class="term"><em class="parameter"><code>attrs_len</code></em> :</span></p></td>
|
@@ -1394,106 +1314,93 @@ about the attributes of a single character.
|
|
1394
1314
|
<col align="left" valign="top">
|
1395
1315
|
<tbody>
|
1396
1316
|
<tr>
|
1397
|
-
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="PangoLogAttr.is-line-break"></a>is_line_break</code></em> : 1;</span></p></td>
|
1398
|
-
<td>if set, can break line in front of character
|
1399
|
-
</td>
|
1317
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="PangoLogAttr.is-line-break"></a>is_line_break</code></em> : 1;</span></p></td>
|
1318
|
+
<td>if set, can break line in front of character</td>
|
1400
1319
|
</tr>
|
1401
1320
|
<tr>
|
1402
|
-
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="PangoLogAttr.is-mandatory-break"></a>is_mandatory_break</code></em> : 1;</span></p></td>
|
1403
|
-
<td>if set, must break line in front of character
|
1404
|
-
</td>
|
1321
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="PangoLogAttr.is-mandatory-break"></a>is_mandatory_break</code></em> : 1;</span></p></td>
|
1322
|
+
<td>if set, must break line in front of character</td>
|
1405
1323
|
</tr>
|
1406
1324
|
<tr>
|
1407
|
-
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="PangoLogAttr.is-char-break"></a>is_char_break</code></em> : 1;</span></p></td>
|
1408
|
-
<td>if set, can break here when doing character wrapping
|
1409
|
-
</td>
|
1325
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="PangoLogAttr.is-char-break"></a>is_char_break</code></em> : 1;</span></p></td>
|
1326
|
+
<td>if set, can break here when doing character wrapping</td>
|
1410
1327
|
</tr>
|
1411
1328
|
<tr>
|
1412
|
-
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="PangoLogAttr.is-white"></a>is_white</code></em> : 1;</span></p></td>
|
1413
|
-
<td>is whitespace character
|
1414
|
-
</td>
|
1329
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="PangoLogAttr.is-white"></a>is_white</code></em> : 1;</span></p></td>
|
1330
|
+
<td>is whitespace character</td>
|
1415
1331
|
</tr>
|
1416
1332
|
<tr>
|
1417
|
-
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="PangoLogAttr.is-cursor-position"></a>is_cursor_position</code></em> : 1;</span></p></td>
|
1333
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="PangoLogAttr.is-cursor-position"></a>is_cursor_position</code></em> : 1;</span></p></td>
|
1418
1334
|
<td>if set, cursor can appear in front of character.
|
1419
|
-
|
1420
|
-
|
1421
|
-
|
1422
|
-
|
1423
|
-
|
1424
|
-
</td>
|
1335
|
+
i.e. this is a grapheme boundary, or the first character
|
1336
|
+
in the text.
|
1337
|
+
This flag implements Unicode's
|
1338
|
+
<a class="ulink" href="http://www.unicode.org/reports/tr29/" target="_top">Grapheme
|
1339
|
+
Cluster Boundaries</a> semantics.</td>
|
1425
1340
|
</tr>
|
1426
1341
|
<tr>
|
1427
|
-
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="PangoLogAttr.is-word-start"></a>is_word_start</code></em> : 1;</span></p></td>
|
1428
|
-
<td>is first character in a word
|
1429
|
-
</td>
|
1342
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="PangoLogAttr.is-word-start"></a>is_word_start</code></em> : 1;</span></p></td>
|
1343
|
+
<td>is first character in a word</td>
|
1430
1344
|
</tr>
|
1431
1345
|
<tr>
|
1432
|
-
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="PangoLogAttr.is-word-end"></a>is_word_end</code></em> : 1;</span></p></td>
|
1346
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="PangoLogAttr.is-word-end"></a>is_word_end</code></em> : 1;</span></p></td>
|
1433
1347
|
<td>is first non-word char after a word
|
1434
|
-
|
1435
|
-
|
1436
|
-
</td>
|
1348
|
+
Note that in degenerate cases, you could have both <em class="parameter"><code>is_word_start</code></em>
|
1349
|
+
and <em class="parameter"><code>is_word_end</code></em> set for some character.</td>
|
1437
1350
|
</tr>
|
1438
1351
|
<tr>
|
1439
|
-
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="PangoLogAttr.is-sentence-boundary"></a>is_sentence_boundary</code></em> : 1;</span></p></td>
|
1352
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="PangoLogAttr.is-sentence-boundary"></a>is_sentence_boundary</code></em> : 1;</span></p></td>
|
1440
1353
|
<td>is a sentence boundary.
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
</td>
|
1354
|
+
There are two ways to divide sentences. The first assigns all
|
1355
|
+
inter-sentence whitespace/control/format chars to some sentence,
|
1356
|
+
so all chars are in some sentence; <em class="parameter"><code>is_sentence_boundary</code></em> denotes
|
1357
|
+
the boundaries there. The second way doesn't assign
|
1358
|
+
between-sentence spaces, etc. to any sentence, so
|
1359
|
+
<em class="parameter"><code>is_sentence_start</code></em>/<em class="parameter"><code>is_sentence_end</code></em> mark the boundaries
|
1360
|
+
of those sentences.</td>
|
1449
1361
|
</tr>
|
1450
1362
|
<tr>
|
1451
|
-
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="PangoLogAttr.is-sentence-start"></a>is_sentence_start</code></em> : 1;</span></p></td>
|
1452
|
-
<td>is first character in a sentence
|
1453
|
-
</td>
|
1363
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="PangoLogAttr.is-sentence-start"></a>is_sentence_start</code></em> : 1;</span></p></td>
|
1364
|
+
<td>is first character in a sentence</td>
|
1454
1365
|
</tr>
|
1455
1366
|
<tr>
|
1456
|
-
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="PangoLogAttr.is-sentence-end"></a>is_sentence_end</code></em> : 1;</span></p></td>
|
1367
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="PangoLogAttr.is-sentence-end"></a>is_sentence_end</code></em> : 1;</span></p></td>
|
1457
1368
|
<td>is first char after a sentence.
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
</td>
|
1369
|
+
Note that in degenerate cases, you could have both <em class="parameter"><code>is_sentence_start</code></em>
|
1370
|
+
and <em class="parameter"><code>is_sentence_end</code></em> set for some character. (e.g. no space after a
|
1371
|
+
period, so the next sentence starts right away)</td>
|
1462
1372
|
</tr>
|
1463
1373
|
<tr>
|
1464
|
-
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="PangoLogAttr.backspace-deletes-character"></a>backspace_deletes_character</code></em> : 1;</span></p></td>
|
1374
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="PangoLogAttr.backspace-deletes-character"></a>backspace_deletes_character</code></em> : 1;</span></p></td>
|
1465
1375
|
<td>if set, backspace deletes one character
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
</
|
1478
|
-
|
1479
|
-
<
|
1480
|
-
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="PangoLogAttr.is-expandable-space"></a>is_expandable_space</code></em> : 1;</span></p></td>
|
1376
|
+
rather than the entire grapheme cluster. This
|
1377
|
+
field is only meaningful on grapheme
|
1378
|
+
boundaries (where <em class="parameter"><code>is_cursor_position</code></em> is
|
1379
|
+
set). In some languages, the full grapheme
|
1380
|
+
(e.g. letter + diacritics) is considered a
|
1381
|
+
unit, while in others, each decomposed
|
1382
|
+
character in the grapheme is a unit. In the
|
1383
|
+
default implementation of <a class="link" href="pango-Text-Processing.html#pango-break" title="pango_break ()"><code class="function">pango_break()</code></a>, this
|
1384
|
+
bit is set on all grapheme boundaries except
|
1385
|
+
those following Latin, Cyrillic or Greek base
|
1386
|
+
characters.</td>
|
1387
|
+
</tr>
|
1388
|
+
<tr>
|
1389
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="PangoLogAttr.is-expandable-space"></a>is_expandable_space</code></em> : 1;</span></p></td>
|
1481
1390
|
<td>is a whitespace character that can possibly be
|
1482
|
-
|
1483
|
-
</td>
|
1391
|
+
expanded for justification purposes. (Since: 1.18)</td>
|
1484
1392
|
</tr>
|
1485
1393
|
<tr>
|
1486
|
-
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="PangoLogAttr.is-word-boundary"></a>is_word_boundary</code></em> : 1;</span></p></td>
|
1394
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="PangoLogAttr.is-word-boundary"></a>is_word_boundary</code></em> : 1;</span></p></td>
|
1487
1395
|
<td>is a word boundary.
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
</td>
|
1396
|
+
More specifically, means that this is not a position in the middle
|
1397
|
+
of a word. For example, both sides of a punctuation mark are
|
1398
|
+
considered word boundaries. This flag is particularly useful when
|
1399
|
+
selecting text word-by-word.
|
1400
|
+
This flag implements Unicode's
|
1401
|
+
<a class="ulink" href="http://www.unicode.org/reports/tr29/" target="_top">Word
|
1402
|
+
Boundaries</a> semantics.
|
1403
|
+
(Since: 1.22)</td>
|
1497
1404
|
</tr>
|
1498
1405
|
</tbody>
|
1499
1406
|
</table></div>
|
@@ -1501,10 +1408,10 @@ about the attributes of a single character.
|
|
1501
1408
|
<hr>
|
1502
1409
|
<div class="refsect2">
|
1503
1410
|
<a name="pango-shape"></a><h3>pango_shape ()</h3>
|
1504
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_shape (<em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>,
|
1505
|
-
<em class="parameter"><code><span class="type">gint</span> length</code></em>,
|
1411
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_shape (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>,
|
1412
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> length</code></em>,
|
1506
1413
|
<em class="parameter"><code>const <a class="link" href="pango-Text-Processing.html#PangoAnalysis" title="struct PangoAnalysis"><span class="type">PangoAnalysis</span></a> *analysis</code></em>,
|
1507
|
-
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"
|
1414
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> *glyphs</code></em>);</pre>
|
1508
1415
|
<p>
|
1509
1416
|
Given a segment of text and the corresponding
|
1510
1417
|
<a class="link" href="pango-Text-Processing.html#PangoAnalysis" title="struct PangoAnalysis"><span class="type">PangoAnalysis</span></a> structure returned from <a class="link" href="pango-Text-Processing.html#pango-itemize" title="pango_itemize ()"><code class="function">pango_itemize()</code></a>,
|
@@ -1516,8 +1423,7 @@ in only a substring of the item from <a class="link" href="pango-Text-Processing
|
|
1516
1423
|
<tbody>
|
1517
1424
|
<tr>
|
1518
1425
|
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
|
1519
|
-
<td>the text to process
|
1520
|
-
</td>
|
1426
|
+
<td>the text to process</td>
|
1521
1427
|
</tr>
|
1522
1428
|
<tr>
|
1523
1429
|
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
@@ -1532,8 +1438,7 @@ in only a substring of the item from <a class="link" href="pango-Text-Processing
|
|
1532
1438
|
</tr>
|
1533
1439
|
<tr>
|
1534
1440
|
<td><p><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></p></td>
|
1535
|
-
<td>glyph string in which to store results
|
1536
|
-
</td>
|
1441
|
+
<td>glyph string in which to store results</td>
|
1537
1442
|
</tr>
|
1538
1443
|
</tbody>
|
1539
1444
|
</table></div>
|
@@ -1542,6 +1447,6 @@ in only a substring of the item from <a class="link" href="pango-Text-Processing
|
|
1542
1447
|
</div>
|
1543
1448
|
<div class="footer">
|
1544
1449
|
<hr>
|
1545
|
-
Generated by GTK-Doc V1.
|
1450
|
+
Generated by GTK-Doc V1.18</div>
|
1546
1451
|
</body>
|
1547
1452
|
</html>
|