pango 3.0.8-x64-mingw32 → 3.0.9-x64-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +3 -3
- data/ext/pango/rbpangoattribute.c +7 -0
- data/ext/pango/rbpangoattrlist.c +2 -2
- data/ext/pango/rbpangocontext.c +49 -14
- data/ext/pango/rbpangoglyphinfo.c +5 -5
- data/lib/2.2/pango.so +0 -0
- data/lib/2.3/pango.so +0 -0
- data/test/test-context.rb +113 -0
- data/vendor/local/bin/genrb.exe +0 -0
- data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
- data/vendor/local/bin/hb-shape.exe +0 -0
- data/vendor/local/bin/hb-view.exe +0 -0
- data/vendor/local/bin/libharfbuzz-0.dll +0 -0
- data/vendor/local/bin/libpango-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
- data/vendor/local/bin/makeconv.exe +0 -0
- data/vendor/local/bin/pango-view.exe +0 -0
- data/vendor/local/include/harfbuzz/hb-common.h +16 -6
- data/vendor/local/include/harfbuzz/hb-unicode.h +0 -15
- data/vendor/local/include/harfbuzz/hb-version.h +3 -3
- data/vendor/local/include/pango-1.0/pango/pango-features.h +2 -2
- data/vendor/local/lib/libharfbuzz-icu.a +0 -0
- data/vendor/local/lib/libharfbuzz-icu.la +3 -3
- data/vendor/local/lib/libharfbuzz.dll.a +0 -0
- data/vendor/local/lib/libharfbuzz.la +3 -3
- data/vendor/local/lib/libicudt.dll.a +0 -0
- data/vendor/local/lib/libicuin.dll.a +0 -0
- data/vendor/local/lib/libicuio.dll.a +0 -0
- data/vendor/local/lib/libicule.dll.a +0 -0
- data/vendor/local/lib/libiculx.dll.a +0 -0
- data/vendor/local/lib/libicutest.dll.a +0 -0
- data/vendor/local/lib/libicutu.dll.a +0 -0
- data/vendor/local/lib/libicuuc.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.la +1 -1
- data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangocairo-1.0.la +1 -1
- data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangoft2-1.0.la +1 -1
- data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangowin32-1.0.la +1 -1
- data/vendor/local/lib/pkgconfig/harfbuzz-icu.pc +1 -1
- data/vendor/local/lib/pkgconfig/harfbuzz.pc +1 -1
- data/vendor/local/lib/pkgconfig/pango.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangocairo.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangoft2.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangowin32.pc +1 -1
- data/vendor/local/share/gtk-doc/html/harfbuzz/adding-text-to-the-buffer.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/annotation-glossary.html +7 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-10.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-11.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-2.html +32 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-20.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-22.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-28.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-30.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-31.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-38.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-39.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-41.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-42.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-5.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-7.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-8.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-0-5.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-1-2.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-1-3.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/buffers-language-script-and-direction.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/building.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/ch07.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/customizing-unicode-functions.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/fonts-and-faces.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-Buffers.html +27 -26
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-Shaping.html +17 -21
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-blob.html +10 -9
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-common.html +43 -12
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-coretext.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-deprecated.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-face.html +8 -7
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +8 -7
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ft.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-glib.html +11 -10
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +61 -54
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-icu.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-font.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +8 -7
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-shape.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-tag.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-set.html +8 -7
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +8 -7
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-unicode.html +9 -8
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-uniscribe.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +9 -8
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +7 -261
- data/vendor/local/share/gtk-doc/html/harfbuzz/hello-harfbuzz.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +3 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.sgml +601 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/install-harfbuzz.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/object-tree.html +8 -7
- data/vendor/local/share/gtk-doc/html/harfbuzz/plans-and-caching.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/pt01.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/pt02.html +6 -5
- data/vendor/local/share/gtk-doc/html/harfbuzz/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/setting-buffer-properties.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/shaping-and-shape-plans.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/style.css +142 -160
- data/vendor/local/share/gtk-doc/html/harfbuzz/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/using-harfbuzzs-native-opentype-implementation.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/using-your-own-font-functions.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/what-about-the-other-scripts.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/what-is-harfbuzz.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/why-is-it-called-harfbuzz.html +5 -4
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +10 -10
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +8 -8
- data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +9 -9
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +27 -27
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +57 -57
- data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +53 -53
- data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-10.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-12.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-14.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-16.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-18.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-2.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-20.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-22.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-24.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-26.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-30.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-31-0.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32-4.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-34.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-38.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-4.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-40.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-6.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-8.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-deprecated.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/index.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +24 -24
- data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +107 -107
- data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +5 -5
- data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +31 -31
- data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +15 -15
- data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +380 -390
- data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +37 -37
- data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +219 -219
- data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +295 -295
- data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +108 -108
- data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +15 -15
- data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +142 -142
- data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +85 -85
- data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +63 -63
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +340 -340
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +163 -163
- data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +11 -11
- data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +24 -24
- data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +54 -54
- data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +57 -57
- data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +7 -7
- data/vendor/local/share/gtk-doc/html/pango/pango.devhelp2 +200 -41
- data/vendor/local/share/gtk-doc/html/pango/pango.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/rendering.html +2 -2
- data/vendor/local/share/man/man1/pango-view.1 +1 -1
- metadata +7 -6
- data/vendor/local/share/gtk-doc/html/pango/index.sgml +0 -1204
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="rendering.html" title="Rendering with Pango">
|
9
9
|
<link rel="prev" href="pango-Xft-Fonts-and-Rendering.html" title="Xft Fonts and Rendering">
|
10
10
|
<link rel="next" href="pango-CoreText-Fonts.html" title="CoreText Fonts">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.25.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
@@ -75,7 +75,7 @@
|
|
75
75
|
</tr>
|
76
76
|
<tr>
|
77
77
|
<td class="function_type">
|
78
|
-
<
|
78
|
+
<span class="returnvalue">cairo_font_type_t</span>
|
79
79
|
</td>
|
80
80
|
<td class="function_name">
|
81
81
|
<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> <span class="c_punctuation">()</span>
|
@@ -107,7 +107,7 @@
|
|
107
107
|
</tr>
|
108
108
|
<tr>
|
109
109
|
<td class="function_type">
|
110
|
-
<
|
110
|
+
<span class="returnvalue">cairo_scaled_font_t</span> *
|
111
111
|
</td>
|
112
112
|
<td class="function_name">
|
113
113
|
<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> <span class="c_punctuation">()</span>
|
@@ -138,7 +138,7 @@
|
|
138
138
|
</td>
|
139
139
|
</tr>
|
140
140
|
<tr>
|
141
|
-
<td class="function_type">const <
|
141
|
+
<td class="function_type">const <span class="returnvalue">cairo_font_options_t</span> *
|
142
142
|
</td>
|
143
143
|
<td class="function_name">
|
144
144
|
<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> <span class="c_punctuation">()</span>
|
@@ -296,7 +296,7 @@
|
|
296
296
|
</div>
|
297
297
|
<div class="refsect1">
|
298
298
|
<a name="pango-Cairo-Rendering.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
299
|
-
<pre class="screen"> <a href="
|
299
|
+
<pre class="screen"> <a href="https://developer.gnome.org/gobject/unstable/GTypeModule.html">GInterface</a>
|
300
300
|
<span class="lineart">├──</span> PangoCairoFont
|
301
301
|
<span class="lineart">╰──</span> PangoCairoFontMap
|
302
302
|
</pre>
|
@@ -449,7 +449,7 @@ to the floating point units used in Cairo divide by <a class="link" href="pango-
|
|
449
449
|
|
450
450
|
<span class="normal"> </span><span class="comment">/* Center coordinates on the middle of the region we are drawing</span>
|
451
451
|
<span class="comment"> */</span>
|
452
|
-
<span class="normal"> </span><span class="function"
|
452
|
+
<span class="normal"> </span><span class="function">cairo_translate</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> RADIUS</span><span class="symbol">,</span><span class="normal"> RADIUS</span><span class="symbol">);</span>
|
453
453
|
|
454
454
|
<span class="normal"> </span><span class="comment">/* Create a PangoLayout, set the font and text */</span>
|
455
455
|
<span class="normal"> layout </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="pango-Cairo-Rendering.html#pango-cairo-create-layout">pango_cairo_create_layout</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
@@ -466,26 +466,26 @@ to the floating point units used in Cairo divide by <a class="link" href="pango-
|
|
466
466
|
<span class="normal"> </span><span class="type">double</span><span class="normal"> angle </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="number">360</span><span class="symbol">.</span><span class="normal"> </span><span class="symbol">*</span><span class="normal"> i</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">/</span><span class="normal"> N_WORDS</span><span class="symbol">;</span>
|
467
467
|
<span class="normal"> </span><span class="type">double</span><span class="normal"> red</span><span class="symbol">;</span>
|
468
468
|
|
469
|
-
<span class="normal"> </span><span class="function"
|
469
|
+
<span class="normal"> </span><span class="function">cairo_save</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
470
470
|
|
471
471
|
<span class="normal"> </span><span class="comment">/* Gradient from red at angle == 60 to blue at angle == 240 */</span>
|
472
|
-
<span class="normal"> red </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="number">1</span><span class="normal"> </span><span class="symbol">+</span><span class="normal"> </span><span class="function">cos</span><span class="normal"> </span><span class="symbol">((</span><span class="normal">angle </span><span class="symbol">-</span><span class="normal"> </span><span class="number">60</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">*</span><span class="normal"> <a href="
|
473
|
-
<span class="normal"> </span><span class="function"
|
472
|
+
<span class="normal"> red </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="number">1</span><span class="normal"> </span><span class="symbol">+</span><span class="normal"> </span><span class="function">cos</span><span class="normal"> </span><span class="symbol">((</span><span class="normal">angle </span><span class="symbol">-</span><span class="normal"> </span><span class="number">60</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">*</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Numerical-Definitions.html#G-PI:CAPS">G_PI</a> </span><span class="symbol">/</span><span class="normal"> </span><span class="number">180</span><span class="symbol">.))</span><span class="normal"> </span><span class="symbol">/</span><span class="normal"> </span><span class="number">2</span><span class="symbol">;</span>
|
473
|
+
<span class="normal"> </span><span class="function">cairo_set_source_rgb</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> red</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1.0</span><span class="normal"> </span><span class="symbol">-</span><span class="normal"> red</span><span class="symbol">);</span>
|
474
474
|
|
475
|
-
<span class="normal"> </span><span class="function"
|
475
|
+
<span class="normal"> </span><span class="function">cairo_rotate</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> angle </span><span class="symbol">*</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Numerical-Definitions.html#G-PI:CAPS">G_PI</a> </span><span class="symbol">/</span><span class="normal"> </span><span class="number">180</span><span class="symbol">.);</span>
|
476
476
|
|
477
477
|
<span class="normal"> </span><span class="comment">/* Inform Pango to re-layout the text with the new transformation */</span>
|
478
478
|
<span class="normal"> </span><span class="function"><a href="pango-Cairo-Rendering.html#pango-cairo-update-layout">pango_cairo_update_layout</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> layout</span><span class="symbol">);</span>
|
479
479
|
|
480
480
|
<span class="normal"> </span><span class="function"><a href="pango-Layout-Objects.html#pango-layout-get-size">pango_layout_get_size</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">layout</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">width</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">height</span><span class="symbol">);</span>
|
481
|
-
<span class="normal"> </span><span class="function"
|
481
|
+
<span class="normal"> </span><span class="function">cairo_move_to</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">-</span><span class="normal"> </span><span class="symbol">((</span><span class="type">double</span><span class="symbol">)</span><span class="normal">width </span><span class="symbol">/</span><span class="normal"> <a href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS">PANGO_SCALE</a></span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">/</span><span class="normal"> </span><span class="number">2</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">-</span><span class="normal"> RADIUS</span><span class="symbol">);</span>
|
482
482
|
<span class="normal"> </span><span class="function"><a href="pango-Cairo-Rendering.html#pango-cairo-show-layout">pango_cairo_show_layout</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> layout</span><span class="symbol">);</span>
|
483
483
|
|
484
|
-
<span class="normal"> </span><span class="function"
|
484
|
+
<span class="normal"> </span><span class="function">cairo_restore</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
485
485
|
<span class="normal"> </span><span class="cbracket">}</span>
|
486
486
|
|
487
487
|
<span class="normal"> </span><span class="comment">/* free the layout object */</span>
|
488
|
-
<span class="normal"> </span><span class="function"><a href="
|
488
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">layout</span><span class="symbol">);</span>
|
489
489
|
<span class="cbracket">}</span>
|
490
490
|
|
491
491
|
<span class="type">int</span><span class="normal"> </span><span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">**</span><span class="normal">argv</span><span class="symbol">)</span>
|
@@ -497,27 +497,27 @@ to the floating point units used in Cairo divide by <a class="link" href="pango-
|
|
497
497
|
|
498
498
|
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">argc </span><span class="symbol">!=</span><span class="normal"> </span><span class="number">2</span><span class="symbol">)</span>
|
499
499
|
<span class="normal"> </span><span class="cbracket">{</span>
|
500
|
-
<span class="normal"> </span><span class="function"><a href="
|
500
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Warnings-and-Assertions.html#g-printerr">g_printerr</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Usage: cairosimple OUTPUT_FILENAME</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
|
501
501
|
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">1</span><span class="symbol">;</span>
|
502
502
|
<span class="normal"> </span><span class="cbracket">}</span>
|
503
503
|
|
504
504
|
<span class="normal"> filename </span><span class="symbol">=</span><span class="normal"> argv</span><span class="symbol">[</span><span class="number">1</span><span class="symbol">];</span>
|
505
505
|
|
506
|
-
<span class="normal"> surface </span><span class="symbol">=</span><span class="normal"> </span><span class="function"
|
506
|
+
<span class="normal"> surface </span><span class="symbol">=</span><span class="normal"> </span><span class="function">cairo_image_surface_create</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">CAIRO_FORMAT_ARGB32</span><span class="symbol">,</span>
|
507
507
|
<span class="normal"> </span><span class="number">2</span><span class="normal"> </span><span class="symbol">*</span><span class="normal"> RADIUS</span><span class="symbol">,</span><span class="normal"> </span><span class="number">2</span><span class="normal"> </span><span class="symbol">*</span><span class="normal"> RADIUS</span><span class="symbol">);</span>
|
508
|
-
<span class="normal"> cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function"
|
508
|
+
<span class="normal"> cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function">cairo_create</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">);</span>
|
509
509
|
|
510
|
-
<span class="normal"> </span><span class="function"
|
511
|
-
<span class="normal"> </span><span class="function"
|
510
|
+
<span class="normal"> </span><span class="function">cairo_set_source_rgb</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1.0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1.0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1.0</span><span class="symbol">);</span>
|
511
|
+
<span class="normal"> </span><span class="function">cairo_paint</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
512
512
|
<span class="normal"> </span><span class="function">draw_text</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
513
|
-
<span class="normal"> </span><span class="function"
|
513
|
+
<span class="normal"> </span><span class="function">cairo_destroy</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
514
514
|
|
515
|
-
<span class="normal"> status </span><span class="symbol">=</span><span class="normal"> </span><span class="function"
|
516
|
-
<span class="normal"> </span><span class="function"
|
515
|
+
<span class="normal"> status </span><span class="symbol">=</span><span class="normal"> </span><span class="function">cairo_surface_write_to_png</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">,</span><span class="normal"> filename</span><span class="symbol">);</span>
|
516
|
+
<span class="normal"> </span><span class="function">cairo_surface_destroy</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">);</span>
|
517
517
|
|
518
518
|
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">status </span><span class="symbol">!=</span><span class="normal"> CAIRO_STATUS_SUCCESS</span><span class="symbol">)</span>
|
519
519
|
<span class="normal"> </span><span class="cbracket">{</span>
|
520
|
-
<span class="normal"> </span><span class="function"><a href="
|
520
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Warnings-and-Assertions.html#g-printerr">g_printerr</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Could not save png to '%s'</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">,</span><span class="normal"> filename</span><span class="symbol">);</span>
|
521
521
|
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">1</span><span class="symbol">;</span>
|
522
522
|
<span class="normal"> </span><span class="cbracket">}</span>
|
523
523
|
|
@@ -554,7 +554,7 @@ uses for example.</p>
|
|
554
554
|
Each thread gets its own default fontmap. In this way,
|
555
555
|
PangoCairo can be used safely from multiple threads.</p>
|
556
556
|
<div class="refsect3">
|
557
|
-
<a name="
|
557
|
+
<a name="pango-cairo-font-map-get-default.returns"></a><h4>Returns</h4>
|
558
558
|
<p> the default PangoCairo fontmap
|
559
559
|
for the current thread. This object is owned by Pango and must not be freed. </p>
|
560
560
|
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
@@ -575,12 +575,12 @@ This function only changes the default fontmap for
|
|
575
575
|
the current thread. Default fontmaps of exisiting threads
|
576
576
|
are not changed. Default fontmaps of any new threads will
|
577
577
|
still be created using <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new" title="pango_cairo_font_map_new ()"><code class="function">pango_cairo_font_map_new()</code></a>.</p>
|
578
|
-
<p>A value of <a href="
|
578
|
+
<p>A value of <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for <em class="parameter"><code>fontmap</code></em>
|
579
579
|
will cause the current default
|
580
580
|
font map to be released and a new default font
|
581
581
|
map to be created on demand, using <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-new" title="pango_cairo_font_map_new ()"><code class="function">pango_cairo_font_map_new()</code></a>.</p>
|
582
582
|
<div class="refsect3">
|
583
|
-
<a name="
|
583
|
+
<a name="pango-cairo-font-map-set-default.parameters"></a><h4>Parameters</h4>
|
584
584
|
<div class="informaltable"><table width="100%" border="0">
|
585
585
|
<colgroup>
|
586
586
|
<col width="150px" class="parameters_name">
|
@@ -589,7 +589,7 @@ map to be created on demand, using <a class="link" href="pango-Cairo-Rendering.h
|
|
589
589
|
</colgroup>
|
590
590
|
<tbody><tr>
|
591
591
|
<td class="parameter_name"><p>fontmap</p></td>
|
592
|
-
<td class="parameter_description"><p> The new default font map, or <a href="
|
592
|
+
<td class="parameter_description"><p> The new default font map, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
593
593
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
|
594
594
|
</tr></tbody>
|
595
595
|
</table></div>
|
@@ -617,9 +617,9 @@ If requested type is not available, NULL is returned. Ie.
|
|
617
617
|
this is only useful for testing, when at least two backends
|
618
618
|
are compiled in.</p>
|
619
619
|
<div class="refsect3">
|
620
|
-
<a name="
|
620
|
+
<a name="pango-cairo-font-map-new.returns"></a><h4>Returns</h4>
|
621
621
|
<p> the newly allocated <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a>,
|
622
|
-
which should be freed with <a href="
|
622
|
+
which should be freed with <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. </p>
|
623
623
|
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
624
624
|
</div>
|
625
625
|
<p class="since">Since: <a class="link" href="api-index-1-10.html#api-index-1.10">1.10</a></p>
|
@@ -629,7 +629,7 @@ which should be freed with <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor
|
|
629
629
|
<a name="pango-cairo-font-map-new-for-font-type"></a><h3>pango_cairo_font_map_new_for_font_type ()</h3>
|
630
630
|
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> *
|
631
631
|
pango_cairo_font_map_new_for_font_type
|
632
|
-
(<em class="parameter"><code><
|
632
|
+
(<em class="parameter"><code><span class="type">cairo_font_type_t</span> fonttype</code></em>);</pre>
|
633
633
|
<p>Creates a new <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</span></a> object of the type suitable
|
634
634
|
to be used with cairo font backend of type <em class="parameter"><code>fonttype</code></em>
|
635
635
|
.</p>
|
@@ -639,7 +639,7 @@ or in fact in most of those cases, just use
|
|
639
639
|
<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-get-default" title="pango_cairo_font_map_get_default ()"><code class="function">pango_cairo_font_map_get_default()</code></a></code></em>
|
640
640
|
.</p>
|
641
641
|
<div class="refsect3">
|
642
|
-
<a name="
|
642
|
+
<a name="pango-cairo-font-map-new-for-font-type.parameters"></a><h4>Parameters</h4>
|
643
643
|
<div class="informaltable"><table width="100%" border="0">
|
644
644
|
<colgroup>
|
645
645
|
<col width="150px" class="parameters_name">
|
@@ -648,16 +648,16 @@ or in fact in most of those cases, just use
|
|
648
648
|
</colgroup>
|
649
649
|
<tbody><tr>
|
650
650
|
<td class="parameter_name"><p>fonttype</p></td>
|
651
|
-
<td class="parameter_description"><p>desired <
|
651
|
+
<td class="parameter_description"><p>desired <span class="type">cairo_font_type_t</span></p></td>
|
652
652
|
<td class="parameter_annotations"> </td>
|
653
653
|
</tr></tbody>
|
654
654
|
</table></div>
|
655
655
|
</div>
|
656
656
|
<div class="refsect3">
|
657
|
-
<a name="
|
657
|
+
<a name="pango-cairo-font-map-new-for-font-type.returns"></a><h4>Returns</h4>
|
658
658
|
<p> the newly allocated
|
659
659
|
<a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> of suitable type which should be freed
|
660
|
-
with <a href="
|
660
|
+
with <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the requested
|
661
661
|
cairo font backend is not supported / compiled in. </p>
|
662
662
|
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
663
663
|
</div>
|
@@ -666,12 +666,12 @@ cairo font backend is not supported / compiled in. </p>
|
|
666
666
|
<hr>
|
667
667
|
<div class="refsect2">
|
668
668
|
<a name="pango-cairo-font-map-get-font-type"></a><h3>pango_cairo_font_map_get_font_type ()</h3>
|
669
|
-
<pre class="programlisting"><
|
669
|
+
<pre class="programlisting"><span class="returnvalue">cairo_font_type_t</span>
|
670
670
|
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>
|
671
671
|
<p>Gets the type of Cairo font backend that <em class="parameter"><code>fontmap</code></em>
|
672
672
|
uses.</p>
|
673
673
|
<div class="refsect3">
|
674
|
-
<a name="
|
674
|
+
<a name="pango-cairo-font-map-get-font-type.parameters"></a><h4>Parameters</h4>
|
675
675
|
<div class="informaltable"><table width="100%" border="0">
|
676
676
|
<colgroup>
|
677
677
|
<col width="150px" class="parameters_name">
|
@@ -686,8 +686,8 @@ pango_cairo_font_map_get_font_type (<em class="parameter"><code><a class="link"
|
|
686
686
|
</table></div>
|
687
687
|
</div>
|
688
688
|
<div class="refsect3">
|
689
|
-
<a name="
|
690
|
-
<p> the <
|
689
|
+
<a name="pango-cairo-font-map-get-font-type.returns"></a><h4>Returns</h4>
|
690
|
+
<p> the <span class="type">cairo_font_type_t</span> cairo font backend type</p>
|
691
691
|
</div>
|
692
692
|
<p class="since">Since: <a class="link" href="api-index-1-18.html#api-index-1.18">1.18</a></p>
|
693
693
|
</div>
|
@@ -702,7 +702,7 @@ points specified in a <a class="link" href="pango-Fonts.html#PangoFontDescriptio
|
|
702
702
|
default value is 96, meaning that a 10 point font will be 13
|
703
703
|
units high. (10 * 96. / 72. = 13.3).</p>
|
704
704
|
<div class="refsect3">
|
705
|
-
<a name="
|
705
|
+
<a name="pango-cairo-font-map-set-resolution.parameters"></a><h4>Parameters</h4>
|
706
706
|
<div class="informaltable"><table width="100%" border="0">
|
707
707
|
<colgroup>
|
708
708
|
<col width="150px" class="parameters_name">
|
@@ -733,7 +733,7 @@ involved; the terminology is conventional.)</p></td>
|
|
733
733
|
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>
|
734
734
|
<p>Gets the resolution for the fontmap. See <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-font-map-set-resolution" title="pango_cairo_font_map_set_resolution ()"><code class="function">pango_cairo_font_map_set_resolution()</code></a></p>
|
735
735
|
<div class="refsect3">
|
736
|
-
<a name="
|
736
|
+
<a name="pango-cairo-font-map-get-resolution.parameters"></a><h4>Parameters</h4>
|
737
737
|
<div class="informaltable"><table width="100%" border="0">
|
738
738
|
<colgroup>
|
739
739
|
<col width="150px" class="parameters_name">
|
@@ -748,7 +748,7 @@ pango_cairo_font_map_get_resolution (<em class="parameter"><code><a class="link"
|
|
748
748
|
</table></div>
|
749
749
|
</div>
|
750
750
|
<div class="refsect3">
|
751
|
-
<a name="
|
751
|
+
<a name="pango-cairo-font-map-get-resolution.returns"></a><h4>Returns</h4>
|
752
752
|
<p> the resolution in "dots per inch"</p>
|
753
753
|
</div>
|
754
754
|
<p class="since">Since: <a class="link" href="api-index-1-10.html#api-index-1.10">1.10</a></p>
|
@@ -765,7 +765,7 @@ pango_cairo_font_map_create_context (<em class="parameter"><code><a class="link"
|
|
765
765
|
<p>Create a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> for the given fontmap.</p>
|
766
766
|
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
|
767
767
|
<div class="refsect3">
|
768
|
-
<a name="
|
768
|
+
<a name="pango-cairo-font-map-create-context.parameters"></a><h4>Parameters</h4>
|
769
769
|
<div class="informaltable"><table width="100%" border="0">
|
770
770
|
<colgroup>
|
771
771
|
<col width="150px" class="parameters_name">
|
@@ -780,22 +780,22 @@ pango_cairo_font_map_create_context (<em class="parameter"><code><a class="link"
|
|
780
780
|
</table></div>
|
781
781
|
</div>
|
782
782
|
<div class="refsect3">
|
783
|
-
<a name="
|
784
|
-
<p> the newly created context; free with <a href="
|
783
|
+
<a name="pango-cairo-font-map-create-context.returns"></a><h4>Returns</h4>
|
784
|
+
<p> the newly created context; free with <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</p>
|
785
785
|
</div>
|
786
786
|
<p class="since">Since: <a class="link" href="api-index-1-10.html#api-index-1.10">1.10</a></p>
|
787
787
|
</div>
|
788
788
|
<hr>
|
789
789
|
<div class="refsect2">
|
790
790
|
<a name="pango-cairo-font-get-scaled-font"></a><h3>pango_cairo_font_get_scaled_font ()</h3>
|
791
|
-
<pre class="programlisting"><
|
791
|
+
<pre class="programlisting"><span class="returnvalue">cairo_scaled_font_t</span> *
|
792
792
|
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>
|
793
|
-
<p>Gets the <
|
793
|
+
<p>Gets the <span class="type">cairo_scaled_font_t</span> used by <em class="parameter"><code>font</code></em>
|
794
794
|
.
|
795
795
|
The scaled font can be referenced and kept using
|
796
|
-
<
|
796
|
+
<code class="function">cairo_scaled_font_reference()</code>.</p>
|
797
797
|
<div class="refsect3">
|
798
|
-
<a name="
|
798
|
+
<a name="pango-cairo-font-get-scaled-font.parameters"></a><h4>Parameters</h4>
|
799
799
|
<div class="informaltable"><table width="100%" border="0">
|
800
800
|
<colgroup>
|
801
801
|
<col width="150px" class="parameters_name">
|
@@ -810,11 +810,11 @@ The scaled font can be referenced and kept using
|
|
810
810
|
</table></div>
|
811
811
|
</div>
|
812
812
|
<div class="refsect3">
|
813
|
-
<a name="
|
814
|
-
<p> the <
|
813
|
+
<a name="pango-cairo-font-get-scaled-font.returns"></a><h4>Returns</h4>
|
814
|
+
<p> the <span class="type">cairo_scaled_font_t</span> used by <em class="parameter"><code>font</code></em>
|
815
815
|
,
|
816
|
-
or <a href="
|
817
|
-
is <a href="
|
816
|
+
or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>font</code></em>
|
817
|
+
is <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p>
|
818
818
|
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
819
819
|
</div>
|
820
820
|
<p class="since">Since: <a class="link" href="api-index-1-18.html#api-index-1.18">1.18</a></p>
|
@@ -830,7 +830,7 @@ points specified in a <a class="link" href="pango-Fonts.html#PangoFontDescriptio
|
|
830
830
|
default value is 96, meaning that a 10 point font will be 13
|
831
831
|
units high. (10 * 96. / 72. = 13.3).</p>
|
832
832
|
<div class="refsect3">
|
833
|
-
<a name="
|
833
|
+
<a name="pango-cairo-context-set-resolution.parameters"></a><h4>Parameters</h4>
|
834
834
|
<div class="informaltable"><table width="100%" border="0">
|
835
835
|
<colgroup>
|
836
836
|
<col width="150px" class="parameters_name">
|
@@ -862,7 +862,7 @@ means to use the resolution from the font map.</p></td>
|
|
862
862
|
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>
|
863
863
|
<p>Gets the resolution for the context. See <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-resolution" title="pango_cairo_context_set_resolution ()"><code class="function">pango_cairo_context_set_resolution()</code></a></p>
|
864
864
|
<div class="refsect3">
|
865
|
-
<a name="
|
865
|
+
<a name="pango-cairo-context-get-resolution.parameters"></a><h4>Parameters</h4>
|
866
866
|
<div class="informaltable"><table width="100%" border="0">
|
867
867
|
<colgroup>
|
868
868
|
<col width="150px" class="parameters_name">
|
@@ -877,7 +877,7 @@ pango_cairo_context_get_resolution (<em class="parameter"><code><a class="link"
|
|
877
877
|
</table></div>
|
878
878
|
</div>
|
879
879
|
<div class="refsect3">
|
880
|
-
<a name="
|
880
|
+
<a name="pango-cairo-context-get-resolution.returns"></a><h4>Returns</h4>
|
881
881
|
<p> the resolution in "dots per inch". A negative value will
|
882
882
|
be returned if no resolution has previously been set.</p>
|
883
883
|
</div>
|
@@ -888,12 +888,12 @@ be returned if no resolution has previously been set.</p>
|
|
888
888
|
<a name="pango-cairo-context-set-font-options"></a><h3>pango_cairo_context_set_font_options ()</h3>
|
889
889
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
890
890
|
pango_cairo_context_set_font_options (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
891
|
-
<em class="parameter"><code>const <
|
891
|
+
<em class="parameter"><code>const <span class="type">cairo_font_options_t</span> *options</code></em>);</pre>
|
892
892
|
<p>Sets the font options used when rendering text with this context.
|
893
893
|
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>
|
894
894
|
derives from the target surface.</p>
|
895
895
|
<div class="refsect3">
|
896
|
-
<a name="
|
896
|
+
<a name="pango-cairo-context-set-font-options.parameters"></a><h4>Parameters</h4>
|
897
897
|
<div class="informaltable"><table width="100%" border="0">
|
898
898
|
<colgroup>
|
899
899
|
<col width="150px" class="parameters_name">
|
@@ -908,7 +908,7 @@ derives from the target surface.</p>
|
|
908
908
|
</tr>
|
909
909
|
<tr>
|
910
910
|
<td class="parameter_name"><p>options</p></td>
|
911
|
-
<td class="parameter_description"><p> a <
|
911
|
+
<td class="parameter_description"><p> a <span class="type">cairo_font_options_t</span>, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to unset
|
912
912
|
any previously set options. A copy is made. </p></td>
|
913
913
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
|
914
914
|
</tr>
|
@@ -920,13 +920,13 @@ any previously set options. A copy is made. </p></td>
|
|
920
920
|
<hr>
|
921
921
|
<div class="refsect2">
|
922
922
|
<a name="pango-cairo-context-get-font-options"></a><h3>pango_cairo_context_get_font_options ()</h3>
|
923
|
-
<pre class="programlisting">const <
|
923
|
+
<pre class="programlisting">const <span class="returnvalue">cairo_font_options_t</span> *
|
924
924
|
pango_cairo_context_get_font_options (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);</pre>
|
925
925
|
<p>Retrieves any font rendering options previously set with
|
926
926
|
<a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-font-options" title="pango_cairo_context_set_font_options ()"><code class="function">pango_cairo_context_set_font_options()</code></a>. This function does not report options
|
927
927
|
that are derived from the target surface by <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-update-context" title="pango_cairo_update_context ()"><code class="function">pango_cairo_update_context()</code></a></p>
|
928
928
|
<div class="refsect3">
|
929
|
-
<a name="
|
929
|
+
<a name="pango-cairo-context-get-font-options.parameters"></a><h4>Parameters</h4>
|
930
930
|
<div class="informaltable"><table width="100%" border="0">
|
931
931
|
<colgroup>
|
932
932
|
<col width="150px" class="parameters_name">
|
@@ -941,9 +941,9 @@ that are derived from the target surface by <a class="link" href="pango-Cairo-Re
|
|
941
941
|
</table></div>
|
942
942
|
</div>
|
943
943
|
<div class="refsect3">
|
944
|
-
<a name="
|
944
|
+
<a name="pango-cairo-context-get-font-options.returns"></a><h4>Returns</h4>
|
945
945
|
<p> the font options previously set on the
|
946
|
-
context, or <a href="
|
946
|
+
context, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no options have been set. This value is
|
947
947
|
owned by the context and must not be modified or freed. </p>
|
948
948
|
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
949
949
|
</div>
|
@@ -953,14 +953,14 @@ owned by the context and must not be modified or freed. </p>
|
|
953
953
|
<div class="refsect2">
|
954
954
|
<a name="PangoCairoShapeRendererFunc"></a><h3>PangoCairoShapeRendererFunc ()</h3>
|
955
955
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
956
|
-
<span class="c_punctuation">(</span>*PangoCairoShapeRendererFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><
|
956
|
+
<span class="c_punctuation">(</span>*PangoCairoShapeRendererFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
957
957
|
<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>,
|
958
|
-
<em class="parameter"><code><a href="
|
959
|
-
<em class="parameter"><code><a href="
|
958
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> do_path</code></em>,
|
959
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
|
960
960
|
<p>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>
|
961
961
|
with Pango's Cairo renderer.</p>
|
962
962
|
<div class="refsect3">
|
963
|
-
<a name="
|
963
|
+
<a name="PangoCairoShapeRendererFunc.parameters"></a><h4>Parameters</h4>
|
964
964
|
<div class="informaltable"><table width="100%" border="0">
|
965
965
|
<colgroup>
|
966
966
|
<col width="150px" class="parameters_name">
|
@@ -984,7 +984,7 @@ be rendered</p></td>
|
|
984
984
|
<td class="parameter_description"><p>whether only the shape path should be appended to current
|
985
985
|
path of <em class="parameter"><code>cr</code></em>
|
986
986
|
and no filling/stroking done. This will be set
|
987
|
-
to <a href="
|
987
|
+
to <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> 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
|
988
988
|
<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.</p></td>
|
989
989
|
<td class="parameter_annotations"> </td>
|
990
990
|
</tr>
|
@@ -1004,13 +1004,13 @@ to <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/htm
|
|
1004
1004
|
pango_cairo_context_set_shape_renderer
|
1005
1005
|
(<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
1006
1006
|
<em class="parameter"><code><a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()"><span class="type">PangoCairoShapeRendererFunc</span></a> func</code></em>,
|
1007
|
-
<em class="parameter"><code><a href="
|
1008
|
-
<em class="parameter"><code><a href="
|
1007
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
1008
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> dnotify</code></em>);</pre>
|
1009
1009
|
<p>Sets callback function for context to use for rendering attributes
|
1010
1010
|
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
|
1011
1011
|
details.</p>
|
1012
1012
|
<div class="refsect3">
|
1013
|
-
<a name="
|
1013
|
+
<a name="pango-cairo-context-set-shape-renderer.parameters"></a><h4>Parameters</h4>
|
1014
1014
|
<div class="informaltable"><table width="100%" border="0">
|
1015
1015
|
<colgroup>
|
1016
1016
|
<col width="150px" class="parameters_name">
|
@@ -1026,7 +1026,7 @@ details.</p>
|
|
1026
1026
|
<tr>
|
1027
1027
|
<td class="parameter_name"><p>func</p></td>
|
1028
1028
|
<td class="parameter_description"><p> Callback function for rendering attributes of
|
1029
|
-
type <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SHAPE:CAPS"><code class="literal">PANGO_ATTR_SHAPE</code></a>, or <a href="
|
1029
|
+
type <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SHAPE:CAPS"><code class="literal">PANGO_ATTR_SHAPE</code></a>, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to disable shape rendering. </p></td>
|
1030
1030
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
|
1031
1031
|
</tr>
|
1032
1032
|
<tr>
|
@@ -1039,7 +1039,7 @@ type <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SHAPE:CAPS"><co
|
|
1039
1039
|
<td class="parameter_name"><p>dnotify</p></td>
|
1040
1040
|
<td class="parameter_description"><p>Callback that will be called when the
|
1041
1041
|
context is freed to release <em class="parameter"><code>data</code></em>
|
1042
|
-
, or <a href="
|
1042
|
+
, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p></td>
|
1043
1043
|
<td class="parameter_annotations"> </td>
|
1044
1044
|
</tr>
|
1045
1045
|
</tbody>
|
@@ -1053,7 +1053,7 @@ context is freed to release <em class="parameter"><code>data</code></em>
|
|
1053
1053
|
<pre class="programlisting"><a class="link" href="pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc" title="PangoCairoShapeRendererFunc ()"><span class="returnvalue">PangoCairoShapeRendererFunc</span></a>
|
1054
1054
|
pango_cairo_context_get_shape_renderer
|
1055
1055
|
(<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
|
1056
|
-
<em class="parameter"><code><a href="
|
1056
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> *data</code></em>);</pre>
|
1057
1057
|
<p>Sets callback function for context to use for rendering attributes
|
1058
1058
|
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
|
1059
1059
|
details.</p>
|
@@ -1062,7 +1062,7 @@ attributes of type <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-S
|
|
1062
1062
|
<a class="link" href="pango-Cairo-Rendering.html#pango-cairo-context-set-shape-renderer" title="pango_cairo_context_set_shape_renderer ()"><code class="function">pango_cairo_context_set_shape_renderer()</code></a>, if any.</p>
|
1063
1063
|
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
|
1064
1064
|
<div class="refsect3">
|
1065
|
-
<a name="
|
1065
|
+
<a name="pango-cairo-context-get-shape-renderer.parameters"></a><h4>Parameters</h4>
|
1066
1066
|
<div class="informaltable"><table width="100%" border="0">
|
1067
1067
|
<colgroup>
|
1068
1068
|
<col width="150px" class="parameters_name">
|
@@ -1077,16 +1077,16 @@ attributes of type <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-S
|
|
1077
1077
|
</tr>
|
1078
1078
|
<tr>
|
1079
1079
|
<td class="parameter_name"><p>data</p></td>
|
1080
|
-
<td class="parameter_description"><p>Pointer to <a href="
|
1080
|
+
<td class="parameter_description"><p>Pointer to <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> to return user data</p></td>
|
1081
1081
|
<td class="parameter_annotations"> </td>
|
1082
1082
|
</tr>
|
1083
1083
|
</tbody>
|
1084
1084
|
</table></div>
|
1085
1085
|
</div>
|
1086
1086
|
<div class="refsect3">
|
1087
|
-
<a name="
|
1087
|
+
<a name="pango-cairo-context-get-shape-renderer.returns"></a><h4>Returns</h4>
|
1088
1088
|
<p> the shape rendering callback previously
|
1089
|
-
set on the context, or <a href="
|
1089
|
+
set on the context, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no shape rendering callback have
|
1090
1090
|
been set. </p>
|
1091
1091
|
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
1092
1092
|
</div>
|
@@ -1096,7 +1096,7 @@ been set. </p>
|
|
1096
1096
|
<div class="refsect2">
|
1097
1097
|
<a name="pango-cairo-create-context"></a><h3>pango_cairo_create_context ()</h3>
|
1098
1098
|
<pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> *
|
1099
|
-
pango_cairo_create_context (<em class="parameter"><code><
|
1099
|
+
pango_cairo_create_context (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>);</pre>
|
1100
1100
|
<p>Creates a context object set up to match the current transformation
|
1101
1101
|
and target surface of the Cairo context. This context can then be
|
1102
1102
|
used to create a layout using <a class="link" href="pango-Layout-Objects.html#pango-layout-new" title="pango_layout_new ()"><code class="function">pango_layout_new()</code></a>.</p>
|
@@ -1107,7 +1107,7 @@ create a layout for use with <em class="parameter"><code>cr</code></em>
|
|
1107
1107
|
and do not need to access <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>
|
1108
1108
|
directly, you can use <a class="link" href="pango-Cairo-Rendering.html#pango-cairo-create-layout" title="pango_cairo_create_layout ()"><code class="function">pango_cairo_create_layout()</code></a> instead.</p>
|
1109
1109
|
<div class="refsect3">
|
1110
|
-
<a name="
|
1110
|
+
<a name="pango-cairo-create-context.parameters"></a><h4>Parameters</h4>
|
1111
1111
|
<div class="informaltable"><table width="100%" border="0">
|
1112
1112
|
<colgroup>
|
1113
1113
|
<col width="150px" class="parameters_name">
|
@@ -1122,9 +1122,9 @@ directly, you can use <a class="link" href="pango-Cairo-Rendering.html#pango-cai
|
|
1122
1122
|
</table></div>
|
1123
1123
|
</div>
|
1124
1124
|
<div class="refsect3">
|
1125
|
-
<a name="
|
1125
|
+
<a name="pango-cairo-create-context.returns"></a><h4>Returns</h4>
|
1126
1126
|
<p> the newly created <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>. Free with
|
1127
|
-
<a href="
|
1127
|
+
<a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. </p>
|
1128
1128
|
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
1129
1129
|
</div>
|
1130
1130
|
<p class="since">Since: <a class="link" href="api-index-1-22.html#api-index-1.22">1.22</a></p>
|
@@ -1133,7 +1133,7 @@ directly, you can use <a class="link" href="pango-Cairo-Rendering.html#pango-cai
|
|
1133
1133
|
<div class="refsect2">
|
1134
1134
|
<a name="pango-cairo-update-context"></a><h3>pango_cairo_update_context ()</h3>
|
1135
1135
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
1136
|
-
pango_cairo_update_context (<em class="parameter"><code><
|
1136
|
+
pango_cairo_update_context (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1137
1137
|
<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);</pre>
|
1138
1138
|
<p>Updates a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> previously created for use with Cairo to
|
1139
1139
|
match the current transformation and target surface of a Cairo
|
@@ -1141,7 +1141,7 @@ context. If any layouts have been created for the context,
|
|
1141
1141
|
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
|
1142
1142
|
layouts.</p>
|
1143
1143
|
<div class="refsect3">
|
1144
|
-
<a name="
|
1144
|
+
<a name="pango-cairo-update-context.parameters"></a><h4>Parameters</h4>
|
1145
1145
|
<div class="informaltable"><table width="100%" border="0">
|
1146
1146
|
<colgroup>
|
1147
1147
|
<col width="150px" class="parameters_name">
|
@@ -1168,7 +1168,7 @@ layouts.</p>
|
|
1168
1168
|
<div class="refsect2">
|
1169
1169
|
<a name="pango-cairo-create-layout"></a><h3>pango_cairo_create_layout ()</h3>
|
1170
1170
|
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> *
|
1171
|
-
pango_cairo_create_layout (<em class="parameter"><code><
|
1171
|
+
pango_cairo_create_layout (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>);</pre>
|
1172
1172
|
<p>Creates a layout object set up to match the current transformation
|
1173
1173
|
and target surface of the Cairo context. This layout can then be
|
1174
1174
|
used for text measurement with functions like
|
@@ -1181,7 +1181,7 @@ however it is slightly inefficient since it creates a separate
|
|
1181
1181
|
<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> object for each layout. This might matter in an
|
1182
1182
|
application that was laying out large amounts of text.</p>
|
1183
1183
|
<div class="refsect3">
|
1184
|
-
<a name="
|
1184
|
+
<a name="pango-cairo-create-layout.parameters"></a><h4>Parameters</h4>
|
1185
1185
|
<div class="informaltable"><table width="100%" border="0">
|
1186
1186
|
<colgroup>
|
1187
1187
|
<col width="150px" class="parameters_name">
|
@@ -1196,9 +1196,9 @@ application that was laying out large amounts of text.</p>
|
|
1196
1196
|
</table></div>
|
1197
1197
|
</div>
|
1198
1198
|
<div class="refsect3">
|
1199
|
-
<a name="
|
1199
|
+
<a name="pango-cairo-create-layout.returns"></a><h4>Returns</h4>
|
1200
1200
|
<p> the newly created <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>. Free with
|
1201
|
-
<a href="
|
1201
|
+
<a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. </p>
|
1202
1202
|
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
1203
1203
|
</div>
|
1204
1204
|
<p class="since">Since: <a class="link" href="api-index-1-10.html#api-index-1.10">1.10</a></p>
|
@@ -1207,13 +1207,13 @@ application that was laying out large amounts of text.</p>
|
|
1207
1207
|
<div class="refsect2">
|
1208
1208
|
<a name="pango-cairo-update-layout"></a><h3>pango_cairo_update_layout ()</h3>
|
1209
1209
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
1210
|
-
pango_cairo_update_layout (<em class="parameter"><code><
|
1210
|
+
pango_cairo_update_layout (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1211
1211
|
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
1212
1212
|
<p>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
|
1213
1213
|
<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
|
1214
1214
|
and target surface of a Cairo context.</p>
|
1215
1215
|
<div class="refsect3">
|
1216
|
-
<a name="
|
1216
|
+
<a name="pango-cairo-update-layout.parameters"></a><h4>Parameters</h4>
|
1217
1217
|
<div class="informaltable"><table width="100%" border="0">
|
1218
1218
|
<colgroup>
|
1219
1219
|
<col width="150px" class="parameters_name">
|
@@ -1240,7 +1240,7 @@ and target surface of a Cairo context.</p>
|
|
1240
1240
|
<div class="refsect2">
|
1241
1241
|
<a name="pango-cairo-show-glyph-string"></a><h3>pango_cairo_show_glyph_string ()</h3>
|
1242
1242
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
1243
|
-
pango_cairo_show_glyph_string (<em class="parameter"><code><
|
1243
|
+
pango_cairo_show_glyph_string (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1244
1244
|
<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
|
1245
1245
|
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> *glyphs</code></em>);</pre>
|
1246
1246
|
<p>Draws the glyphs in <em class="parameter"><code>glyphs</code></em>
|
@@ -1248,7 +1248,7 @@ pango_cairo_show_glyph_string (<em class="parameter"><code><a href="/usr/share/g
|
|
1248
1248
|
The origin of the glyphs (the left edge of the baseline) will
|
1249
1249
|
be drawn at the current point of the cairo context.</p>
|
1250
1250
|
<div class="refsect3">
|
1251
|
-
<a name="
|
1251
|
+
<a name="pango-cairo-show-glyph-string.parameters"></a><h4>Parameters</h4>
|
1252
1252
|
<div class="informaltable"><table width="100%" border="0">
|
1253
1253
|
<colgroup>
|
1254
1254
|
<col width="150px" class="parameters_name">
|
@@ -1280,7 +1280,7 @@ be drawn at the current point of the cairo context.</p>
|
|
1280
1280
|
<div class="refsect2">
|
1281
1281
|
<a name="pango-cairo-show-glyph-item"></a><h3>pango_cairo_show_glyph_item ()</h3>
|
1282
1282
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
1283
|
-
pango_cairo_show_glyph_item (<em class="parameter"><code><
|
1283
|
+
pango_cairo_show_glyph_item (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1284
1284
|
<em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
|
1285
1285
|
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem"><span class="type">PangoGlyphItem</span></a> *glyph_item</code></em>);</pre>
|
1286
1286
|
<p>Draws the glyphs in <em class="parameter"><code>glyph_item</code></em>
|
@@ -1295,7 +1295,7 @@ be drawn at the current point of the cairo context.</p>
|
|
1295
1295
|
indexed by <code class="literal"><em class="parameter"><code>glyph_item->item->offset</code></em>
|
1296
1296
|
</code>.</p>
|
1297
1297
|
<div class="refsect3">
|
1298
|
-
<a name="
|
1298
|
+
<a name="pango-cairo-show-glyph-item.parameters"></a><h4>Parameters</h4>
|
1299
1299
|
<div class="informaltable"><table width="100%" border="0">
|
1300
1300
|
<colgroup>
|
1301
1301
|
<col width="150px" class="parameters_name">
|
@@ -1328,13 +1328,13 @@ refers to</p></td>
|
|
1328
1328
|
<div class="refsect2">
|
1329
1329
|
<a name="pango-cairo-show-layout-line"></a><h3>pango_cairo_show_layout_line ()</h3>
|
1330
1330
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
1331
|
-
pango_cairo_show_layout_line (<em class="parameter"><code><
|
1331
|
+
pango_cairo_show_layout_line (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1332
1332
|
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>);</pre>
|
1333
1333
|
<p>Draws a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> in the specified cairo context.
|
1334
1334
|
The origin of the glyphs (the left edge of the line) will
|
1335
1335
|
be drawn at the current point of the cairo context.</p>
|
1336
1336
|
<div class="refsect3">
|
1337
|
-
<a name="
|
1337
|
+
<a name="pango-cairo-show-layout-line.parameters"></a><h4>Parameters</h4>
|
1338
1338
|
<div class="informaltable"><table width="100%" border="0">
|
1339
1339
|
<colgroup>
|
1340
1340
|
<col width="150px" class="parameters_name">
|
@@ -1361,13 +1361,13 @@ be drawn at the current point of the cairo context.</p>
|
|
1361
1361
|
<div class="refsect2">
|
1362
1362
|
<a name="pango-cairo-show-layout"></a><h3>pango_cairo_show_layout ()</h3>
|
1363
1363
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
1364
|
-
pango_cairo_show_layout (<em class="parameter"><code><
|
1364
|
+
pango_cairo_show_layout (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1365
1365
|
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
1366
1366
|
<p>Draws a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> in the specified cairo context.
|
1367
1367
|
The top-left corner of the <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> will be drawn
|
1368
1368
|
at the current point of the cairo context.</p>
|
1369
1369
|
<div class="refsect3">
|
1370
|
-
<a name="
|
1370
|
+
<a name="pango-cairo-show-layout.parameters"></a><h4>Parameters</h4>
|
1371
1371
|
<div class="informaltable"><table width="100%" border="0">
|
1372
1372
|
<colgroup>
|
1373
1373
|
<col width="150px" class="parameters_name">
|
@@ -1394,7 +1394,7 @@ at the current point of the cairo context.</p>
|
|
1394
1394
|
<div class="refsect2">
|
1395
1395
|
<a name="pango-cairo-show-error-underline"></a><h3>pango_cairo_show_error_underline ()</h3>
|
1396
1396
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
1397
|
-
pango_cairo_show_error_underline (<em class="parameter"><code><
|
1397
|
+
pango_cairo_show_error_underline (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1398
1398
|
<em class="parameter"><code><span class="type">double</span> x</code></em>,
|
1399
1399
|
<em class="parameter"><code><span class="type">double</span> y</code></em>,
|
1400
1400
|
<em class="parameter"><code><span class="type">double</span> width</code></em>,
|
@@ -1405,7 +1405,7 @@ spelling error. (The width of the underline is rounded to an integer
|
|
1405
1405
|
number of up/down segments and the resulting rectangle is centered in the
|
1406
1406
|
original rectangle)</p>
|
1407
1407
|
<div class="refsect3">
|
1408
|
-
<a name="
|
1408
|
+
<a name="pango-cairo-show-error-underline.parameters"></a><h4>Parameters</h4>
|
1409
1409
|
<div class="informaltable"><table width="100%" border="0">
|
1410
1410
|
<colgroup>
|
1411
1411
|
<col width="150px" class="parameters_name">
|
@@ -1447,7 +1447,7 @@ original rectangle)</p>
|
|
1447
1447
|
<div class="refsect2">
|
1448
1448
|
<a name="pango-cairo-glyph-string-path"></a><h3>pango_cairo_glyph_string_path ()</h3>
|
1449
1449
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
1450
|
-
pango_cairo_glyph_string_path (<em class="parameter"><code><
|
1450
|
+
pango_cairo_glyph_string_path (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1451
1451
|
<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
|
1452
1452
|
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> *glyphs</code></em>);</pre>
|
1453
1453
|
<p>Adds the glyphs in <em class="parameter"><code>glyphs</code></em>
|
@@ -1455,7 +1455,7 @@ pango_cairo_glyph_string_path (<em class="parameter"><code><a href="/usr/share/g
|
|
1455
1455
|
cairo context. The origin of the glyphs (the left edge of the baseline)
|
1456
1456
|
will be at the current point of the cairo context.</p>
|
1457
1457
|
<div class="refsect3">
|
1458
|
-
<a name="
|
1458
|
+
<a name="pango-cairo-glyph-string-path.parameters"></a><h4>Parameters</h4>
|
1459
1459
|
<div class="informaltable"><table width="100%" border="0">
|
1460
1460
|
<colgroup>
|
1461
1461
|
<col width="150px" class="parameters_name">
|
@@ -1487,13 +1487,13 @@ will be at the current point of the cairo context.</p>
|
|
1487
1487
|
<div class="refsect2">
|
1488
1488
|
<a name="pango-cairo-layout-line-path"></a><h3>pango_cairo_layout_line_path ()</h3>
|
1489
1489
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
1490
|
-
pango_cairo_layout_line_path (<em class="parameter"><code><
|
1490
|
+
pango_cairo_layout_line_path (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1491
1491
|
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>);</pre>
|
1492
1492
|
<p>Adds the text in <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> to the current path in the
|
1493
1493
|
specified cairo context. The origin of the glyphs (the left edge
|
1494
1494
|
of the line) will be at the current point of the cairo context.</p>
|
1495
1495
|
<div class="refsect3">
|
1496
|
-
<a name="
|
1496
|
+
<a name="pango-cairo-layout-line-path.parameters"></a><h4>Parameters</h4>
|
1497
1497
|
<div class="informaltable"><table width="100%" border="0">
|
1498
1498
|
<colgroup>
|
1499
1499
|
<col width="150px" class="parameters_name">
|
@@ -1520,13 +1520,13 @@ of the line) will be at the current point of the cairo context.</p>
|
|
1520
1520
|
<div class="refsect2">
|
1521
1521
|
<a name="pango-cairo-layout-path"></a><h3>pango_cairo_layout_path ()</h3>
|
1522
1522
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
1523
|
-
pango_cairo_layout_path (<em class="parameter"><code><
|
1523
|
+
pango_cairo_layout_path (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1524
1524
|
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
1525
1525
|
<p>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
|
1526
1526
|
specified cairo context. The top-left corner of the <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1527
1527
|
will be at the current point of the cairo context.</p>
|
1528
1528
|
<div class="refsect3">
|
1529
|
-
<a name="
|
1529
|
+
<a name="pango-cairo-layout-path.parameters"></a><h4>Parameters</h4>
|
1530
1530
|
<div class="informaltable"><table width="100%" border="0">
|
1531
1531
|
<colgroup>
|
1532
1532
|
<col width="150px" class="parameters_name">
|
@@ -1553,7 +1553,7 @@ will be at the current point of the cairo context.</p>
|
|
1553
1553
|
<div class="refsect2">
|
1554
1554
|
<a name="pango-cairo-error-underline-path"></a><h3>pango_cairo_error_underline_path ()</h3>
|
1555
1555
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
1556
|
-
pango_cairo_error_underline_path (<em class="parameter"><code><
|
1556
|
+
pango_cairo_error_underline_path (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
|
1557
1557
|
<em class="parameter"><code><span class="type">double</span> x</code></em>,
|
1558
1558
|
<em class="parameter"><code><span class="type">double</span> y</code></em>,
|
1559
1559
|
<em class="parameter"><code><span class="type">double</span> width</code></em>,
|
@@ -1564,7 +1564,7 @@ to indicate a spelling error. (The width of the underline is rounded to an
|
|
1564
1564
|
integer number of up/down segments and the resulting rectangle is centered
|
1565
1565
|
in the original rectangle)</p>
|
1566
1566
|
<div class="refsect3">
|
1567
|
-
<a name="
|
1567
|
+
<a name="pango-cairo-error-underline-path.parameters"></a><h4>Parameters</h4>
|
1568
1568
|
<div class="informaltable"><table width="100%" border="0">
|
1569
1569
|
<colgroup>
|
1570
1570
|
<col width="150px" class="parameters_name">
|
@@ -1625,6 +1625,6 @@ on the particular font technology Cairo was compiled to use.</p>
|
|
1625
1625
|
</div>
|
1626
1626
|
</div>
|
1627
1627
|
<div class="footer">
|
1628
|
-
<hr>Generated by GTK-Doc V1.
|
1628
|
+
<hr>Generated by GTK-Doc V1.25.1</div>
|
1629
1629
|
</body>
|
1630
1630
|
</html>
|