~ubuntu-branches/ubuntu/karmic/pango1.0/karmic-security

« back to all changes in this revision

Viewing changes to docs/tmpl/main.sgml

Tags: upstream-1.15.4
ImportĀ upstreamĀ versionĀ 1.15.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- ##### SECTION Title ##### -->
 
2
Rendering
 
3
 
 
4
<!-- ##### SECTION Short_Description ##### -->
 
5
Functions to run the rendering pipeline
 
6
 
 
7
<!-- ##### SECTION Long_Description ##### -->
 
8
<para>
 
9
The Pango rendering pipeline takes a string of
 
10
Unicode characters and converts it into glyphs.
 
11
The functions described in this section accomplish
 
12
various steps of this process.
 
13
</para>
 
14
 
 
15
<!-- ##### SECTION See_Also ##### -->
 
16
<para>
 
17
 
 
18
</para>
 
19
 
 
20
<!-- ##### SECTION Stability_Level ##### -->
 
21
 
 
22
 
 
23
<!-- ##### STRUCT PangoContext ##### -->
 
24
<para>
 
25
The #PangoContext structure stores global information
 
26
used to control the itemization process. 
 
27
</para>
 
28
 
 
29
 
 
30
<!-- ##### STRUCT PangoItem ##### -->
 
31
<para>
 
32
The #PangoItem structure stores information about
 
33
a segment of text. It contains the following fields:
 
34
</para>
 
35
 
 
36
@offset: the offset of the segment from the beginning of the
 
37
         string in bytes.
 
38
@length: the length of the segment in bytes.
 
39
@num_chars: the length of the segment in characters.
 
40
@analysis: the properties of the segment.
 
41
 
 
42
<!-- ##### STRUCT PangoAnalysis ##### -->
 
43
<para>
 
44
The #PangoAnalysis structure stores information about
 
45
the properties of a segment of text. It has the following
 
46
fields:
 
47
</para>
 
48
 
 
49
@shape_engine: the engine for doing rendering-system-dependent processing.
 
50
@lang_engine: the engine for doing rendering-system-independent processing.
 
51
@font: the font for this segment.
 
52
@level: the bidirectional level for this segment.
 
53
@gravity: the glyph orientation for this segment.
 
54
@flags: boolean flags for this segment (currently only one) (Since: 1.16).
 
55
@language: the detected language for this segment.
 
56
@extra_attrs: extra attributes for this segment.
 
57
 
 
58
<!-- ##### MACRO PANGO_ANALYSIS_FLAG_CENTERED_BASELINE ##### -->
 
59
<para>
 
60
Whether the segment should be shifted to center around the baseline.
 
61
Used in vertical writing directions mostly.
 
62
 
 
63
Since: 1.16
 
64
</para>
 
65
 
 
66
 
 
67
 
 
68
<!-- ##### ENUM PangoDirection ##### -->
 
69
<para>
 
70
</para>
 
71
 
 
72
@PANGO_DIRECTION_LTR: 
 
73
@PANGO_DIRECTION_RTL: 
 
74
@PANGO_DIRECTION_TTB_LTR: 
 
75
@PANGO_DIRECTION_TTB_RTL: 
 
76
@PANGO_DIRECTION_WEAK_LTR: 
 
77
@PANGO_DIRECTION_WEAK_RTL: 
 
78
@PANGO_DIRECTION_NEUTRAL: 
 
79
 
 
80
<!-- ##### MACRO PANGO_TYPE_DIRECTION ##### -->
 
81
<para>
 
82
The #GObject type for #PangoDirection.
 
83
</para>
 
84
 
 
85
 
 
86
 
 
87
<!-- ##### FUNCTION pango_itemize ##### -->
 
88
<para>
 
89
 
 
90
</para>
 
91
 
 
92
@context: 
 
93
@text: 
 
94
@start_index: 
 
95
@length: 
 
96
@attrs: 
 
97
@cached_iter: 
 
98
@Returns: 
 
99
 
 
100
 
 
101
<!-- ##### FUNCTION pango_itemize_with_base_dir ##### -->
 
102
<para>
 
103
 
 
104
</para>
 
105
 
 
106
@context: 
 
107
@base_dir: 
 
108
@text: 
 
109
@start_index: 
 
110
@length: 
 
111
@attrs: 
 
112
@cached_iter: 
 
113
@Returns: 
 
114
 
 
115
 
 
116
<!-- ##### FUNCTION pango_item_free ##### -->
 
117
<para>
 
118
 
 
119
</para>
 
120
 
 
121
@item: 
 
122
 
 
123
 
 
124
<!-- ##### FUNCTION pango_item_copy ##### -->
 
125
<para>
 
126
 
 
127
</para>
 
128
 
 
129
@item: 
 
130
@Returns: 
 
131
 
 
132
 
 
133
<!-- ##### FUNCTION pango_item_new ##### -->
 
134
<para>
 
135
 
 
136
</para>
 
137
 
 
138
@Returns: 
 
139
 
 
140
 
 
141
<!-- ##### FUNCTION pango_item_split ##### -->
 
