4
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
5
<title>gimpfontselect</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
7
7
<link rel="start" href="index.html" title="GIMP Library Reference Manual">
8
8
<link rel="up" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
9
9
<link rel="prev" href="libgimp-gimpbrushselect.html" title="gimpbrushselect">
10
10
<link rel="next" href="libgimp-gimpgradientselect.html" title="gimpgradientselect">
11
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="part" href="gimpdefinitions.html" title="Part I. GIMP Constants">
14
<link rel="part" href="libgimp.html" title="Part II. GIMP Library">
13
<link rel="part" href="libgimp.html" title="Part I. GIMP Library">
15
14
<link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images">
16
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties">
15
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and their Properties">
17
16
<link rel="chapter" href="libgimp-data.html" title="Data Objects">
18
17
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
19
<link rel="part" href="libgimpui.html" title="Part III. GIMP User Interface Library">
18
<link rel="part" href="libgimpui.html" title="Part II. GIMP User Interface Library">
20
19
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
20
<link rel="index" href="libgimp-index.html" title="Index">
21
<link rel="index" href="libgimp-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
22
<link rel="index" href="libgimp-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
23
<link rel="index" href="libgimp-index-deprecated.html" title="Index of deprecated symbols">
22
25
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
23
26
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
28
31
<th width="100%" align="center">GIMP Library Reference Manual</th>
29
32
<td><a accesskey="n" href="libgimp-gimpgradientselect.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
31
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2537230" class="shortcut">Top</a>
34
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2565532" class="shortcut">Top</a>
33
<a href="#id2637766" class="shortcut">Description</a></nobr></td></tr>
36
<a href="#id2704250" class="shortcut">Description</a></nobr></td></tr>
35
38
<div class="refentry" lang="en">
36
39
<a name="libgimp-gimpfontselect"></a><div class="titlepage"></div>
37
40
<div class="refnamediv"><table width="100%"><tr>
40
<a name="id2537230"></a><span class="refentrytitle">gimpfontselect</span>
43
<a name="id2565532"></a><span class="refentrytitle">gimpfontselect</span>
42
45
<p>gimpfontselect — Functions providing a font selection dialog.</p>
52
void (<a href="libgimp-gimpfontselect.html#GimpRunFontCallback">*GimpRunFontCallback</a>) (const gchar *font_name,
53
gboolean dialog_closing,
55
const gchar* <a href="libgimp-gimpfontselect.html#gimp-font-select-new">gimp_font_select_new</a> (const gchar *title,
56
const gchar *font_name,
57
<a href="libgimp-gimpfontselect.html#GimpRunFontCallback">GimpRunFontCallback</a> callback,
59
void <a href="libgimp-gimpfontselect.html#gimp-font-select-destroy">gimp_font_select_destroy</a> (const gchar *font_callback);
60
gboolean <a href="libgimp-gimpfontselect.html#gimp-fonts-popup">gimp_fonts_popup</a> (const gchar *font_callback,
61
const gchar *popup_title,
62
const gchar *initial_font);
63
gboolean <a href="libgimp-gimpfontselect.html#gimp-fonts-close-popup">gimp_fonts_close_popup</a> (const gchar *font_callback);
64
gboolean <a href="libgimp-gimpfontselect.html#gimp-fonts-set-popup">gimp_fonts_set_popup</a> (const gchar *font_callback,
65
const gchar *font_name);
55
void (<a href="libgimp-gimpfontselect.html#GimpRunFontCallback">*GimpRunFontCallback</a>) (const gchar *font_name,
56
gboolean dialog_closing,
58
const gchar* <a href="libgimp-gimpfontselect.html#gimp-font-select-new">gimp_font_select_new</a> (const gchar *title,
59
const gchar *font_name,
60
<a href="libgimp-gimpfontselect.html#GimpRunFontCallback">GimpRunFontCallback</a> callback,
62
void <a href="libgimp-gimpfontselect.html#gimp-font-select-destroy">gimp_font_select_destroy</a> (const gchar *font_callback);
63
gboolean <a href="libgimp-gimpfontselect.html#gimp-fonts-popup">gimp_fonts_popup</a> (const gchar *font_callback,
64
const gchar *popup_title,
65
const gchar *initial_font);
66
gboolean <a href="libgimp-gimpfontselect.html#gimp-fonts-close-popup">gimp_fonts_close_popup</a> (const gchar *font_callback);
67
gboolean <a href="libgimp-gimpfontselect.html#gimp-fonts-set-popup">gimp_fonts_set_popup</a> (const gchar *font_callback,
68
const gchar *font_name);
68
71
<div class="refsect1" lang="en">
69
<a name="id2637766"></a><h2>Description</h2>
72
<a name="id2704250"></a><h2>Description</h2>
71
74
Functions providing a font selection dialog.
74
77
<div class="refsect1" lang="en">
75
<a name="id2637782"></a><h2>Details</h2>
78
<a name="id2704267"></a><h2>Details</h2>
76
79
<div class="refsect2" lang="en">
77
<a name="id2637793"></a><h3>
80
<a name="id2704277"></a><h3>
78
81
<a name="GimpRunFontCallback"></a>GimpRunFontCallback ()</h3>
79
<a class="indexterm" name="id2649156"></a><pre class="programlisting">void (*GimpRunFontCallback) (const gchar *font_name,
80
gboolean dialog_closing,
81
gpointer user_data);</pre>
82
<a class="indexterm" name="id2704288"></a><pre class="programlisting">void (*GimpRunFontCallback) (const gchar *font_name,
83
gboolean dialog_closing,
84
gpointer user_data);</pre>
86
89
<col align="left" valign="top">
90
<span class="term"><em class="parameter"><code>font_name</code></em> :</span></td>
96
<span class="term"><em class="parameter"><code>dialog_closing</code></em> :</span></td>
102
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
92
<td><span class="term"><em class="parameter"><code>font_name</code></em> :</span></td>
97
<td><span class="term"><em class="parameter"><code>dialog_closing</code></em> :</span></td>
102
<td><span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
112
112
<div class="refsect2" lang="en">
113
<a name="id2649242"></a><h3>
113
<a name="id2708262"></a><h3>
114
114
<a name="gimp-font-select-new"></a>gimp_font_select_new ()</h3>
115
<a class="indexterm" name="id2649254"></a><pre class="programlisting">const gchar* gimp_font_select_new (const gchar *title,
116
const gchar *font_name,
117
<a href="libgimp-gimpfontselect.html#GimpRunFontCallback">GimpRunFontCallback</a> callback,
118
gpointer data);</pre>
115
<a class="indexterm" name="id2708273"></a><pre class="programlisting">const gchar* gimp_font_select_new (const gchar *title,
116
const gchar *font_name,
117
<a href="libgimp-gimpfontselect.html#GimpRunFontCallback">GimpRunFontCallback</a> callback,
118
gpointer data);</pre>
123
123
<col align="left" valign="top">
127
<span class="term"><em class="parameter"><code>title</code></em> :</span></td>
133
<span class="term"><em class="parameter"><code>font_name</code></em> :</span></td>
139
<span class="term"><em class="parameter"><code>callback</code></em> :</span></td>
145
<span class="term"><em class="parameter"><code>data</code></em> :</span></td>
151
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
126
<td><span class="term"><em class="parameter"><code>title</code></em> :</span></td>
131
<td><span class="term"><em class="parameter"><code>font_name</code></em> :</span></td>
136
<td><span class="term"><em class="parameter"><code>callback</code></em> :</span></td>
141
<td><span class="term"><em class="parameter"><code>data</code></em> :</span></td>
146
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
161
156
<div class="refsect2" lang="en">
162
<a name="id2649373"></a><h3>
157
<a name="id2708394"></a><h3>
163
158
<a name="gimp-font-select-destroy"></a>gimp_font_select_destroy ()</h3>
164
<a class="indexterm" name="id2649384"></a><pre class="programlisting">void gimp_font_select_destroy (const gchar *font_callback);</pre>
159
<a class="indexterm" name="id2708405"></a><pre class="programlisting">void gimp_font_select_destroy (const gchar *font_callback);</pre>
168
163
<div class="variablelist"><table border="0">
169
164
<col align="left" valign="top">
172
<span class="term"><em class="parameter"><code>font_callback</code></em> :</span></td>
166
<td><span class="term"><em class="parameter"><code>font_callback</code></em> :</span></td>
181
175
<div class="refsect2" lang="en">
182
<a name="id2640380"></a><h3>
176
<a name="id2708450"></a><h3>
183
177
<a name="gimp-fonts-popup"></a>gimp_fonts_popup ()</h3>
184
<a class="indexterm" name="id2640392"></a><pre class="programlisting">gboolean gimp_fonts_popup (const gchar *font_callback,
185
const gchar *popup_title,
186
const gchar *initial_font);</pre>
178
<a class="indexterm" name="id2708461"></a><pre class="programlisting">gboolean gimp_fonts_popup (const gchar *font_callback,
179
const gchar *popup_title,
180
const gchar *initial_font);</pre>
188
182
Invokes the Gimp font selection.
191
This procedure popups the font selection dialog.</p>
185
This procedure opens the font selection dialog.</p>
196
190
<col align="left" valign="top">
200
<span class="term"><em class="parameter"><code>font_callback</code></em> :</span></td>
193
<td><span class="term"><em class="parameter"><code>font_callback</code></em> :</span></td>
201
194
<td> The callback PDB proc to call when font selection is made.
206
<span class="term"><em class="parameter"><code>popup_title</code></em> :</span></td>
207
<td> Title to give the font popup window.
198
<td><span class="term"><em class="parameter"><code>popup_title</code></em> :</span></td>
199
<td> Title of the font selection dialog.
212
<span class="term"><em class="parameter"><code>initial_font</code></em> :</span></td>
203
<td><span class="term"><em class="parameter"><code>initial_font</code></em> :</span></td>
213
204
<td> The name of the font to set as the first selected.
218
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
208
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
219
209
<td> TRUE on success.
226
216
<div class="refsect2" lang="en">
227
<a name="id2640497"></a><h3>
217
<a name="id2706393"></a><h3>
228
218
<a name="gimp-fonts-close-popup"></a>gimp_fonts_close_popup ()</h3>
229
<a class="indexterm" name="id2640509"></a><pre class="programlisting">gboolean gimp_fonts_close_popup (const gchar *font_callback);</pre>
219
<a class="indexterm" name="id2706404"></a><pre class="programlisting">gboolean gimp_fonts_close_popup (const gchar *font_callback);</pre>
231
Popdown the Gimp font selection.
221
Close the font selection dialog.
234
224
This procedure closes an opened font selection dialog.</p>
239
229
<col align="left" valign="top">
243
<span class="term"><em class="parameter"><code>font_callback</code></em> :</span></td>
244
<td> The name of the callback registered for this popup.
232
<td><span class="term"><em class="parameter"><code>font_callback</code></em> :</span></td>
233
<td> The name of the callback registered for this pop-up.
249
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
237
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
250
238
<td> TRUE on success.
257
245
<div class="refsect2" lang="en">
258
<a name="id2640572"></a><h3>
246
<a name="id2706468"></a><h3>
259
247
<a name="gimp-fonts-set-popup"></a>gimp_fonts_set_popup ()</h3>
260
<a class="indexterm" name="id2640583"></a><pre class="programlisting">gboolean gimp_fonts_set_popup (const gchar *font_callback,
261
const gchar *font_name);</pre>
248
<a class="indexterm" name="id2706479"></a><pre class="programlisting">gboolean gimp_fonts_set_popup (const gchar *font_callback,
249
const gchar *font_name);</pre>
263
Sets the current font selection in a popup.
251
Sets the current font in a font selection dialog.
266
Sets the current font selection in a popup.</p>
254
Sets the current font in a font selection dialog.</p>
271
259
<col align="left" valign="top">
275
<span class="term"><em class="parameter"><code>font_callback</code></em> :</span></td>
276
<td> The name of the callback registered for this popup.
262
<td><span class="term"><em class="parameter"><code>font_callback</code></em> :</span></td>
263
<td> The name of the callback registered for this pop-up.
281
<span class="term"><em class="parameter"><code>font_name</code></em> :</span></td>
267
<td><span class="term"><em class="parameter"><code>font_name</code></em> :</span></td>
282
268
<td> The name of the font to set as selected.
287
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
272
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
288
273
<td> TRUE on success.