gtk2 0.90.4-x86-mingw32 → 0.90.5-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +4 -0
- data/Rakefile +3 -4
- data/ext/gtk2/extconf.rb +8 -0
- data/lib/1.8/gtk2.so +0 -0
- data/lib/1.9/gtk2.so +0 -0
- data/vendor/local/bin/gtk-demo.exe +0 -0
- data/vendor/local/bin/gtk-query-immodules-2.0.exe +0 -0
- data/vendor/local/bin/gtk-update-icon-cache.exe +0 -0
- data/vendor/local/bin/libgailutil-18.dll +0 -0
- data/vendor/local/bin/libgdk-win32-2.0-0.dll +0 -0
- data/vendor/local/bin/libgtk-win32-2.0-0.dll +0 -0
- data/vendor/local/bin/libpango-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
- data/vendor/local/bin/pango-querymodules.exe +0 -0
- data/vendor/local/bin/pango-view.exe +0 -0
- data/vendor/local/bin/pkg-config.exe +0 -0
- data/vendor/local/etc/gtk-2.0/gtk.immodules +1 -1
- data/vendor/local/etc/pango/pango.modules +1 -1
- data/vendor/local/gtk+-bundle_2.22.0-20101016_win32.README.txt +29 -0
- data/vendor/local/include/pango-1.0/pango/pango-enum-types.h +2 -2
- data/vendor/local/include/pango-1.0/pango/pango-features.h +2 -2
- data/vendor/local/include/pixman-1/pixman-version.h +50 -0
- data/vendor/local/include/pixman-1/pixman.h +936 -0
- data/vendor/local/lib/gailutil.lib +0 -0
- data/vendor/local/lib/gdk-win32-2.0.lib +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libpixmap.dll +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libwimp.dll +0 -0
- data/vendor/local/lib/gtk-2.0/modules/libgail.dll +0 -0
- data/vendor/local/lib/gtk-win32-2.0.lib +0 -0
- data/vendor/local/lib/libgailutil.dll.a +0 -0
- data/vendor/local/lib/libgdk-win32-2.0.dll.a +0 -0
- data/vendor/local/lib/libgtk-win32-2.0.dll.a +0 -0
- 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/libpixman-1.a +0 -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.lib +0 -0
- data/vendor/local/lib/pkgconfig/gail.pc +1 -1
- data/vendor/local/lib/pkgconfig/gdk-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gdk-win32-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gtk+-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gtk+-win32-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/pango.pc +2 -2
- data/vendor/local/lib/pkgconfig/pangocairo.pc +2 -2
- data/vendor/local/lib/pkgconfig/pangoft2.pc +2 -2
- data/vendor/local/lib/pkgconfig/pangowin32.pc +2 -2
- data/vendor/local/lib/pkgconfig/pixman-1.pc +11 -0
- data/vendor/local/manifest/gtk+-bundle_2.22.0-20101016_win32.mft +2910 -0
- data/vendor/local/manifest/{pango-dev_1.28.1-2_win32.mft → pango-dev_1.28.3-1_win32.mft} +5 -5
- data/vendor/local/manifest/{pango_1.28.1-2_win32.mft → pango_1.28.3-1_win32.mft} +2 -2
- data/vendor/local/share/aclocal/pkg.m4 +155 -0
- data/vendor/local/share/doc/gtk+-bundle_2.22.0-20101016_win32/components.lst +28 -0
- data/vendor/local/share/doc/{pango-1.28.1 → pango-1.28.3}/COPYING +0 -0
- data/vendor/local/share/doc/{pango-dev-1.28.1 → pango-dev-1.28.3}/COPYING +0 -0
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +44 -50
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +45 -51
- data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +44 -61
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +89 -101
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +173 -171
- data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +6 -27
- data/vendor/local/share/gtk-doc/html/pango/index-1.10.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.12.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.14.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.16.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.18.html +5 -26
- data/vendor/local/share/gtk-doc/html/pango/index-1.2.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.20.html +5 -26
- data/vendor/local/share/gtk-doc/html/pango/index-1.22.html +5 -26
- data/vendor/local/share/gtk-doc/html/pango/index-1.24.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.26.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.28.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.4.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.6.html +6 -27
- data/vendor/local/share/gtk-doc/html/pango/index-1.8.html +22 -43
- data/vendor/local/share/gtk-doc/html/pango/index-all.html +70 -91
- data/vendor/local/share/gtk-doc/html/pango/index-deprecated.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index.html +5 -26
- data/vendor/local/share/gtk-doc/html/pango/index.sgml +31 -30
- data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +6 -27
- data/vendor/local/share/gtk-doc/html/pango/pango-ATSUI-Fonts.html +20 -39
- data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +73 -88
- data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +405 -320
- data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +85 -97
- data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +69 -84
- data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +695 -645
- data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +225 -228
- data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +523 -494
- data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +819 -742
- data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +203 -204
- data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +58 -75
- data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +422 -405
- data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +144 -142
- data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +120 -130
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +618 -576
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +397 -384
- data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +44 -58
- data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +73 -84
- data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +220 -217
- data/vendor/local/share/gtk-doc/html/pango/pango-X-Fonts-and-Rendering.html +303 -302
- data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +293 -292
- data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +5 -26
- data/vendor/local/share/gtk-doc/html/pango/pango-pango-renderer.html +1009 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-querymodules.html +7 -28
- data/vendor/local/share/gtk-doc/html/pango/pango.devhelp +68 -68
- data/vendor/local/share/gtk-doc/html/pango/pango.devhelp2 +72 -72
- data/vendor/local/share/gtk-doc/html/pango/pango.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/rendering.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/style.css +21 -13
- data/vendor/local/share/gtk-doc/html/pango/tools.html +3 -24
- data/vendor/local/share/man/man1/pango-querymodules.1 +2 -2
- data/vendor/local/share/man/man1/pango-view.1 +1 -1
- data/vendor/local/src/tml/packaging/{gtk+_2.22.0-1_win32.log → gtk+_2.22.0-2_win32.log} +1835 -1832
- data/vendor/local/src/tml/packaging/{gtk+_2.22.0-1_win32.sh → gtk+_2.22.0-2_win32.sh} +26 -1
- data/vendor/local/src/tml/packaging/{pango_1.28.1-2_win32.log → pango_1.28.3-1_win32.log} +293 -413
- data/vendor/local/src/tml/packaging/pango_1.28.3-1_win32.sh +56 -0
- data/vendor/local/src/tml/packaging/pixman_0.18.4-2_win32.log +291 -0
- data/vendor/local/src/tml/packaging/pixman_0.18.4-2_win32.sh +141 -0
- data/vendor/local/src/tml/packaging/pkg-config_0.23-3_win32.log +215 -0
- data/vendor/local/src/tml/packaging/pkg-config_0.23-3_win32.sh +278 -0
- metadata +3323 -3325
- data/ext/gtk2/Makefile +0 -163
- data/ext/gtk2/rbgdkkeysyms.h +0 -1708
- data/ext/gtk2/rbgtkinits.c +0 -469
- data/vendor/local/manifest/cairo-dev_1.10.0-1_win32.mft +0 -83
- data/vendor/local/manifest/cairo_1.10.0-1_win32.mft +0 -5
- data/vendor/local/manifest/expat-dev_2.0.1-1_win32.mft +0 -10
- data/vendor/local/manifest/expat_2.0.1-1_win32.mft +0 -2
- data/vendor/local/manifest/fontconfig-dev_2.8.0-2_win32.mft +0 -387
- data/vendor/local/manifest/fontconfig_2.8.0-2_win32.mft +0 -3
- data/vendor/local/manifest/freetype-dev_2.4.2-1_win32.mft +0 -56
- data/vendor/local/manifest/freetype_2.4.2-1_win32.mft +0 -2
- data/vendor/local/manifest/gtk+-dev_2.22.0-1_win32.mft +0 -947
- data/vendor/local/manifest/gtk+_2.22.0-1_win32.mft +0 -225
- data/vendor/local/manifest/libpng-dev_1.4.3-1_win32.mft +0 -15
- data/vendor/local/manifest/libpng_1.4.3-1_win32.mft +0 -2
- data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +0 -1002
- data/vendor/local/src/tml/packaging/pango_1.28.1-2_win32.sh +0 -579
@@ -8,29 +8,8 @@
|
|
8
8
|
<link rel="up" href="rendering.html" title="Rendering with Pango">
|
9
9
|
<link rel="prev" href="pango-Xft-Fonts-and-Rendering.html" title="Xft Fonts and Rendering">
|
10
10
|
<link rel="next" href="pango-ATSUI-Fonts.html" title="ATSUI Fonts">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
<link rel="chapter" href="pango.html" title="Basic Pango Interfaces">
|
14
|
-
<link rel="chapter" href="rendering.html" title="Rendering with Pango">
|
15
|
-
<link rel="chapter" href="lowlevel.html" title="Low Level Functionality">
|
16
|
-
<link rel="chapter" href="tools.html" title="Pango Tools">
|
17
|
-
<link rel="chapter" href="pango-hierarchy.html" title="Object Hierarchy">
|
18
|
-
<link rel="index" href="index-all.html" title="Index">
|
19
|
-
<link rel="index" href="index-deprecated.html" title="Index of deprecated symbols">
|
20
|
-
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
21
|
-
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
22
|
-
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
23
|
-
<link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
|
24
|
-
<link rel="index" href="index-1.10.html" title="Index of new symbols in 1.10">
|
25
|
-
<link rel="index" href="index-1.12.html" title="Index of new symbols in 1.12">
|
26
|
-
<link rel="index" href="index-1.14.html" title="Index of new symbols in 1.14">
|
27
|
-
<link rel="index" href="index-1.16.html" title="Index of new symbols in 1.16">
|
28
|
-
<link rel="index" href="index-1.18.html" title="Index of new symbols in 1.18">
|
29
|
-
<link rel="index" href="index-1.20.html" title="Index of new symbols in 1.20">
|
30
|
-
<link rel="index" href="index-1.22.html" title="Index of new symbols in 1.22">
|
31
|
-
<link rel="index" href="index-1.24.html" title="Index of new symbols in 1.24">
|
32
|
-
<link rel="index" href="index-1.26.html" title="Index of new symbols in 1.26">
|
33
|
-
<link rel="index" href="index-1.28.html" title="Index of new symbols in 1.26">
|
34
13
|
</head>
|
35
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
36
15
|
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
@@ -51,7 +30,7 @@
|
|
51
30
|
<a href="#pango-Cairo-Rendering.prerequisites" class="shortcut">Prerequisites</a>
|
52
31
|
</td></tr>
|
53
32
|
</table>
|
54
|
-
<div class="refentry"
|
33
|
+
<div class="refentry">
|
55
34
|
<a name="pango-Cairo-Rendering"></a><div class="titlepage"></div>
|
56
35
|
<div class="refnamediv"><table width="100%"><tr>
|
57
36
|
<td valign="top">
|
@@ -60,77 +39,77 @@
|
|
60
39
|
</td>
|
61
40
|
<td valign="top" align="right"></td>
|
62
41
|
</tr></table></div>
|
63
|
-
<div class="refsynopsisdiv"
|
42
|
+
<div class="refsynopsisdiv">
|
64
43
|
<a name="pango-Cairo-Rendering.synopsis"></a><h2>Synopsis</h2>
|
65
44
|
<a name="PangoCairoFont"></a><a name="PangoCairoFontMap"></a><pre class="synopsis"> <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFont-struct" title="PangoCairoFont">PangoCairoFont</a>;
|
66
45
|
<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap-struct" title="PangoCairoFontMap">PangoCairoFontMap</a>;
|
67
|
-
<a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-get-default" title="pango_cairo_font_map_get_default ()">pango_cairo_font_map_get_default</a> (void);
|
68
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-set-default" title="pango_cairo_font_map_set_default ()">pango_cairo_font_map_set_default</a> (<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="
|
69
|
-
<a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new" title="pango_cairo_font_map_new ()">pango_cairo_font_map_new</a> (void);
|
46
|
+
<a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-get-default" title="pango_cairo_font_map_get_default ()">pango_cairo_font_map_get_default</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
47
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-set-default" title="pango_cairo_font_map_set_default ()">pango_cairo_font_map_set_default</a> (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);
|
48
|
+
<a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new" title="pango_cairo_font_map_new ()">pango_cairo_font_map_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
70
49
|
<a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new-for-font-type" title="pango_cairo_font_map_new_for_font_type ()">pango_cairo_font_map_new_for_font_type</a>
|
71
|
-
(<a href="/usr/share/gtk-doc/html/cairo/cairo-font-face.html#cairo-font-type-t"><span class="
|
72
|
-
<a href="/usr/share/gtk-doc/html/cairo/cairo-font-face.html#cairo-font-type-t"><span class="returnvalue">cairo_font_type_t</span></a> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-get-font-type" title="pango_cairo_font_map_get_font_type ()">pango_cairo_font_map_get_font_type</a> (<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="
|
73
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-set-resolution" title="pango_cairo_font_map_set_resolution ()">pango_cairo_font_map_set_resolution</a> (<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="
|
74
|
-
<span class="
|
75
|
-
<span class="returnvalue">double</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-get-resolution" title="pango_cairo_font_map_get_resolution ()">pango_cairo_font_map_get_resolution</a> (<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="
|
76
|
-
<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-create-context" title="pango_cairo_font_map_create_context ()">pango_cairo_font_map_create_context</a> (<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="
|
77
|
-
<a href="/usr/share/gtk-doc/html/cairo/cairo-scaled-font.html#cairo-scaled-font-t"><span class="returnvalue">cairo_scaled_font_t</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-get-scaled-font" title="pango_cairo_font_get_scaled_font ()">pango_cairo_font_get_scaled_font</a> (<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFont"><span class="
|
78
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-resolution" title="pango_cairo_context_set_resolution ()">pango_cairo_context_set_resolution</a> (<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="
|
79
|
-
<span class="
|
80
|
-
<span class="returnvalue">double</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-get-resolution" title="pango_cairo_context_get_resolution ()">pango_cairo_context_get_resolution</a> (<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="
|
50
|
+
(<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-font-face.html#cairo-font-type-t"><span class="type">cairo_font_type_t</span></a> fonttype</code></em>);
|
51
|
+
<a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-font-face.html#cairo-font-type-t"><span class="returnvalue">cairo_font_type_t</span></a> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-get-font-type" title="pango_cairo_font_map_get_font_type ()">pango_cairo_font_map_get_font_type</a> (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);
|
52
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-set-resolution" title="pango_cairo_font_map_set_resolution ()">pango_cairo_font_map_set_resolution</a> (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>,
|
53
|
+
<em class="parameter"><code><span class="type">double</span> dpi</code></em>);
|
54
|
+
<span class="returnvalue">double</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-get-resolution" title="pango_cairo_font_map_get_resolution ()">pango_cairo_font_map_get_resolution</a> (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);
|
55
|
+
<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-create-context" title="pango_cairo_font_map_create_context ()">pango_cairo_font_map_create_context</a> (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);
|
56
|
+
<a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-scaled-font.html#cairo-scaled-font-t"><span class="returnvalue">cairo_scaled_font_t</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-get-scaled-font" title="pango_cairo_font_get_scaled_font ()">pango_cairo_font_get_scaled_font</a> (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFont"><span class="type">PangoCairoFont</span></a> *font</code></em>);
|
57
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-resolution" title="pango_cairo_context_set_resolution ()">pango_cairo_context_set_resolution</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
58
|
+
<em class="parameter"><code><span class="type">double</span> dpi</code></em>);
|
59
|
+
<span class="returnvalue">double</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-get-resolution" title="pango_cairo_context_get_resolution ()">pango_cairo_context_get_resolution</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);
|
81
60
|
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-font-options" title="pango_cairo_context_set_font_options ()">pango_cairo_context_set_font_options</a>
|
82
|
-
(<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="
|
83
|
-
const <a href="/usr/share/gtk-doc/html/cairo/cairo-font-options.html#cairo-font-options-t"><span class="
|
84
|
-
const <a href="/usr/share/gtk-doc/html/cairo/cairo-font-options.html#cairo-font-options-t"><span class="returnvalue">cairo_font_options_t</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-get-font-options" title="pango_cairo_context_get_font_options ()">pango_cairo_context_get_font_options</a>
|
85
|
-
(<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="
|
86
|
-
<span class="returnvalue">void</span> (<a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()">*PangoCairoShapeRendererFunc</a>) (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
87
|
-
<a class="link" href="pango-Text-Attributes.html#PangoAttrShape" title="PangoAttrShape"><span class="
|
88
|
-
<
|
89
|
-
<
|
61
|
+
(<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
62
|
+
<em class="parameter"><code>const <a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-font-options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a> *options</code></em>);
|
63
|
+
const <a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-font-options.html#cairo-font-options-t"><span class="returnvalue">cairo_font_options_t</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-get-font-options" title="pango_cairo_context_get_font_options ()">pango_cairo_context_get_font_options</a>
|
64
|
+
(<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);
|
65
|
+
<span class="returnvalue">void</span> (<a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()">*PangoCairoShapeRendererFunc</a>) (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
66
|
+
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrShape" title="struct PangoAttrShape"><span class="type">PangoAttrShape</span></a> *attr</code></em>,
|
67
|
+
<em class="parameter"><code><span class="type">gboolean</span> do_path</code></em>,
|
68
|
+
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
|
90
69
|
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-shape-renderer" title="pango_cairo_context_set_shape_renderer ()">pango_cairo_context_set_shape_renderer</a>
|
91
|
-
(<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="
|
92
|
-
<a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()"><span class="
|
93
|
-
<
|
94
|
-
<
|
70
|
+
(<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
71
|
+
<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()"><span class="type">PangoCairoShapeRendererFunc</span></a> func</code></em>,
|
72
|
+
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>,
|
73
|
+
<em class="parameter"><code><span class="type">GDestroyNotify</span> dnotify</code></em>);
|
95
74
|
<a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()"><span class="returnvalue">PangoCairoShapeRendererFunc</span></a> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-get-shape-renderer" title="pango_cairo_context_get_shape_renderer ()">pango_cairo_context_get_shape_renderer</a>
|
96
|
-
(<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="
|
97
|
-
<
|
98
|
-
<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-context" title="pango_cairo_create_context ()">pango_cairo_create_context</a> (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
99
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-context" title="pango_cairo_update_context ()">pango_cairo_update_context</a> (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
100
|
-
<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="
|
101
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-layout" title="pango_cairo_create_layout ()">pango_cairo_create_layout</a> (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
102
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-layout" title="pango_cairo_update_layout ()">pango_cairo_update_layout</a> (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
103
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
104
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-glyph-string" title="pango_cairo_show_glyph_string ()">pango_cairo_show_glyph_string</a> (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
105
|
-
<a class="link" href="pango-Fonts.html#PangoFont"><span class="
|
106
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoGlyphString" title="PangoGlyphString"><span class="
|
107
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-glyph-item" title="pango_cairo_show_glyph_item ()">pango_cairo_show_glyph_item</a> (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
108
|
-
const <span class="
|
109
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem" title="PangoGlyphItem"><span class="
|
110
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-layout-line" title="pango_cairo_show_layout_line ()">pango_cairo_show_layout_line</a> (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
111
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="
|
112
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-layout" title="pango_cairo_show_layout ()">pango_cairo_show_layout</a> (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
113
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
114
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-error-underline" title="pango_cairo_show_error_underline ()">pango_cairo_show_error_underline</a> (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
115
|
-
<span class="
|
116
|
-
<span class="
|
117
|
-
<span class="
|
118
|
-
<span class="
|
119
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-glyph-string-path" title="pango_cairo_glyph_string_path ()">pango_cairo_glyph_string_path</a> (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
120
|
-
<a class="link" href="pango-Fonts.html#PangoFont"><span class="
|
121
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoGlyphString" title="PangoGlyphString"><span class="
|
122
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-layout-line-path" title="pango_cairo_layout_line_path ()">pango_cairo_layout_line_path</a> (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
123
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="
|
124
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-layout-path" title="pango_cairo_layout_path ()">pango_cairo_layout_path</a> (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
125
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
126
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-error-underline-path" title="pango_cairo_error_underline_path ()">pango_cairo_error_underline_path</a> (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
127
|
-
<span class="
|
128
|
-
<span class="
|
129
|
-
<span class="
|
130
|
-
<span class="
|
75
|
+
(<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><span class="type">gpointer</span> *data</code></em>);
|
77
|
+
<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-context" title="pango_cairo_create_context ()">pango_cairo_create_context</a> (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>);
|
78
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-context" title="pango_cairo_update_context ()">pango_cairo_update_context</a> (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
79
|
+
<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);
|
80
|
+
<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-layout" title="pango_cairo_create_layout ()">pango_cairo_create_layout</a> (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>);
|
81
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-layout" title="pango_cairo_update_layout ()">pango_cairo_update_layout</a> (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
82
|
+
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
83
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-glyph-string" title="pango_cairo_show_glyph_string ()">pango_cairo_show_glyph_string</a> (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
84
|
+
<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
|
85
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString" title="struct PangoGlyphString"><span class="type">PangoGlyphString</span></a> *glyphs</code></em>);
|
86
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-glyph-item" title="pango_cairo_show_glyph_item ()">pango_cairo_show_glyph_item</a> (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
87
|
+
<em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
|
88
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem" title="struct PangoGlyphItem"><span class="type">PangoGlyphItem</span></a> *glyph_item</code></em>);
|
89
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-layout-line" title="pango_cairo_show_layout_line ()">pango_cairo_show_layout_line</a> (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
90
|
+
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>);
|
91
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-layout" title="pango_cairo_show_layout ()">pango_cairo_show_layout</a> (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
92
|
+
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
93
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-show-error-underline" title="pango_cairo_show_error_underline ()">pango_cairo_show_error_underline</a> (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
94
|
+
<em class="parameter"><code><span class="type">double</span> x</code></em>,
|
95
|
+
<em class="parameter"><code><span class="type">double</span> y</code></em>,
|
96
|
+
<em class="parameter"><code><span class="type">double</span> width</code></em>,
|
97
|
+
<em class="parameter"><code><span class="type">double</span> height</code></em>);
|
98
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-glyph-string-path" title="pango_cairo_glyph_string_path ()">pango_cairo_glyph_string_path</a> (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
99
|
+
<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
|
100
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString" title="struct PangoGlyphString"><span class="type">PangoGlyphString</span></a> *glyphs</code></em>);
|
101
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-layout-line-path" title="pango_cairo_layout_line_path ()">pango_cairo_layout_line_path</a> (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
102
|
+
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>);
|
103
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-layout-path" title="pango_cairo_layout_path ()">pango_cairo_layout_path</a> (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
104
|
+
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
105
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-error-underline-path" title="pango_cairo_error_underline_path ()">pango_cairo_error_underline_path</a> (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
106
|
+
<em class="parameter"><code><span class="type">double</span> x</code></em>,
|
107
|
+
<em class="parameter"><code><span class="type">double</span> y</code></em>,
|
108
|
+
<em class="parameter"><code><span class="type">double</span> width</code></em>,
|
109
|
+
<em class="parameter"><code><span class="type">double</span> height</code></em>);
|
131
110
|
</pre>
|
132
111
|
</div>
|
133
|
-
<div class="refsect1"
|
112
|
+
<div class="refsect1">
|
134
113
|
<a name="pango-Cairo-Rendering.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
135
114
|
<pre class="synopsis">
|
136
115
|
GInterface
|
@@ -141,7 +120,7 @@ const <a href="/usr/share/gtk-doc/html/cairo/cairo-font-options.html#cairo-font-
|
|
141
120
|
+----PangoCairoFontMap
|
142
121
|
</pre>
|
143
122
|
</div>
|
144
|
-
<div class="refsect1"
|
123
|
+
<div class="refsect1">
|
145
124
|
<a name="pango-Cairo-Rendering.prerequisites"></a><h2>Prerequisites</h2>
|
146
125
|
<p>
|
147
126
|
PangoCairoFont requires
|
@@ -150,7 +129,7 @@ PangoCairoFont requires
|
|
150
129
|
PangoCairoFontMap requires
|
151
130
|
<a class="link" href="pango-Fonts.html#PangoFontMap">PangoFontMap</a>.</p>
|
152
131
|
</div>
|
153
|
-
<div class="refsect1"
|
132
|
+
<div class="refsect1">
|
154
133
|
<a name="pango-Cairo-Rendering.description"></a><h2>Description</h2>
|
155
134
|
<p>
|
156
135
|
The <a class="ulink" href="http://cairographics.org" target="_top">Cairo library</a> is a
|
@@ -185,77 +164,153 @@ to the floating point units used in Cairo divide by <a class="link" href="pango-
|
|
185
164
|
</p>
|
186
165
|
<div class="example">
|
187
166
|
<a name="rotated-example"></a><p class="title"><b>Example 1. Using Pango with Cairo</b></p>
|
188
|
-
<div class="example-contents"
|
189
|
-
|
190
|
-
|
191
|
-
|
167
|
+
<div class="example-contents">
|
168
|
+
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
169
|
+
<tbody>
|
170
|
+
<tr>
|
171
|
+
<td class="listing_lines" align="right"><pre>1
|
172
|
+
2
|
173
|
+
3
|
174
|
+
4
|
175
|
+
5
|
176
|
+
6
|
177
|
+
7
|
178
|
+
8
|
179
|
+
9
|
180
|
+
10
|
181
|
+
11
|
182
|
+
12
|
183
|
+
13
|
184
|
+
14
|
185
|
+
15
|
186
|
+
16
|
187
|
+
17
|
188
|
+
18
|
189
|
+
19
|
190
|
+
20
|
191
|
+
21
|
192
|
+
22
|
193
|
+
23
|
194
|
+
24
|
195
|
+
25
|
196
|
+
26
|
197
|
+
27
|
198
|
+
28
|
199
|
+
29
|
200
|
+
30
|
201
|
+
31
|
202
|
+
32
|
203
|
+
33
|
204
|
+
34
|
205
|
+
35
|
206
|
+
36
|
207
|
+
37
|
208
|
+
38
|
209
|
+
39
|
210
|
+
40
|
211
|
+
41
|
212
|
+
42
|
213
|
+
43
|
214
|
+
44
|
215
|
+
45
|
216
|
+
46
|
217
|
+
47
|
218
|
+
48
|
219
|
+
49
|
220
|
+
50
|
221
|
+
51
|
222
|
+
52
|
223
|
+
53
|
224
|
+
54
|
225
|
+
55
|
226
|
+
56
|
227
|
+
57
|
228
|
+
58
|
229
|
+
59
|
230
|
+
60
|
231
|
+
61
|
232
|
+
62
|
233
|
+
63
|
234
|
+
64
|
235
|
+
65
|
236
|
+
66
|
237
|
+
67
|
238
|
+
68
|
239
|
+
69</pre></td>
|
240
|
+
<td class="listing_code"><pre class="programlisting"><span class="preproc">#include </span><span class="number"><math.h></span>
|
241
|
+
<span class="preproc">#include </span><span class="number"><pango/pangocairo.h></span>
|
242
|
+
<span class="type">static</span> <span class="type">void</span>
|
192
243
|
draw_text (cairo_t *cr)
|
193
244
|
{
|
194
|
-
|
195
|
-
|
196
|
-
|
245
|
+
<span class="preproc">#define RADIUS </span><span class="number">150</span>
|
246
|
+
<span class="preproc">#define N_WORDS </span><span class="number">10</span>
|
247
|
+
<span class="preproc">#define FONT </span><span class="number">"Sans Bold 27"</span>
|
197
248
|
PangoLayout *layout;
|
198
249
|
PangoFontDescription *desc;
|
199
|
-
int i;
|
200
|
-
|
201
|
-
|
250
|
+
<span class="type">int</span> i;
|
251
|
+
<span class="comment">/*</span><span class="comment"> Center coordinates on the middle of the region we are drawing</span>
|
252
|
+
<span class="comment"> </span><span class="comment">*/</span>
|
202
253
|
cairo_translate (cr, RADIUS, RADIUS);
|
203
|
-
|
254
|
+
<span class="comment">/*</span><span class="comment"> Create a PangoLayout, set the font and text </span><span class="comment">*/</span>
|
204
255
|
layout = pango_cairo_create_layout (cr);
|
205
|
-
pango_layout_set_text (layout, "Text"
|
256
|
+
pango_layout_set_text (layout, <span class="number">"Text"</span>, -<span class="number">1</span>);
|
206
257
|
desc = pango_font_description_from_string (FONT);
|
207
258
|
pango_layout_set_font_description (layout, desc);
|
208
259
|
pango_font_description_free (desc);
|
209
|
-
|
210
|
-
for (i = 0
|
260
|
+
<span class="comment">/*</span><span class="comment"> Draw the layout N_WORDS times in a circle </span><span class="comment">*/</span>
|
261
|
+
<span class="keyword">for</span> (i = <span class="number">0</span>; i < N_WORDS; i++)
|
211
262
|
{
|
212
|
-
int width, height;
|
213
|
-
double angle = (360
|
214
|
-
double red;
|
263
|
+
<span class="type">int</span> width, height;
|
264
|
+
<span class="type">double</span> angle = (<span class="number">360.</span> * i) / N_WORDS;
|
265
|
+
<span class="type">double</span> red;
|
215
266
|
cairo_save (cr);
|
216
|
-
|
217
|
-
red = (1 + cos ((angle - 60) * G_PI / 180
|
218
|
-
cairo_set_source_rgb (cr, red, 0
|
219
|
-
cairo_rotate (cr, angle * G_PI / 180
|
220
|
-
|
267
|
+
<span class="comment">/*</span><span class="comment"> Gradient from red at angle == 60 to blue at angle == 240 </span><span class="comment">*/</span>
|
268
|
+
red = (<span class="number">1</span> + cos ((angle - <span class="number">60</span>) * G_PI / <span class="number">180.</span>)) / <span class="number">2</span>;
|
269
|
+
cairo_set_source_rgb (cr, red, <span class="number">0</span>, <span class="number">1.0</span> - red);
|
270
|
+
cairo_rotate (cr, angle * G_PI / <span class="number">180.</span>);
|
271
|
+
<span class="comment">/*</span><span class="comment"> Inform Pango to re-layout the text with the new transformation </span><span class="comment">*/</span>
|
221
272
|
pango_cairo_update_layout (cr, layout);
|
222
273
|
pango_layout_get_size (layout, &width, &height);
|
223
|
-
cairo_move_to (cr, - ((double)width / PANGO_SCALE) / 2
|
274
|
+
cairo_move_to (cr, - ((<span class="type">double</span>)width / PANGO_SCALE) / <span class="number">2</span>, - RADIUS);
|
224
275
|
pango_cairo_show_layout (cr, layout);
|
225
276
|
cairo_restore (cr);
|
226
277
|
}
|
227
|
-
|
278
|
+
<span class="comment">/*</span><span class="comment"> free the layout object </span><span class="comment">*/</span>
|
228
279
|
g_object_unref (layout);
|
229
280
|
}
|
230
|
-
int main (int argc, char **argv)
|
281
|
+
<span class="type">int</span> main (<span class="type">int</span> argc, <span class="type">char</span> **argv)
|
231
282
|
{
|
232
283
|
cairo_t *cr;
|
233
|
-
char *filename;
|
284
|
+
<span class="type">char</span> *filename;
|
234
285
|
cairo_status_t status;
|
235
286
|
cairo_surface_t *surface;
|
236
|
-
if (argc != 2)
|
287
|
+
<span class="keyword">if</span> (argc != <span class="number">2</span>)
|
237
288
|
{
|
238
|
-
g_printerr ("Usage: cairosimple OUTPUT_FILENAME
|
239
|
-
return 1
|
289
|
+
g_printerr (<span class="number">"Usage: cairosimple OUTPUT_FILENAME</span><span class="symbol">\n</span><span class="number">"</span>);
|
290
|
+
<span class="keyword">return</span> <span class="number">1</span>;
|
240
291
|
}
|
241
|
-
filename = argv[1];
|
292
|
+
filename = argv[<span class="number">1</span>];
|
242
293
|
surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
|
243
|
-
|
294
|
+
<span class="number">2</span> * RADIUS, <span class="number">2</span> * RADIUS);
|
244
295
|
cr = cairo_create (surface);
|
245
|
-
cairo_set_source_rgb (cr, 1.0
|
296
|
+
cairo_set_source_rgb (cr, <span class="number">1.0</span>, <span class="number">1.0</span>, <span class="number">1.0</span>);
|
246
297
|
cairo_paint (cr);
|
247
298
|
draw_text (cr);
|
248
299
|
cairo_destroy (cr);
|
249
300
|
status = cairo_surface_write_to_png (surface, filename);
|
250
301
|
cairo_surface_destroy (surface);
|
251
|
-
if (status != CAIRO_STATUS_SUCCESS)
|
302
|
+
<span class="keyword">if</span> (status != CAIRO_STATUS_SUCCESS)
|
252
303
|
{
|
253
|
-
g_printerr ("Could not save png to '
|
254
|
-
return 1
|
304
|
+
g_printerr (<span class="number">"Could not save png to '</span><span class="symbol">%s</span><span class="number">'</span><span class="symbol">\n</span><span class="number">"</span>, filename);
|
305
|
+
<span class="keyword">return</span> <span class="number">1</span>;
|
255
306
|
}
|
256
|
-
return 0
|
257
|
-
}
|
258
|
-
</
|
307
|
+
<span class="keyword">return</span> <span class="number">0</span>;
|
308
|
+
}</pre></td>
|
309
|
+
</tr>
|
310
|
+
</tbody>
|
311
|
+
</table>
|
312
|
+
</div>
|
313
|
+
|
259
314
|
</div>
|
260
315
|
<br class="example-break"><div class="figure">
|
261
316
|
<a name="rotated-example-output"></a><p class="title"><b>Figure 2. Output of <a class="xref" href="pango-Cairo-Rendering.html#rotated-example" title="Example 1. Using Pango with Cairo">Example 1, “Using Pango with Cairo”</a></b></p>
|
@@ -263,31 +318,33 @@ int main (int argc, char **argv)
|
|
263
318
|
</div>
|
264
319
|
<br class="figure-break">
|
265
320
|
</div>
|
266
|
-
<div class="refsect1"
|
321
|
+
<div class="refsect1">
|
267
322
|
<a name="pango-Cairo-Rendering.details"></a><h2>Details</h2>
|
268
|
-
<div class="refsect2"
|
323
|
+
<div class="refsect2">
|
269
324
|
<a name="PangoCairoFont-struct"></a><h3>PangoCairoFont</h3>
|
270
325
|
<pre class="programlisting">typedef struct _PangoCairoFont PangoCairoFont;</pre>
|
271
326
|
<p>
|
272
327
|
<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFont"><span class="type">PangoCairoFont</span></a> is an interface exported by fonts for
|
273
328
|
use with Cairo. The actual type of the font will depend
|
274
|
-
on the particular font technology Cairo was compiled to use
|
329
|
+
on the particular font technology Cairo was compiled to use.
|
330
|
+
</p>
|
275
331
|
<p class="since">Since 1.18</p>
|
276
332
|
</div>
|
277
333
|
<hr>
|
278
|
-
<div class="refsect2"
|
334
|
+
<div class="refsect2">
|
279
335
|
<a name="PangoCairoFontMap-struct"></a><h3>PangoCairoFontMap</h3>
|
280
336
|
<pre class="programlisting">typedef struct _PangoCairoFontMap PangoCairoFontMap;</pre>
|
281
337
|
<p>
|
282
338
|
<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> is an interface exported by font maps for
|
283
339
|
use with Cairo. The actual type of the font map will depend
|
284
|
-
on the particular font technology Cairo was compiled to use
|
340
|
+
on the particular font technology Cairo was compiled to use.
|
341
|
+
</p>
|
285
342
|
<p class="since">Since 1.10</p>
|
286
343
|
</div>
|
287
344
|
<hr>
|
288
|
-
<div class="refsect2"
|
345
|
+
<div class="refsect2">
|
289
346
|
<a name="pango-cairo-font-map-get-default"></a><h3>pango_cairo_font_map_get_default ()</h3>
|
290
|
-
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> * pango_cairo_font_map_get_default (void);</pre>
|
347
|
+
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> * pango_cairo_font_map_get_default (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
291
348
|
<p>
|
292
349
|
Gets a default <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> to use with Cairo.
|
293
350
|
</p>
|
@@ -301,7 +358,8 @@ You generally should only use the <a class="link" href="pango-Fonts.html#PangoFo
|
|
301
358
|
The default Cairo fontmap can be changed by using
|
302
359
|
<a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-set-default" title="pango_cairo_font_map_set_default ()"><code class="function">pango_cairo_font_map_set_default()</code></a>. This can be used to
|
303
360
|
change the Cairo font backend that the default fontmap
|
304
|
-
uses for example
|
361
|
+
uses for example.
|
362
|
+
</p>
|
305
363
|
<div class="variablelist"><table border="0">
|
306
364
|
<col align="left" valign="top">
|
307
365
|
<tbody><tr>
|
@@ -315,9 +373,9 @@ uses for example.</p>
|
|
315
373
|
<p class="since">Since 1.10</p>
|
316
374
|
</div>
|
317
375
|
<hr>
|
318
|
-
<div class="refsect2"
|
376
|
+
<div class="refsect2">
|
319
377
|
<a name="pango-cairo-font-map-set-default"></a><h3>pango_cairo_font_map_set_default ()</h3>
|
320
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_font_map_set_default (<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="
|
378
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_font_map_set_default (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);</pre>
|
321
379
|
<p>
|
322
380
|
Sets a default <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> to use with Cairo.
|
323
381
|
</p>
|
@@ -327,23 +385,24 @@ default fontmap uses for example. The old default font map
|
|
327
385
|
is unreffed and the new font map referenced.
|
328
386
|
</p>
|
329
387
|
<p>
|
330
|
-
A value of <a href="/usr/share/gtk-doc/html/
|
388
|
+
A value of <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> for <em class="parameter"><code>fontmap</code></em> will cause the current default
|
331
389
|
font map to be released and a new default font
|
332
|
-
map to be created on demand, using <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new" title="pango_cairo_font_map_new ()"><code class="function">pango_cairo_font_map_new()</code></a
|
390
|
+
map to be created on demand, using <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new" title="pango_cairo_font_map_new ()"><code class="function">pango_cairo_font_map_new()</code></a>.
|
391
|
+
</p>
|
333
392
|
<div class="variablelist"><table border="0">
|
334
393
|
<col align="left" valign="top">
|
335
394
|
<tbody><tr>
|
336
395
|
<td><p><span class="term"><em class="parameter"><code>fontmap</code></em> :</span></p></td>
|
337
|
-
<td>
|
396
|
+
<td>The new default font map, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
338
397
|
</td>
|
339
398
|
</tr></tbody>
|
340
399
|
</table></div>
|
341
400
|
<p class="since">Since 1.22</p>
|
342
401
|
</div>
|
343
402
|
<hr>
|
344
|
-
<div class="refsect2"
|
403
|
+
<div class="refsect2">
|
345
404
|
<a name="pango-cairo-font-map-new"></a><h3>pango_cairo_font_map_new ()</h3>
|
346
|
-
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> * pango_cairo_font_map_new (void);</pre>
|
405
|
+
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> * pango_cairo_font_map_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
347
406
|
<p>
|
348
407
|
Creates a new <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> object; a fontmap is used
|
349
408
|
to cache information about available fonts, and holds
|
@@ -355,13 +414,14 @@ instead.
|
|
355
414
|
Note that the type of the returned object will depend
|
356
415
|
on the particular font backend Cairo was compiled to use;
|
357
416
|
You generally should only use the <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> and
|
358
|
-
<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> interfaces on the returned object
|
417
|
+
<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> interfaces on the returned object.
|
418
|
+
</p>
|
359
419
|
<div class="variablelist"><table border="0">
|
360
420
|
<col align="left" valign="top">
|
361
421
|
<tbody><tr>
|
362
422
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
363
423
|
<td> the newly allocated <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a>, which should
|
364
|
-
be freed with <
|
424
|
+
be freed with <code class="function">g_object_unref()</code>.
|
365
425
|
|
366
426
|
</td>
|
367
427
|
</tr></tbody>
|
@@ -369,10 +429,10 @@ You generally should only use the <a class="link" href="pango-Fonts.html#PangoFo
|
|
369
429
|
<p class="since">Since 1.10</p>
|
370
430
|
</div>
|
371
431
|
<hr>
|
372
|
-
<div class="refsect2"
|
432
|
+
<div class="refsect2">
|
373
433
|
<a name="pango-cairo-font-map-new-for-font-type"></a><h3>pango_cairo_font_map_new_for_font_type ()</h3>
|
374
434
|
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> * pango_cairo_font_map_new_for_font_type
|
375
|
-
(<a href="/usr/share/gtk-doc/html/cairo/cairo-font-face.html#cairo-font-type-t"><span class="
|
435
|
+
(<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-font-face.html#cairo-font-type-t"><span class="type">cairo_font_type_t</span></a> fonttype</code></em>);</pre>
|
376
436
|
<p>
|
377
437
|
Creates a new <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> object of the type suitable
|
378
438
|
to be used with cairo font backend of type <em class="parameter"><code>fonttype</code></em>.
|
@@ -380,20 +440,21 @@ to be used with cairo font backend of type <em class="parameter"><code>fonttype<
|
|
380
440
|
<p>
|
381
441
|
In most cases one should simply use @<a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new" title="pango_cairo_font_map_new ()"><code class="function">pango_cairo_font_map_new()</code></a>,
|
382
442
|
or in fact in most of those cases, just use
|
383
|
-
@<a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-get-default" title="pango_cairo_font_map_get_default ()"><code class="function">pango_cairo_font_map_get_default()</code></a
|
443
|
+
@<a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-get-default" title="pango_cairo_font_map_get_default ()"><code class="function">pango_cairo_font_map_get_default()</code></a>.
|
444
|
+
</p>
|
384
445
|
<div class="variablelist"><table border="0">
|
385
446
|
<col align="left" valign="top">
|
386
447
|
<tbody>
|
387
448
|
<tr>
|
388
449
|
<td><p><span class="term"><em class="parameter"><code>fonttype</code></em> :</span></p></td>
|
389
|
-
<td>
|
450
|
+
<td>desired <a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-font-face.html#cairo-font-type-t"><span class="type">cairo_font_type_t</span></a>
|
390
451
|
</td>
|
391
452
|
</tr>
|
392
453
|
<tr>
|
393
454
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
394
455
|
<td> the newly allocated <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> of suitable type
|
395
|
-
which should be freed with <
|
396
|
-
or <a href="/usr/share/gtk-doc/html/
|
456
|
+
which should be freed with <code class="function">g_object_unref()</code>,
|
457
|
+
or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if the requested cairo font backend is
|
397
458
|
not supported / compiled in.
|
398
459
|
|
399
460
|
</td>
|
@@ -403,22 +464,23 @@ or in fact in most of those cases, just use
|
|
403
464
|
<p class="since">Since 1.18</p>
|
404
465
|
</div>
|
405
466
|
<hr>
|
406
|
-
<div class="refsect2"
|
467
|
+
<div class="refsect2">
|
407
468
|
<a name="pango-cairo-font-map-get-font-type"></a><h3>pango_cairo_font_map_get_font_type ()</h3>
|
408
|
-
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/cairo/cairo-font-face.html#cairo-font-type-t"><span class="returnvalue">cairo_font_type_t</span></a> pango_cairo_font_map_get_font_type (<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="
|
469
|
+
<pre class="programlisting"><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-font-face.html#cairo-font-type-t"><span class="returnvalue">cairo_font_type_t</span></a> pango_cairo_font_map_get_font_type (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);</pre>
|
409
470
|
<p>
|
410
|
-
Gets the type of Cairo font backend that <em class="parameter"><code>fontmap</code></em> uses
|
471
|
+
Gets the type of Cairo font backend that <em class="parameter"><code>fontmap</code></em> uses.
|
472
|
+
</p>
|
411
473
|
<div class="variablelist"><table border="0">
|
412
474
|
<col align="left" valign="top">
|
413
475
|
<tbody>
|
414
476
|
<tr>
|
415
477
|
<td><p><span class="term"><em class="parameter"><code>fontmap</code></em> :</span></p></td>
|
416
|
-
<td>
|
478
|
+
<td>a <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a>
|
417
479
|
</td>
|
418
480
|
</tr>
|
419
481
|
<tr>
|
420
482
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
421
|
-
<td> the <a href="/usr/share/gtk-doc/html/cairo/cairo-font-face.html#cairo-font-type-t"><span class="type">cairo_font_type_t</span></a> cairo font backend type
|
483
|
+
<td> the <a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-font-face.html#cairo-font-type-t"><span class="type">cairo_font_type_t</span></a> cairo font backend type
|
422
484
|
|
423
485
|
</td>
|
424
486
|
</tr>
|
@@ -427,26 +489,27 @@ Gets the type of Cairo font backend that <em class="parameter"><code>fontmap</co
|
|
427
489
|
<p class="since">Since 1.18</p>
|
428
490
|
</div>
|
429
491
|
<hr>
|
430
|
-
<div class="refsect2"
|
492
|
+
<div class="refsect2">
|
431
493
|
<a name="pango-cairo-font-map-set-resolution"></a><h3>pango_cairo_font_map_set_resolution ()</h3>
|
432
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_font_map_set_resolution (<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="
|
433
|
-
<span class="
|
494
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_font_map_set_resolution (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>,
|
495
|
+
<em class="parameter"><code><span class="type">double</span> dpi</code></em>);</pre>
|
434
496
|
<p>
|
435
497
|
Sets the resolution for the fontmap. This is a scale factor between
|
436
498
|
points specified in a <a class="link" href="pango-Fonts.html#PangoFontDescription" title="PangoFontDescription"><span class="type">PangoFontDescription</span></a> and Cairo units. The
|
437
499
|
default value is 96, meaning that a 10 point font will be 13
|
438
|
-
units high. (10 * 96. / 72. = 13.3)
|
500
|
+
units high. (10 * 96. / 72. = 13.3).
|
501
|
+
</p>
|
439
502
|
<div class="variablelist"><table border="0">
|
440
503
|
<col align="left" valign="top">
|
441
504
|
<tbody>
|
442
505
|
<tr>
|
443
506
|
<td><p><span class="term"><em class="parameter"><code>fontmap</code></em> :</span></p></td>
|
444
|
-
<td>
|
507
|
+
<td>a <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a>
|
445
508
|
</td>
|
446
509
|
</tr>
|
447
510
|
<tr>
|
448
511
|
<td><p><span class="term"><em class="parameter"><code>dpi</code></em> :</span></p></td>
|
449
|
-
<td>
|
512
|
+
<td>the resolution in "dots per inch". (Physical inches aren't actually
|
450
513
|
involved; the terminology is conventional.)
|
451
514
|
</td>
|
452
515
|
</tr>
|
@@ -455,17 +518,18 @@ units high. (10 * 96. / 72. = 13.3).</p>
|
|
455
518
|
<p class="since">Since 1.10</p>
|
456
519
|
</div>
|
457
520
|
<hr>
|
458
|
-
<div class="refsect2"
|
521
|
+
<div class="refsect2">
|
459
522
|
<a name="pango-cairo-font-map-get-resolution"></a><h3>pango_cairo_font_map_get_resolution ()</h3>
|
460
|
-
<pre class="programlisting"><span class="returnvalue">double</span> pango_cairo_font_map_get_resolution (<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="
|
523
|
+
<pre class="programlisting"><span class="returnvalue">double</span> pango_cairo_font_map_get_resolution (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);</pre>
|
461
524
|
<p>
|
462
|
-
Gets the resolution for the fontmap. See <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-set-resolution" title="pango_cairo_font_map_set_resolution ()"><code class="function">pango_cairo_font_map_set_resolution()</code></a
|
525
|
+
Gets the resolution for the fontmap. See <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-set-resolution" title="pango_cairo_font_map_set_resolution ()"><code class="function">pango_cairo_font_map_set_resolution()</code></a>
|
526
|
+
</p>
|
463
527
|
<div class="variablelist"><table border="0">
|
464
528
|
<col align="left" valign="top">
|
465
529
|
<tbody>
|
466
530
|
<tr>
|
467
531
|
<td><p><span class="term"><em class="parameter"><code>fontmap</code></em> :</span></p></td>
|
468
|
-
<td>
|
532
|
+
<td>a <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a>
|
469
533
|
</td>
|
470
534
|
</tr>
|
471
535
|
<tr>
|
@@ -479,26 +543,27 @@ Gets the resolution for the fontmap. See <a class="link" href="pango-Cairo-Rende
|
|
479
543
|
<p class="since">Since 1.10</p>
|
480
544
|
</div>
|
481
545
|
<hr>
|
482
|
-
<div class="refsect2"
|
546
|
+
<div class="refsect2">
|
483
547
|
<a name="pango-cairo-font-map-create-context"></a><h3>pango_cairo_font_map_create_context ()</h3>
|
484
|
-
<pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * pango_cairo_font_map_create_context (<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="
|
485
|
-
<div class="warning"
|
548
|
+
<pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * pango_cairo_font_map_create_context (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> *fontmap</code></em>);</pre>
|
549
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
486
550
|
<h3 class="title">Warning</h3>
|
487
551
|
<p><code class="literal">pango_cairo_font_map_create_context</code> has been deprecated since version 1.22 and should not be used in newly-written code. Use <a class="link" href="pango-Fonts.html#pango-font-map-create-context" title="pango_font_map_create_context ()"><code class="function">pango_font_map_create_context()</code></a> instead.</p>
|
488
552
|
</div>
|
489
553
|
<p>
|
490
|
-
Create a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> for the given fontmap
|
554
|
+
Create a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> for the given fontmap.
|
555
|
+
</p>
|
491
556
|
<div class="variablelist"><table border="0">
|
492
557
|
<col align="left" valign="top">
|
493
558
|
<tbody>
|
494
559
|
<tr>
|
495
560
|
<td><p><span class="term"><em class="parameter"><code>fontmap</code></em> :</span></p></td>
|
496
|
-
<td>
|
561
|
+
<td>a <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a>
|
497
562
|
</td>
|
498
563
|
</tr>
|
499
564
|
<tr>
|
500
565
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
501
|
-
<td> the newly created context; free with <
|
566
|
+
<td> the newly created context; free with <code class="function">g_object_unref()</code>.
|
502
567
|
|
503
568
|
</td>
|
504
569
|
</tr>
|
@@ -507,25 +572,26 @@ Create a <a class="link" href="pango-Text-Processing.html#PangoContext"><span cl
|
|
507
572
|
<p class="since">Since 1.10</p>
|
508
573
|
</div>
|
509
574
|
<hr>
|
510
|
-
<div class="refsect2"
|
575
|
+
<div class="refsect2">
|
511
576
|
<a name="pango-cairo-font-get-scaled-font"></a><h3>pango_cairo_font_get_scaled_font ()</h3>
|
512
|
-
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/cairo/cairo-scaled-font.html#cairo-scaled-font-t"><span class="returnvalue">cairo_scaled_font_t</span></a> * pango_cairo_font_get_scaled_font (<a class="link" href="pango-Cairo-Rendering.html#PangoCairoFont"><span class="
|
577
|
+
<pre class="programlisting"><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-scaled-font.html#cairo-scaled-font-t"><span class="returnvalue">cairo_scaled_font_t</span></a> * pango_cairo_font_get_scaled_font (<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoFont"><span class="type">PangoCairoFont</span></a> *font</code></em>);</pre>
|
513
578
|
<p>
|
514
|
-
Gets the <a href="/usr/share/gtk-doc/html/cairo/cairo-scaled-font.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a> used by <em class="parameter"><code>font</code></em>.
|
579
|
+
Gets the <a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-scaled-font.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a> used by <em class="parameter"><code>font</code></em>.
|
515
580
|
The scaled font can be referenced and kept using
|
516
|
-
<a href="/usr/share/gtk-doc/html/cairo/cairo-scaled-font.html#cairo-scaled-font-reference"><code class="function">cairo_scaled_font_reference()</code></a
|
581
|
+
<a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-scaled-font.html#cairo-scaled-font-reference"><code class="function">cairo_scaled_font_reference()</code></a>.
|
582
|
+
</p>
|
517
583
|
<div class="variablelist"><table border="0">
|
518
584
|
<col align="left" valign="top">
|
519
585
|
<tbody>
|
520
586
|
<tr>
|
521
587
|
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
|
522
|
-
<td>
|
588
|
+
<td>a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> from a <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a>
|
523
589
|
</td>
|
524
590
|
</tr>
|
525
591
|
<tr>
|
526
592
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
527
|
-
<td> the <a href="/usr/share/gtk-doc/html/cairo/cairo-scaled-font.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a> used by <em class="parameter"><code>font</code></em>,
|
528
|
-
or <a href="/usr/share/gtk-doc/html/
|
593
|
+
<td> the <a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-scaled-font.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a> used by <em class="parameter"><code>font</code></em>,
|
594
|
+
or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>font</code></em> is <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.
|
529
595
|
|
530
596
|
</td>
|
531
597
|
</tr>
|
@@ -534,26 +600,27 @@ The scaled font can be referenced and kept using
|
|
534
600
|
<p class="since">Since 1.18</p>
|
535
601
|
</div>
|
536
602
|
<hr>
|
537
|
-
<div class="refsect2"
|
603
|
+
<div class="refsect2">
|
538
604
|
<a name="pango-cairo-context-set-resolution"></a><h3>pango_cairo_context_set_resolution ()</h3>
|
539
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_context_set_resolution (<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="
|
540
|
-
<span class="
|
605
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_context_set_resolution (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
606
|
+
<em class="parameter"><code><span class="type">double</span> dpi</code></em>);</pre>
|
541
607
|
<p>
|
542
608
|
Sets the resolution for the context. This is a scale factor between
|
543
609
|
points specified in a <a class="link" href="pango-Fonts.html#PangoFontDescription" title="PangoFontDescription"><span class="type">PangoFontDescription</span></a> and Cairo units. The
|
544
610
|
default value is 96, meaning that a 10 point font will be 13
|
545
|
-
units high. (10 * 96. / 72. = 13.3)
|
611
|
+
units high. (10 * 96. / 72. = 13.3).
|
612
|
+
</p>
|
546
613
|
<div class="variablelist"><table border="0">
|
547
614
|
<col align="left" valign="top">
|
548
615
|
<tbody>
|
549
616
|
<tr>
|
550
617
|
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
|
551
|
-
<td>
|
618
|
+
<td>a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>, from a pangocairo font map
|
552
619
|
</td>
|
553
620
|
</tr>
|
554
621
|
<tr>
|
555
622
|
<td><p><span class="term"><em class="parameter"><code>dpi</code></em> :</span></p></td>
|
556
|
-
<td>
|
623
|
+
<td>the resolution in "dots per inch". (Physical inches aren't actually
|
557
624
|
involved; the terminology is conventional.) A 0 or negative value
|
558
625
|
means to use the resolution from the font map.
|
559
626
|
</td>
|
@@ -563,17 +630,18 @@ units high. (10 * 96. / 72. = 13.3).</p>
|
|
563
630
|
<p class="since">Since 1.10</p>
|
564
631
|
</div>
|
565
632
|
<hr>
|
566
|
-
<div class="refsect2"
|
633
|
+
<div class="refsect2">
|
567
634
|
<a name="pango-cairo-context-get-resolution"></a><h3>pango_cairo_context_get_resolution ()</h3>
|
568
|
-
<pre class="programlisting"><span class="returnvalue">double</span> pango_cairo_context_get_resolution (<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="
|
635
|
+
<pre class="programlisting"><span class="returnvalue">double</span> pango_cairo_context_get_resolution (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);</pre>
|
569
636
|
<p>
|
570
|
-
Gets the resolution for the context. See <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-resolution" title="pango_cairo_context_set_resolution ()"><code class="function">pango_cairo_context_set_resolution()</code></a
|
637
|
+
Gets the resolution for the context. See <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-resolution" title="pango_cairo_context_set_resolution ()"><code class="function">pango_cairo_context_set_resolution()</code></a>
|
638
|
+
</p>
|
571
639
|
<div class="variablelist"><table border="0">
|
572
640
|
<col align="left" valign="top">
|
573
641
|
<tbody>
|
574
642
|
<tr>
|
575
643
|
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
|
576
|
-
<td>
|
644
|
+
<td>a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>, from a pangocairo font map
|
577
645
|
</td>
|
578
646
|
</tr>
|
579
647
|
<tr>
|
@@ -588,26 +656,27 @@ Gets the resolution for the context. See <a class="link" href="pango-Cairo-Rende
|
|
588
656
|
<p class="since">Since 1.10</p>
|
589
657
|
</div>
|
590
658
|
<hr>
|
591
|
-
<div class="refsect2"
|
659
|
+
<div class="refsect2">
|
592
660
|
<a name="pango-cairo-context-set-font-options"></a><h3>pango_cairo_context_set_font_options ()</h3>
|
593
661
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_context_set_font_options
|
594
|
-
(<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="
|
595
|
-
const <a href="/usr/share/gtk-doc/html/cairo/cairo-font-options.html#cairo-font-options-t"><span class="
|
662
|
+
(<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
663
|
+
<em class="parameter"><code>const <a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-font-options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a> *options</code></em>);</pre>
|
596
664
|
<p>
|
597
665
|
Sets the font options used when rendering text with this context.
|
598
666
|
These options override any options that <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-context" title="pango_cairo_update_context ()"><code class="function">pango_cairo_update_context()</code></a>
|
599
|
-
derives from the target surface
|
667
|
+
derives from the target surface.
|
668
|
+
</p>
|
600
669
|
<div class="variablelist"><table border="0">
|
601
670
|
<col align="left" valign="top">
|
602
671
|
<tbody>
|
603
672
|
<tr>
|
604
673
|
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
|
605
|
-
<td>
|
674
|
+
<td>a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>, from a pangocairo font map
|
606
675
|
</td>
|
607
676
|
</tr>
|
608
677
|
<tr>
|
609
678
|
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
|
610
|
-
<td>
|
679
|
+
<td>a <a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-font-options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> to unset any previously set
|
611
680
|
options. A copy is made.
|
612
681
|
</td>
|
613
682
|
</tr>
|
@@ -616,25 +685,26 @@ derives from the target surface.</p>
|
|
616
685
|
<p class="since">Since 1.10</p>
|
617
686
|
</div>
|
618
687
|
<hr>
|
619
|
-
<div class="refsect2"
|
688
|
+
<div class="refsect2">
|
620
689
|
<a name="pango-cairo-context-get-font-options"></a><h3>pango_cairo_context_get_font_options ()</h3>
|
621
|
-
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/cairo/cairo-font-options.html#cairo-font-options-t"><span class="returnvalue">cairo_font_options_t</span></a> * pango_cairo_context_get_font_options
|
622
|
-
(<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="
|
690
|
+
<pre class="programlisting">const <a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-font-options.html#cairo-font-options-t"><span class="returnvalue">cairo_font_options_t</span></a> * pango_cairo_context_get_font_options
|
691
|
+
(<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);</pre>
|
623
692
|
<p>
|
624
693
|
Retrieves any font rendering options previously set with
|
625
694
|
<code class="function">pango_cairo_font_map_set_font_options()</code>. This function does not report options
|
626
|
-
that are derived from the target surface by <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-context" title="pango_cairo_update_context ()"><code class="function">pango_cairo_update_context()</code></a
|
695
|
+
that are derived from the target surface by <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-context" title="pango_cairo_update_context ()"><code class="function">pango_cairo_update_context()</code></a>
|
696
|
+
</p>
|
627
697
|
<div class="variablelist"><table border="0">
|
628
698
|
<col align="left" valign="top">
|
629
699
|
<tbody>
|
630
700
|
<tr>
|
631
701
|
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
|
632
|
-
<td>
|
702
|
+
<td>a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>, from a pangocairo font map
|
633
703
|
</td>
|
634
704
|
</tr>
|
635
705
|
<tr>
|
636
706
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
637
|
-
<td> the font options previously set on the context, or <a href="/usr/share/gtk-doc/html/
|
707
|
+
<td> the font options previously set on the context, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
638
708
|
if no options have been set. This value is owned by the context
|
639
709
|
and must not be modified or freed.
|
640
710
|
|
@@ -645,12 +715,12 @@ that are derived from the target surface by <a class="link" href="pango-Cairo-Re
|
|
645
715
|
<p class="since">Since 1.10</p>
|
646
716
|
</div>
|
647
717
|
<hr>
|
648
|
-
<div class="refsect2"
|
718
|
+
<div class="refsect2">
|
649
719
|
<a name="PangoCairoShapeRendererFunc"></a><h3>PangoCairoShapeRendererFunc ()</h3>
|
650
|
-
<pre class="programlisting"><span class="returnvalue">void</span> (*PangoCairoShapeRendererFunc) (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
651
|
-
<a class="link" href="pango-Text-Attributes.html#PangoAttrShape" title="PangoAttrShape"><span class="
|
652
|
-
<
|
653
|
-
<
|
720
|
+
<pre class="programlisting"><span class="returnvalue">void</span> (*PangoCairoShapeRendererFunc) (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
721
|
+
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrShape" title="struct PangoAttrShape"><span class="type">PangoAttrShape</span></a> *attr</code></em>,
|
722
|
+
<em class="parameter"><code><span class="type">gboolean</span> do_path</code></em>,
|
723
|
+
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
|
654
724
|
<p>
|
655
725
|
Function type for rendering attributes of type <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SHAPE:CAPS"><code class="literal">PANGO_ATTR_SHAPE</code></a>
|
656
726
|
with Pango's Cairo renderer.
|
@@ -673,7 +743,7 @@ with Pango's Cairo renderer.
|
|
673
743
|
<td><p><span class="term"><em class="parameter"><code>do_path</code></em> :</span></p></td>
|
674
744
|
<td>whether only the shape path should be appended to current
|
675
745
|
path of <em class="parameter"><code>cr</code></em> and no filling/stroking done. This will be set
|
676
|
-
to <
|
746
|
+
to <code class="literal">TRUE</code> when called from <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-layout-path" title="pango_cairo_layout_path ()"><code class="function">pango_cairo_layout_path()</code></a> and
|
677
747
|
<a class="link" href="pango-Cairo-Rendering.html#pango-cairo-layout-line-path" title="pango_cairo_layout_line_path ()"><code class="function">pango_cairo_layout_line_path()</code></a> rendering functions.
|
678
748
|
</td>
|
679
749
|
</tr>
|
@@ -686,40 +756,41 @@ with Pango's Cairo renderer.
|
|
686
756
|
</table></div>
|
687
757
|
</div>
|
688
758
|
<hr>
|
689
|
-
<div class="refsect2"
|
759
|
+
<div class="refsect2">
|
690
760
|
<a name="pango-cairo-context-set-shape-renderer"></a><h3>pango_cairo_context_set_shape_renderer ()</h3>
|
691
761
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_context_set_shape_renderer
|
692
|
-
(<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="
|
693
|
-
<a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()"><span class="
|
694
|
-
<
|
695
|
-
<
|
762
|
+
(<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
763
|
+
<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()"><span class="type">PangoCairoShapeRendererFunc</span></a> func</code></em>,
|
764
|
+
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>,
|
765
|
+
<em class="parameter"><code><span class="type">GDestroyNotify</span> dnotify</code></em>);</pre>
|
696
766
|
<p>
|
697
767
|
Sets callback function for context to use for rendering attributes
|
698
768
|
of type <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SHAPE:CAPS"><code class="literal">PANGO_ATTR_SHAPE</code></a>. See <a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()"><span class="type">PangoCairoShapeRendererFunc</span></a> for
|
699
|
-
details
|
769
|
+
details.
|
770
|
+
</p>
|
700
771
|
<div class="variablelist"><table border="0">
|
701
772
|
<col align="left" valign="top">
|
702
773
|
<tbody>
|
703
774
|
<tr>
|
704
775
|
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
|
705
|
-
<td>
|
776
|
+
<td>a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>, from a pangocairo font map
|
706
777
|
</td>
|
707
778
|
</tr>
|
708
779
|
<tr>
|
709
780
|
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
|
710
|
-
<td>
|
711
|
-
<a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SHAPE:CAPS"><code class="literal">PANGO_ATTR_SHAPE</code></a>, or <a href="/usr/share/gtk-doc/html/
|
781
|
+
<td>Callback function for rendering attributes of type
|
782
|
+
<a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SHAPE:CAPS"><code class="literal">PANGO_ATTR_SHAPE</code></a>, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> to disable shape rendering.
|
712
783
|
</td>
|
713
784
|
</tr>
|
714
785
|
<tr>
|
715
786
|
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
716
|
-
<td>
|
787
|
+
<td>User data that will be passed to <em class="parameter"><code>func</code></em>.
|
717
788
|
</td>
|
718
789
|
</tr>
|
719
790
|
<tr>
|
720
791
|
<td><p><span class="term"><em class="parameter"><code>dnotify</code></em> :</span></p></td>
|
721
|
-
<td>
|
722
|
-
context is freed to release <em class="parameter"><code>data</code></em>, or <a href="/usr/share/gtk-doc/html/
|
792
|
+
<td>Callback that will be called when the
|
793
|
+
context is freed to release <em class="parameter"><code>data</code></em>, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.
|
723
794
|
</td>
|
724
795
|
</tr>
|
725
796
|
</tbody>
|
@@ -727,11 +798,11 @@ details.</p>
|
|
727
798
|
<p class="since">Since 1.18</p>
|
728
799
|
</div>
|
729
800
|
<hr>
|
730
|
-
<div class="refsect2"
|
801
|
+
<div class="refsect2">
|
731
802
|
<a name="pango-cairo-context-get-shape-renderer"></a><h3>pango_cairo_context_get_shape_renderer ()</h3>
|
732
803
|
<pre class="programlisting"><a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()"><span class="returnvalue">PangoCairoShapeRendererFunc</span></a> pango_cairo_context_get_shape_renderer
|
733
|
-
(<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="
|
734
|
-
<
|
804
|
+
(<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
805
|
+
<em class="parameter"><code><span class="type">gpointer</span> *data</code></em>);</pre>
|
735
806
|
<p>
|
736
807
|
Sets callback function for context to use for rendering attributes
|
737
808
|
of type <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SHAPE:CAPS"><code class="literal">PANGO_ATTR_SHAPE</code></a>. See <a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()"><span class="type">PangoCairoShapeRendererFunc</span></a> for
|
@@ -740,23 +811,24 @@ details.
|
|
740
811
|
<p>
|
741
812
|
Retrieves callback function and associated user data for rendering
|
742
813
|
attributes of type <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SHAPE:CAPS"><code class="literal">PANGO_ATTR_SHAPE</code></a> as set by
|
743
|
-
<a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-shape-renderer" title="pango_cairo_context_set_shape_renderer ()"><code class="function">pango_cairo_context_set_shape_renderer()</code></a>, if any
|
814
|
+
<a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-shape-renderer" title="pango_cairo_context_set_shape_renderer ()"><code class="function">pango_cairo_context_set_shape_renderer()</code></a>, if any.
|
815
|
+
</p>
|
744
816
|
<div class="variablelist"><table border="0">
|
745
817
|
<col align="left" valign="top">
|
746
818
|
<tbody>
|
747
819
|
<tr>
|
748
820
|
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
|
749
|
-
<td>
|
821
|
+
<td>a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>, from a pangocairo font map
|
750
822
|
</td>
|
751
823
|
</tr>
|
752
824
|
<tr>
|
753
825
|
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
754
|
-
<td>
|
826
|
+
<td>Pointer to <span class="type">gpointer</span> to return user data
|
755
827
|
</td>
|
756
828
|
</tr>
|
757
829
|
<tr>
|
758
830
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
759
|
-
<td> the shape rendering callback previously set on the context, or <a href="/usr/share/gtk-doc/html/
|
831
|
+
<td> the shape rendering callback previously set on the context, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
760
832
|
if no shape rendering callback have been set.
|
761
833
|
|
762
834
|
</td>
|
@@ -766,9 +838,9 @@ attributes of type <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-S
|
|
766
838
|
<p class="since">Since 1.18</p>
|
767
839
|
</div>
|
768
840
|
<hr>
|
769
|
-
<div class="refsect2"
|
841
|
+
<div class="refsect2">
|
770
842
|
<a name="pango-cairo-create-context"></a><h3>pango_cairo_create_context ()</h3>
|
771
|
-
<pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * pango_cairo_create_context (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
843
|
+
<pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * pango_cairo_create_context (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
|
772
844
|
<p>
|
773
845
|
Creates a context object set up to match the current transformation
|
774
846
|
and target surface of the Cairo context. This context can then be
|
@@ -778,19 +850,20 @@ used to create a layout using <a class="link" href="pango-Layout-Objects.html#pa
|
|
778
850
|
This function is a convenience function that creates a context using
|
779
851
|
the default font map, then updates it to <em class="parameter"><code>cr</code></em>. If you just need to
|
780
852
|
create a layout for use with <em class="parameter"><code>cr</code></em> and do not need to access <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>
|
781
|
-
directly, you can use <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-layout" title="pango_cairo_create_layout ()"><code class="function">pango_cairo_create_layout()</code></a> instead
|
853
|
+
directly, you can use <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-layout" title="pango_cairo_create_layout ()"><code class="function">pango_cairo_create_layout()</code></a> instead.
|
854
|
+
</p>
|
782
855
|
<div class="variablelist"><table border="0">
|
783
856
|
<col align="left" valign="top">
|
784
857
|
<tbody>
|
785
858
|
<tr>
|
786
859
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
787
|
-
<td>
|
860
|
+
<td>a Cairo context
|
788
861
|
</td>
|
789
862
|
</tr>
|
790
863
|
<tr>
|
791
864
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
792
865
|
<td> the newly created <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>. Free with
|
793
|
-
<
|
866
|
+
<code class="function">g_object_unref()</code>.
|
794
867
|
|
795
868
|
</td>
|
796
869
|
</tr>
|
@@ -799,27 +872,28 @@ directly, you can use <a class="link" href="pango-Cairo-Rendering.html#pango-cai
|
|
799
872
|
<p class="since">Since 1.22</p>
|
800
873
|
</div>
|
801
874
|
<hr>
|
802
|
-
<div class="refsect2"
|
875
|
+
<div class="refsect2">
|
803
876
|
<a name="pango-cairo-update-context"></a><h3>pango_cairo_update_context ()</h3>
|
804
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_update_context (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
805
|
-
<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="
|
877
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_update_context (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
878
|
+
<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);</pre>
|
806
879
|
<p>
|
807
880
|
Updates a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> previously created for use with Cairo to
|
808
881
|
match the current transformation and target surface of a Cairo
|
809
882
|
context. If any layouts have been created for the context,
|
810
883
|
it's necessary to call <a class="link" href="pango-Layout-Objects.html#pango-layout-context-changed" title="pango_layout_context_changed ()"><code class="function">pango_layout_context_changed()</code></a> on those
|
811
|
-
layouts
|
884
|
+
layouts.
|
885
|
+
</p>
|
812
886
|
<div class="variablelist"><table border="0">
|
813
887
|
<col align="left" valign="top">
|
814
888
|
<tbody>
|
815
889
|
<tr>
|
816
890
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
817
|
-
<td>
|
891
|
+
<td>a Cairo context
|
818
892
|
</td>
|
819
893
|
</tr>
|
820
894
|
<tr>
|
821
895
|
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
|
822
|
-
<td>
|
896
|
+
<td>a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>, from a pangocairo font map
|
823
897
|
</td>
|
824
898
|
</tr>
|
825
899
|
</tbody>
|
@@ -827,9 +901,9 @@ layouts.</p>
|
|
827
901
|
<p class="since">Since 1.10</p>
|
828
902
|
</div>
|
829
903
|
<hr>
|
830
|
-
<div class="refsect2"
|
904
|
+
<div class="refsect2">
|
831
905
|
<a name="pango-cairo-create-layout"></a><h3>pango_cairo_create_layout ()</h3>
|
832
|
-
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * pango_cairo_create_layout (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
906
|
+
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * pango_cairo_create_layout (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
|
833
907
|
<p>
|
834
908
|
Creates a layout object set up to match the current transformation
|
835
909
|
and target surface of the Cairo context. This layout can then be
|
@@ -842,19 +916,20 @@ or target surface for <em class="parameter"><code>cr</code></em>, you need to ca
|
|
842
916
|
This function is the most convenient way to use Cairo with Pango,
|
843
917
|
however it is slightly inefficient since it creates a separate
|
844
918
|
<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> object for each layout. This might matter in an
|
845
|
-
application that was laying out large amounts of text
|
919
|
+
application that was laying out large amounts of text.
|
920
|
+
</p>
|
846
921
|
<div class="variablelist"><table border="0">
|
847
922
|
<col align="left" valign="top">
|
848
923
|
<tbody>
|
849
924
|
<tr>
|
850
925
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
851
|
-
<td>
|
926
|
+
<td>a Cairo context
|
852
927
|
</td>
|
853
928
|
</tr>
|
854
929
|
<tr>
|
855
930
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
856
931
|
<td> the newly created <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>. Free with
|
857
|
-
<
|
932
|
+
<code class="function">g_object_unref()</code>.
|
858
933
|
|
859
934
|
</td>
|
860
935
|
</tr>
|
@@ -863,25 +938,26 @@ application that was laying out large amounts of text.</p>
|
|
863
938
|
<p class="since">Since 1.10</p>
|
864
939
|
</div>
|
865
940
|
<hr>
|
866
|
-
<div class="refsect2"
|
941
|
+
<div class="refsect2">
|
867
942
|
<a name="pango-cairo-update-layout"></a><h3>pango_cairo_update_layout ()</h3>
|
868
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_update_layout (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
869
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
943
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_update_layout (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
944
|
+
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
870
945
|
<p>
|
871
946
|
Updates the private <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> of a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> created with
|
872
947
|
<a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-layout" title="pango_cairo_create_layout ()"><code class="function">pango_cairo_create_layout()</code></a> to match the current transformation
|
873
|
-
and target surface of a Cairo context
|
948
|
+
and target surface of a Cairo context.
|
949
|
+
</p>
|
874
950
|
<div class="variablelist"><table border="0">
|
875
951
|
<col align="left" valign="top">
|
876
952
|
<tbody>
|
877
953
|
<tr>
|
878
954
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
879
|
-
<td>
|
955
|
+
<td>a Cairo context
|
880
956
|
</td>
|
881
957
|
</tr>
|
882
958
|
<tr>
|
883
959
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
884
|
-
<td>
|
960
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>, from <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-layout" title="pango_cairo_create_layout ()"><code class="function">pango_cairo_create_layout()</code></a>
|
885
961
|
</td>
|
886
962
|
</tr>
|
887
963
|
</tbody>
|
@@ -889,31 +965,32 @@ and target surface of a Cairo context.</p>
|
|
889
965
|
<p class="since">Since 1.10</p>
|
890
966
|
</div>
|
891
967
|
<hr>
|
892
|
-
<div class="refsect2"
|
968
|
+
<div class="refsect2">
|
893
969
|
<a name="pango-cairo-show-glyph-string"></a><h3>pango_cairo_show_glyph_string ()</h3>
|
894
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_glyph_string (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
895
|
-
<a class="link" href="pango-Fonts.html#PangoFont"><span class="
|
896
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoGlyphString" title="PangoGlyphString"><span class="
|
970
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_glyph_string (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
971
|
+
<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
|
972
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString" title="struct PangoGlyphString"><span class="type">PangoGlyphString</span></a> *glyphs</code></em>);</pre>
|
897
973
|
<p>
|
898
974
|
Draws the glyphs in <em class="parameter"><code>glyphs</code></em> in the specified cairo context.
|
899
975
|
The origin of the glyphs (the left edge of the baseline) will
|
900
|
-
be drawn at the current point of the cairo context
|
976
|
+
be drawn at the current point of the cairo context.
|
977
|
+
</p>
|
901
978
|
<div class="variablelist"><table border="0">
|
902
979
|
<col align="left" valign="top">
|
903
980
|
<tbody>
|
904
981
|
<tr>
|
905
982
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
906
|
-
<td>
|
983
|
+
<td>a Cairo context
|
907
984
|
</td>
|
908
985
|
</tr>
|
909
986
|
<tr>
|
910
987
|
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
|
911
|
-
<td>
|
988
|
+
<td>a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> from a <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a>
|
912
989
|
</td>
|
913
990
|
</tr>
|
914
991
|
<tr>
|
915
992
|
<td><p><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></p></td>
|
916
|
-
<td>
|
993
|
+
<td>a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphString" title="struct PangoGlyphString"><span class="type">PangoGlyphString</span></a>
|
917
994
|
</td>
|
918
995
|
</tr>
|
919
996
|
</tbody>
|
@@ -921,11 +998,11 @@ be drawn at the current point of the cairo context.</p>
|
|
921
998
|
<p class="since">Since 1.10</p>
|
922
999
|
</div>
|
923
1000
|
<hr>
|
924
|
-
<div class="refsect2"
|
1001
|
+
<div class="refsect2">
|
925
1002
|
<a name="pango-cairo-show-glyph-item"></a><h3>pango_cairo_show_glyph_item ()</h3>
|
926
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_glyph_item (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
927
|
-
const <span class="
|
928
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem" title="PangoGlyphItem"><span class="
|
1003
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_glyph_item (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
1004
|
+
<em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
|
1005
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem" title="struct PangoGlyphItem"><span class="type">PangoGlyphItem</span></a> *glyph_item</code></em>);</pre>
|
929
1006
|
<p>
|
930
1007
|
Draws the glyphs in <em class="parameter"><code>glyph_item</code></em> in the specified cairo context,
|
931
1008
|
embedding the text associated with the glyphs in the output if the
|
@@ -938,23 +1015,24 @@ be drawn at the current point of the cairo context.
|
|
938
1015
|
</p>
|
939
1016
|
<p>
|
940
1017
|
Note that <em class="parameter"><code>text</code></em> is the start of the text for layout, which is then
|
941
|
-
indexed by <code class="literal"><em class="parameter"><code>glyph_item->item->offset</code></em></code
|
1018
|
+
indexed by <code class="literal"><em class="parameter"><code>glyph_item->item->offset</code></em></code>.
|
1019
|
+
</p>
|
942
1020
|
<div class="variablelist"><table border="0">
|
943
1021
|
<col align="left" valign="top">
|
944
1022
|
<tbody>
|
945
1023
|
<tr>
|
946
1024
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
947
|
-
<td>
|
1025
|
+
<td>a Cairo context
|
948
1026
|
</td>
|
949
1027
|
</tr>
|
950
1028
|
<tr>
|
951
1029
|
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
|
952
|
-
<td>
|
1030
|
+
<td>the UTF-8 text that <em class="parameter"><code>glyph_item</code></em> refers to
|
953
1031
|
</td>
|
954
1032
|
</tr>
|
955
1033
|
<tr>
|
956
1034
|
<td><p><span class="term"><em class="parameter"><code>glyph_item</code></em> :</span></p></td>
|
957
|
-
<td>
|
1035
|
+
<td>a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem" title="struct PangoGlyphItem"><span class="type">PangoGlyphItem</span></a>
|
958
1036
|
</td>
|
959
1037
|
</tr>
|
960
1038
|
</tbody>
|
@@ -962,25 +1040,26 @@ indexed by <code class="literal"><em class="parameter"><code>glyph_item->item
|
|
962
1040
|
<p class="since">Since 1.22</p>
|
963
1041
|
</div>
|
964
1042
|
<hr>
|
965
|
-
<div class="refsect2"
|
1043
|
+
<div class="refsect2">
|
966
1044
|
<a name="pango-cairo-show-layout-line"></a><h3>pango_cairo_show_layout_line ()</h3>
|
967
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_layout_line (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
968
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="
|
1045
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_layout_line (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
1046
|
+
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>);</pre>
|
969
1047
|
<p>
|
970
|
-
Draws a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> in the specified cairo context.
|
1048
|
+
Draws a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> in the specified cairo context.
|
971
1049
|
The origin of the glyphs (the left edge of the line) will
|
972
|
-
be drawn at the current point of the cairo context
|
1050
|
+
be drawn at the current point of the cairo context.
|
1051
|
+
</p>
|
973
1052
|
<div class="variablelist"><table border="0">
|
974
1053
|
<col align="left" valign="top">
|
975
1054
|
<tbody>
|
976
1055
|
<tr>
|
977
1056
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
978
|
-
<td>
|
1057
|
+
<td>a Cairo context
|
979
1058
|
</td>
|
980
1059
|
</tr>
|
981
1060
|
<tr>
|
982
1061
|
<td><p><span class="term"><em class="parameter"><code>line</code></em> :</span></p></td>
|
983
|
-
<td>
|
1062
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>
|
984
1063
|
</td>
|
985
1064
|
</tr>
|
986
1065
|
</tbody>
|
@@ -988,25 +1067,26 @@ be drawn at the current point of the cairo context.</p>
|
|
988
1067
|
<p class="since">Since 1.10</p>
|
989
1068
|
</div>
|
990
1069
|
<hr>
|
991
|
-
<div class="refsect2"
|
1070
|
+
<div class="refsect2">
|
992
1071
|
<a name="pango-cairo-show-layout"></a><h3>pango_cairo_show_layout ()</h3>
|
993
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_layout (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
994
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1072
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_layout (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
1073
|
+
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
995
1074
|
<p>
|
996
1075
|
Draws a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> in the specified cairo context.
|
997
1076
|
The top-left corner of the <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> will be drawn
|
998
|
-
at the current point of the cairo context
|
1077
|
+
at the current point of the cairo context.
|
1078
|
+
</p>
|
999
1079
|
<div class="variablelist"><table border="0">
|
1000
1080
|
<col align="left" valign="top">
|
1001
1081
|
<tbody>
|
1002
1082
|
<tr>
|
1003
1083
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
1004
|
-
<td>
|
1084
|
+
<td>a Cairo context
|
1005
1085
|
</td>
|
1006
1086
|
</tr>
|
1007
1087
|
<tr>
|
1008
1088
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1009
|
-
<td>
|
1089
|
+
<td>a Pango layout
|
1010
1090
|
</td>
|
1011
1091
|
</tr>
|
1012
1092
|
</tbody>
|
@@ -1014,45 +1094,46 @@ at the current point of the cairo context.</p>
|
|
1014
1094
|
<p class="since">Since 1.10</p>
|
1015
1095
|
</div>
|
1016
1096
|
<hr>
|
1017
|
-
<div class="refsect2"
|
1097
|
+
<div class="refsect2">
|
1018
1098
|
<a name="pango-cairo-show-error-underline"></a><h3>pango_cairo_show_error_underline ()</h3>
|
1019
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_error_underline (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
1020
|
-
<span class="
|
1021
|
-
<span class="
|
1022
|
-
<span class="
|
1023
|
-
<span class="
|
1099
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_show_error_underline (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
1100
|
+
<em class="parameter"><code><span class="type">double</span> x</code></em>,
|
1101
|
+
<em class="parameter"><code><span class="type">double</span> y</code></em>,
|
1102
|
+
<em class="parameter"><code><span class="type">double</span> width</code></em>,
|
1103
|
+
<em class="parameter"><code><span class="type">double</span> height</code></em>);</pre>
|
1024
1104
|
<p>
|
1025
1105
|
Draw a squiggly line in the specified cairo context that approximately
|
1026
1106
|
covers the given rectangle in the style of an underline used to indicate a
|
1027
1107
|
spelling error. (The width of the underline is rounded to an integer
|
1028
1108
|
number of up/down segments and the resulting rectangle is centered in the
|
1029
|
-
original rectangle)
|
1109
|
+
original rectangle)
|
1110
|
+
</p>
|
1030
1111
|
<div class="variablelist"><table border="0">
|
1031
1112
|
<col align="left" valign="top">
|
1032
1113
|
<tbody>
|
1033
1114
|
<tr>
|
1034
1115
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
1035
|
-
<td>
|
1116
|
+
<td>a Cairo context
|
1036
1117
|
</td>
|
1037
1118
|
</tr>
|
1038
1119
|
<tr>
|
1039
1120
|
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
|
1040
|
-
<td>
|
1121
|
+
<td>The X coordinate of one corner of the rectangle
|
1041
1122
|
</td>
|
1042
1123
|
</tr>
|
1043
1124
|
<tr>
|
1044
1125
|
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
|
1045
|
-
<td>
|
1126
|
+
<td>The Y coordinate of one corner of the rectangle
|
1046
1127
|
</td>
|
1047
1128
|
</tr>
|
1048
1129
|
<tr>
|
1049
1130
|
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
|
1050
|
-
<td>
|
1131
|
+
<td>Non-negative width of the rectangle
|
1051
1132
|
</td>
|
1052
1133
|
</tr>
|
1053
1134
|
<tr>
|
1054
1135
|
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
|
1055
|
-
<td>
|
1136
|
+
<td>Non-negative height of the rectangle
|
1056
1137
|
</td>
|
1057
1138
|
</tr>
|
1058
1139
|
</tbody>
|
@@ -1060,31 +1141,32 @@ original rectangle)</p>
|
|
1060
1141
|
<p class="since">Since 1.14</p>
|
1061
1142
|
</div>
|
1062
1143
|
<hr>
|
1063
|
-
<div class="refsect2"
|
1144
|
+
<div class="refsect2">
|
1064
1145
|
<a name="pango-cairo-glyph-string-path"></a><h3>pango_cairo_glyph_string_path ()</h3>
|
1065
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_glyph_string_path (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
1066
|
-
<a class="link" href="pango-Fonts.html#PangoFont"><span class="
|
1067
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoGlyphString" title="PangoGlyphString"><span class="
|
1146
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_glyph_string_path (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
1147
|
+
<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
|
1148
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString" title="struct PangoGlyphString"><span class="type">PangoGlyphString</span></a> *glyphs</code></em>);</pre>
|
1068
1149
|
<p>
|
1069
1150
|
Adds the glyphs in <em class="parameter"><code>glyphs</code></em> to the current path in the specified
|
1070
1151
|
cairo context. The origin of the glyphs (the left edge of the baseline)
|
1071
|
-
will be at the current point of the cairo context
|
1152
|
+
will be at the current point of the cairo context.
|
1153
|
+
</p>
|
1072
1154
|
<div class="variablelist"><table border="0">
|
1073
1155
|
<col align="left" valign="top">
|
1074
1156
|
<tbody>
|
1075
1157
|
<tr>
|
1076
1158
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
1077
|
-
<td>
|
1159
|
+
<td>a Cairo context
|
1078
1160
|
</td>
|
1079
1161
|
</tr>
|
1080
1162
|
<tr>
|
1081
1163
|
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
|
1082
|
-
<td>
|
1164
|
+
<td>a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> from a <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a>
|
1083
1165
|
</td>
|
1084
1166
|
</tr>
|
1085
1167
|
<tr>
|
1086
1168
|
<td><p><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></p></td>
|
1087
|
-
<td>
|
1169
|
+
<td>a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphString" title="struct PangoGlyphString"><span class="type">PangoGlyphString</span></a>
|
1088
1170
|
</td>
|
1089
1171
|
</tr>
|
1090
1172
|
</tbody>
|
@@ -1092,25 +1174,26 @@ will be at the current point of the cairo context.</p>
|
|
1092
1174
|
<p class="since">Since 1.10</p>
|
1093
1175
|
</div>
|
1094
1176
|
<hr>
|
1095
|
-
<div class="refsect2"
|
1177
|
+
<div class="refsect2">
|
1096
1178
|
<a name="pango-cairo-layout-line-path"></a><h3>pango_cairo_layout_line_path ()</h3>
|
1097
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_layout_line_path (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
1098
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="
|
1179
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_layout_line_path (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
1180
|
+
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>);</pre>
|
1099
1181
|
<p>
|
1100
|
-
Adds the text in <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> to the current path in the
|
1182
|
+
Adds the text in <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> to the current path in the
|
1101
1183
|
specified cairo context. The origin of the glyphs (the left edge
|
1102
|
-
of the line) will be at the current point of the cairo context
|
1184
|
+
of the line) will be at the current point of the cairo context.
|
1185
|
+
</p>
|
1103
1186
|
<div class="variablelist"><table border="0">
|
1104
1187
|
<col align="left" valign="top">
|
1105
1188
|
<tbody>
|
1106
1189
|
<tr>
|
1107
1190
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
1108
|
-
<td>
|
1191
|
+
<td>a Cairo context
|
1109
1192
|
</td>
|
1110
1193
|
</tr>
|
1111
1194
|
<tr>
|
1112
1195
|
<td><p><span class="term"><em class="parameter"><code>line</code></em> :</span></p></td>
|
1113
|
-
<td>
|
1196
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>
|
1114
1197
|
</td>
|
1115
1198
|
</tr>
|
1116
1199
|
</tbody>
|
@@ -1118,25 +1201,26 @@ of the line) will be at the current point of the cairo context.</p>
|
|
1118
1201
|
<p class="since">Since 1.10</p>
|
1119
1202
|
</div>
|
1120
1203
|
<hr>
|
1121
|
-
<div class="refsect2"
|
1204
|
+
<div class="refsect2">
|
1122
1205
|
<a name="pango-cairo-layout-path"></a><h3>pango_cairo_layout_path ()</h3>
|
1123
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_layout_path (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
1124
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1206
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_layout_path (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
1207
|
+
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
1125
1208
|
<p>
|
1126
1209
|
Adds the text in a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> to the current path in the
|
1127
1210
|
specified cairo context. The top-left corner of the <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1128
|
-
will be at the current point of the cairo context
|
1211
|
+
will be at the current point of the cairo context.
|
1212
|
+
</p>
|
1129
1213
|
<div class="variablelist"><table border="0">
|
1130
1214
|
<col align="left" valign="top">
|
1131
1215
|
<tbody>
|
1132
1216
|
<tr>
|
1133
1217
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
1134
|
-
<td>
|
1218
|
+
<td>a Cairo context
|
1135
1219
|
</td>
|
1136
1220
|
</tr>
|
1137
1221
|
<tr>
|
1138
1222
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1139
|
-
<td>
|
1223
|
+
<td>a Pango layout
|
1140
1224
|
</td>
|
1141
1225
|
</tr>
|
1142
1226
|
</tbody>
|
@@ -1144,45 +1228,46 @@ will be at the current point of the cairo context.</p>
|
|
1144
1228
|
<p class="since">Since 1.10</p>
|
1145
1229
|
</div>
|
1146
1230
|
<hr>
|
1147
|
-
<div class="refsect2"
|
1231
|
+
<div class="refsect2">
|
1148
1232
|
<a name="pango-cairo-error-underline-path"></a><h3>pango_cairo_error_underline_path ()</h3>
|
1149
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_error_underline_path (<a href="/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="
|
1150
|
-
<span class="
|
1151
|
-
<span class="
|
1152
|
-
<span class="
|
1153
|
-
<span class="
|
1233
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_cairo_error_underline_path (<em class="parameter"><code><a href="/gnome/usr/share/gtk-doc/html/cairo/cairo-context.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
1234
|
+
<em class="parameter"><code><span class="type">double</span> x</code></em>,
|
1235
|
+
<em class="parameter"><code><span class="type">double</span> y</code></em>,
|
1236
|
+
<em class="parameter"><code><span class="type">double</span> width</code></em>,
|
1237
|
+
<em class="parameter"><code><span class="type">double</span> height</code></em>);</pre>
|
1154
1238
|
<p>
|
1155
1239
|
Add a squiggly line to the current path in the specified cairo context that
|
1156
1240
|
approximately covers the given rectangle in the style of an underline used
|
1157
1241
|
to indicate a spelling error. (The width of the underline is rounded to an
|
1158
1242
|
integer number of up/down segments and the resulting rectangle is centered
|
1159
|
-
in the original rectangle)
|
1243
|
+
in the original rectangle)
|
1244
|
+
</p>
|
1160
1245
|
<div class="variablelist"><table border="0">
|
1161
1246
|
<col align="left" valign="top">
|
1162
1247
|
<tbody>
|
1163
1248
|
<tr>
|
1164
1249
|
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
1165
|
-
<td>
|
1250
|
+
<td>a Cairo context
|
1166
1251
|
</td>
|
1167
1252
|
</tr>
|
1168
1253
|
<tr>
|
1169
1254
|
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
|
1170
|
-
<td>
|
1255
|
+
<td>The X coordinate of one corner of the rectangle
|
1171
1256
|
</td>
|
1172
1257
|
</tr>
|
1173
1258
|
<tr>
|
1174
1259
|
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
|
1175
|
-
<td>
|
1260
|
+
<td>The Y coordinate of one corner of the rectangle
|
1176
1261
|
</td>
|
1177
1262
|
</tr>
|
1178
1263
|
<tr>
|
1179
1264
|
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
|
1180
|
-
<td>
|
1265
|
+
<td>Non-negative width of the rectangle
|
1181
1266
|
</td>
|
1182
1267
|
</tr>
|
1183
1268
|
<tr>
|
1184
1269
|
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
|
1185
|
-
<td>
|
1270
|
+
<td>Non-negative height of the rectangle
|
1186
1271
|
</td>
|
1187
1272
|
</tr>
|
1188
1273
|
</tbody>
|
@@ -1193,6 +1278,6 @@ in the original rectangle)</p>
|
|
1193
1278
|
</div>
|
1194
1279
|
<div class="footer">
|
1195
1280
|
<hr>
|
1196
|
-
Generated by GTK-Doc V1.
|
1281
|
+
Generated by GTK-Doc V1.15.1</div>
|
1197
1282
|
</body>
|
1198
1283
|
</html>
|