142
<para>
 
143
 
 
144
</para>
 
145
 
 
146
@orig: 
 
147
@split_index: 
 
148
@split_offset: 
 
149
@Returns: 
 
150
 
 
151
 
 
152
<!-- ##### FUNCTION pango_reorder_items ##### -->
 
153
<para>
 
154
 
 
155
</para>
 
156
 
 
157
@logical_items: 
 
158
@Returns: 
 
159
 
 
160
 
 
161
<!-- ##### FUNCTION pango_context_new ##### -->
 
162
<para>
 
163
 
 
164
</para>
 
165
 
 
166
@Returns: 
 
167
 
 
168
 
 
169
<!-- ##### FUNCTION pango_context_set_font_map ##### -->
 
170
<para>
 
171
 
 
172
</para>
 
173
 
 
174
@context: 
 
175
@font_map: 
 
176
 
 
177
 
 
178
<!-- ##### FUNCTION pango_context_get_font_map ##### -->
 
179
<para>
 
180
 
 
181
</para>
 
182
 
 
183
@context: 
 
184
@Returns: 
 
185
 
 
186
 
 
187
<!-- ##### FUNCTION pango_context_get_font_description ##### -->
 
188
<para>
 
189
 
 
190
</para>
 
191
 
 
192
@context: 
 
193
@Returns: 
 
194
 
 
195
 
 
196
<!-- ##### FUNCTION pango_context_set_font_description ##### -->
 
197
<para>
 
198
 
 
199
</para>
 
200
 
 
201
@context: 
 
202
@desc: 
 
203
 
 
204
 
 
205
<!-- ##### FUNCTION pango_context_get_language ##### -->
 
206
<para>
 
207
 
 
208
</para>
 
209
 
 
210
@context: 
 
211
@Returns: 
 
212
 
 
213
 
 
214
<!-- ##### FUNCTION pango_context_set_language ##### -->
 
215
<para>
 
216
 
 
217
</para>
 
218
 
 
219
@context: 
 
220
@language: 
 
221
 
 
222
 
 
223
<!-- ##### FUNCTION pango_context_get_base_dir ##### -->
 
224
<para>
 
225
 
 
226
</para>
 
227
 
 
228
@context: 
 
229
@Returns: 
 
230
 
 
231
 
 
232
<!-- ##### FUNCTION pango_context_set_base_dir ##### -->
 
233
<para>
 
234
 
 
235
</para>
 
236
 
 
237
@context: 
 
238
@direction: 
 
239
 
 
240
 
 
241
<!-- ##### FUNCTION pango_context_get_base_gravity ##### -->
 
242
<para>
 
243
 
 
244
</para>
 
245
 
 
246
@context: 
 
247
@Returns: 
 
248
 
 
249
 
 
250
<!-- ##### FUNCTION pango_context_set_base_gravity ##### -->
 
251
<para>
 
252
 
 
253
</para>
 
254
 
 
255
@context: 
 
256
@gravity: 
 
257
 
 
258
 
 
259
<!-- ##### FUNCTION pango_context_get_gravity ##### -->
 
260
<para>
 
261
 
 
262
</para>
 
263
 
 
264
@context: 
 
265
@Returns: 
 
266
 
 
267
 
 
268
<!-- ##### FUNCTION pango_context_get_gravity_hint ##### -->
 
269
<para>
 
270
 
 
271
</para>
 
272
 
 
273
@context: 
 
274
@Returns: 
 
275
 
 
276
 
 
277
<!-- ##### FUNCTION pango_context_set_gravity_hint ##### -->
 
278
<para>
 
279
 
 
280
</para>
 
281
 
 
282
@context: 
 
283
@hint: 
 
284
 
 
285
 
 
286
<!-- ##### FUNCTION pango_context_get_matrix ##### -->
 
287
<para>
 
288
 
 
289
</para>
 
290
 
 
291
@context: 
 
292
@Returns: 
 
293
 
 
294
 
 
295
<!-- ##### FUNCTION pango_context_set_matrix ##### -->
 
296
<para>
 
297
 
 
298
</para>
 
299
 
 
300
@context: 
 
301
@matrix: 
 
302
 
 
303
 
 
304
<!-- ##### FUNCTION pango_context_load_font ##### -->
 
305
<para>
 
306
 
 
307
</para>
 
308
 
 
309
@context: 
 
310
@desc: 
 
311
@Returns: 
 
312
 
 
313
 
 
314
<!-- ##### FUNCTION pango_context_load_fontset ##### -->
 
315
<para>
 
316
 
 
317
</para>
 
318
 
 
319
@context: 
 
320
@desc: 
 
321
@language: 
 
322
@Returns: 
 
323
 
 
324
 
 
325
<!-- ##### FUNCTION pango_context_get_metrics ##### -->
 
326
<para>
 
327
 
 
328
</para>
 
329
 
 
330
@context: 
 
331
@desc: 
 
332
@language: 
 
333
@Returns: 
 
334
 
 
335
 
 
336
<!-- ##### FUNCTION pango_context_list_families ##### -->
 
337
<para>
 
338
 
 
339
</para>
 
340
 
 
341
@context: 
 
342
@families: 
 
343
@n_families: 
 
344
 
 
345
 
 
346
<!-- ##### FUNCTION pango_get_mirror_char ##### -->
 
347
<para>
 
348
 
 
349
</para>
 
350
 
 
351
@ch: 
 
352
@mirrored_ch: 
 
353
@Returns: 
 
354
 
 
355
 
 
356
<!-- ##### FUNCTION pango_unichar_direction ##### -->
 
357
<para>
 
358
 
 
359
</para>
 
360
 
 
361
@ch: 
 
362
@Returns: 
 
363
 
 
364
 
 
365
<!-- ##### FUNCTION pango_find_base_dir ##### -->
 
366
<para>
 
367
 
 
368
</para>
 
369
 
 
370
@text: 
 
371
@length: 
 
372
@Returns: 
 
373
 
 
374
 
 
375
<!-- ##### FUNCTION pango_gravity_to_rotation ##### -->
 
376
<para>
 
377
 
 
378
</para>
 
379
 
 
380
@gravity: 
 
381
@Returns: 
 
382
 
 
383
 
 
384
<!-- ##### FUNCTION pango_break ##### -->
 
385
<para>
 
386
 
 
387
</para>
 
388
 
 
389
@text: 
 
390
@length: 
 
391
@analysis: 
 
392
@attrs: 
 
393
@attrs_len: 
 
394
 
 
395
 
 
396
<!-- ##### FUNCTION pango_get_log_attrs ##### -->
 
397
<para>
 
398
 
 
399
</para>
 
400
 
 
401
@text: 
 
402
@length: 
 
403
@level: 
 
404
@language: 
 
405
@log_attrs: 
 
406
@attrs_len: 
 
407
 
 
408
 
 
409
<!-- ##### FUNCTION pango_find_paragraph_boundary ##### -->
 
410
<para>
 
411
 
 
412
</para>
 
413
 
 
414
@text: 
 
415
@length: 
 
416
@paragraph_delimiter_index: 
 
417
@next_paragraph_start: 
 
418
 
 
419
 
 
420
<!-- ##### FUNCTION pango_default_break ##### -->
 
421
<para>
 
422
 
 
423
</para>
 
424
 
 
425
@text: 
 
426
@length: 
 
427
@analysis: 
 
428
@attrs: 
 
429
@attrs_len: 
 
430
 
 
431
 
 
432
<!-- ##### STRUCT PangoLogAttr ##### -->
 
433
<para>
 
434
The #PangoLogAttr structure stores information
 
435
about the attributes of a single character.
 
436
</para>
 
437
 
 
438
@is_line_break: if set, can break line in front of character
 
439
@is_mandatory_break: if set, must break line in front of character
 
440
@is_char_break: if set, can break here when doing character wrapping
 
441
@is_white: is whitespace character
 
442
@is_cursor_position: if set, cursor can appear in front of character.
 
443
        i.e. this is a grapheme boundary, or the first character
 
444
        in the text.
 
445
@is_word_start: is first character in a word
 
446
@is_word_end: is first non-word char after a word
 
447
        Note that in degenerate cases, you could have both @is_word_start
 
448
        and @is_word_end set for some character.
 
449
@is_sentence_boundary: is a sentence boundary.
 
450
        There are two ways to divide sentences. The first assigns all
 
451
        inter-sentence whitespace/control/format chars to some sentence,
 
452
        so all chars are in some sentence; @is_sentence_boundary denotes
 
453
        the boundaries there. The second way doesn't assign
 
454
        between-sentence spaces, etc. to any sentence, so
 
455
        @is_sentence_start/@is_sentence_end mark the boundaries
 
456
        of those sentences.
 
457
@is_sentence_start: is first character in a sentence
 
458
@is_sentence_end: is first char after a sentence.
 
459
        Note that in degenerate cases, you could have both @is_sentence_start
 
460
        and @is_sentence_end set for some character. (e.g. no space after a
 
461
        period, so the next sentence starts right away)
 
462
@backspace_deletes_character: if set, backspace deletes one character
 
463
                              rather than the entire grapheme cluster. This
 
464
                              field is only meaningful on grapheme
 
465
                              boundaries (where @is_cursor_position is
 
466
                              set).  In some languages, the full grapheme
 
467
                              (e.g.  letter + diacritics) is considered a
 
468
                              unit, while in others, each decomposed
 
469
                              character in the grapheme is a unit. In the
 
470
                              default implementation of pango_break(), this
 
471
                              bit is set on all grapheme boundaries except
 
472
                              those following Latin, Cyrillic or Greek base
 
473
                              characters.
 
474
 
 
475
<!-- ##### FUNCTION pango_shape ##### -->
 
476
<para>
 
477
 
 
478
</para>
 
479
 
 
480
@text: 
 
481
@length: 
 
482
@analysis: 
 
483
@glyphs: 
 
484
 
 
485