add new sigc++2 directory
[ardour.git] / libs / gtkmm2 / pango / src / pango_docs.xml
1 <root>
2 <function name="pango_layout_get_justify">
3 <description>
4 Gets whether each complete line should be stretched to fill the entire
5 width of the layout.
6
7
8 </description>
9 <parameters>
10 <parameter name="layout">
11 <parameter_description> a #PangoLayout
12 </parameter_description>
13 </parameter>
14 </parameters>
15 <return> the justify.
16 </return>
17 </function>
18
19 <function name="pango_renderer_draw_error_underline">
20 <description>
21 Draw a squiggly line that approximately covers the given rectangle
22 in the style of an underline used to indicate a spelling error.
23 (The width of the underline is rounded to an integer number
24 of up/down segments and the resulting rectangle is centered
25 in the original rectangle)
26
27 This should be called while @renderer is already active.  Use
28 pango_renderer_activate() to activate a renderer.
29
30 Since: 1.8
31
32 </description>
33 <parameters>
34 <parameter name="renderer">
35 <parameter_description> a #PangoRenderer
36 </parameter_description>
37 </parameter>
38 <parameter name="x">
39 <parameter_description> X coordinate of underline, in Pango units in user coordinate system
40 </parameter_description>
41 </parameter>
42 <parameter name="y">
43 <parameter_description> Y coordinate of underline, in Pango units in user coordinate system
44 </parameter_description>
45 </parameter>
46 <parameter name="width">
47 <parameter_description> width of underline, in Pango units in user coordinate system
48 </parameter_description>
49 </parameter>
50 <parameter name="height">
51 <parameter_description> height of underline, in Pango units in user coordinate system
52 </parameter_description>
53 </parameter>
54 </parameters>
55 <return></return>
56 </function>
57
58 <function name="pango_layout_get_alignment">
59 <description>
60 Gets the alignment for the layout: how partial lines are
61 positioned within the horizontal space available.
62
63
64 </description>
65 <parameters>
66 <parameter name="layout">
67 <parameter_description> a #PangoLayout
68 </parameter_description>
69 </parameter>
70 </parameters>
71 <return> the alignment.
72 </return>
73 </function>
74
75 <function name="pango_layout_get_pixel_size">
76 <description>
77 Determines the logical width and height of a #PangoLayout
78 in device units. (pango_layout_get_size() returns the width
79 and height scaled by %PANGO_SCALE.) This
80 is simply a convenience function around
81 pango_layout_get_pixel_extents().
82
83 </description>
84 <parameters>
85 <parameter name="layout">
86 <parameter_description> a #PangoLayout
87 </parameter_description>
88 </parameter>
89 <parameter name="width">
90 <parameter_description> location to store the logical width, or %NULL
91 </parameter_description>
92 </parameter>
93 <parameter name="height">
94 <parameter_description> location to store the logical height, or %NULL
95 </parameter_description>
96 </parameter>
97 </parameters>
98 <return></return>
99 </function>
100
101 <function name="pango_ot_tag_from_language">
102 <description>
103 Finds the OpenType language-system tag best describing @language.
104
105
106 </description>
107 <parameters>
108 <parameter name="language">
109 <parameter_description> A #PangoLanguage, or %NULL
110 </parameter_description>
111 </parameter>
112 </parameters>
113 <return> #PangoOTTag best matching @language or
114 %PANGO_OT_TAG_DEFAULT_LANGUAGE if none found or if @language
115 is %NULL.
116
117 Since: 1.18
118 </return>
119 </function>
120
121 <function name="pango_ft2_render_layout_line">
122 <description>
123 Render a #PangoLayoutLine onto a FreeType2 bitmap
124
125 </description>
126 <parameters>
127 <parameter name="bitmap">
128 <parameter_description>    a &amp;lt;type&amp;gt;FT_Bitmap&amp;lt;/type&amp;gt; to render the line onto
129 </parameter_description>
130 </parameter>
131 <parameter name="line">
132 <parameter_description>      a #PangoLayoutLine
133 </parameter_description>
134 </parameter>
135 <parameter name="x">
136 <parameter_description>         the x position of start of string (in pixels)
137 </parameter_description>
138 </parameter>
139 <parameter name="y">
140 <parameter_description>         the y position of baseline (in pixels)
141 </parameter_description>
142 </parameter>
143 </parameters>
144 <return></return>
145 </function>
146
147 <function name="pango_ot_info_find_feature">
148 <description>
149 Finds the index of a feature.  If the feature is not found, sets
150 @feature_index to PANGO_OT_NO_FEATURE, which is safe to pass to
151 pango_ot_ruleset_add_feature() and similar functions.
152
153 In the future, this may set @feature_index to an special value that if used
154 in pango_ot_ruleset_add_feature() will ask Pango to synthesize the
155 requested feature based on Unicode properties and data.  However, this
156 function will still return %FALSE in those cases.  So, users may want to
157 ignore the return value of this function in certain cases.
158
159
160 </description>
161 <parameters>
162 <parameter name="info">
163 <parameter_description> a #PangoOTInfo.
164 </parameter_description>
165 </parameter>
166 <parameter name="table_type">
167 <parameter_description> the table type to obtain information about.
168 </parameter_description>
169 </parameter>
170 <parameter name="feature_tag">
171 <parameter_description> the tag of the feature to find.
172 </parameter_description>
173 </parameter>
174 <parameter name="script_index">
175 <parameter_description> the index of the script.
176 </parameter_description>
177 </parameter>
178 <parameter name="language_index">
179 <parameter_description> the index of the language whose features are searched,
180 or %PANGO_OT_DEFAULT_LANGUAGE to use the default language of the script.
181 </parameter_description>
182 </parameter>
183 <parameter name="feature_index">
184 <parameter_description> location to store the index of the feature, or %NULL.
185 </parameter_description>
186 </parameter>
187 </parameters>
188 <return> %TRUE if the feature was found.
189 </return>
190 </function>
191
192 <function name="pango_layout_get_auto_dir">
193 <description>
194 Gets whether to calculate the bidirectional base direction
195 for the layout according to the contents of the layout.
196 See pango_layout_set_auto_dir().
197
198
199 </description>
200 <parameters>
201 <parameter name="layout">
202 <parameter_description> a #PangoLayout
203 </parameter_description>
204 </parameter>
205 </parameters>
206 <return> %TRUE if the bidirectional base direction
207 is computed from the layout&apos;s contents, %FALSE otherwise.
208
209 Since: 1.4
210 </return>
211 </function>
212
213 <function name="pango_ot_buffer_set_rtl">
214 <description>
215 Sets whether glyphs will be rendered right-to-left.  This setting
216 is needed for proper horizontal positioning of right-to-left scripts.
217
218 Since: 1.4
219
220 </description>
221 <parameters>
222 <parameter name="buffer">
223 <parameter_description> a #PangoOTBuffer
224 </parameter_description>
225 </parameter>
226 <parameter name="rtl">
227 <parameter_description> %TRUE for right-to-left text
228 </parameter_description>
229 </parameter>
230 </parameters>
231 <return></return>
232 </function>
233
234 <function name="_pango_glyph_item_iter_prev_cluster">
235 <description>
236 Moves the iterator to the preceding cluster in the glyph item.
237
238
239 </description>
240 <parameters>
241 <parameter name="iter">
242 <parameter_description> a #PangoGlyphItemIter
243 </parameter_description>
244 </parameter>
245 </parameters>
246 <return> %TRUE if the iterator was moved, %FALSE if we were already on the
247 first cluster.
248 </return>
249 </function>
250
251 <function name="pango_fc_decoder_get_charset">
252 <description>
253 Generates an #FcCharSet of supported characters for the fcfont
254 given.  The returned #FcCharSet will be a reference to an
255 internal value stored by the #PangoFcDecoder and must not
256 be modified or freed.
257
258
259 </description>
260 <parameters>
261 <parameter name="decoder">
262 <parameter_description> a #PangoFcDecoder
263 </parameter_description>
264 </parameter>
265 <parameter name="fcfont">
266 <parameter_description> the #PangoFcFont to query.
267 </parameter_description>
268 </parameter>
269 </parameters>
270 <return> the #FcCharset for @fcfont; must not be modified
271 or freed.
272
273 Since: 1.6
274 </return>
275 </function>
276
277 <function name="pango_script_iter_new">
278 <description>
279 Create a new #PangoScriptIter, used to break a string of
280 Unicode into runs by text. No copy is made of @text, so
281 the caller needs to make sure it remains valid until
282 the iterator is freed with pango_script_iter_free ().x
283
284
285 </description>
286 <parameters>
287 <parameter name="text">
288 <parameter_description> a UTF-8 string
289 </parameter_description>
290 </parameter>
291 <parameter name="length">
292 <parameter_description> length of @text, or -1 if @text is nul-terminated.
293 </parameter_description>
294 </parameter>
295 </parameters>
296 <return> the new script iterator, initialized
297 to point at the first range in the text, which should be
298 freed with pango_script_iter_free(). If the string is
299 empty, it will point at an empty range.
300
301 Since: 1.4
302 </return>
303 </function>
304
305 <function name="pango_layout_get_tabs">
306 <description>
307 Gets the current #PangoTabArray used by this layout. If no
308 #PangoTabArray has been set, then the default tabs are in use
309 and %NULL is returned. Default tabs are every 8 spaces.
310 The return value should be freed with pango_tab_array_free().
311
312
313 </description>
314 <parameters>
315 <parameter name="layout">
316 <parameter_description> a #PangoLayout
317 </parameter_description>
318 </parameter>
319 </parameters>
320 <return> a copy of the tabs for this layout, or %NULL.
321 </return>
322 </function>
323
324 <function name="pango_layout_iter_get_baseline">
325 <description>
326 Gets the Y position of the current line&apos;s baseline, in layout
327 coordinates (origin at top left of the entire layout).
328
329
330 </description>
331 <parameters>
332 <parameter name="iter">
333 <parameter_description> a #PangoLayoutIter
334 </parameter_description>
335 </parameter>
336 </parameters>
337 <return> baseline of current line.
338 </return>
339 </function>
340
341 <function name="pango_cairo_layout_path">
342 <description>
343 Adds the text in a #PangoLayout to the current path in the
344 specified cairo context.  The top-left corner of the #PangoLayout
345 will be at the current point of the cairo context.
346
347 Since: 1.10
348
349 </description>
350 <parameters>
351 <parameter name="cr">
352 <parameter_description> a Cairo context
353 </parameter_description>
354 </parameter>
355 <parameter name="layout">
356 <parameter_description> a Pango layout
357 </parameter_description>
358 </parameter>
359 </parameters>
360 <return></return>
361 </function>
362
363 <function name="pango_layout_get_pixel_extents">
364 <description>
365 Computes the logical and ink extents of @layout in device units.
366 This function just calls pango_layout_get_extents() followed by
367 pango_extents_to_pixels().
368
369 See pango_extents_to_pixels() for details of how ink and logical rectangles
370 are rounded to pixels.  In certain situations you may want to use
371 pango_layout_get_extents() directly and pass the resulting logical
372 rectangle to pango_extents_to_pixels() as an ink rectangle().
373
374 </description>
375 <parameters>
376 <parameter name="layout">
377 <parameter_description>   a #PangoLayout
378 </parameter_description>
379 </parameter>
380 <parameter name="ink_rect">
381 <parameter_description> rectangle used to store the extents of the layout as drawn
382 or %NULL to indicate that the result is not needed.
383 </parameter_description>
384 </parameter>
385 <parameter name="logical_rect">
386 <parameter_description> rectangle used to store the logical extents of the
387 layout or %NULL to indicate that the result is not needed.
388 </parameter_description>
389 </parameter>
390 </parameters>
391 <return></return>
392 </function>
393
394 <function name="pango_font_description_get_style">
395 <description>
396 Gets the style field of a #PangoFontDescription. See
397 pango_font_description_set_style().
398
399
400 </description>
401 <parameters>
402 <parameter name="desc">
403 <parameter_description> a #PangoFontDescription
404 </parameter_description>
405 </parameter>
406 </parameters>
407 <return> the style field for the font description.
408 Use pango_font_description_get_set_fields() to find out if
409 the field was explicitly set or not.
410 </return>
411 </function>
412
413 <function name="pango_font_description_get_set_fields">
414 <description>
415 Determines which fields in a font description have been set.
416
417
418 </description>
419 <parameters>
420 <parameter name="desc">
421 <parameter_description> a #PangoFontDescription
422 </parameter_description>
423 </parameter>
424 </parameters>
425 <return> a bitmask with bits set corresponding to the
426 fields in @desc that have been set.
427 </return>
428 </function>
429
430 <function name="pango_font_face_describe">
431 <description>
432 Return value: a newly-created #PangoFontDescription structure
433
434 </description>
435 <parameters>
436 <parameter name="face">
437 <parameter_description> a #PangoFontFace
438 </parameter_description>
439 </parameter>
440 </parameters>
441 <return> a newly-created #PangoFontDescription structure
442 holding the description of the face. Use pango_font_description_free()
443 to free the result.
444 </return>
445 </function>
446
447 <function name="pango_module_register">
448 <description>
449 Registers a statically linked module with Pango. The
450 #PangoIncludedModule structure that is passed in contains the
451 functions that would otherwise be loaded from a dynamically loaded
452 module.
453
454 </description>
455 <parameters>
456 <parameter name="module">
457 <parameter_description> a #PangoIncludedModule
458 </parameter_description>
459 </parameter>
460 </parameters>
461 <return></return>
462 </function>
463
464 <function name="pango_matrix_transform_point">
465 <description>
466 Transforms the point (@x, @y) by @matrix.
467
468 Since: 1.16
469
470 </description>
471 <parameters>
472 <parameter name="matrix">
473 <parameter_description> a #PangoMatrix, or %NULL
474 </parameter_description>
475 </parameter>
476 <parameter name="x">
477 <parameter_description> in/out X position
478 </parameter_description>
479 </parameter>
480 <parameter name="y">
481 <parameter_description> in/out Y position
482 </parameter_description>
483 </parameter>
484 </parameters>
485 <return></return>
486 </function>
487
488 <function name="pango_font_description_better_match">
489 <description>
490 Determines if the style attributes of @new_match are a closer match
491 for @desc than @old_match, or if @old_match is %NULL, determines if
492 @new_match is a match at all. Approximate matching is done for
493 weight and style; other attributes must match exactly.
494
495
496 </description>
497 <parameters>
498 <parameter name="desc">
499 <parameter_description> a #PangoFontDescription
500 </parameter_description>
501 </parameter>
502 <parameter name="old_match">
503 <parameter_description> a #PangoFontDescription, or %NULL
504 </parameter_description>
505 </parameter>
506 <parameter name="new_match">
507 <parameter_description> a #PangoFontDescription
508 </parameter_description>
509 </parameter>
510 </parameters>
511 <return> %TRUE if @new_match is a better match
512 </return>
513 </function>
514
515 <function name="pango_fc_font_has_char">
516 <description>
517 Determines whether @font has a glyph for the codepoint @wc.
518
519
520 </description>
521 <parameters>
522 <parameter name="font">
523 <parameter_description> a #PangoFcFont
524 </parameter_description>
525 </parameter>
526 <parameter name="wc">
527 <parameter_description> Unicode codepoint to look up
528 </parameter_description>
529 </parameter>
530 </parameters>
531 <return> %TRUE if @font has the requested codepoint.
532
533 Since: 1.4
534 </return>
535 </function>
536
537 <function name="pango_cairo_context_set_resolution">
538 <description>
539 Sets the resolution for the context. This is a scale factor between
540 points specified in a #PangoFontDescription and Cairo units. The
541 default value is 96, meaning that a 10 point font will be 13
542 units high. (10 * 96. / 72. = 13.3).
543
544 Since: 1.10
545
546 </description>
547 <parameters>
548 <parameter name="context">
549 <parameter_description> a #PangoContext, from pango_cairo_font_map_create_context()
550 </parameter_description>
551 </parameter>
552 <parameter name="dpi">
553 <parameter_description> the resolution in &quot;dots per inch&quot;. (Physical inches aren&apos;t actually
554 involved; the terminology is conventional.) A 0 or negative value
555 means to use the resolution from the font map.
556 </parameter_description>
557 </parameter>
558 </parameters>
559 <return></return>
560 </function>
561
562 <function name="pango_attr_type_register">
563 <description>
564 Allocate a new attribute type ID.
565
566
567 </description>
568 <parameters>
569 <parameter name="name">
570 <parameter_description> an identifier for the type (currently unused.)
571 </parameter_description>
572 </parameter>
573 </parameters>
574 <return> the new type ID.
575 </return>
576 </function>
577
578 <function name="pango_font_description_get_gravity">
579 <description>
580 Gets the gravity field of a font description. See
581 pango_font_description_set_gravity().
582
583
584 </description>
585 <parameters>
586 <parameter name="desc">
587 <parameter_description> a #PangoFontDescription
588 </parameter_description>
589 </parameter>
590 </parameters>
591 <return> the gravity field for the font description. Use
592 pango_font_description_get_set_fields() to find out if
593 the field was explicitly set or not.
594
595 Since: 1.16
596 </return>
597 </function>
598
599 <function name="pango_layout_iter_get_run">
600 <description>
601 Gets the current run. When iterating by run, at the end of each
602 line, there&apos;s a position with a %NULL run, so this function can return
603 %NULL. The %NULL run at the end of each line ensures that all lines have
604 at least one run, even lines consisting of only a newline.
605
606 Use the faster pango_layout_iter_get_run_readonly() if you do not plan
607 to modify the contents of the run (glyphs, glyph widths, etc.).
608
609
610 </description>
611 <parameters>
612 <parameter name="iter">
613 <parameter_description> a #PangoLayoutIter
614 </parameter_description>
615 </parameter>
616 </parameters>
617 <return> the current run.
618 </return>
619 </function>
620
621 <function name="pango_tab_array_resize">
622 <description>
623 Resizes a tab array. You must subsequently initialize any tabs that
624 were added as a result of growing the array.
625
626
627 </description>
628 <parameters>
629 <parameter name="tab_array">
630 <parameter_description> a #PangoTabArray
631 </parameter_description>
632 </parameter>
633 <parameter name="new_size">
634 <parameter_description> new size of the array
635 </parameter_description>
636 </parameter>
637 </parameters>
638 <return></return>
639 </function>
640
641 <function name="pango_atsui_font_get_atsu_font_id">
642 <description>
643 Return value: the ATSUFontID associated to @font.
644
645 </description>
646 <parameters>
647 <parameter name="font">
648 <parameter_description> A #PangoATSUIFont
649 </parameter_description>
650 </parameter>
651 </parameters>
652 <return> the ATSUFontID associated to @font.
653
654 Since: 1.18
655 </return>
656 </function>
657
658 <function name="pango_x_find_first_subfont">
659 <description>
660 Looks for subfonts with the @charset charset,
661 in @font, and puts the first one in *@rfont.
662
663
664 </description>
665 <parameters>
666 <parameter name="font">
667 <parameter_description> A #PangoFont.
668 </parameter_description>
669 </parameter>
670 <parameter name="rfont">
671 <parameter_description> A pointer to a #PangoXSubfont.
672 </parameter_description>
673 </parameter>
674 <parameter name="charsets">
675 <parameter_description> An array of charsets.
676 </parameter_description>
677 </parameter>
678 <parameter name="n_charsets">
679 <parameter_description> The number of charsets in @charsets.
680 </parameter_description>
681 </parameter>
682 </parameters>
683 <return> %TRUE if *@rfont now contains a font.
684 </return>
685 </function>
686
687 <function name="pango_context_get_metrics">
688 <description>
689 Get overall metric information for a particular font
690 description.  Since the metrics may be substantially different for
691 different scripts, a language tag can be provided to indicate that
692 the metrics should be retrieved that correspond to the script(s)
693 used by that language.
694
695 The #PangoFontDescription is interpreted in the same way as
696 by pango_itemize(), and the family name may be a comma separated
697 list of figures. If characters from multiple of these families
698 would be used to render the string, then the returned fonts would
699 be a composite of the metrics for the fonts loaded for the
700 individual families.
701
702
703 </description>
704 <parameters>
705 <parameter name="context">
706 <parameter_description> a #PangoContext
707 </parameter_description>
708 </parameter>
709 <parameter name="desc">
710 <parameter_description> a #PangoFontDescription structure
711 </parameter_description>
712 </parameter>
713 <parameter name="language">
714 <parameter_description> language tag used to determine which script to get the metrics
715 for. %NULL means that the language tag from the context will
716 be used. If no language tag is set on the context, metrics
717 large enough to cover a range of languages will be returned.
718 The process of determining such metrics is slow, so it is best
719 to always make sure some real language tag will be used.
720 </parameter_description>
721 </parameter>
722 </parameters>
723 <return> a #PangoFontMetrics object. The caller must call pango_font_metrics_unref()
724 when finished using the object.
725 </return>
726 </function>
727
728 <function name="pango_attr_strikethrough_color_new">
729 <description>
730 Create a new strikethrough color attribute. This attribute
731 modifies the color of strikethrough lines. If not set, strikethrough
732 lines will use the foreground color.
733
734
735 </description>
736 <parameters>
737 <parameter name="red">
738 <parameter_description> the red value (ranging from 0 to 65535)
739 </parameter_description>
740 </parameter>
741 <parameter name="green">
742 <parameter_description> the green value
743 </parameter_description>
744 </parameter>
745 <parameter name="blue">
746 <parameter_description> the blue value
747 </parameter_description>
748 </parameter>
749 </parameters>
750 <return> the newly allocated #PangoAttribute, which should be
751 freed with pango_attribute_destroy().
752
753 Since: 1.8
754 </return>
755 </function>
756
757 <function name="pango_layout_is_ellipsized">
758 <description>
759 Queries whether the layout had to ellipsize any paragraphs.
760
761 This returns %TRUE if the ellipsization mode for @layout
762 is not %PANGO_ELLIPSIZE_NONE, a positive width is set on @layout,
763 and there are paragraphs exceeding that width that have to be
764 ellipsized.
765
766
767 </description>
768 <parameters>
769 <parameter name="layout">
770 <parameter_description> a #PangoLayout
771 </parameter_description>
772 </parameter>
773 </parameters>
774 <return> %TRUE if any paragraphs had to be ellipsized, %FALSE
775 otherwise.
776
777 Since: 1.16
778 </return>
779 </function>
780
781 <function name="pango_ot_ruleset_new_from_description">
782 <description>
783 Creates a new #PangoOTRuleset for the given OpenType infor and
784 matching the given ruleset description.
785
786 This is a convenience function that calls pango_ot_ruleset_new_for() and
787 adds the static GSUB/GPOS features to the resulting ruleset, followed by
788 adding other features to both GSUB and GPOS.
789
790 The static feature map members of @desc should be alive as
791 long as @info is.
792
793
794 </description>
795 <parameters>
796 <parameter name="info">
797 <parameter_description> a #PangoOTInfo.
798 </parameter_description>
799 </parameter>
800 <parameter name="desc">
801 <parameter_description> a #PangoOTRulesetDescription.
802 </parameter_description>
803 </parameter>
804 </parameters>
805 <return> the newly allocated #PangoOTRuleset, which
806 should be freed with g_object_unref().
807
808 Since: 1.18
809 </return>
810 </function>
811
812 <function name="pango_matrix_translate">
813 <description>
814 Changes the transformation represented by @matrix to be the
815 transformation given by first translating by (@tx, @ty)
816 then applying the original transformation.
817
818 Since: 1.6
819
820 </description>
821 <parameters>
822 <parameter name="matrix">
823 <parameter_description> a #PangoMatrix
824 </parameter_description>
825 </parameter>
826 <parameter name="tx">
827 <parameter_description> amount to translate in the X direction
828 </parameter_description>
829 </parameter>
830 <parameter name="ty">
831 <parameter_description> amount to translate in the Y direction
832 </parameter_description>
833 </parameter>
834 </parameters>
835 <return></return>
836 </function>
837
838 <function name="pango_layout_get_spacing">
839 <description>
840 Gets the amount of spacing in #PangoGlyphUnit between the lines of the
841 layout.
842
843
844 </description>
845 <parameters>
846 <parameter name="layout">
847 <parameter_description> a #PangoLayout
848 </parameter_description>
849 </parameter>
850 </parameters>
851 <return> the spacing.
852 </return>
853 </function>
854
855 <function name="pango_tab_array_free">
856 <description>
857 Frees a tab array and associated resources.
858
859
860 </description>
861 <parameters>
862 <parameter name="tab_array">
863 <parameter_description> a #PangoTabArray
864 </parameter_description>
865 </parameter>
866 </parameters>
867 <return></return>
868 </function>
869
870 <function name="pango_layout_line_ref">
871 <description>
872 Increase the reference count of a #PangoLayoutLine by one.
873
874
875 </description>
876 <parameters>
877 <parameter name="line">
878 <parameter_description> a #PangoLayoutLine
879 </parameter_description>
880 </parameter>
881 </parameters>
882 <return> the line passed in.
883
884 Since: 1.10
885 </return>
886 </function>
887
888 <function name="pango_renderer_draw_trapezoid">
889 <description>
890 Draws a trapezoid with the parallel sides aligned with the X axis
891 using the given #PangoRenderer; coordinates are in device space.
892
893 Since: 1.8
894
895 </description>
896 <parameters>
897 <parameter name="renderer">
898 <parameter_description> a #PangoRenderer
899 </parameter_description>
900 </parameter>
901 <parameter name="part">
902 <parameter_description> type of object this trapezoid is part of
903 </parameter_description>
904 </parameter>
905 <parameter name="y1_">
906 <parameter_description> Y coordinate of top of trapezoid
907 </parameter_description>
908 </parameter>
909 <parameter name="x11">
910 <parameter_description> X coordinate of left end of top of trapezoid
911 </parameter_description>
912 </parameter>
913 <parameter name="x21">
914 <parameter_description> X coordinate of right end of top of trapezoid
915 </parameter_description>
916 </parameter>
917 <parameter name="y2">
918 <parameter_description> Y coordinate of bottom of trapezoid
919 </parameter_description>
920 </parameter>
921 <parameter name="x12">
922 <parameter_description> X coordinate of left end of bottom of trapezoid
923 </parameter_description>
924 </parameter>
925 <parameter name="x22">
926 <parameter_description> X coordinate of right end of bottom of trapezoid
927 </parameter_description>
928 </parameter>
929 </parameters>
930 <return></return>
931 </function>
932
933 <function name="pango_context_load_font">
934 <description>
935 Loads the font in one of the fontmaps in the context
936 that is the closest match for @desc.
937
938
939 </description>
940 <parameters>
941 <parameter name="context">
942 <parameter_description> a #PangoContext
943 </parameter_description>
944 </parameter>
945 <parameter name="desc">
946 <parameter_description> a #PangoFontDescription describing the font to load
947 </parameter_description>
948 </parameter>
949 </parameters>
950 <return>the font loaded, or %NULL if no font matched.
951 </return>
952 </function>
953
954 <function name="pango_language_get_sample_string">
955 <description>
956 Get a string that is representative of the characters needed to
957 render a particular language. This function is a bad hack for
958 internal use by renderers and Pango.
959
960
961 </description>
962 <parameters>
963 <parameter name="language">
964 <parameter_description> a #PangoLanguage
965 </parameter_description>
966 </parameter>
967 </parameters>
968 <return> the sample string. This value is owned by Pango
969 and must not be freed.
970 </return>
971 </function>
972
973 <function name="_pango_glyph_item_iter_init_start">
974 <description>
975 Initializes a #PangoGlyphItemIter structure to point to the
976 first cluster in a glyph item.
977
978
979 </description>
980 <parameters>
981 <parameter name="iter">
982 <parameter_description> pointer to a #PangoGlyphItemIter structure
983 </parameter_description>
984 </parameter>
985 <parameter name="glyph_item">
986 <parameter_description> the glyph item that @iter points into
987 </parameter_description>
988 </parameter>
989 <parameter name="text">
990 <parameter_description> text corresponding to the glyph item
991 </parameter_description>
992 </parameter>
993 </parameters>
994 <return> %FALSE if there are no clusters in the glyph item;
995 in this case, the state of @iter is undefined.
996 </return>
997 </function>
998
999 <function name="pango_units_to_double">
1000 <description>
1001 Converts a number in Pango units to floating-point: divides
1002 it by %PANGO_SCALE.
1003
1004
1005 </description>
1006 <parameters>
1007 <parameter name="i">
1008 <parameter_description> value in Pango units
1009 </parameter_description>
1010 </parameter>
1011 </parameters>
1012 <return> the double value.
1013
1014 Since: 1.16
1015 </return>
1016 </function>
1017
1018 <function name="pango_layout_new">
1019 <description>
1020 Create a new #PangoLayout object with attributes initialized to
1021 default values for a particular #PangoContext.
1022
1023
1024 </description>
1025 <parameters>
1026 <parameter name="context">
1027 <parameter_description> a #PangoContext
1028 </parameter_description>
1029 </parameter>
1030 </parameters>
1031 <return> the newly allocated #PangoLayout, with a reference
1032 count of one, which should be freed with
1033 g_object_unref().
1034 </return>
1035 </function>
1036
1037 <function name="pango_config_key_get">
1038 <description>
1039 Looks up a key in the Pango config database
1040 (pseudo-win.ini style, read from $sysconfdir/pango/pangorc,
1041 ~/.pangorc, and getenv (PANGO_RC_FILE).)
1042
1043
1044 </description>
1045 <parameters>
1046 <parameter name="key">
1047 <parameter_description> Key to look up, in the form &quot;SECTION/KEY&quot;.
1048 </parameter_description>
1049 </parameter>
1050 </parameters>
1051 <return> the value, if found, otherwise %NULL. The value is a
1052 newly-allocated string and must be freed with g_free().
1053 </return>
1054 </function>
1055
1056 <function name="pango_matrix_free">
1057 <description>
1058 Free a #PangoMatrix created with pango_matrix_copy().
1059 Does nothing if @matrix is %NULL.
1060
1061 Since: 1.6
1062
1063 </description>
1064 <parameters>
1065 <parameter name="matrix">
1066 <parameter_description> a #PangoMatrix, or %NULL
1067 </parameter_description>
1068 </parameter>
1069 </parameters>
1070 <return></return>
1071 </function>
1072
1073 <function name="pango_get_lib_subdirectory">
1074 <description>
1075 On Unix, returns the name of the &quot;pango&quot; subdirectory of LIBDIR
1076 (which is set at compile time). On Win32, returns the Pango
1077 installation directory (which is deduced at run time from the DLL&apos;s
1078 location, or stored in the Registry). The returned string should
1079 not be freed.
1080
1081
1082 </description>
1083 <parameters>
1084 </parameters>
1085 <return> the Pango lib directory. The returned string should
1086 not be freed.
1087 </return>
1088 </function>
1089
1090 <function name="pango_font_description_set_family_static">
1091 <description>
1092 Like pango_font_description_set_family(), except that no
1093 copy of @family is made. The caller must make sure that the
1094 string passed in stays around until @desc has been freed
1095 or the name is set again. This function can be used if
1096 @family is a static string such as a C string literal, or
1097 if @desc is only needed temporarily.
1098
1099 </description>
1100 <parameters>
1101 <parameter name="desc">
1102 <parameter_description> a #PangoFontDescription
1103 </parameter_description>
1104 </parameter>
1105 <parameter name="family">
1106 <parameter_description> a string representing the family name.
1107 </parameter_description>
1108 </parameter>
1109 </parameters>
1110 <return></return>
1111 </function>
1112
1113 <function name="pango_ft2_render_layout">
1114 <description>
1115 Render a #PangoLayout onto a FreeType2 bitmap
1116
1117 </description>
1118 <parameters>
1119 <parameter name="bitmap">
1120 <parameter_description>    a &amp;lt;type&amp;gt;FT_Bitmap&amp;lt;/type&amp;gt; to render the layout onto
1121 </parameter_description>
1122 </parameter>
1123 <parameter name="layout">
1124 <parameter_description>    a #PangoLayout
1125 </parameter_description>
1126 </parameter>
1127 <parameter name="x">
1128 <parameter_description>         the X position of the left of the layout (in pixels)
1129 </parameter_description>
1130 </parameter>
1131 <parameter name="y">
1132 <parameter_description>         the Y position of the top of the layout (in pixels)
1133 </parameter_description>
1134 </parameter>
1135 </parameters>
1136 <return></return>
1137 </function>
1138
1139 <function name="_pango_cairo_font_install">
1140 <description>
1141 Makes @font the current font for rendering in the specified
1142 Cairo context.
1143
1144
1145 </description>
1146 <parameters>
1147 <parameter name="font">
1148 <parameter_description> a #PangoCairoFont
1149 </parameter_description>
1150 </parameter>
1151 <parameter name="cr">
1152 <parameter_description> a #cairo_t
1153 </parameter_description>
1154 </parameter>
1155 </parameters>
1156 <return> %TRUE if font was installed successfully, %FALSE otherwise.
1157 </return>
1158 </function>
1159
1160 <function name="pango_layout_xy_to_index">
1161 <description>
1162 Converts from X and Y position within a layout to the byte
1163 index to the character at that logical position. If the
1164 Y position is not inside the layout, the closest position is chosen
1165 (the position will be clamped inside the layout). If the
1166 X position is not within the layout, then the start or the
1167 end of the line is chosen as  described for pango_layout_x_to_index().
1168 If either the X or Y positions were not inside the layout, then the
1169 function returns %FALSE; on an exact hit, it returns %TRUE.
1170
1171
1172 </description>
1173 <parameters>
1174 <parameter name="layout">
1175 <parameter_description>    a #PangoLayout
1176 </parameter_description>
1177 </parameter>
1178 <parameter name="x">
1179 <parameter_description>         the X offset (in #PangoGlyphUnit)
1180 from the left edge of the layout.
1181 </parameter_description>
1182 </parameter>
1183 <parameter name="y">
1184 <parameter_description>         the Y offset (in #PangoGlyphUnit)
1185 from the top edge of the layout
1186 </parameter_description>
1187 </parameter>
1188 <parameter name="index_">
1189 <parameter_description>    location to store calculated byte index
1190 </parameter_description>
1191 </parameter>
1192 <parameter name="trailing">
1193 <parameter_description>  location to store a integer indicating where
1194 in the grapheme the user clicked. It will either
1195 be zero, or the number of characters in the
1196 grapheme. 0 represents the trailing edge of the grapheme.
1197 </parameter_description>
1198 </parameter>
1199 </parameters>
1200 <return> %TRUE if the coordinates were inside text, %FALSE otherwise.
1201 </return>
1202 </function>
1203
1204 <function name="pango_layout_get_text">
1205 <description>
1206 Gets the text in the layout. The returned text should not
1207 be freed or modified.
1208
1209
1210 </description>
1211 <parameters>
1212 <parameter name="layout">
1213 <parameter_description> a #PangoLayout
1214 </parameter_description>
1215 </parameter>
1216 </parameters>
1217 <return> the text in the @layout.
1218 </return>
1219 </function>
1220
1221 <function name="pango_layout_get_extents">
1222 <description>
1223 Computes the logical and ink extents of @layout. Logical extents
1224 are usually what you want for positioning things.  Note that both extents
1225 may have non-zero x and y.  You may want to use those to offset where you
1226 render the layout.  Not doing that is a very typical bug that shows up as
1227 right-to-left layouts not being correctly positioned in a layout with
1228 a set width.
1229
1230 The extents are given in layout coordinates and in Pango units; layout
1231 coordinates begin at the top left corner of the layout.
1232
1233 </description>
1234 <parameters>
1235 <parameter name="layout">
1236 <parameter_description>   a #PangoLayout
1237 </parameter_description>
1238 </parameter>
1239 <parameter name="ink_rect">
1240 <parameter_description> rectangle used to store the extents of the layout as drawn
1241 or %NULL to indicate that the result is not needed.
1242 </parameter_description>
1243 </parameter>
1244 <parameter name="logical_rect">
1245 <parameter_description> rectangle used to store the logical extents of the layout
1246                  or %NULL to indicate that the result is not needed.
1247 </parameter_description>
1248 </parameter>
1249 </parameters>
1250 <return></return>
1251 </function>
1252
1253 <function name="pango_tab_array_new">
1254 <description>
1255 Creates an array of @initial_size tab stops. Tab stops are specified in
1256 pixel units if @positions_in_pixels is %TRUE, otherwise in Pango
1257 units. All stops are initially at position 0.
1258
1259
1260 </description>
1261 <parameters>
1262 <parameter name="initial_size">
1263 <parameter_description> Initial number of tab stops to allocate, can be 0
1264 </parameter_description>
1265 </parameter>
1266 <parameter name="positions_in_pixels">
1267 <parameter_description> whether positions are in pixel units
1268 </parameter_description>
1269 </parameter>
1270 </parameters>
1271 <return> the newly allocated #PangoTabArray, which should
1272 be freed with pango_tab_array_free().
1273 </return>
1274 </function>
1275
1276 <function name="pango_parse_variant">
1277 <description>
1278 Parses a font variant. The allowed values are &quot;normal&quot;
1279 and &quot;smallcaps&quot; or &quot;small_caps&quot;, case variations being
1280 ignored.
1281
1282
1283 </description>
1284 <parameters>
1285 <parameter name="str">
1286 <parameter_description> a string to parse.
1287 </parameter_description>
1288 </parameter>
1289 <parameter name="variant">
1290 <parameter_description> a #PangoVariant to store the result in.
1291 </parameter_description>
1292 </parameter>
1293 <parameter name="warn">
1294 <parameter_description> if %TRUE, issue a g_warning() on bad input.
1295 </parameter_description>
1296 </parameter>
1297 </parameters>
1298 <return> %TRUE if @str was successfully parsed.
1299 </return>
1300 </function>
1301
1302 <function name="pango_xft_font_unlock_face">
1303 <description>
1304 Releases a font previously obtained with
1305 pango_xft_font_lock_face().
1306
1307 Use pango_fc_font_unlock_face() instead.
1308
1309 Since: 1.2
1310
1311 </description>
1312 <parameters>
1313 <parameter name="font">
1314 <parameter_description> a #PangoFont.
1315 </parameter_description>
1316 </parameter>
1317 </parameters>
1318 <return></return>
1319 </function>
1320
1321 <function name="pango_cairo_font_map_create_context">
1322 <description>
1323 Create a #PangoContext for the given fontmap.
1324
1325
1326 </description>
1327 <parameters>
1328 <parameter name="fontmap">
1329 <parameter_description> a #PangoCairoFontMap
1330 </parameter_description>
1331 </parameter>
1332 </parameters>
1333 <return> the newly created context; free with g_object_unref().
1334
1335 Since: 1.10
1336 </return>
1337 </function>
1338
1339 <function name="pango_shape">
1340 <description>
1341 Given a segment of text and the corresponding
1342 #PangoAnalysis structure returned from pango_itemize(),
1343 convert the characters into glyphs. You may also pass
1344 in only a substring of the item from pango_itemize().
1345
1346 </description>
1347 <parameters>
1348 <parameter name="text">
1349 <parameter_description>      the text to process
1350 </parameter_description>
1351 </parameter>
1352 <parameter name="length">
1353 <parameter_description>    the length (in bytes) of @text
1354 </parameter_description>
1355 </parameter>
1356 <parameter name="analysis">
1357 <parameter_description>  #PangoAnalysis structure from pango_itemize()
1358 </parameter_description>
1359 </parameter>
1360 <parameter name="glyphs">
1361 <parameter_description>    glyph string in which to store results
1362 </parameter_description>
1363 </parameter>
1364 </parameters>
1365 <return></return>
1366 </function>
1367
1368 <function name="pango_scan_word">
1369 <description>
1370 Scans a word into a #GString buffer. A word consists
1371 of [A-Za-z_] followed by zero or more [A-Za-z_0-9]
1372 Leading white space is skipped.
1373
1374
1375 </description>
1376 <parameters>
1377 <parameter name="pos">
1378 <parameter_description> in/out string position
1379 </parameter_description>
1380 </parameter>
1381 <parameter name="out">
1382 <parameter_description> a #GString into which to write the result
1383 </parameter_description>
1384 </parameter>
1385 </parameters>
1386 <return> %FALSE if a parse error occurred.
1387 </return>
1388 </function>
1389
1390 <function name="pango_font_get_glyph_extents">
1391 <description>
1392 Gets the logical and ink extents of a glyph within a font. The
1393 coordinate system for each rectangle has its origin at the
1394 base line and horizontal origin of the character with increasing
1395 coordinates extending to the right and down. The macros PANGO_ASCENT(),
1396 PANGO_DESCENT(), PANGO_LBEARING(), and PANGO_RBEARING() can be used to convert
1397 from the extents rectangle to more traditional font metrics. The units
1398 of the rectangles are in 1/PANGO_SCALE of a device unit.
1399
1400 </description>
1401 <parameters>
1402 <parameter name="font">
1403 <parameter_description> a #PangoFont
1404 </parameter_description>
1405 </parameter>
1406 <parameter name="glyph">
1407 <parameter_description> the glyph index
1408 </parameter_description>
1409 </parameter>
1410 <parameter name="ink_rect">
1411 <parameter_description> rectangle used to store the extents of the glyph as drawn
1412 or %NULL to indicate that the result is not needed.
1413 </parameter_description>
1414 </parameter>
1415 <parameter name="logical_rect">
1416 <parameter_description> rectangle used to store the logical extents of the glyph
1417 or %NULL to indicate that the result is not needed.
1418 </parameter_description>
1419 </parameter>
1420 </parameters>
1421 <return></return>
1422 </function>
1423
1424 <function name="pango_ft2_font_map_create_context">
1425 <description>
1426 Create a #PangoContext for the given fontmap.
1427
1428
1429 </description>
1430 <parameters>
1431 <parameter name="fontmap">
1432 <parameter_description> a #PangoFT2Fontmap
1433 </parameter_description>
1434 </parameter>
1435 </parameters>
1436 <return> the newly created context; free with g_object_unref().
1437
1438 Since: 1.2
1439 </return>
1440 </function>
1441
1442 <function name="pango_layout_set_auto_dir">
1443 <description>
1444 Sets whether to calculate the bidirectional base direction
1445 for the layout according to the contents of the layout;
1446 when this flag is on (the default), then paragraphs in
1447    @layout that begin with strong right-to-left characters
1448 (Arabic and Hebrew principally), will have right-to-left
1449 layout, paragraphs with letters from other scripts will
1450 have left-to-right layout. Paragraphs with only neutral
1451 characters get their direction from the surrounding paragraphs.
1452
1453 When %FALSE, the choice between left-to-right and
1454 right-to-left layout is done according to the base direction
1455 of the layout&apos;s #PangoContext. (See pango_context_set_base_dir()).
1456
1457 When the auto-computed direction of a paragraph differs from the
1458 base direction of the context, the interpretation of
1459 %PANGO_ALIGN_LEFT and %PANGO_ALIGN_RIGHT are swapped.
1460
1461 Since: 1.4
1462
1463 </description>
1464 <parameters>
1465 <parameter name="layout">
1466 <parameter_description> a #PangoLayout
1467 </parameter_description>
1468 </parameter>
1469 <parameter name="auto_dir">
1470 <parameter_description> if %TRUE, compute the bidirectional base direction
1471 from the layout&apos;s contents.
1472 </parameter_description>
1473 </parameter>
1474 </parameters>
1475 <return></return>
1476 </function>
1477
1478 <function name="pango_gravity_get_for_script">
1479 <description>
1480 Based on the script, base gravity, and hint, returns actual gravity
1481 to use in laying out a single #PangoItem.
1482
1483 If @base_gravity is %PANGO_GRAVITY_AUTO, it is first replaced with the
1484 preferred gravity of @script.  To get the preferred gravity of a script,
1485 pass %PANGO_GRAVITY_AUTO and %PANGO_GRAVITY_HINT_STRONG in.
1486
1487
1488 </description>
1489 <parameters>
1490 <parameter name="script">
1491 <parameter_description> #PangoScript to query
1492 </parameter_description>
1493 </parameter>
1494 <parameter name="base_gravity">
1495 <parameter_description> base gravity of the paragraph
1496 </parameter_description>
1497 </parameter>
1498 <parameter name="hint">
1499 <parameter_description> orientation hint
1500 </parameter_description>
1501 </parameter>
1502 </parameters>
1503 <return> resolved gravity suitable to use for a run of text
1504
1505 Since: 1.16
1506 </return>
1507 </function>
1508
1509 <function name="pango_attr_weight_new">
1510 <description>
1511 Create a new font weight attribute.
1512
1513
1514 </description>
1515 <parameters>
1516 <parameter name="weight">
1517 <parameter_description> the weight
1518 </parameter_description>
1519 </parameter>
1520 </parameters>
1521 <return> the newly allocated #PangoAttribute, which should be
1522 freed with pango_attribute_destroy().
1523 </return>
1524 </function>
1525
1526 <function name="pango_win32_font_map_for_display">
1527 <description>
1528 Return value: a #PangoFontMap.
1529
1530 </description>
1531 <parameters>
1532 </parameters>
1533 <return> a #PangoFontMap.
1534 </return>
1535 </function>
1536
1537 <function name="pango_win32_render">
1538 <description>
1539 Render a #PangoGlyphString onto a Windows DC
1540
1541 </description>
1542 <parameters>
1543 <parameter name="hdc">
1544 <parameter_description>     the device context
1545 </parameter_description>
1546 </parameter>
1547 <parameter name="font">
1548 <parameter_description>    the font in which to draw the string
1549 </parameter_description>
1550 </parameter>
1551 <parameter name="glyphs">
1552 <parameter_description>  the glyph string to draw
1553 </parameter_description>
1554 </parameter>
1555 <parameter name="x">
1556 <parameter_description>       the x position of start of string (in pixels)
1557 </parameter_description>
1558 </parameter>
1559 <parameter name="y">
1560 <parameter_description>       the y position of baseline (in pixels)
1561 </parameter_description>
1562 </parameter>
1563 </parameters>
1564 <return></return>
1565 </function>
1566
1567 <function name="pango_ft2_font_get_face">
1568 <description>
1569 Return value: a pointer to a &amp;lt;type&amp;gt;FT_Face&amp;lt;/type&amp;gt; structure, with the size set correctly
1570
1571 </description>
1572 <parameters>
1573 <parameter name="font">
1574 <parameter_description> a #PangoFont
1575 </parameter_description>
1576 </parameter>
1577 </parameters>
1578 <return> a pointer to a &amp;lt;type&amp;gt;FT_Face&amp;lt;/type&amp;gt; structure, with the size set correctly
1579 </return>
1580 </function>
1581
1582 <function name="pango_attr_background_new">
1583 <description>
1584 Create a new background color attribute.
1585
1586
1587 </description>
1588 <parameters>
1589 <parameter name="red">
1590 <parameter_description> the red value (ranging from 0 to 65535)
1591 </parameter_description>
1592 </parameter>
1593 <parameter name="green">
1594 <parameter_description> the green value
1595 </parameter_description>
1596 </parameter>
1597 <parameter name="blue">
1598 <parameter_description> the blue value
1599 </parameter_description>
1600 </parameter>
1601 </parameters>
1602 <return> the newly allocated #PangoAttribute, which should be
1603 freed with pango_attribute_destroy().
1604 </return>
1605 </function>
1606
1607 <function name="pango_coverage_unref">
1608 <description>
1609 Increase the reference count on the #PangoCoverage by one.
1610 if the result is zero, free the coverage and all associated memory.
1611
1612 </description>
1613 <parameters>
1614 <parameter name="coverage">
1615 <parameter_description> a #PangoCoverage
1616 </parameter_description>
1617 </parameter>
1618 </parameters>
1619 <return></return>
1620 </function>
1621
1622 <function name="pango_font_get_coverage">
1623 <description>
1624 Computes the coverage map for a given font and language tag.
1625
1626
1627 </description>
1628 <parameters>
1629 <parameter name="font">
1630 <parameter_description> a #PangoFont
1631 </parameter_description>
1632 </parameter>
1633 <parameter name="language">
1634 <parameter_description> the language tag
1635 </parameter_description>
1636 </parameter>
1637 </parameters>
1638 <return> a newly-allocated #PangoCoverage object.
1639 </return>
1640 </function>
1641
1642 <function name="pango_get_mirror_char">
1643 <description>
1644 If @ch has the Unicode mirrored property and there is another Unicode
1645 character that typically has a glyph that is the mirror image of @ch&apos;s
1646 glyph, puts that character in the address pointed to by @mirrored_ch.
1647
1648 Use g_unichar_get_mirror_char() instead; the docs for that function
1649 provide full details.
1650
1651
1652 </description>
1653 <parameters>
1654 <parameter name="ch">
1655 <parameter_description> a Unicode character
1656 </parameter_description>
1657 </parameter>
1658 <parameter name="mirrored_ch">
1659 <parameter_description> location to store the mirrored character
1660 </parameter_description>
1661 </parameter>
1662 </parameters>
1663 <return> %TRUE if @ch has a mirrored character and @mirrored_ch is
1664 filled in, %FALSE otherwise
1665 </return>
1666 </function>
1667
1668 <function name="pango_scan_string">
1669 <description>
1670 Scans a string into a #GString buffer. The string may either
1671 be a sequence of non-white-space characters, or a quoted
1672 string with &apos;&quot;&apos;. Instead a quoted string, &apos;\&quot;&apos; represents
1673 a literal quote. Leading white space outside of quotes is skipped.
1674
1675
1676 </description>
1677 <parameters>
1678 <parameter name="pos">
1679 <parameter_description> in/out string position
1680 </parameter_description>
1681 </parameter>
1682 <parameter name="out">
1683 <parameter_description> a #GString into which to write the result
1684 </parameter_description>
1685 </parameter>
1686 </parameters>
1687 <return> %FALSE if a parse error occurred.
1688 </return>
1689 </function>
1690
1691 <function name="pango_context_set_language">
1692 <description>
1693 Sets the global language tag for the context.  The default language
1694 for the locale of the running process can be found using
1695 pango_language_get_default().
1696
1697 </description>
1698 <parameters>
1699 <parameter name="context">
1700 <parameter_description> a #PangoContext
1701 </parameter_description>
1702 </parameter>
1703 <parameter name="language">
1704 <parameter_description> the new language tag.
1705 </parameter_description>
1706 </parameter>
1707 </parameters>
1708 <return></return>
1709 </function>
1710
1711 <function name="pango_layout_set_text">
1712 <description>
1713 Sets the text of the layout.
1714
1715 </description>
1716 <parameters>
1717 <parameter name="layout">
1718 <parameter_description> a #PangoLayout
1719 </parameter_description>
1720 </parameter>
1721 <parameter name="text">
1722 <parameter_description> a valid UTF-8 string
1723 </parameter_description>
1724 </parameter>
1725 <parameter name="length">
1726 <parameter_description> maximum length of @text, in bytes. -1 indicates that
1727 the string is nul-terminated and the length should be
1728 calculated.  The text will also be truncated on
1729 encountering a nul-termination even when @length is
1730 positive.
1731 </parameter_description>
1732 </parameter>
1733 </parameters>
1734 <return></return>
1735 </function>
1736
1737 <function name="pango_attribute_equal">
1738 <description>
1739 Compare two attributes for equality. This compares only the
1740 actual value of the two attributes and not the ranges that the
1741 attributes apply to.
1742
1743
1744 </description>
1745 <parameters>
1746 <parameter name="attr1">
1747 <parameter_description> a #PangoAttribute
1748 </parameter_description>
1749 </parameter>
1750 <parameter name="attr2">
1751 <parameter_description> another #PangoAttribute
1752 </parameter_description>
1753 </parameter>
1754 </parameters>
1755 <return> %TRUE if the two attributes have the same value.
1756 </return>
1757 </function>
1758
1759 <function name="pango_coverage_max">
1760 <description>
1761 Set the coverage for each index in @coverage to be the max (better)
1762 value of the current coverage for the index and the coverage for
1763 the corresponding index in @other.
1764
1765 </description>
1766 <parameters>
1767 <parameter name="coverage">
1768 <parameter_description> a #PangoCoverage
1769 </parameter_description>
1770 </parameter>
1771 <parameter name="other">
1772 <parameter_description> another #PangoCoverage
1773 </parameter_description>
1774 </parameter>
1775 </parameters>
1776 <return></return>
1777 </function>
1778
1779 <function name="pango_win32_render_layout_line">
1780 <description>
1781 Render a #PangoLayoutLine onto a device context. For underlining to
1782 work property the text alignment of the DC should have TA_BASELINE
1783 and TA_LEFT.
1784
1785 </description>
1786 <parameters>
1787 <parameter name="hdc">
1788 <parameter_description>       DC to use for uncolored drawing
1789 </parameter_description>
1790 </parameter>
1791 <parameter name="line">
1792 <parameter_description>      a #PangoLayoutLine
1793 </parameter_description>
1794 </parameter>
1795 <parameter name="x">
1796 <parameter_description>         the x position of start of string (in pixels)
1797 </parameter_description>
1798 </parameter>
1799 <parameter name="y">
1800 <parameter_description>         the y position of baseline (in pixels)
1801 </parameter_description>
1802 </parameter>
1803 </parameters>
1804 <return></return>
1805 </function>
1806
1807 <function name="pango_ft2_render">
1808 <description>
1809 Renders a #PangoGlyphString onto a FreeType2 bitmap.
1810
1811 </description>
1812 <parameters>
1813 <parameter name="bitmap">
1814 <parameter_description>  the FreeType2 bitmap onto which to draw the string
1815 </parameter_description>
1816 </parameter>
1817 <parameter name="font">
1818 <parameter_description>    the font in which to draw the string
1819 </parameter_description>
1820 </parameter>
1821 <parameter name="glyphs">
1822 <parameter_description>  the glyph string to draw
1823 </parameter_description>
1824 </parameter>
1825 <parameter name="x">
1826 <parameter_description>       the x position of the start of the string (in pixels)
1827 </parameter_description>
1828 </parameter>
1829 <parameter name="y">
1830 <parameter_description>       the y position of the baseline (in pixels)
1831 </parameter_description>
1832 </parameter>
1833 </parameters>
1834 <return></return>
1835 </function>
1836
1837 <function name="pango_layout_move_cursor_visually">
1838 <description>
1839 Computes a new cursor position from an old position and
1840 a count of positions to move visually. If @direction is positive,
1841 then the new strong cursor position will be one position
1842 to the right of the old cursor position. If @direction is negative,
1843 then the new strong cursor position will be one position
1844 to the left of the old cursor position.
1845
1846 In the presence of bidirectional text, the correspondence
1847 between logical and visual order will depend on the direction
1848 of the current run, and there may be jumps when the cursor
1849 is moved off of the end of a run.
1850
1851 Motion here is in cursor positions, not in characters, so a
1852 single call to pango_layout_move_cursor_visually() may move the
1853 cursor over multiple characters when multiple characters combine
1854 to form a single grapheme.
1855
1856 </description>
1857 <parameters>
1858 <parameter name="layout">
1859 <parameter_description>       a #PangoLayout.
1860 </parameter_description>
1861 </parameter>
1862 <parameter name="strong">
1863 <parameter_description>       whether the moving cursor is the strong cursor or the
1864 weak cursor. The strong cursor is the cursor corresponding
1865 to text insertion in the base direction for the layout.
1866 </parameter_description>
1867 </parameter>
1868 <parameter name="old_index">
1869 <parameter_description>    the byte index of the grapheme for the old index
1870 </parameter_description>
1871 </parameter>
1872 <parameter name="old_trailing">
1873 <parameter_description> if 0, the cursor was at the trailing edge of the
1874 grapheme indicated by @old_index, if &amp;gt; 0, the cursor
1875 was at the leading edge.
1876 </parameter_description>
1877 </parameter>
1878 <parameter name="direction">
1879 <parameter_description>    direction to move cursor. A negative
1880 value indicates motion to the left.
1881 </parameter_description>
1882 </parameter>
1883 <parameter name="new_index">
1884 <parameter_description>    location to store the new cursor byte index. A value of -1
1885 indicates that the cursor has been moved off the beginning
1886 of the layout. A value of %G_MAXINT indicates that
1887 the cursor has been moved off the end of the layout.
1888 </parameter_description>
1889 </parameter>
1890 <parameter name="new_trailing">
1891 <parameter_description> number of characters to move forward from the location returned
1892 for @new_index to get the position where the cursor should
1893 be displayed. This allows distinguishing the position at
1894 the beginning of one line from the position at the end
1895 of the preceding line. @new_index is always on the line
1896 where the cursor should be displayed.
1897 </parameter_description>
1898 </parameter>
1899 </parameters>
1900 <return></return>
1901 </function>
1902
1903 <function name="pango_attr_gravity_new">
1904 <description>
1905 Create a new gravity attribute.
1906
1907
1908 </description>
1909 <parameters>
1910 <parameter name="gravity">
1911 <parameter_description> the gravity value; should not be %PANGO_GRAVITY_AUTO.
1912 </parameter_description>
1913 </parameter>
1914 </parameters>
1915 <return> the newly allocated #PangoAttribute, which should be
1916 freed with pango_attribute_destroy().
1917
1918 Since: 1.16
1919 </return>
1920 </function>
1921
1922 <function name="pango_cairo_context_set_shape_renderer">
1923 <description>
1924 Sets callback function for context to use for rendering attributes
1925 of type %PANGO_ATTR_SHAPE.  See #PangoCairoShapeRendererFunc for
1926 details.
1927
1928 Since: 1.18
1929
1930 </description>
1931 <parameters>
1932 <parameter name="context">
1933 <parameter_description> a #PangoContext, from pango_cairo_font_map_create_context()
1934 </parameter_description>
1935 </parameter>
1936 <parameter name="func">
1937 <parameter_description> Callback function for rendering attributes of type
1938 %PANGO_ATTR_SHAPE, or %NULL to disable shape rendering.
1939 </parameter_description>
1940 </parameter>
1941 <parameter name="data">
1942 <parameter_description> User data that will be passed to @func.
1943 </parameter_description>
1944 </parameter>
1945 <parameter name="dnotify">
1946 <parameter_description> Callback that will be called when the
1947 context is freed to release @data, or %NULL.
1948 </parameter_description>
1949 </parameter>
1950 </parameters>
1951 <return></return>
1952 </function>
1953
1954 <function name="pango_x_font_map_get_font_cache">
1955 <description>
1956 Obtains the font cache associated with the given font map.
1957
1958
1959 </description>
1960 <parameters>
1961 <parameter name="font_map">
1962 <parameter_description> a #PangoXFontMap.
1963 </parameter_description>
1964 </parameter>
1965 </parameters>
1966 <return> the #PangoXFontCache of @font_map.
1967 </return>
1968 </function>
1969
1970 <function name="pango_win32_get_context">
1971 <description>
1972 Retrieves a #PangoContext appropriate for rendering with Windows fonts.
1973
1974
1975 </description>
1976 <parameters>
1977 </parameters>
1978 <return> the new #PangoContext
1979 </return>
1980 </function>
1981
1982 <function name="pango_font_description_set_stretch">
1983 <description>
1984 Sets the stretch field of a font description. The stretch field
1985 specifies how narrow or wide the font should be.
1986
1987 </description>
1988 <parameters>
1989 <parameter name="desc">
1990 <parameter_description> a #PangoFontDescription
1991 </parameter_description>
1992 </parameter>
1993 <parameter name="stretch">
1994 <parameter_description> the stretch for the font description
1995 </parameter_description>
1996 </parameter>
1997 </parameters>
1998 <return></return>
1999 </function>
2000
2001 <function name="pango_win32_font_done_font">
2002 <description>
2003 Releases any resources allocated by pango_win32_font_done_font()
2004
2005 </description>
2006 <parameters>
2007 <parameter name="font">
2008 <parameter_description> a #PangoFont from the win32 backend
2009 </parameter_description>
2010 </parameter>
2011 </parameters>
2012 <return></return>
2013 </function>
2014
2015 <function name="pango_parse_enum">
2016 <description>
2017 Parses an enum type and stored the result in @value.
2018
2019 If @str does not match the nick name of any of the possible values for the
2020 enum, %FALSE is returned, a warning is issued if @warn is %TRUE, and a
2021 string representing the list of possible values is stored in
2022 @possible_values.  The list is slash-separated, eg.
2023 &quot;none/start/middle/end&quot;.  If failed and @possible_values is not %NULL,
2024 returned string should be freed using g_free().
2025
2026
2027 </description>
2028 <parameters>
2029 <parameter name="type">
2030 <parameter_description> enum type to parse, eg. %PANGO_TYPE_ELLIPSIZE_MODE.
2031 </parameter_description>
2032 </parameter>
2033 <parameter name="str">
2034 <parameter_description> string to parse.  May be %NULL.
2035 </parameter_description>
2036 </parameter>
2037 <parameter name="value">
2038 <parameter_description> integer to store the result in, or %NULL.
2039 </parameter_description>
2040 </parameter>
2041 <parameter name="warn">
2042 <parameter_description> if %TRUE, issue a g_warning() on bad input.
2043 </parameter_description>
2044 </parameter>
2045 <parameter name="possible_values">
2046 <parameter_description> place to store list of possible values on failure, or %NULL.
2047 </parameter_description>
2048 </parameter>
2049 </parameters>
2050 <return> %TRUE if @str was successfully parsed.
2051
2052 Since: 1.16
2053 </return>
2054 </function>
2055
2056 <function name="pango_attribute_destroy">
2057 <description>
2058 Destroy a #PangoAttribute and free all associated memory.
2059
2060 </description>
2061 <parameters>
2062 <parameter name="attr">
2063 <parameter_description> a #PangoAttribute.
2064 </parameter_description>
2065 </parameter>
2066 </parameters>
2067 <return></return>
2068 </function>
2069
2070 <function name="pango_font_description_set_size">
2071 <description>
2072 Sets the size field of a font description in fractional points. This is mutually
2073 exclusive with pango_font_description_set_absolute_size().
2074
2075 </description>
2076 <parameters>
2077 <parameter name="desc">
2078 <parameter_description> a #PangoFontDescription
2079 </parameter_description>
2080 </parameter>
2081 <parameter name="size">
2082 <parameter_description> the size of the font in points, scaled by PANGO_SCALE. (That is,
2083 a @size value of 10 * PANGO_SCALE is a 10 point font. The conversion
2084 factor between points and device units depends on system configuration
2085 and the output device. For screen display, a logical DPI of 96 is
2086 common, in which case a 10 point font corresponds to a 10 * (96 / 72) = 13.3
2087 pixel font. Use pango_font_description_set_absolute_size() if you need
2088 a particular size in device units.
2089 </parameter_description>
2090 </parameter>
2091 </parameters>
2092 <return></return>
2093 </function>
2094
2095 <function name="pango_cairo_show_layout_line">
2096 <description>
2097 Draws a #PangoLayoutLine in the specified cairo context.
2098 The origin of the glyphs (the left edge of the line) will
2099 be drawn at the current point of the cairo context.
2100
2101 Since: 1.10
2102
2103 </description>
2104 <parameters>
2105 <parameter name="cr">
2106 <parameter_description> a Cairo context
2107 </parameter_description>
2108 </parameter>
2109 <parameter name="line">
2110 <parameter_description> a #PangoLayoutLine
2111 </parameter_description>
2112 </parameter>
2113 </parameters>
2114 <return></return>
2115 </function>
2116
2117 <function name="pango_layout_iter_get_line">
2118 <description>
2119 Gets the current line.
2120
2121 Use the faster pango_layout_iter_get_line_readonly() if you do not plan
2122 to modify the contents of the line (glyphs, glyph widths, etc.).
2123
2124
2125 </description>
2126 <parameters>
2127 <parameter name="iter">
2128 <parameter_description> a #PangoLayoutIter
2129 </parameter_description>
2130 </parameter>
2131 </parameters>
2132 <return> the current line.
2133 </return>
2134 </function>
2135
2136 <function name="pango_win32_font_get_glyph_index">
2137 <description>
2138 Obtains the index of the glyph for @wc in @font, or 0, if not
2139 covered.
2140
2141
2142 </description>
2143 <parameters>
2144 <parameter name="font">
2145 <parameter_description> a #PangoFont.
2146 </parameter_description>
2147 </parameter>
2148 <parameter name="wc">
2149 <parameter_description> a Unicode character.
2150 </parameter_description>
2151 </parameter>
2152 </parameters>
2153 <return> the glyph index for @wc.
2154 </return>
2155 </function>
2156
2157 <function name="pango_ft2_font_map_substitute_changed">
2158 <description>
2159 Call this function any time the results of the
2160 default substitution function set with
2161 pango_ft2_font_map_set_default_substitute() change.
2162 That is, if your substitution function will return different
2163 results for the same input pattern, you must call this function.
2164
2165 Since: 1.2
2166
2167 </description>
2168 <parameters>
2169 <parameter name="fontmap">
2170 <parameter_description> a #PangoFT2Fontmap
2171 </parameter_description>
2172 </parameter>
2173 </parameters>
2174 <return></return>
2175 </function>
2176
2177 <function name="pango_font_description_merge_static">
2178 <description>
2179 Like pango_font_description_merge(), but only a shallow copy is made
2180 of the family name and other allocated fields. @desc can only be
2181 used until @desc_to_merge is modified or freed. This is meant
2182 to be used when the merged font description is only needed temporarily.
2183
2184 </description>
2185 <parameters>
2186 <parameter name="desc">
2187 <parameter_description> a #PangoFontDescription
2188 </parameter_description>
2189 </parameter>
2190 <parameter name="desc_to_merge">
2191 <parameter_description> the #PangoFontDescription to merge from
2192 </parameter_description>
2193 </parameter>
2194 <parameter name="replace_existing">
2195 <parameter_description> if %TRUE, replace fields in @desc with the
2196 corresponding values from @desc_to_merge, even if they
2197 are already exist.
2198 </parameter_description>
2199 </parameter>
2200 </parameters>
2201 <return></return>
2202 </function>
2203
2204 <function name="pango_attr_font_desc_new">
2205 <description>
2206 Create a new font description attribute. This attribute
2207 allows setting family, style, weight, variant, stretch,
2208 and size simultaneously.
2209
2210
2211 </description>
2212 <parameters>
2213 <parameter name="desc">
2214 <parameter_description> the font description
2215 </parameter_description>
2216 </parameter>
2217 </parameters>
2218 <return>  the newly allocated #PangoAttribute, which should be
2219 freed with pango_attribute_destroy().
2220 </return>
2221 </function>
2222
2223 <function name="pango_glyph_item_apply_attrs">
2224 <description>
2225 Splits a shaped item (PangoGlyphItem) into multiple items based
2226 on an attribute list. The idea is that if you have attributes
2227 that don&apos;t affect shaping, such as color or underline, to avoid
2228 affecting shaping, you filter them out (pango_attr_list_filter()),
2229 apply the shaping process and then reapply them to the result using
2230 this function.
2231
2232 All attributes that start or end inside a cluster are applied
2233 to that cluster; for instance, if half of a cluster is underlined
2234 and the other-half strikethrough, then the cluster will end
2235 up with both underline and strikethrough attributes. In these
2236 cases, it may happen that item-&amp;gt;extra_attrs for some of the
2237 result items can have multiple attributes of the same type.
2238
2239 This function takes ownership of @glyph_item; it will be reused
2240 as one of the elements in the list.
2241
2242
2243 </description>
2244 <parameters>
2245 <parameter name="glyph_item">
2246 <parameter_description> a shaped item
2247 </parameter_description>
2248 </parameter>
2249 <parameter name="text">
2250 <parameter_description> text that @list applies to
2251 </parameter_description>
2252 </parameter>
2253 <parameter name="list">
2254 <parameter_description> a #PangoAttrList
2255 </parameter_description>
2256 </parameter>
2257 </parameters>
2258 <return> a list of glyph items resulting from splitting
2259 @glyph_item. Free the elements using pango_glyph_item_free(),
2260 the list using g_slist_free().
2261
2262 Since: 1.2
2263 </return>
2264 </function>
2265
2266 <function name="pango_attr_foreground_new">
2267 <description>
2268 Create a new foreground color attribute.
2269
2270
2271 </description>
2272 <parameters>
2273 <parameter name="red">
2274 <parameter_description> the red value (ranging from 0 to 65535)
2275 </parameter_description>
2276 </parameter>
2277 <parameter name="green">
2278 <parameter_description> the green value
2279 </parameter_description>
2280 </parameter>
2281 <parameter name="blue">
2282 <parameter_description> the blue value
2283 </parameter_description>
2284 </parameter>
2285 </parameters>
2286 <return> the newly allocated #PangoAttribute, which should be
2287 freed with pango_attribute_destroy().
2288 </return>
2289 </function>
2290
2291 <function name="pango_cairo_update_layout">
2292 <description>
2293 Updates the private #PangoContext of a #PangoLayout created with
2294 pango_cairo_create_layout() to match the current transformation
2295 and target surface of a Cairo context.
2296
2297 Since: 1.10
2298
2299 </description>
2300 <parameters>
2301 <parameter name="cr">
2302 <parameter_description> a Cairo context
2303 </parameter_description>
2304 </parameter>
2305 <parameter name="layout">
2306 <parameter_description> a #PangoLayout, from pango_cairo_create_layout()
2307 </parameter_description>
2308 </parameter>
2309 </parameters>
2310 <return></return>
2311 </function>
2312
2313 <function name="pango_x_font_cache_free">
2314 <description>
2315 Frees a #PangoXFontCache and all associated memory. All fonts loaded
2316 through this font cache will be freed along with the cache.
2317
2318 </description>
2319 <parameters>
2320 <parameter name="cache">
2321 <parameter_description> a #PangoXFontCache
2322 </parameter_description>
2323 </parameter>
2324 </parameters>
2325 <return></return>
2326 </function>
2327
2328 <function name="pango_layout_set_width">
2329 <description>
2330 Sets the width to which the lines of the #PangoLayout should wrap.
2331
2332 </description>
2333 <parameters>
2334 <parameter name="layout">
2335 <parameter_description> a #PangoLayout.
2336 </parameter_description>
2337 </parameter>
2338 <parameter name="width">
2339 <parameter_description> the desired width in Pango units, or -1 to indicate that no
2340 wrapping should be performed.
2341 </parameter_description>
2342 </parameter>
2343 </parameters>
2344 <return></return>
2345 </function>
2346
2347 <function name="pango_attr_language_new">
2348 <description>
2349 Create a new language tag attribute.
2350
2351
2352 </description>
2353 <parameters>
2354 <parameter name="language">
2355 <parameter_description> language tag
2356 </parameter_description>
2357 </parameter>
2358 </parameters>
2359 <return> the newly allocated #PangoAttribute, which should be
2360 freed with pango_attribute_destroy().
2361 </return>
2362 </function>
2363
2364 <function name="pango_context_set_gravity_hint">
2365 <description>
2366 Sets the gravity hint for the context.
2367
2368 The gravity hint is used in laying vertical text out, and is only relevant
2369 if gravity of the context as returned by pango_context_get_gravity()
2370 is set %PANGO_GRAVITY_EAST or %PANGO_GRAVITY_WEST.
2371
2372 Since: 1.16
2373
2374 </description>
2375 <parameters>
2376 <parameter name="context">
2377 <parameter_description> a #PangoContext
2378 </parameter_description>
2379 </parameter>
2380 <parameter name="hint">
2381 <parameter_description> the new gravity hint
2382 </parameter_description>
2383 </parameter>
2384 </parameters>
2385 <return></return>
2386 </function>
2387
2388 <function name="pango_layout_set_indent">
2389 <description>
2390 Sets the width in Pango units to indent each paragraph. A negative value
2391 of @indent will produce a hanging indentation. That is, the first line will
2392 have the full width, and subsequent lines will be indented by the
2393 absolute value of @indent.
2394
2395 </description>
2396 <parameters>
2397 <parameter name="layout">
2398 <parameter_description> a #PangoLayout.
2399 </parameter_description>
2400 </parameter>
2401 <parameter name="indent">
2402 <parameter_description> the amount by which to indent.
2403 </parameter_description>
2404 </parameter>
2405 </parameters>
2406 <return></return>
2407 </function>
2408
2409 <function name="pango_parse_weight">
2410 <description>
2411 Parses a font weight. The allowed values are &quot;heavy&quot;,
2412 &quot;ultrabold&quot;, &quot;bold&quot;, &quot;normal&quot;, &quot;light&quot;, &quot;ultraleight&quot;
2413 and integers. Case variations are ignored.
2414
2415
2416 </description>
2417 <parameters>
2418 <parameter name="str">
2419 <parameter_description> a string to parse.
2420 </parameter_description>
2421 </parameter>
2422 <parameter name="weight">
2423 <parameter_description> a #PangoWeight to store the result in.
2424 </parameter_description>
2425 </parameter>
2426 <parameter name="warn">
2427 <parameter_description> if %TRUE, issue a g_warning() on bad input.
2428 </parameter_description>
2429 </parameter>
2430 </parameters>
2431 <return> %TRUE if @str was successfully parsed.
2432 </return>
2433 </function>
2434
2435 <function name="pango_x_render">
2436 <description>
2437 Renders a #PangoGlyphString onto an X drawable.
2438
2439 </description>
2440 <parameters>
2441 <parameter name="display">
2442 <parameter_description> the X display.
2443 </parameter_description>
2444 </parameter>
2445 <parameter name="d">
2446 <parameter_description>       the drawable on which to draw string.
2447 </parameter_description>
2448 </parameter>
2449 <parameter name="gc">
2450 <parameter_description>      the graphics context.
2451 </parameter_description>
2452 </parameter>
2453 <parameter name="font">
2454 <parameter_description>    the font in which to draw the string.
2455 </parameter_description>
2456 </parameter>
2457 <parameter name="glyphs">
2458 <parameter_description>  the glyph string to draw.
2459 </parameter_description>
2460 </parameter>
2461 <parameter name="x">
2462 <parameter_description>       the x position of start of string (in pixels).
2463 </parameter_description>
2464 </parameter>
2465 <parameter name="y">
2466 <parameter_description>       the y position of baseline (in pixels).
2467 </parameter_description>
2468 </parameter>
2469 </parameters>
2470 <return></return>
2471 </function>
2472
2473 <function name="pango_xft_get_font_map">
2474 <description>
2475 Return value: a #PangoFontMap object, owned by Pango.
2476
2477 </description>
2478 <parameters>
2479 <parameter name="display">
2480 <parameter_description> an X display
2481 </parameter_description>
2482 </parameter>
2483 <parameter name="screen">
2484 <parameter_description> the screen number of a screen within @display
2485 </parameter_description>
2486 </parameter>
2487 </parameters>
2488 <return> a #PangoFontMap object, owned by Pango.
2489
2490 Since: 1.2
2491 </return>
2492 </function>
2493
2494 <function name="pango_x_fallback_shape">
2495 <description>
2496 This is a simple fallback shaper, that can be used
2497 if no subfont that supports a given script is found.
2498 For every character in @text, it puts the unknown glyph.
2499
2500 </description>
2501 <parameters>
2502 <parameter name="font">
2503 <parameter_description> A #PangoFont.
2504 </parameter_description>
2505 </parameter>
2506 <parameter name="glyphs">
2507 <parameter_description> A pointer to a #PangoGlyphString.
2508 </parameter_description>
2509 </parameter>
2510 <parameter name="text">
2511 <parameter_description> UTF-8 string.
2512 </parameter_description>
2513 </parameter>
2514 <parameter name="n_chars">
2515 <parameter_description> Number of UTF-8 seqs in @text.
2516 </parameter_description>
2517 </parameter>
2518 </parameters>
2519 <return></return>
2520 </function>
2521
2522 <function name="pango_cairo_glyph_string_path">
2523 <description>
2524 Adds the glyphs in @glyphs to the current path in the specified
2525 cairo context. The origin of the glyphs (the left edge of the baseline)
2526 will be at the current point of the cairo context.
2527
2528 Since: 1.10
2529
2530 </description>
2531 <parameters>
2532 <parameter name="cr">
2533 <parameter_description> a Cairo context
2534 </parameter_description>
2535 </parameter>
2536 <parameter name="font">
2537 <parameter_description> a #PangoFont from a #PangoCairoFontMap
2538 </parameter_description>
2539 </parameter>
2540 <parameter name="glyphs">
2541 <parameter_description> a #PangoGlyphString
2542 </parameter_description>
2543 </parameter>
2544 </parameters>
2545 <return></return>
2546 </function>
2547
2548 <function name="pango_glyph_item_free">
2549 <description>
2550 Frees a #PangoGlyphItem and memory to which it points.
2551
2552 Since: 1.6
2553
2554 </description>
2555 <parameters>
2556 <parameter name="glyph_item">
2557 <parameter_description> a #PangoGlyphItem
2558 </parameter_description>
2559 </parameter>
2560 </parameters>
2561 <return></return>
2562 </function>
2563
2564 <function name="pango_renderer_set_matrix">
2565 <description>
2566 Sets the transformation matrix that will be applied when rendering.
2567
2568 Since: 1.8
2569
2570 </description>
2571 <parameters>
2572 <parameter name="renderer">
2573 <parameter_description> a #PangoRenderer
2574 </parameter_description>
2575 </parameter>
2576 <parameter name="matrix">
2577 <parameter_description> a #PangoMatrix, or %NULL to unset any existing matrix.
2578 (No matrix set is the same as setting the identity matrix.)
2579 </parameter_description>
2580 </parameter>
2581 </parameters>
2582 <return></return>
2583 </function>
2584
2585 <function name="pango_attr_underline_new">
2586 <description>
2587 Create a new underline-style attribute.
2588
2589
2590 </description>
2591 <parameters>
2592 <parameter name="underline">
2593 <parameter_description> the underline style.
2594 </parameter_description>
2595 </parameter>
2596 </parameters>
2597 <return> the newly allocated #PangoAttribute, which should be
2598 freed with pango_attribute_destroy().
2599 </return>
2600 </function>
2601
2602 <function name="pango_layout_is_wrapped">
2603 <description>
2604 Queries whether the layout had to wrap any paragraphs.
2605
2606 This returns %TRUE if a positive width is set on @layout,
2607 ellipsization mode of @layout is set to %PANGO_ELLIPSIZE_NONE,
2608 and there are paragraphs exceeding the layout width that have
2609 to be wrapped.
2610
2611
2612 </description>
2613 <parameters>
2614 <parameter name="layout">
2615 <parameter_description> a #PangoLayout
2616 </parameter_description>
2617 </parameter>
2618 </parameters>
2619 <return> %TRUE if any paragraphs had to be wrapped, %FALSE
2620 otherwise.
2621
2622 Since: 1.16
2623 </return>
2624 </function>
2625
2626 <function name="pango_layout_get_iter">
2627 <description>
2628 Return value: the new #PangoLayoutIter that should be freed using
2629
2630 </description>
2631 <parameters>
2632 <parameter name="layout">
2633 <parameter_description> a #PangoLayout
2634 </parameter_description>
2635 </parameter>
2636 </parameters>
2637 <return> the new #PangoLayoutIter that should be freed using
2638 pango_layout_iter_free().
2639 </return>
2640 </function>
2641
2642 <function name="pango_default_break">
2643 <description>
2644 This is the default break algorithm, used if no language
2645 engine overrides it. Normally you should use pango_break()
2646 instead. Unlike pango_break(),
2647 @analysis can be %NULL, but only do that if you know what
2648 you&apos;re doing. If you need an analysis to pass to pango_break(),
2649 you need to pango_itemize().  In most cases however you should
2650 simply use pango_get_log_attrs().
2651
2652 </description>
2653 <parameters>
2654 <parameter name="text">
2655 <parameter_description> text to break
2656 </parameter_description>
2657 </parameter>
2658 <parameter name="length">
2659 <parameter_description> length of text in bytes (may be -1 if @text is nul-terminated)
2660 </parameter_description>
2661 </parameter>
2662 <parameter name="analysis">
2663 <parameter_description> a #PangoAnalysis for the @text
2664 </parameter_description>
2665 </parameter>
2666 <parameter name="attrs">
2667 <parameter_description> logical attributes to fill in
2668 </parameter_description>
2669 </parameter>
2670 <parameter name="attrs_len">
2671 <parameter_description> size of the array passed as @attrs
2672 </parameter_description>
2673 </parameter>
2674 </parameters>
2675 <return></return>
2676 </function>
2677
2678 <function name="pango_layout_set_spacing">
2679 <description>
2680 Sets the amount of spacing in #PangoGlyphUnit between the lines of the
2681 layout.
2682
2683
2684 </description>
2685 <parameters>
2686 <parameter name="layout">
2687 <parameter_description> a #PangoLayout.
2688 </parameter_description>
2689 </parameter>
2690 <parameter name="spacing">
2691 <parameter_description> the amount of spacing
2692 </parameter_description>
2693 </parameter>
2694 </parameters>
2695 <return></return>
2696 </function>
2697
2698 <function name="pango_attr_scale_new">
2699 <description>
2700 Create a new font size scale attribute. The base font for the
2701 affected text will have its size multiplied by @scale_factor.
2702
2703
2704 </description>
2705 <parameters>
2706 <parameter name="scale_factor">
2707 <parameter_description> factor to scale the font
2708 </parameter_description>
2709 </parameter>
2710 </parameters>
2711 <return> the newly allocated #PangoAttribute, which should be
2712 freed with pango_attribute_destroy().
2713 </return>
2714 </function>
2715
2716 <function name="pango_attr_list_get_iterator">
2717 <description>
2718 Create a iterator initialized to the beginning of the list.
2719 @list must not be modified until this iterator is freed.
2720
2721
2722 </description>
2723 <parameters>
2724 <parameter name="list">
2725 <parameter_description> a #PangoAttrList
2726 </parameter_description>
2727 </parameter>
2728 </parameters>
2729 <return> the newly allocated #PangoAttrIterator, which should
2730 be freed with pango_attr_iterator_destroy().
2731 </return>
2732 </function>
2733
2734 <function name="pango_layout_iter_get_run_extents">
2735 <description>
2736 Gets the extents of the current run in layout coordinates
2737 (origin is the top left of the entire layout).
2738
2739
2740 </description>
2741 <parameters>
2742 <parameter name="iter">
2743 <parameter_description> a #PangoLayoutIter
2744 </parameter_description>
2745 </parameter>
2746 <parameter name="ink_rect">
2747 <parameter_description> rectangle to fill with ink extents, or %NULL
2748 </parameter_description>
2749 </parameter>
2750 <parameter name="logical_rect">
2751 <parameter_description> rectangle to fill with logical extents, or %NULL
2752 </parameter_description>
2753 </parameter>
2754 </parameters>
2755 <return></return>
2756 </function>
2757
2758 <function name="pango_layout_get_lines_readonly">
2759 <description>
2760 Return value: a #GSList containing the lines in the layout. This
2761
2762 </description>
2763 <parameters>
2764 <parameter name="layout">
2765 <parameter_description> a #PangoLayout
2766 </parameter_description>
2767 </parameter>
2768 </parameters>
2769 <return> a #GSList containing the lines in the layout. This
2770 points to internal data of the #PangoLayout and must be used with
2771 care. It will become invalid on any change to the layout&apos;s
2772 text or properties.  No changes should be made to the lines.
2773
2774 Since: 1.16
2775 </return>
2776 </function>
2777
2778 <function name="pango_font_description_set_weight">
2779 <description>
2780 Sets the weight field of a font description. The weight field
2781 specifies how bold or light the font should be. In addition
2782 to the values of the #PangoWeight enumeration, other intermediate
2783 numeric values are possible.
2784
2785 </description>
2786 <parameters>
2787 <parameter name="desc">
2788 <parameter_description> a #PangoFontDescription
2789 </parameter_description>
2790 </parameter>
2791 <parameter name="weight">
2792 <parameter_description> the weight for the font description.
2793 </parameter_description>
2794 </parameter>
2795 </parameters>
2796 <return></return>
2797 </function>
2798
2799 <function name="pango_xft_render_layout">
2800 <description>
2801 Render a #PangoLayout onto a #XftDraw
2802
2803 Since: 1.8
2804
2805 </description>
2806 <parameters>
2807 <parameter name="draw">
2808 <parameter_description>      an #XftDraw
2809 </parameter_description>
2810 </parameter>
2811 <parameter name="color">
2812 <parameter_description>     the foreground color in which to draw the layout
2813 (may be overridden by color attributes)
2814 </parameter_description>
2815 </parameter>
2816 <parameter name="layout">
2817 <parameter_description>    a #PangoLayout
2818 </parameter_description>
2819 </parameter>
2820 <parameter name="x">
2821 <parameter_description>         the X position of the left of the layout (in Pango units)
2822 </parameter_description>
2823 </parameter>
2824 <parameter name="y">
2825 <parameter_description>         the Y position of the top of the layout (in Pango units)
2826 </parameter_description>
2827 </parameter>
2828 </parameters>
2829 <return></return>
2830 </function>
2831
2832 <function name="pango_win32_font_cache_new">
2833 <description>
2834 Creates a font cache.
2835
2836
2837 </description>
2838 <parameters>
2839 </parameters>
2840 <return> The new font cache. This must be freed with
2841 pango_win32_font_cache_free().
2842 </return>
2843 </function>
2844
2845 <function name="pango_font_metrics_new">
2846 <description>
2847 Creates a new #PangoFontMetrics structure. This is only for
2848 internal use by Pango backends and there is no public way
2849 to set the fields of the structure.
2850
2851
2852 </description>
2853 <parameters>
2854 </parameters>
2855 <return> a newly-created #PangoFontMetrics structure
2856 with a reference count of 1.
2857 </return>
2858 </function>
2859
2860 <function name="pango_font_description_get_weight">
2861 <description>
2862 Gets the weight field of a font description. See
2863 pango_font_description_set_weight().
2864
2865
2866 </description>
2867 <parameters>
2868 <parameter name="desc">
2869 <parameter_description> a #PangoFontDescription
2870 </parameter_description>
2871 </parameter>
2872 </parameters>
2873 <return> the weight field for the font description. Use
2874 pango_font_description_get_set_fields() to find out if
2875 the field was explicitly set or not.
2876 </return>
2877 </function>
2878
2879 <function name="pango_matrix_scale">
2880 <description>
2881 Changes the transformation represented by @matrix to be the
2882 transformation given by first scaling by @sx in the X direction
2883 and @sy in the Y direction then applying the original
2884 transformation.
2885
2886 Since: 1.6
2887
2888 </description>
2889 <parameters>
2890 <parameter name="matrix">
2891 <parameter_description> a #PangoMatrix
2892 </parameter_description>
2893 </parameter>
2894 <parameter name="scale_x">
2895 <parameter_description> amount to scale by in X direction
2896 </parameter_description>
2897 </parameter>
2898 <parameter name="scale_y">
2899 <parameter_description> amount to scale by in Y direction
2900 </parameter_description>
2901 </parameter>
2902 </parameters>
2903 <return></return>
2904 </function>
2905
2906 <function name="pango_renderer_set_color">
2907 <description>
2908 Sets the color for part of the rendering.
2909
2910 Since: 1.8
2911
2912 </description>
2913 <parameters>
2914 <parameter name="renderer">
2915 <parameter_description> a #PangoRenderer
2916 </parameter_description>
2917 </parameter>
2918 <parameter name="part">
2919 <parameter_description> the part to change the color of
2920 </parameter_description>
2921 </parameter>
2922 <parameter name="color">
2923 <parameter_description> the new color or %NULL to unset the current color
2924 </parameter_description>
2925 </parameter>
2926 </parameters>
2927 <return></return>
2928 </function>
2929
2930 <function name="pango_cairo_context_get_shape_renderer">
2931 <description>
2932 Sets callback function for context to use for rendering attributes
2933 of type %PANGO_ATTR_SHAPE.  See #PangoCairoShapeRendererFunc for
2934 details.
2935
2936 Retrieves callback function and associated user data for rendering
2937 attributes of type %PANGO_ATTR_SHAPE as set by
2938 pango_cairo_context_set_shape_renderer(), if any.
2939
2940
2941 </description>
2942 <parameters>
2943 <parameter name="context">
2944 <parameter_description> a #PangoContext, from pango_cairo_font_map_create_context()
2945 </parameter_description>
2946 </parameter>
2947 <parameter name="data">
2948 <parameter_description> Pointer to #gpointer to return user data
2949 </parameter_description>
2950 </parameter>
2951 </parameters>
2952 <return> the shape rendering callback previously set on the context, or %NULL
2953 if no shape rendering callback have been set.
2954
2955 Since: 1.18
2956 </return>
2957 </function>
2958
2959 <function name="pango_font_description_hash">
2960 <description>
2961 Computes a hash of a #PangoFontDescription structure suitable
2962 to be used, for example, as an argument to g_hash_table_new().
2963 The hash value is independent of @desc-&amp;gt;mask.
2964
2965
2966 </description>
2967 <parameters>
2968 <parameter name="desc">
2969 <parameter_description> a #PangoFontDescription
2970 </parameter_description>
2971 </parameter>
2972 </parameters>
2973 <return> the hash value.
2974 </return>
2975 </function>
2976
2977 <function name="pango_font_face_is_synthesized">
2978 <description>
2979 Return value: whether @face is synthesized.
2980
2981 </description>
2982 <parameters>
2983 <parameter name="face">
2984 <parameter_description> a #PangoFontFace
2985 </parameter_description>
2986 </parameter>
2987 </parameters>
2988 <return> whether @face is synthesized.
2989
2990 Since: 1.18
2991 </return>
2992 </function>
2993
2994 <function name="pango_cairo_font_map_set_resolution">
2995 <description>
2996 Sets the resolution for the fontmap. This is a scale factor between
2997 points specified in a #PangoFontDescription and Cairo units. The
2998 default value is 96, meaning that a 10 point font will be 13
2999 units high. (10 * 96. / 72. = 13.3).
3000
3001 Since: 1.10
3002
3003 </description>
3004 <parameters>
3005 <parameter name="fontmap">
3006 <parameter_description> a #PangoCairoFontMap
3007 </parameter_description>
3008 </parameter>
3009 <parameter name="dpi">
3010 <parameter_description> the resolution in &quot;dots per inch&quot;. (Physical inches aren&apos;t actually
3011 involved; the terminology is conventional.)
3012 </parameter_description>
3013 </parameter>
3014 </parameters>
3015 <return></return>
3016 </function>
3017
3018 <function name="pango_layout_iter_get_layout_extents">
3019 <description>
3020 Obtains the extents of the #PangoLayout being iterated
3021 over. @ink_rect or @logical_rect can be %NULL if you
3022 aren&apos;t interested in them.
3023
3024
3025 </description>
3026 <parameters>
3027 <parameter name="iter">
3028 <parameter_description> a #PangoLayoutIter
3029 </parameter_description>
3030 </parameter>
3031 <parameter name="ink_rect">
3032 <parameter_description> rectangle to fill with ink extents, or %NULL
3033 </parameter_description>
3034 </parameter>
3035 <parameter name="logical_rect">
3036 <parameter_description> rectangle to fill with logical extents, or %NULL
3037 </parameter_description>
3038 </parameter>
3039 </parameters>
3040 <return></return>
3041 </function>
3042
3043 <function name="pango_layout_get_cursor_pos">
3044 <description>
3045 Given an index within a layout, determines the positions that of the
3046 strong and weak cursors if the insertion point is at that
3047 index. The position of each cursor is stored as a zero-width
3048 rectangle. The strong cursor location is the location where
3049 characters of the directionality equal to the base direction of the
3050 layout are inserted.  The weak cursor location is the location
3051 where characters of the directionality opposite to the base
3052 direction of the layout are inserted.
3053
3054 </description>
3055 <parameters>
3056 <parameter name="layout">
3057 <parameter_description> a #PangoLayout
3058 </parameter_description>
3059 </parameter>
3060 <parameter name="index_">
3061 <parameter_description> the byte index of the cursor
3062 </parameter_description>
3063 </parameter>
3064 <parameter name="strong_pos">
3065 <parameter_description> location to store the strong cursor position (may be %NULL)
3066 </parameter_description>
3067 </parameter>
3068 <parameter name="weak_pos">
3069 <parameter_description> location to store the weak cursor position (may be %NULL)
3070 </parameter_description>
3071 </parameter>
3072 </parameters>
3073 <return></return>
3074 </function>
3075
3076 <function name="pango_renderer_draw_glyph">
3077 <description>
3078 Draws a single glyph with coordinates in device space.
3079
3080 Since: 1.8
3081
3082 </description>
3083 <parameters>
3084 <parameter name="renderer">
3085 <parameter_description> a #PangoRenderer
3086 </parameter_description>
3087 </parameter>
3088 <parameter name="font">
3089 <parameter_description> a #PangoFont
3090 </parameter_description>
3091 </parameter>
3092 <parameter name="glyph">
3093 <parameter_description> the glyph index of a single glyph
3094 </parameter_description>
3095 </parameter>
3096 <parameter name="x">
3097 <parameter_description> X coordinate of left edge of baseline of glyph
3098 </parameter_description>
3099 </parameter>
3100 <parameter name="y">
3101 <parameter_description> Y coordinate of left edge of baseline of glyph
3102 </parameter_description>
3103 </parameter>
3104 </parameters>
3105 <return></return>
3106 </function>
3107
3108 <function name="pango_attr_underline_color_new">
3109 <description>
3110 Create a new underline color attribute. This attribute
3111 modifies the color of underlines. If not set, underlines
3112 will use the foreground color.
3113
3114
3115 </description>
3116 <parameters>
3117 <parameter name="red">
3118 <parameter_description> the red value (ranging from 0 to 65535)
3119 </parameter_description>
3120 </parameter>
3121 <parameter name="green">
3122 <parameter_description> the green value
3123 </parameter_description>
3124 </parameter>
3125 <parameter name="blue">
3126 <parameter_description> the blue value
3127 </parameter_description>
3128 </parameter>
3129 </parameters>
3130 <return> the newly allocated #PangoAttribute, which should be
3131 freed with pango_attribute_destroy().
3132
3133 Since: 1.8
3134 </return>
3135 </function>
3136
3137 <function name="pango_font_description_set_absolute_size">
3138 <description>
3139 Sets the size field of a font description, in device units. This is mutually
3140 exclusive with pango_font_description_set_size() which sets the font size
3141 in points.
3142
3143 Since: 1.8
3144
3145 </description>
3146 <parameters>
3147 <parameter name="desc">
3148 <parameter_description> a #PangoFontDescription
3149 </parameter_description>
3150 </parameter>
3151 <parameter name="size">
3152 <parameter_description> the new size, in Pango units. There are %PANGO_SCALE Pango units in one
3153 device unit. For an output backend where a device unit is a pixel, a @size
3154 value of 10 * PANGO_SCALE gives a 10 pixel font.
3155 </parameter_description>
3156 </parameter>
3157 </parameters>
3158 <return></return>
3159 </function>
3160
3161 <function name="pango_color_free">
3162 <description>
3163 Frees a color allocated by pango_color_copy().
3164
3165 </description>
3166 <parameters>
3167 <parameter name="color">
3168 <parameter_description> an allocated #PangoColor
3169 </parameter_description>
3170 </parameter>
3171 </parameters>
3172 <return></return>
3173 </function>
3174
3175 <function name="pango_renderer_get_color">
3176 <description>
3177 Gets the current rendering color for the specified part.
3178
3179
3180 </description>
3181 <parameters>
3182 <parameter name="renderer">
3183 <parameter_description> a #PangoRenderer
3184 </parameter_description>
3185 </parameter>
3186 <parameter name="part">
3187 <parameter_description> the part to get the color for
3188 </parameter_description>
3189 </parameter>
3190 </parameters>
3191 <return> the color for the specified part, or %NULL
3192 if it hasn&apos;t been set and should be inherited from the
3193 environment.
3194
3195 Since: 1.8
3196 </return>
3197 </function>
3198
3199 <function name="pango_cairo_context_set_font_options">
3200 <description>
3201 Sets the font options used when rendering text with this context.
3202 These options override any options that pango_cairo_update_context()
3203 derives from the target surface.
3204
3205 </description>
3206 <parameters>
3207 <parameter name="context">
3208 <parameter_description> a #PangoContext, from pango_cairo_font_map_create_context()
3209 </parameter_description>
3210 </parameter>
3211 <parameter name="options">
3212 <parameter_description> a #cairo_font_options_t, or %NULL to unset any previously set
3213 options. A copy is made.
3214 </parameter_description>
3215 </parameter>
3216 </parameters>
3217 <return></return>
3218 </function>
3219
3220 <function name="pango_find_paragraph_boundary">
3221 <description>
3222 Locates a paragraph boundary in @text. A boundary is caused by
3223 delimiter characters, such as a newline, carriage return, carriage
3224 return-newline pair, or Unicode paragraph separator character.  The
3225 index of the run of delimiters is returned in
3226 @paragraph_delimiter_index. The index of the start of the paragraph
3227 (index after all delimiters) is stored in @next_paragraph_start.
3228
3229 If no delimiters are found, both @paragraph_delimiter_index and
3230 @next_paragraph_start are filled with the length of @text (an index one
3231 off the end).
3232
3233 </description>
3234 <parameters>
3235 <parameter name="text">
3236 <parameter_description> UTF-8 text
3237 </parameter_description>
3238 </parameter>
3239 <parameter name="length">
3240 <parameter_description> length of @text in bytes, or -1 if nul-terminated
3241 </parameter_description>
3242 </parameter>
3243 <parameter name="paragraph_delimiter_index">
3244 <parameter_description> return location for index of delimiter
3245 </parameter_description>
3246 </parameter>
3247 <parameter name="next_paragraph_start">
3248 <parameter_description> return location for start of next paragraph
3249 </parameter_description>
3250 </parameter>
3251 </parameters>
3252 <return></return>
3253 </function>
3254
3255 <function name="pango_font_map_get_shape_engine_type">
3256 <description>
3257 Return value: the ID string for shape engines for
3258
3259 </description>
3260 <parameters>
3261 <parameter name="fontmap">
3262 <parameter_description> a #PangoFontMap
3263 </parameter_description>
3264 </parameter>
3265 </parameters>
3266 <return> the ID string for shape engines for
3267 this fontmap. Owned by Pango, should not be modified
3268 or freed.
3269
3270 Since: 1.4
3271 </return>
3272 </function>
3273
3274 <function name="pango_attr_shape_new_with_data">
3275 <description>
3276 Like pango_attr_shape_new(), but a user data pointer is also
3277 provided; this pointer can be accessed when later
3278 rendering the glyph.
3279
3280
3281 </description>
3282 <parameters>
3283 <parameter name="ink_rect">
3284 <parameter_description>     ink rectangle to assign to each character
3285 </parameter_description>
3286 </parameter>
3287 <parameter name="logical_rect">
3288 <parameter_description> logical rectangle to assign to each character
3289 </parameter_description>
3290 </parameter>
3291 <parameter name="data">
3292 <parameter_description>         user data pointer
3293 </parameter_description>
3294 </parameter>
3295 <parameter name="copy_func">
3296 <parameter_description>    function to copy @data when the attribute
3297 is copied. If %NULL, @data is simply copied
3298 as a pointer.
3299 </parameter_description>
3300 </parameter>
3301 <parameter name="destroy_func">
3302 <parameter_description> function to free @data when the attribute
3303 is freed, or %NULL
3304 </parameter_description>
3305 </parameter>
3306 </parameters>
3307 <return> the newly allocated #PangoAttribute, which should be
3308 freed with pango_attribute_destroy().
3309
3310 Since: 1.8
3311 </return>
3312 </function>
3313
3314 <function name="pango_attr_list_change">
3315 <description>
3316 Insert the given attribute into the #PangoAttrList. It will
3317 replace any attributes of the same type on that segment
3318 and be merged with any adjoining attributes that are identical.
3319
3320 This function is slower than pango_attr_list_insert() for
3321 creating a attribute list in order (potentially much slower
3322 for large lists). However, pango_attr_list_insert() is not
3323 suitable for continually changing a set of attributes
3324 since it never removes or combines existing attributes.
3325
3326 </description>
3327 <parameters>
3328 <parameter name="list">
3329 <parameter_description> a #PangoAttrList
3330 </parameter_description>
3331 </parameter>
3332 <parameter name="attr">
3333 <parameter_description> the attribute to insert. Ownership of this value is
3334 assumed by the list.
3335 </parameter_description>
3336 </parameter>
3337 </parameters>
3338 <return></return>
3339 </function>
3340
3341 <function name="pango_renderer_prepare_run">
3342 <description>
3343 Set up the state of the #PangoRenderer for rendering @run.
3344
3345 Since: 1.8
3346
3347 </description>
3348 <parameters>
3349 <parameter name="renderer">
3350 <parameter_description> a #PangoRenderer
3351 </parameter_description>
3352 </parameter>
3353 <parameter name="run">
3354 <parameter_description> a #PangoLayoutRun
3355 </parameter_description>
3356 </parameter>
3357 </parameters>
3358 <return></return>
3359 </function>
3360
3361 <function name="pango_attr_size_new">
3362 <description>
3363 Create a new font-size attribute in fractional points.
3364
3365
3366 </description>
3367 <parameters>
3368 <parameter name="size">
3369 <parameter_description> the font size, in %PANGO_SCALE&amp;lt;!-- --&amp;gt;ths of a point.
3370 </parameter_description>
3371 </parameter>
3372 </parameters>
3373 <return> the newly allocated #PangoAttribute, which should be
3374 freed with pango_attribute_destroy().
3375 </return>
3376 </function>
3377
3378 <function name="pango_item_copy">
3379 <description>
3380 Copy an existing #PangoItem structure.
3381
3382
3383 </description>
3384 <parameters>
3385 <parameter name="item">
3386 <parameter_description> a #PangoItem
3387 </parameter_description>
3388 </parameter>
3389 </parameters>
3390 <return> the newly allocated #PangoItem, which should
3391 be freed with pango_item_free().
3392 </return>
3393 </function>
3394
3395 <function name="pango_matrix_transform_pixel_rectangle">
3396 <description>
3397 First transforms the @rect using @matrix, then calculates the bounding box
3398 of the transformed rectangle.  The rectangle should be in device units
3399 (pixels).
3400
3401 This function is useful for example when you want to draw a rotated
3402 @PangoLayout to an image buffer, and want to know how large the image
3403 should be and how much you should shift the layout when rendering.
3404
3405 For better accuracy, you should use pango_matrix_transform_rectangle() on
3406 original rectangle in Pango units and convert to pixels afterward
3407 using pango_extents_to_pixels() as @ink_rect.
3408
3409 Since: 1.16
3410
3411 </description>
3412 <parameters>
3413 <parameter name="matrix">
3414 <parameter_description> a #PangoMatrix, or %NULL
3415 </parameter_description>
3416 </parameter>
3417 <parameter name="rect">
3418 <parameter_description> in/out bounding box in device units, or %NULL
3419 </parameter_description>
3420 </parameter>
3421 </parameters>
3422 <return></return>
3423 </function>
3424
3425 <function name="pango_attr_letter_spacing_new">
3426 <description>
3427 Create a new letter-spacing attribute.
3428
3429
3430 </description>
3431 <parameters>
3432 <parameter name="letter_spacing">
3433 <parameter_description> amount of extra space to add between graphemes
3434 of the text, in Pango units.
3435 </parameter_description>
3436 </parameter>
3437 </parameters>
3438 <return> the newly allocated #PangoAttribute, which should be
3439 freed with pango_attribute_destroy().
3440
3441 Since: 1.6
3442 </return>
3443 </function>
3444
3445 <function name="pango_ot_ruleset_description_free">
3446 <description>
3447 Frees a ruleset description allocated by 
3448 pango_ot_ruleset_description_copy().
3449
3450 Since: 1.18
3451
3452 </description>
3453 <parameters>
3454 <parameter name="desc">
3455 <parameter_description> an allocated #PangoOTRulesetDescription
3456 </parameter_description>
3457 </parameter>
3458 </parameters>
3459 <return></return>
3460 </function>
3461
3462 <function name="pango_layout_get_wrap">
3463 <description>
3464 Gets the wrap mode for the layout.
3465
3466 Use pango_layout_is_wrapped() to query whether any paragraphs
3467 were actually wrapped.
3468
3469
3470 </description>
3471 <parameters>
3472 <parameter name="layout">
3473 <parameter_description> a #PangoLayout
3474 </parameter_description>
3475 </parameter>
3476 </parameters>
3477 <return> active wrap mode.
3478 </return>
3479 </function>
3480
3481 <function name="pango_layout_set_font_description">
3482 <description>
3483 Sets the default font description for the layout. If no font
3484 description is set on the layout, the font description from
3485 the layout&apos;s context is used.
3486
3487 </description>
3488 <parameters>
3489 <parameter name="layout">
3490 <parameter_description> a #PangoLayout
3491 </parameter_description>
3492 </parameter>
3493 <parameter name="desc">
3494 <parameter_description> the new #PangoFontDescription, or %NULL to unset the
3495 current font description
3496 </parameter_description>
3497 </parameter>
3498 </parameters>
3499 <return></return>
3500 </function>
3501
3502 <function name="pango_ot_ruleset_maybe_add_features">
3503 <description>
3504 This is a convenience function that 
3505 for each feature in the feature map array @features
3506 converts the feature name to a #PangoOTTag feature tag using FT_MAKE_TAG()
3507 and calls pango_ot_ruleset_maybe_add_feature() on it.
3508
3509
3510 </description>
3511 <parameters>
3512 <parameter name="ruleset">
3513 <parameter_description> a #PangoOTRuleset.
3514 </parameter_description>
3515 </parameter>
3516 <parameter name="table_type">
3517 <parameter_description> the table type to add features to.
3518 </parameter_description>
3519 </parameter>
3520 <parameter name="features">
3521 <parameter_description> array of feature name and property bits to add.
3522 </parameter_description>
3523 </parameter>
3524 <parameter name="n_features">
3525 <parameter_description> number of feature records in @features array.
3526 </parameter_description>
3527 </parameter>
3528 </parameters>
3529 <return> The number of features in @features that were found
3530 and added to @ruleset.
3531
3532 Since: 1.18
3533 </return>
3534 </function>
3535
3536 <function name="pango_xft_font_get_unknown_glyph">
3537 <description>
3538 Return value: a glyph index into @font.
3539
3540 </description>
3541 <parameters>
3542 <parameter name="font">
3543 <parameter_description> a #PangoFont.
3544 </parameter_description>
3545 </parameter>
3546 <parameter name="wc">
3547 <parameter_description> the Unicode character for which a glyph is needed.
3548 </parameter_description>
3549 </parameter>
3550 </parameters>
3551 <return> a glyph index into @font.
3552 </return>
3553 </function>
3554
3555 <function name="pango_fontset_get_metrics">
3556 <description>
3557 Get overall metric information for the fonts in the fontset.
3558
3559
3560 </description>
3561 <parameters>
3562 <parameter name="fontset">
3563 <parameter_description> a #PangoFontset
3564 </parameter_description>
3565 </parameter>
3566 </parameters>
3567 <return> a #PangoFontMetrics object. The caller must call pango_font_metrics_unref()
3568 when finished using the object.
3569 </return>
3570 </function>
3571
3572 <function name="pango_ot_buffer_output">
3573 <description>
3574 Exports the glyphs in a #PangoOTBuffer into a #PangoGlyphString.  This is
3575 typically used after the OpenType layout processing is over, to convert the
3576 resulting glyphs into a generic Pango glyph string.
3577
3578 Since: 1.4
3579
3580 </description>
3581 <parameters>
3582 <parameter name="buffer">
3583 <parameter_description> a #PangoOTBuffer
3584 </parameter_description>
3585 </parameter>
3586 <parameter name="glyphs">
3587 <parameter_description> a #PangoGlyphString
3588 </parameter_description>
3589 </parameter>
3590 </parameters>
3591 <return></return>
3592 </function>
3593
3594 <function name="pango_ft2_get_unknown_glyph">
3595 <description>
3596 Return the index of a glyph suitable for drawing unknown characters with
3597 @font, or %PANGO_GLYPH_EMPTY if no suitable glyph found.
3598
3599 If you want to draw an unknown-box for a character that is not covered
3600 by the font,
3601 use PANGO_GET_UNKNOWN_GLYPH() instead.
3602
3603
3604 </description>
3605 <parameters>
3606 <parameter name="font">
3607 <parameter_description> a #PangoFont
3608 </parameter_description>
3609 </parameter>
3610 </parameters>
3611 <return> a glyph index into @font, or %PANGO_GLYPH_EMPTY
3612 </return>
3613 </function>
3614
3615 <function name="pango_win32_get_unknown_glyph">
3616 <description>
3617 Return value: a glyph index into @font
3618
3619 </description>
3620 <parameters>
3621 <parameter name="font">
3622 <parameter_description> a #PangoFont
3623 </parameter_description>
3624 </parameter>
3625 <parameter name="wc">
3626 <parameter_description> the Unicode character for which a glyph is needed.
3627 </parameter_description>
3628 </parameter>
3629 </parameters>
3630 <return> a glyph index into @font
3631 </return>
3632 </function>
3633
3634 <function name="pango_context_get_language">
3635 <description>
3636 Retrieves the global language tag for the context.
3637
3638
3639 </description>
3640 <parameters>
3641 <parameter name="context">
3642 <parameter_description> a #PangoContext
3643 </parameter_description>
3644 </parameter>
3645 </parameters>
3646 <return> the global language tag.
3647 </return>
3648 </function>
3649
3650 <function name="pango_font_metrics_get_approximate_digit_width">
3651 <description>
3652 Gets the approximate digit width for a font metrics structure.
3653 This is merely a representative value useful, for example, for
3654 determining the initial size for a window. Actual digits in
3655 text can be wider or narrower than this, though this value
3656 is generally somewhat more accurate than the result of
3657 pango_font_metrics_get_approximate_char_width() for digits.
3658
3659
3660 </description>
3661 <parameters>
3662 <parameter name="metrics">
3663 <parameter_description> a #PangoFontMetrics structure
3664 </parameter_description>
3665 </parameter>
3666 </parameters>
3667 <return> the digit width, in Pango units. (1 point == %PANGO_SCALE Pango units.)
3668 </return>
3669 </function>
3670
3671 <function name="pango_ot_info_list_languages">
3672 <description>
3673 Obtains the list of available languages for a given script.
3674
3675
3676 </description>
3677 <parameters>
3678 <parameter name="info">
3679 <parameter_description> a #PangoOTInfo.
3680 </parameter_description>
3681 </parameter>
3682 <parameter name="table_type">
3683 <parameter_description> the table type to obtain information about.
3684 </parameter_description>
3685 </parameter>
3686 <parameter name="script_index">
3687 <parameter_description> the index of the script to list languages for.
3688 </parameter_description>
3689 </parameter>
3690 <parameter name="language_tag">
3691 <parameter_description> unused parameter.
3692 </parameter_description>
3693 </parameter>
3694 </parameters>
3695 <return> a newly-allocated zero-terminated array containing the tags of the
3696 available languages.  Should be freed using g_free().
3697 </return>
3698 </function>
3699
3700 <function name="pango_x_font_map_for_display">
3701 <description>
3702 Return value: a #PangoXFontMap for @display.
3703
3704 </description>
3705 <parameters>
3706 <parameter name="display">
3707 <parameter_description> an X #Display.
3708 </parameter_description>
3709 </parameter>
3710 </parameters>
3711 <return> a #PangoXFontMap for @display.
3712 </return>
3713 </function>
3714
3715 <function name="pango_fontset_simple_append">
3716 <description>
3717 Adds a font to the fontset.
3718
3719 </description>
3720 <parameters>
3721 <parameter name="fontset">
3722 <parameter_description> a #PangoFontsetSimple.
3723 </parameter_description>
3724 </parameter>
3725 <parameter name="font">
3726 <parameter_description> a #PangoFont.
3727 </parameter_description>
3728 </parameter>
3729 </parameters>
3730 <return></return>
3731 </function>
3732
3733 <function name="pango_font_describe">
3734 <description>
3735 Return value: a newly-allocated #PangoFontDescription object.
3736
3737 </description>
3738 <parameters>
3739 <parameter name="font">
3740 <parameter_description> a #PangoFont
3741 </parameter_description>
3742 </parameter>
3743 </parameters>
3744 <return> a newly-allocated #PangoFontDescription object.
3745 </return>
3746 </function>
3747
3748 <function name="pango_font_description_get_size">
3749 <description>
3750 Gets the size field of a font description.
3751 See pango_font_description_set_size().
3752
3753
3754 </description>
3755 <parameters>
3756 <parameter name="desc">
3757 <parameter_description> a #PangoFontDescription
3758 </parameter_description>
3759 </parameter>
3760 </parameters>
3761 <return> the size field for the font description in points or device units.
3762 You must call pango_font_description_get_size_is_absolute()
3763 to find out which is the case. Returns 0 if the size field has not
3764 previously been set or it has been set to 0 explicitly.
3765 Use pango_font_description_get_set_fields() to
3766 find out if the field was explicitly set or not.
3767 </return>
3768 </function>
3769
3770 <function name="pango_xft_renderer_set_draw">
3771 <description>
3772 Sets the #XftDraw object that the renderer is drawing to.
3773 The renderer must not be currently active.
3774
3775 Since: 1.8
3776
3777 </description>
3778 <parameters>
3779 <parameter name="xftrenderer">
3780 <parameter_description> a #PangoXftRenderer
3781 </parameter_description>
3782 </parameter>
3783 <parameter name="draw">
3784 <parameter_description> a #XftDraw
3785 </parameter_description>
3786 </parameter>
3787 </parameters>
3788 <return></return>
3789 </function>
3790
3791 <function name="pango_fc_font_get_raw_extents">
3792 <description>
3793 Gets the extents of a single glyph from a font. The extents are in
3794 user space; that is, they are not transformed by any matrix in effect
3795 for the font.
3796
3797 Long term, this functionality probably belongs in the default
3798 implementation of the get_glyph_extents() virtual function.
3799 The other possibility would be to to make it public in something
3800 like it&apos;s current form, and also expose glyph information
3801 caching functionality similar to pango_ft2_font_set_glyph_info().
3802
3803 Since: 1.6
3804
3805 </description>
3806 <parameters>
3807 <parameter name="fcfont">
3808 <parameter_description> a #PangoFcFont
3809 </parameter_description>
3810 </parameter>
3811 <parameter name="load_flags">
3812 <parameter_description> flags to pass to FT_Load_Glyph()
3813 </parameter_description>
3814 </parameter>
3815 <parameter name="glyph">
3816 <parameter_description> the glyph index to load
3817 </parameter_description>
3818 </parameter>
3819 <parameter name="ink_rect">
3820 <parameter_description> location to store ink extents of the glyph, or %NULL
3821 </parameter_description>
3822 </parameter>
3823 <parameter name="logical_rect">
3824 <parameter_description> location to store logical extents of the glyph or %NULL
3825 </parameter_description>
3826 </parameter>
3827 </parameters>
3828 <return></return>
3829 </function>
3830
3831 <function name="pango_ot_info_find_script">
3832 <description>
3833 Finds the index of a script.  If not found, tries to find the &apos;DFLT&apos;
3834 and then &apos;dflt&apos; scripts and return the index of that in @script_index.
3835 If none of those is found either, %PANGO_OT_NO_SCRIPT is placed in
3836 @script_index.
3837
3838 All other functions taking an input script_index parameter know
3839 how to handle %PANGO_OT_NO_SCRIPT, so one can ignore the return
3840 value of this function completely and proceed, to enjoy the automatic
3841 fallback to the &apos;DFLT&apos;/&apos;dflt&apos; script.
3842
3843
3844 </description>
3845 <parameters>
3846 <parameter name="info">
3847 <parameter_description> a #PangoOTInfo.
3848 </parameter_description>
3849 </parameter>
3850 <parameter name="table_type">
3851 <parameter_description> the table type to obtain information about.
3852 </parameter_description>
3853 </parameter>
3854 <parameter name="script_tag">
3855 <parameter_description> the tag of the script to find.
3856 </parameter_description>
3857 </parameter>
3858 <parameter name="script_index">
3859 <parameter_description> location to store the index of the script, or %NULL.
3860 </parameter_description>
3861 </parameter>
3862 </parameters>
3863 <return> %TRUE if the script was found.
3864 </return>
3865 </function>
3866
3867 <function name="pango_ot_ruleset_description_hash">
3868 <description>
3869 Computes a hash of a #PangoOTRulesetDescription structure suitable
3870 to be used, for example, as an argument to g_hash_table_new().
3871
3872
3873 </description>
3874 <parameters>
3875 <parameter name="desc">
3876 <parameter_description> a ruleset description
3877 </parameter_description>
3878 </parameter>
3879 </parameters>
3880 <return> the hash value.
3881
3882 Since: 1.18
3883 </return>
3884 </function>
3885
3886 <function name="pango_layout_get_unknown_glyphs_count">
3887 <description>
3888 Counts the number unknown glyphs in @layout.  That is, zero if
3889 glyphs for all characters in the layout text were found, or more
3890 than zero otherwise.
3891
3892
3893 </description>
3894 <parameters>
3895 <parameter name="layout">
3896 <parameter_description> a #PangoLayout
3897 </parameter_description>
3898 </parameter>
3899 </parameters>
3900 <return> The number of unknown glyphs in @layout.
3901
3902 Since: 1.16
3903 </return>
3904 </function>
3905
3906 <function name="pango_font_metrics_get_underline_thickness">
3907 <description>
3908 Gets the suggested thickness to draw for the underline.
3909
3910
3911 </description>
3912 <parameters>
3913 <parameter name="metrics">
3914 <parameter_description> a #PangoFontMetrics structure
3915 </parameter_description>
3916 </parameter>
3917 </parameters>
3918 <return> the suggested underline thickness, in Pango units.
3919
3920 Since: 1.6
3921 </return>
3922 </function>
3923
3924 <function name="pango_layout_set_markup_with_accel">
3925 <description>
3926 Sets the layout text and attribute list from marked-up text (see
3927 &amp;lt;link linkend=&quot;PangoMarkupFormat&quot;&amp;gt;markup format&amp;lt;/link&amp;gt;). Replaces
3928 the current text and attribute list.
3929
3930 If @accel_marker is nonzero, the given character will mark the
3931 character following it as an accelerator. For example, @accel_marker
3932 might be an ampersand or underscore. All characters marked
3933 as an accelerator will receive a %PANGO_UNDERLINE_LOW attribute,
3934 and the first character so marked will be returned in @accel_char.
3935 Two @accel_marker characters following each other produce a single
3936 literal @accel_marker character.
3937
3938 </description>
3939 <parameters>
3940 <parameter name="layout">
3941 <parameter_description> a #PangoLayout
3942 </parameter_description>
3943 </parameter>
3944 <parameter name="markup">
3945 <parameter_description> marked-up text
3946 (see &amp;lt;link linkend=&quot;PangoMarkupFormat&quot;&amp;gt;markup format&amp;lt;/link&amp;gt;)
3947 </parameter_description>
3948 </parameter>
3949 <parameter name="length">
3950 <parameter_description> length of marked-up text in bytes, or -1 if @markup is
3951 nul-terminated
3952 </parameter_description>
3953 </parameter>
3954 <parameter name="accel_marker">
3955 <parameter_description> marker for accelerators in the text
3956 </parameter_description>
3957 </parameter>
3958 <parameter name="accel_char">
3959 <parameter_description> return location for first located accelerator, or %NULL
3960 </parameter_description>
3961 </parameter>
3962 </parameters>
3963 <return></return>
3964 </function>
3965
3966 <function name="pango_font_metrics_get_strikethrough_position">
3967 <description>
3968 Gets the suggested position to draw the strikethrough.
3969 The value returned is the distance &amp;lt;emphasis&amp;gt;above&amp;lt;/emphasis&amp;gt; the
3970 baseline of the top of the strikethrough.
3971
3972
3973 </description>
3974 <parameters>
3975 <parameter name="metrics">
3976 <parameter_description> a #PangoFontMetrics structure
3977 </parameter_description>
3978 </parameter>
3979 </parameters>
3980 <return> the suggested strikethrough position, in Pango units.
3981
3982 Since: 1.6
3983 </return>
3984 </function>
3985
3986 <function name="_pango_fc_font_get_decoder">
3987 <description>
3988 This will return any custom decoder set on this font.
3989
3990
3991 </description>
3992 <parameters>
3993 <parameter name="font">
3994 <parameter_description> a #PangoFcFont
3995 </parameter_description>
3996 </parameter>
3997 </parameters>
3998 <return> The custom decoder
3999
4000 Since: 1.6
4001 </return>
4002 </function>
4003
4004 <function name="pango_cairo_font_map_new">
4005 <description>
4006 Creates a new #PangoCairoFontMap object; a fontmap is used
4007 to cache information about available fonts, and holds
4008 certain global parameters such as the resolution.
4009 In most cases, you can use pango_cairo_font_map_get_default()
4010 instead.
4011
4012 Note that the type of the returned object will depend
4013 on the particular font backend Cairo was compiled to use;
4014 You generally should only use the #PangoFontMap and
4015 #PangoCairoFontMap interfaces on the returned object.
4016
4017
4018 </description>
4019 <parameters>
4020 </parameters>
4021 <return> the newly allocated #PangoFontMap, which should
4022 be freed with g_object_unref().
4023
4024 Since: 1.10
4025 </return>
4026 </function>
4027
4028 <function name="pango_xft_font_get_display">
4029 <description>
4030 Return value: the X display of the XftFont associated to @font.
4031
4032 </description>
4033 <parameters>
4034 <parameter name="font">
4035 <parameter_description> a #PangoFont.
4036 </parameter_description>
4037 </parameter>
4038 </parameters>
4039 <return> the X display of the XftFont associated to @font.
4040 </return>
4041 </function>
4042
4043 <function name="pango_layout_iter_get_run_readonly">
4044 <description>
4045 Gets the current run. When iterating by run, at the end of each
4046 line, there&apos;s a position with a %NULL run, so this function can return
4047 %NULL. The %NULL run at the end of each line ensures that all lines have
4048 at least one run, even lines consisting of only a newline.
4049
4050 This is a faster alternative to pango_layout_iter_get_run(),
4051 but the user is not expected
4052 to modify the contents of the run (glyphs, glyph widths, etc.).
4053
4054
4055 </description>
4056 <parameters>
4057 <parameter name="iter">
4058 <parameter_description> a #PangoLayoutIter
4059 </parameter_description>
4060 </parameter>
4061 </parameters>
4062 <return> the current run, that should not be modified.
4063
4064 Since: 1.16
4065 </return>
4066 </function>
4067
4068 <function name="pango_ft2_font_get_kerning">
4069 <description>
4070 Retrieves kerning information for a combination of two glyphs.
4071
4072 Use pango_fc_font_kern_glyphs() instead.
4073
4074
4075 </description>
4076 <parameters>
4077 <parameter name="font">
4078 <parameter_description> a #PangoFont
4079 </parameter_description>
4080 </parameter>
4081 <parameter name="left">
4082 <parameter_description> the left #PangoGlyph
4083 </parameter_description>
4084 </parameter>
4085 <parameter name="right">
4086 <parameter_description> the right #PangoGlyph
4087 </parameter_description>
4088 </parameter>
4089 </parameters>
4090 <return> The amount of kerning (in Pango units) to apply for
4091 the given combination of glyphs.
4092 </return>
4093 </function>
4094
4095 <function name="pango_font_description_new">
4096 <description>
4097 Creates a new font description structure with all fields unset.
4098
4099
4100 </description>
4101 <parameters>
4102 </parameters>
4103 <return> the newly allocated #PangoFontDescription, which
4104 should be freed using pango_font_description_free().
4105 </return>
4106 </function>
4107
4108 <function name="pango_ft2_render_layout_line_subpixel">
4109 <description>
4110 Render a #PangoLayoutLine onto a FreeType2 bitmap, with he
4111 location specified in fixed-point Pango units rather than
4112 pixels. (Using this will avoid extra inaccuracies from
4113 rounding to integer pixels multiple times, even if the
4114 final glyph positions are integers.)
4115
4116 Since: 1.6
4117
4118 </description>
4119 <parameters>
4120 <parameter name="bitmap">
4121 <parameter_description>    a &amp;lt;type&amp;gt;FT_Bitmap&amp;lt;/type&amp;gt; to render the line onto
4122 </parameter_description>
4123 </parameter>
4124 <parameter name="line">
4125 <parameter_description>      a #PangoLayoutLine
4126 </parameter_description>
4127 </parameter>
4128 <parameter name="x">
4129 <parameter_description>         the x position of start of string (in Pango units)
4130 </parameter_description>
4131 </parameter>
4132 <parameter name="y">
4133 <parameter_description>         the y position of baseline (in Pango units)
4134 </parameter_description>
4135 </parameter>
4136 </parameters>
4137 <return></return>
4138 </function>
4139
4140 <function name="pango_find_map">
4141 <description>
4142 Locate a #PangoMap for a particular engine type and render
4143 type. The resulting map can be used to determine the engine
4144 for each character.
4145
4146
4147 </description>
4148 <parameters>
4149 <parameter name="language">
4150 <parameter_description> the language tag for which to find the map
4151 </parameter_description>
4152 </parameter>
4153 <parameter name="engine_type_id">
4154 <parameter_description> the engine type for the map to find
4155 </parameter_description>
4156 </parameter>
4157 <parameter name="render_type_id">
4158 <parameter_description> the render type for the map to find
4159 </parameter_description>
4160 </parameter>
4161 </parameters>
4162 <return> the suitable #PangoMap.
4163 </return>
4164 </function>
4165
4166 <function name="pango_context_get_font_description">
4167 <description>
4168 Retrieve the default font description for the context.
4169
4170
4171 </description>
4172 <parameters>
4173 <parameter name="context">
4174 <parameter_description> a #PangoContext
4175 </parameter_description>
4176 </parameter>
4177 </parameters>
4178 <return> a pointer to the context&apos;s default font description.
4179 This value must not be modified or freed.
4180 </return>
4181 </function>
4182
4183 <function name="pango_find_base_dir">
4184 <description>
4185 Searches a string the first character that has a strong
4186 direction, according to the Unicode bidirectional algorithm.
4187
4188
4189 </description>
4190 <parameters>
4191 <parameter name="text">
4192 <parameter_description>   the text to process
4193 </parameter_description>
4194 </parameter>
4195 <parameter name="length">
4196 <parameter_description> length of @text in bytes (may be -1 if @text is nul-terminated)
4197 </parameter_description>
4198 </parameter>
4199 </parameters>
4200 <return> The direction corresponding to the first strong character.
4201 If no such character is found, then %PANGO_DIRECTION_NEUTRAL is returned.
4202
4203 Since: 1.4
4204 </return>
4205 </function>
4206
4207 <function name="pango_attr_iterator_copy">
4208 <description>
4209 Copy a #PangoAttrIterator
4210
4211
4212 </description>
4213 <parameters>
4214 <parameter name="iterator">
4215 <parameter_description> a #PangoAttrIterator.
4216 </parameter_description>
4217 </parameter>
4218 </parameters>
4219 <return> the newly allocated #PangoAttrIterator, which should
4220 be freed with pango_attr_iterator_destroy().
4221 </return>
4222 </function>
4223
4224 <function name="pango_context_get_matrix">
4225 <description>
4226 Gets the transformation matrix that will be applied when
4227 rendering with this context. See pango_context_set_matrix().
4228
4229
4230 </description>
4231 <parameters>
4232 <parameter name="context">
4233 <parameter_description> a #PangoContext
4234 </parameter_description>
4235 </parameter>
4236 </parameters>
4237 <return> the matrix, or %NULL if no matrix has been set
4238 (which is the same as the identity matrix). The returned
4239 matrix is owned by Pango and must not be modified or
4240 freed.
4241
4242 Since: 1.6
4243 </return>
4244 </function>
4245
4246 <function name="pango_x_render_layout">
4247 <description>
4248 Renders a #PangoLayout onto an X drawable.
4249
4250 </description>
4251 <parameters>
4252 <parameter name="display">
4253 <parameter_description>   the X display.
4254 </parameter_description>
4255 </parameter>
4256 <parameter name="drawable">
4257 <parameter_description>  the drawable on which to draw.
4258 </parameter_description>
4259 </parameter>
4260 <parameter name="gc">
4261 <parameter_description>        GC to use for uncolored drawing.
4262 </parameter_description>
4263 </parameter>
4264 <parameter name="layout">
4265 <parameter_description>    a #PangoLayout.
4266 </parameter_description>
4267 </parameter>
4268 <parameter name="x">
4269 <parameter_description>         the x position of the left of the layout (in pixels).
4270 </parameter_description>
4271 </parameter>
4272 <parameter name="y">
4273 <parameter_description>         the y position of the top of the layout (in pixels).
4274 </parameter_description>
4275 </parameter>
4276 </parameters>
4277 <return></return>
4278 </function>
4279
4280 <function name="pango_font_family_list_faces">
4281 <description>
4282 Lists the different font faces that make up @family. The faces
4283 in a family share a common design, but differ in slant, weight,
4284 width and other aspects.
4285
4286 </description>
4287 <parameters>
4288 <parameter name="family">
4289 <parameter_description> a #PangoFontFamily
4290 </parameter_description>
4291 </parameter>
4292 <parameter name="faces">
4293 <parameter_description> location to store an array of pointers to #PangoFontFace
4294 objects, or %NULL. This array should be freed with g_free()
4295 when it is no longer needed.
4296 </parameter_description>
4297 </parameter>
4298 <parameter name="n_faces">
4299 <parameter_description> location to store number of elements in @faces.
4300 </parameter_description>
4301 </parameter>
4302 </parameters>
4303 <return></return>
4304 </function>
4305
4306 <function name="pango_font_describe_with_absolute_size">
4307 <description>
4308 Return value: a newly-allocated #PangoFontDescription object.
4309
4310 </description>
4311 <parameters>
4312 <parameter name="font">
4313 <parameter_description> a #PangoFont
4314 </parameter_description>
4315 </parameter>
4316 </parameters>
4317 <return> a newly-allocated #PangoFontDescription object.
4318
4319 Since: 1.14
4320 </return>
4321 </function>
4322
4323 <function name="pango_context_set_base_gravity">
4324 <description>
4325 Sets the base gravity for the context.
4326
4327 The base gravity is used in laying vertical text out.
4328
4329 Since: 1.16
4330
4331 </description>
4332 <parameters>
4333 <parameter name="context">
4334 <parameter_description> a #PangoContext
4335 </parameter_description>
4336 </parameter>
4337 <parameter name="gravity">
4338 <parameter_description> the new base gravity
4339 </parameter_description>
4340 </parameter>
4341 </parameters>
4342 <return></return>
4343 </function>
4344
4345 <function name="pango_matrix_get_font_scale_factor">
4346 <description>
4347 Return value: the scale factor of @matrix on the height of the font,
4348
4349 </description>
4350 <parameters>
4351 <parameter name="matrix">
4352 <parameter_description> a #PangoMatrix, may be %NULL
4353 </parameter_description>
4354 </parameter>
4355 </parameters>
4356 <return> the scale factor of @matrix on the height of the font,
4357 or 1.0 if @matrix is %NULL.
4358
4359 Since: 1.12
4360 </return>
4361 </function>
4362
4363 <function name="pango_font_family_is_monospace">
4364 <description>
4365 A monospace font is a font designed for text display where the the
4366 characters form a regular grid. For Western languages this would
4367 mean that the advance width of all characters are the same, but
4368 this categorization also includes Asian fonts which include
4369 double-width characters: characters that occupy two grid cells.
4370 g_unichar_iswide() returns a result that indicates whether a
4371 character is typically double-width in a monospace font.
4372
4373 The best way to find out the grid-cell size is to call
4374 pango_font_metrics_get_approximate_digit_width(), since the results
4375 of pango_font_metrics_get_approximate_char_width() may be affected
4376 by double-width characters.
4377
4378
4379 </description>
4380 <parameters>
4381 <parameter name="family">
4382 <parameter_description> a #PangoFontFamily
4383 </parameter_description>
4384 </parameter>
4385 </parameters>
4386 <return> %TRUE if the family is monospace.
4387
4388 Since: 1.4
4389 </return>
4390 </function>
4391
4392 <function name="pango_attr_list_unref">
4393 <description>
4394 Decrease the reference count of the given attribute list by one.
4395 If the result is zero, free the attribute list and the attributes
4396 it contains.
4397
4398 </description>
4399 <parameters>
4400 <parameter name="list">
4401 <parameter_description> a #PangoAttrList
4402 </parameter_description>
4403 </parameter>
4404 </parameters>
4405 <return></return>
4406 </function>
4407
4408 <function name="pango_font_metrics_get_strikethrough_thickness">
4409 <description>
4410 Gets the suggested thickness to draw for the strikethrough.
4411
4412
4413 </description>
4414 <parameters>
4415 <parameter name="metrics">
4416 <parameter_description> a #PangoFontMetrics structure
4417 </parameter_description>
4418 </parameter>
4419 </parameters>
4420 <return> the suggested strikethrough thickness, in Pango units.
4421
4422 Since: 1.6
4423 </return>
4424 </function>
4425
4426 <function name="pango_x_context_set_funcs">
4427 <description>
4428 Sets the functions that will be used to get GC&apos;s in various colors when
4429 rendering layouts with this context.
4430
4431 </description>
4432 <parameters>
4433 <parameter name="context">
4434 <parameter_description> a #PangoContext.
4435 </parameter_description>
4436 </parameter>
4437 <parameter name="get_gc_func">
4438 <parameter_description> function called to create a new GC for a given color.
4439 </parameter_description>
4440 </parameter>
4441 <parameter name="free_gc_func">
4442 <parameter_description> function called to free a GC created with @get_gc_func.
4443 </parameter_description>
4444 </parameter>
4445 </parameters>
4446 <return></return>
4447 </function>
4448
4449 <function name="pango_layout_line_index_to_x">
4450 <description>
4451 Converts an index within a line to a X position.
4452
4453
4454 </description>
4455 <parameters>
4456 <parameter name="line">
4457 <parameter_description>     a #PangoLayoutLine
4458 </parameter_description>
4459 </parameter>
4460 <parameter name="index_">
4461 <parameter_description>   byte offset of a grapheme within the layout
4462 </parameter_description>
4463 </parameter>
4464 <parameter name="trailing">
4465 <parameter_description> an integer indicating the edge of the grapheme to retrieve
4466 the position of. If 0, the trailing edge of the grapheme,
4467 if &amp;gt; 0, the leading of the grapheme.
4468 </parameter_description>
4469 </parameter>
4470 <parameter name="x_pos">
4471 <parameter_description> location to store the x_offset (in #PangoGlyphUnit)
4472 </parameter_description>
4473 </parameter>
4474 </parameters>
4475 <return></return>
4476 </function>
4477
4478 <function name="pango_renderer_draw_layout_line">
4479 <description>
4480 Draws @line with the specified #PangoRenderer.
4481
4482 Since: 1.8
4483
4484 </description>
4485 <parameters>
4486 <parameter name="renderer">
4487 <parameter_description> a #PangoRenderer
4488 </parameter_description>
4489 </parameter>
4490 <parameter name="line">
4491 <parameter_description> a #PangoLayoutLine
4492 </parameter_description>
4493 </parameter>
4494 <parameter name="x">
4495 <parameter_description> X position of left edge of baseline, in user space coordinates
4496 in Pango units.
4497 </parameter_description>
4498 </parameter>
4499 <parameter name="y">
4500 <parameter_description> Y position of left edge of baseline, in user space coordinates
4501 in Pango units.
4502 </parameter_description>
4503 </parameter>
4504 </parameters>
4505 <return></return>
4506 </function>
4507
4508 <function name="pango_fc_font_map_cache_clear">
4509 <description>
4510 Clear all cached information and fontsets for this font map;
4511 this should be called whenever there is a change in the
4512 output of the default_substitute() virtual function.
4513
4514 This function is intended to be used only by backend implementations
4515 deriving from #PangoFcFontmap.
4516
4517 Since: 1.4
4518
4519 </description>
4520 <parameters>
4521 <parameter name="fcfontmap">
4522 <parameter_description> a #PangoFcFontmap
4523 </parameter_description>
4524 </parameter>
4525 </parameters>
4526 <return></return>
4527 </function>
4528
4529 <function name="pango_skip_space">
4530 <description>
4531 Skips 0 or more characters of white space.
4532
4533
4534 </description>
4535 <parameters>
4536 <parameter name="pos">
4537 <parameter_description> in/out string position
4538 </parameter_description>
4539 </parameter>
4540 </parameters>
4541 <return> %FALSE if skipping the white space leaves
4542 the position at a &apos;\0&apos; character.
4543 </return>
4544 </function>
4545
4546 <function name="pango_font_description_merge">
4547 <description>
4548 Merges the fields that are set in @desc_to_merge into the fields in
4549 @desc.  If @replace_existing is %FALSE, only fields in @desc that
4550 are not already set are affected. If %TRUE, then fields that are
4551 already set will be replaced as well.
4552
4553 </description>
4554 <parameters>
4555 <parameter name="desc">
4556 <parameter_description> a #PangoFontDescription
4557 </parameter_description>
4558 </parameter>
4559 <parameter name="desc_to_merge">
4560 <parameter_description> the #PangoFontDescription to merge from
4561 </parameter_description>
4562 </parameter>
4563 <parameter name="replace_existing">
4564 <parameter_description> if %TRUE, replace fields in @desc with the
4565 corresponding values from @desc_to_merge, even if they
4566 are already exist.
4567 </parameter_description>
4568 </parameter>
4569 </parameters>
4570 <return></return>
4571 </function>
4572
4573 <function name="pango_language_includes_script">
4574 <description>
4575 Determines if @script is one of the scripts used to
4576 write @language. The returned value is conservative;
4577 if nothing is known about the language tag @language,
4578 %TRUE will be returned, since, as far as Pango knows,
4579 @script might be used to write @language.
4580
4581 This routine is used in Pango&apos;s itemization process when
4582 determining if a supplied language tag is relevant to
4583 a particular section of text. It probably is not useful for
4584 applications in most circumstances.
4585
4586
4587 </description>
4588 <parameters>
4589 <parameter name="language">
4590 <parameter_description> a #PangoLanguage, or %NULL
4591 </parameter_description>
4592 </parameter>
4593 <parameter name="script">
4594 <parameter_description> a #PangoScript
4595 </parameter_description>
4596 </parameter>
4597 </parameters>
4598 <return> %TRUE if @script is one of the scripts used
4599 to write @language or if nothing is known about @language
4600 (including the case that @language is %NULL),
4601 %FALSE otherwise.
4602
4603 Since: 1.4
4604 </return>
4605 </function>
4606
4607 <function name="pango_glyph_string_get_width">
4608 <description>
4609 Computes the logical width of the glyph string as can also be computed
4610 using pango_glyph_string_extents().  However, since this only computes the
4611 width, it&apos;s much faster.  This is in fact only a convenience function that
4612 computes the sum of geometry.width for each glyph in the @glyphs.
4613
4614
4615 </description>
4616 <parameters>
4617 <parameter name="glyphs">
4618 <parameter_description>   a #PangoGlyphString
4619 </parameter_description>
4620 </parameter>
4621 </parameters>
4622 <return> the logical width of the glyph string.
4623
4624 Since: 1.14
4625 </return>
4626 </function>
4627
4628 <function name="pango_font_family_get_name">
4629 <description>
4630 Gets the name of the family. The name is unique among all
4631 fonts for the font backend and can be used in a #PangoFontDescription
4632 to specify that a face from this family is desired.
4633
4634
4635 </description>
4636 <parameters>
4637 <parameter name="family">
4638 <parameter_description> a #PangoFontFamily
4639 </parameter_description>
4640 </parameter>
4641 </parameters>
4642 <return> the name of the family. This string is owned
4643 by the family object and must not be modified or freed.
4644 </return>
4645 </function>
4646
4647 <function name="pango_language_matches">
4648 <description>
4649 Checks if a language tag matches one of the elements in a list of
4650 language ranges. A language tag is considered to match a range
4651 in the list if the range is &apos;*&apos;, the range is exactly the tag,
4652 or the range is a prefix of the tag, and the character after it
4653 in the tag is &apos;-&apos;.
4654
4655
4656 </description>
4657 <parameters>
4658 <parameter name="language">
4659 <parameter_description> a language tag (see pango_language_from_string()),
4660 %NULL is allowed and matches nothing but &apos;*&apos;
4661 </parameter_description>
4662 </parameter>
4663 <parameter name="range_list">
4664 <parameter_description> a list of language ranges, separated by &apos;;&apos;, &apos;:&apos;,
4665 &apos;,&apos;, or space characters.
4666 Each element must either be &apos;*&apos;, or a RFC 3066 language range
4667 canonicalized as by pango_language_from_string()
4668 </parameter_description>
4669 </parameter>
4670 </parameters>
4671 <return> %TRUE if a match was found.
4672 </return>
4673 </function>
4674
4675 <function name="_pango_xft_font_map_get_renderer">
4676 <description>
4677 Gets the singleton #PangoXFTRenderer for this fontmap.
4678
4679
4680 </description>
4681 <parameters>
4682 <parameter name="fontmap">
4683 <parameter_description> a #PangoXftFontmap
4684 </parameter_description>
4685 </parameter>
4686 </parameters>
4687 <return>
4688 </return>
4689 </function>
4690
4691 <function name="pango_font_map_load_font">
4692 <description>
4693 Load the font in the fontmap that is the closest match for @desc.
4694
4695
4696 </description>
4697 <parameters>
4698 <parameter name="fontmap">
4699 <parameter_description> a #PangoFontMap
4700 </parameter_description>
4701 </parameter>
4702 <parameter name="context">
4703 <parameter_description> the #PangoContext the font will be used with
4704 </parameter_description>
4705 </parameter>
4706 <parameter name="desc">
4707 <parameter_description> a #PangoFontDescription describing the font to load
4708 </parameter_description>
4709 </parameter>
4710 </parameters>
4711 <return>the font loaded, or %NULL if no font matched.
4712 </return>
4713 </function>
4714
4715 <function name="pango_font_description_to_filename">
4716 <description>
4717 Creates a filename representation of a font description. The
4718 filename is identical to the result from calling
4719 pango_font_description_to_string(), but with underscores instead of
4720 characters that are untypical in filenames, and in lower case only.
4721
4722
4723 </description>
4724 <parameters>
4725 <parameter name="desc">
4726 <parameter_description> a #PangoFontDescription
4727 </parameter_description>
4728 </parameter>
4729 </parameters>
4730 <return> a new string that must be freed with g_free().
4731 </return>
4732 </function>
4733
4734 <function name="pango_attr_list_filter">
4735 <description>
4736 Given a #PangoAttrList and callback function, removes any elements
4737 of @list for which @func returns %TRUE and inserts them into
4738 a new list.
4739
4740
4741 </description>
4742 <parameters>
4743 <parameter name="list">
4744 <parameter_description> a #PangoAttrList
4745 </parameter_description>
4746 </parameter>
4747 <parameter name="func">
4748 <parameter_description> callback function; returns %TRUE if an attribute
4749 should be filtered out.
4750 </parameter_description>
4751 </parameter>
4752 <parameter name="data">
4753 <parameter_description> Data to be passed to @func
4754 </parameter_description>
4755 </parameter>
4756 </parameters>
4757 <return> the new #PangoAttrList or %NULL if
4758 no attributes of the given types were found.
4759
4760 Since: 1.2
4761 </return>
4762 </function>
4763
4764 <function name="pango_layout_get_ellipsize">
4765 <description>
4766 Gets the type of ellipsization being performed for @layout.
4767 See pango_layout_set_ellipsize()
4768
4769
4770 </description>
4771 <parameters>
4772 <parameter name="layout">
4773 <parameter_description> a #PangoLayout
4774 </parameter_description>
4775 </parameter>
4776 </parameters>
4777 <return> the current ellipsization mode for @layout.
4778
4779 Use pango_layout_is_ellipsized() to query whether any paragraphs
4780 were actually ellipsized.
4781
4782 Since: 1.6
4783 </return>
4784 </function>
4785
4786 <function name="pango_font_description_get_variant">
4787 <description>
4788 Gets the variant field of a #PangoFontDescription. See
4789 pango_font_description_set_variant().
4790
4791
4792 </description>
4793 <parameters>
4794 <parameter name="desc">
4795 <parameter_description> a #PangoFontDescription.
4796 </parameter_description>
4797 </parameter>
4798 </parameters>
4799 <return> the variant field for the font description. Use
4800 pango_font_description_get_set_fields() to find out if
4801 the field was explicitly set or not.
4802 </return>
4803 </function>
4804
4805 <function name="pango_fc_font_get_unknown_glyph">
4806 <description>
4807 Return value: a glyph index into @font.
4808
4809 </description>
4810 <parameters>
4811 <parameter name="font">
4812 <parameter_description> a #PangoFcFont
4813 </parameter_description>
4814 </parameter>
4815 <parameter name="wc">
4816 <parameter_description> the Unicode character for which a glyph is needed.
4817 </parameter_description>
4818 </parameter>
4819 </parameters>
4820 <return> a glyph index into @font.
4821
4822 Since: 1.4
4823 </return>
4824 </function>
4825
4826 <function name="pango_item_free">
4827 <description>
4828 Free a #PangoItem and all associated memory.
4829
4830 </description>
4831 <parameters>
4832 <parameter name="item">
4833 <parameter_description> a #PangoItem
4834 </parameter_description>
4835 </parameter>
4836 </parameters>
4837 <return></return>
4838 </function>
4839
4840 <function name="pango_font_description_to_string">
4841 <description>
4842 Creates a string representation of a font description. See
4843 pango_font_description_from_string() for a description of the
4844 format of the string representation. The family list in the
4845 string description will only have a terminating comma if the
4846 last word of the list is a valid style option.
4847
4848
4849 </description>
4850 <parameters>
4851 <parameter name="desc">
4852 <parameter_description> a #PangoFontDescription
4853 </parameter_description>
4854 </parameter>
4855 </parameters>
4856 <return> a new string that must be freed with g_free().
4857 </return>
4858 </function>
4859
4860 <function name="pango_layout_get_attributes">
4861 <description>
4862 Gets the attribute list for the layout, if any.
4863
4864
4865 </description>
4866 <parameters>
4867 <parameter name="layout">
4868 <parameter_description> a #PangoLayout
4869 </parameter_description>
4870 </parameter>
4871 </parameters>
4872 <return> a #PangoAttrList.
4873 </return>
4874 </function>
4875
4876 <function name="pango_layout_iter_at_last_line">
4877 <description>
4878 Determines whether @iter is on the last line of the layout.
4879
4880
4881 </description>
4882 <parameters>
4883 <parameter name="iter">
4884 <parameter_description> a #PangoLayoutIter
4885 </parameter_description>
4886 </parameter>
4887 </parameters>
4888 <return> %TRUE if @iter is on the last line.
4889 </return>
4890 </function>
4891
4892 <function name="pango_coverage_from_bytes">
4893 <description>
4894 Convert data generated from pango_converage_to_bytes() back
4895 to a #PangoCoverage
4896
4897
4898 </description>
4899 <parameters>
4900 <parameter name="bytes">
4901 <parameter_description> binary data representing a #PangoCoverage
4902 </parameter_description>
4903 </parameter>
4904 <parameter name="n_bytes">
4905 <parameter_description> the size of @bytes in bytes
4906 </parameter_description>
4907 </parameter>
4908 </parameters>
4909 <return> a newly allocated #PangoCoverage, or %NULL if
4910 the data was invalid.
4911 </return>
4912 </function>
4913
4914 <function name="pango_get_log_attrs">
4915 <description>
4916 Computes a #PangoLogAttr for each character in @text. The @log_attrs
4917 array must have one #PangoLogAttr for each position in @text; if
4918 @text contains N characters, it has N+1 positions, including the
4919 last position at the end of the text. @text should be an entire
4920 paragraph; logical attributes can&apos;t be computed without context
4921 (for example you need to see spaces on either side of a word to know
4922 the word is a word).
4923
4924 </description>
4925 <parameters>
4926 <parameter name="text">
4927 <parameter_description> text to process
4928 </parameter_description>
4929 </parameter>
4930 <parameter name="length">
4931 <parameter_description> length in bytes of @text
4932 </parameter_description>
4933 </parameter>
4934 <parameter name="level">
4935 <parameter_description> embedding level, or -1 if unknown
4936 </parameter_description>
4937 </parameter>
4938 <parameter name="language">
4939 <parameter_description> language tag
4940 </parameter_description>
4941 </parameter>
4942 <parameter name="log_attrs">
4943 <parameter_description> array with one #PangoLogAttr per character in @text, plus one extra, to be filled in
4944 </parameter_description>
4945 </parameter>
4946 <parameter name="attrs_len">
4947 <parameter_description> length of @log_attrs array
4948 </parameter_description>
4949 </parameter>
4950 </parameters>
4951 <return></return>
4952 </function>
4953
4954 <function name="pango_renderer_draw_rectangle">
4955 <description>
4956 Draws an axis-aligned rectangle in user space coordinates with the
4957 specified #PangoRenderer.
4958
4959 This should be called while @renderer is already active.  Use
4960 pango_renderer_activate() to activate a renderer.
4961
4962 Since: 1.8
4963
4964 </description>
4965 <parameters>
4966 <parameter name="renderer">
4967 <parameter_description> a #PangoRenderer
4968 </parameter_description>
4969 </parameter>
4970 <parameter name="part">
4971 <parameter_description> type of object this rectangle is part of
4972 </parameter_description>
4973 </parameter>
4974 <parameter name="x">
4975 <parameter_description> X position at which to draw rectangle, in user space coordinates in Pango units
4976 </parameter_description>
4977 </parameter>
4978 <parameter name="y">
4979 <parameter_description> Y position at which to draw rectangle, in user space coordinates in Pango units
4980 </parameter_description>
4981 </parameter>
4982 <parameter name="width">
4983 <parameter_description> width of rectangle in Pango units in user space coordinates
4984 </parameter_description>
4985 </parameter>
4986 <parameter name="height">
4987 <parameter_description> height of rectangle in Pango units in user space coordinates
4988 </parameter_description>
4989 </parameter>
4990 </parameters>
4991 <return></return>
4992 </function>
4993
4994 <function name="pango_ft2_font_map_for_display">
4995 <description>
4996 Return value: a #PangoFT2FontMap.
4997
4998 </description>
4999 <parameters>
5000 </parameters>
5001 <return> a #PangoFT2FontMap.
5002 </return>
5003 </function>
5004
5005 <function name="pango_ft2_font_map_new">
5006 <description>
5007 Create a new #PangoFT2FontMap object; a fontmap is used
5008 to cache information about available fonts, and holds
5009 certain global parameters such as the resolution and
5010 the default substitute function (see
5011 pango_ft2_font_map_set_default_substitute()).
5012
5013
5014 </description>
5015 <parameters>
5016 </parameters>
5017 <return> the newly created fontmap object. Unref
5018 with g_object_unref() when you are finished with it.
5019
5020 Since: 1.2
5021 </return>
5022 </function>
5023
5024 <function name="pango_font_metrics_get_descent">
5025 <description>
5026 Gets the descent from a font metrics structure. The descent is
5027 the distance from the baseline to the logical bottom of a line
5028 of text. (The logical bottom may be above or below the bottom of the
5029 actual drawn ink. It is necessary to lay out the text to figure
5030 where the ink will be.)
5031
5032
5033 </description>
5034 <parameters>
5035 <parameter name="metrics">
5036 <parameter_description> a #PangoFontMetrics structure
5037 </parameter_description>
5038 </parameter>
5039 </parameters>
5040 <return> the descent, in Pango units. (1 point == %PANGO_SCALE Pango units.)
5041 </return>
5042 </function>
5043
5044 <function name="pango_ot_ruleset_description_copy">
5045 <description>
5046 Creates a copy of @desc, which should be freed with
5047 pango_ot_ruleset_description_free(). Primarily used internally
5048 by pango_ot_ruleset_get_for_description() to cache rulesets for
5049 ruleset descriptions.
5050
5051
5052 </description>
5053 <parameters>
5054 <parameter name="desc">
5055 <parameter_description> ruleset description to copy
5056 </parameter_description>
5057 </parameter>
5058 </parameters>
5059 <return> the newly allocated #PangoOTRulesetDescription, which
5060 should be freed with pango_ot_ruleset_description_free().
5061
5062 Since: 1.18
5063 </return>
5064 </function>
5065
5066 <function name="pango_layout_get_lines">
5067 <description>
5068 Return value: a #GSList containing the lines in the layout. This
5069
5070 </description>
5071 <parameters>
5072 <parameter name="layout">
5073 <parameter_description> a #PangoLayout
5074 </parameter_description>
5075 </parameter>
5076 </parameters>
5077 <return> a #GSList containing the lines in the layout. This
5078 points to internal data of the #PangoLayout and must be used with
5079 care. It will become invalid on any change to the layout&apos;s
5080 text or properties.
5081 </return>
5082 </function>
5083
5084 <function name="pango_cairo_show_layout">
5085 <description>
5086 Draws a #PangoLayoutLine in the specified cairo context.
5087 The top-left corner of the #PangoLayout will be drawn
5088 at the current point of the cairo context.
5089
5090 Since: 1.10
5091
5092 </description>
5093 <parameters>
5094 <parameter name="cr">
5095 <parameter_description> a Cairo context
5096 </parameter_description>
5097 </parameter>
5098 <parameter name="layout">
5099 <parameter_description> a Pango layout
5100 </parameter_description>
5101 </parameter>
5102 </parameters>
5103 <return></return>
5104 </function>
5105
5106 <function name="pango_layout_set_ellipsize">
5107 <description>
5108 Sets the type of ellipsization being performed for @layout.
5109 Depending on the ellipsization mode @ellipsize text is
5110 removed from the start, middle, or end of lines so they
5111 fit within the width of layout set with pango_layout_set_width ().
5112
5113 If the layout contains characters such as newlines that
5114 force it to be layed out in multiple lines, then each line
5115 is ellipsized separately.
5116
5117 Since: 1.6
5118
5119 </description>
5120 <parameters>
5121 <parameter name="layout">
5122 <parameter_description> a #PangoLayout
5123 </parameter_description>
5124 </parameter>
5125 <parameter name="ellipsize">
5126 <parameter_description> the new ellipsization mode for @layout
5127 </parameter_description>
5128 </parameter>
5129 </parameters>
5130 <return></return>
5131 </function>
5132
5133 <function name="pango_xft_shutdown_display">
5134 <description>
5135 Release any resources that have been cached for the
5136 combination of @display and @screen. Note that when the
5137 X display is closed, resources are released automatically,
5138 without needing to call this function.
5139
5140 Since: 1.2
5141
5142 </description>
5143 <parameters>
5144 <parameter name="display">
5145 <parameter_description> an X display
5146 </parameter_description>
5147 </parameter>
5148 <parameter name="screen">
5149 <parameter_description> the screen number of a screen within @display
5150 </parameter_description>
5151 </parameter>
5152 </parameters>
5153 <return></return>
5154 </function>
5155
5156 <function name="pango_layout_set_markup">
5157 <description>
5158 Same as pango_layout_set_markup_with_accel(), but
5159 the markup text isn&apos;t scanned for accelerators.
5160
5161
5162 </description>
5163 <parameters>
5164 <parameter name="layout">
5165 <parameter_description> a #PangoLayout
5166 </parameter_description>
5167 </parameter>
5168 <parameter name="markup">
5169 <parameter_description> marked-up text
5170 </parameter_description>
5171 </parameter>
5172 <parameter name="length">
5173 <parameter_description> length of marked-up text in bytes, or -1 if @markup is
5174 nul-terminated
5175 </parameter_description>
5176 </parameter>
5177 </parameters>
5178 <return></return>
5179 </function>
5180
5181 <function name="pango_glyph_string_get_logical_widths">
5182 <description>
5183 Given a #PangoGlyphString resulting from pango_shape() and the corresponding
5184 text, determine the screen width corresponding to each character. When
5185 multiple characters compose a single cluster, the width of the entire
5186 cluster is divided equally among the characters.
5187
5188 </description>
5189 <parameters>
5190 <parameter name="glyphs">
5191 <parameter_description> a #PangoGlyphString
5192 </parameter_description>
5193 </parameter>
5194 <parameter name="text">
5195 <parameter_description> the text corresponding to the glyphs
5196 </parameter_description>
5197 </parameter>
5198 <parameter name="length">
5199 <parameter_description> the length of @text, in bytes
5200 </parameter_description>
5201 </parameter>
5202 <parameter name="embedding_level">
5203 <parameter_description> the embedding level of the string
5204 </parameter_description>
5205 </parameter>
5206 <parameter name="logical_widths">
5207 <parameter_description> an array whose length is g_utf8_strlen (text, length)
5208 to be filled in with the resulting character widths.
5209 </parameter_description>
5210 </parameter>
5211 </parameters>
5212 <return></return>
5213 </function>
5214
5215 <function name="pango_x_shutdown_display">
5216 <description>
5217 Free cached resources for the given X display structure.
5218
5219 </description>
5220 <parameters>
5221 <parameter name="display">
5222 <parameter_description> an X #Display
5223 </parameter_description>
5224 </parameter>
5225 </parameters>
5226 <return></return>
5227 </function>
5228
5229 <function name="pango_layout_iter_get_index">
5230 <description>
5231 Gets the current byte index. Note that iterating forward by char
5232 moves in visual order, not logical order, so indexes may not be
5233 sequential. Also, the index may be equal to the length of the text
5234 in the layout, if on the %NULL run (see pango_layout_iter_get_run()).
5235
5236
5237 </description>
5238 <parameters>
5239 <parameter name="iter">
5240 <parameter_description> a #PangoLayoutIter
5241 </parameter_description>
5242 </parameter>
5243 </parameters>
5244 <return> current byte index.
5245 </return>
5246 </function>
5247
5248 <function name="pango_ot_info_list_scripts">
5249 <description>
5250 Obtains the list of available scripts.
5251
5252
5253 </description>
5254 <parameters>
5255 <parameter name="info">
5256 <parameter_description> a #PangoOTInfo.
5257 </parameter_description>
5258 </parameter>
5259 <parameter name="table_type">
5260 <parameter_description> the table type to obtain information about.
5261 </parameter_description>
5262 </parameter>
5263 </parameters>
5264 <return> a newly-allocated zero-terminated array containing the tags of the
5265 available scripts.  Should be freed using g_free().
5266 </return>
5267 </function>
5268
5269 <function name="pango_script_iter_free">
5270 <description>
5271 Frees a #PangoScriptIter created with pango_script_iter_new().
5272
5273 Since: 1.4
5274
5275 </description>
5276 <parameters>
5277 <parameter name="iter">
5278 <parameter_description> a #PangoScriptIter
5279 </parameter_description>
5280 </parameter>
5281 </parameters>
5282 <return></return>
5283 </function>
5284
5285 <function name="pango_layout_line_get_pixel_extents">
5286 <description>
5287 Computes the logical and ink extents of @layout_line in device units.
5288 This function just calls pango_layout_line_get_extents() followed by
5289 pango_extents_to_pixels().
5290
5291 </description>
5292 <parameters>
5293 <parameter name="layout_line">
5294 <parameter_description> a #PangoLayoutLine
5295 </parameter_description>
5296 </parameter>
5297 <parameter name="ink_rect">
5298 <parameter_description>    rectangle used to store the extents of the glyph string
5299 as drawn, or %NULL
5300 </parameter_description>
5301 </parameter>
5302 <parameter name="logical_rect">
5303 <parameter_description> rectangle used to store the logical extents of the glyph
5304 string, or %NULL
5305 </parameter_description>
5306 </parameter>
5307 </parameters>
5308 <return></return>
5309 </function>
5310
5311 <function name="pango_color_parse">
5312 <description>
5313 Fill in the fields of a color from a string specification. The
5314 string can either one of a large set of standard names. (Taken
5315 from the X11 &amp;lt;filename&amp;gt;rgb.txt&amp;lt;/filename&amp;gt; file), or it can be a hex value in the
5316 form &apos;&amp;num;rgb&apos; &apos;&amp;num;rrggbb&apos; &apos;&amp;num;rrrgggbbb&apos; or &apos;&amp;num;rrrrggggbbbb&apos; where
5317 &apos;r&apos;, &apos;g&apos; and &apos;b&apos; are hex digits of the red, green, and blue
5318 components of the color, respectively. (White in the four
5319 forms is &apos;&amp;num;fff&apos; &apos;&amp;num;ffffff&apos; &apos;&amp;num;fffffffff&apos; and &apos;&amp;num;ffffffffffff&apos;)
5320
5321
5322 </description>
5323 <parameters>
5324 <parameter name="color">
5325 <parameter_description> a #PangoColor structure in which to store the result
5326 </parameter_description>
5327 </parameter>
5328 <parameter name="spec">
5329 <parameter_description> a string specifying the new color
5330 </parameter_description>
5331 </parameter>
5332 </parameters>
5333 <return> %TRUE if parsing of the specifier succeeded,
5334 otherwise false.
5335 </return>
5336 </function>
5337
5338 <function name="pango_attr_iterator_get_attrs">
5339 <description>
5340 Gets a list of all attributes at the current position of the
5341 iterator.
5342
5343
5344 </description>
5345 <parameters>
5346 <parameter name="iterator">
5347 <parameter_description> a #PangoAttrIterator
5348 </parameter_description>
5349 </parameter>
5350 </parameters>
5351 <return> a list of all attributes for the current range.
5352 To free this value, call pango_attribute_destroy() on
5353 each value and g_slist_free() on the list.
5354
5355 Since: 1.2
5356 </return>
5357 </function>
5358
5359 <function name="pango_cairo_layout_line_path">
5360 <description>
5361 Adds the text in #PangoLayoutLine to the current path in the
5362 specified cairo context.  The origin of the glyphs (the left edge
5363 of the line) will be at the current point of the cairo context.
5364
5365 Since: 1.10
5366
5367 </description>
5368 <parameters>
5369 <parameter name="cr">
5370 <parameter_description> a Cairo context
5371 </parameter_description>
5372 </parameter>
5373 <parameter name="line">
5374 <parameter_description> a #PangoLayoutLine
5375 </parameter_description>
5376 </parameter>
5377 </parameters>
5378 <return></return>
5379 </function>
5380
5381 <function name="pango_x_font_cache_load">
5382 <description>
5383 Loads a #XFontStruct from a X Logical Font Description. The
5384 result may be newly loaded, or it may have been previously
5385 stored.
5386
5387
5388 </description>
5389 <parameters>
5390 <parameter name="cache">
5391 <parameter_description> a #PangoXFontCache
5392 </parameter_description>
5393 </parameter>
5394 <parameter name="xlfd">
5395 <parameter_description> the X Logical Font Description to load.
5396 </parameter_description>
5397 </parameter>
5398 </parameters>
5399 <return> The font structure, or %NULL if the font could
5400 not be loaded. In order to free this structure, you must call
5401 pango_x_font_cache_unload().
5402 </return>
5403 </function>
5404
5405 <function name="pango_font_description_set_gravity">
5406 <description>
5407 Sets the gravity field of a font description. The gravity field
5408 specifies how the glyphs should be rotated.  If @gravity is
5409 %PANGO_GRAVITY_AUTO, this actually unsets the gravity mask on
5410 the font description.
5411
5412 This function is seldom useful to the user.  Gravity should normally
5413 be set on a #PangoContext.
5414
5415 Since: 1.16
5416
5417 </description>
5418 <parameters>
5419 <parameter name="desc">
5420 <parameter_description> a #PangoFontDescription
5421 </parameter_description>
5422 </parameter>
5423 <parameter name="gravity">
5424 <parameter_description> the gravity for the font description.
5425 </parameter_description>
5426 </parameter>
5427 </parameters>
5428 <return></return>
5429 </function>
5430
5431 <function name="pango_scan_int">
5432 <description>
5433 Scans an integer.
5434 Leading white space is skipped.
5435
5436
5437 </description>
5438 <parameters>
5439 <parameter name="pos">
5440 <parameter_description> in/out string position
5441 </parameter_description>
5442 </parameter>
5443 <parameter name="out">
5444 <parameter_description> an int into which to write the result
5445 </parameter_description>
5446 </parameter>
5447 </parameters>
5448 <return> %FALSE if a parse error occurred.
5449 </return>
5450 </function>
5451
5452 <function name="pango_x_get_unknown_glyph">
5453 <description>
5454 Return value: a glyph index into @font.
5455
5456 </description>
5457 <parameters>
5458 <parameter name="font">
5459 <parameter_description> a #PangoFont.
5460 </parameter_description>
5461 </parameter>
5462 </parameters>
5463 <return> a glyph index into @font.
5464 </return>
5465 </function>
5466
5467 <function name="pango_ot_ruleset_description_equal">
5468 <description>
5469 Compares two ruleset descriptions for equality.
5470 Two ruleset descriptions are considered equal if the rulesets
5471 they describe are provably identical.  This means that their
5472 script, language, and all feature sets should be equal.  For static feature
5473 sets, the array addresses are compared directly, while for other
5474 features, the list of features is compared one by one.
5475 (Two ruleset descriptions may result in identical rulesets
5476 being created, but still compare %FALSE.)
5477
5478
5479 </description>
5480 <parameters>
5481 <parameter name="desc1">
5482 <parameter_description> a ruleset description
5483 </parameter_description>
5484 </parameter>
5485 <parameter name="desc2">
5486 <parameter_description> a ruleset description
5487 </parameter_description>
5488 </parameter>
5489 </parameters>
5490 <return> %TRUE if two ruleset descriptions are identical,
5491 %FALSE otherwise.
5492
5493 Since: 1.18
5494 </return>
5495 </function>
5496
5497 <function name="pango_ot_info_get">
5498 <description>
5499 Return value: the #PangoOTInfo for @face. This object will have
5500
5501 </description>
5502 <parameters>
5503 <parameter name="face">
5504 <parameter_description> a &amp;lt;type&amp;gt;FT_Face&amp;lt;/type&amp;gt;.
5505 </parameter_description>
5506 </parameter>
5507 </parameters>
5508 <return> the #PangoOTInfo for @face. This object will have
5509 the same lifetime as @face.
5510
5511 Since: 1.2
5512 </return>
5513 </function>
5514
5515 <function name="pango_version_check">
5516 <description>
5517 Checks that the Pango library in use is compatible with the
5518 given version. Generally you would pass in the constants
5519 %PANGO_VERSION_MAJOR, %PANGO_VERSION_MINOR, %PANGO_VERSION_MICRO
5520 as the three arguments to this function; that produces
5521 a check that the library in use at run-time is compatible with
5522 the version of Pango the application or module was compiled against.
5523
5524 Compatibility is defined by two things: first the version
5525 of the running library is newer than the version
5526 @required_major.required_minor.@required_micro. Second
5527 the running library must be binary compatible with the
5528 version @required_major.required_minor.@required_micro
5529 (same major version.)
5530
5531 For compile-time version checking use PANGO_VERSION_CHECK().
5532
5533
5534 </description>
5535 <parameters>
5536 <parameter name="required_major">
5537 <parameter_description> the required major version.
5538 </parameter_description>
5539 </parameter>
5540 <parameter name="required_minor">
5541 <parameter_description> the required minor version.
5542 </parameter_description>
5543 </parameter>
5544 <parameter name="required_micro">
5545 <parameter_description> the required major version.
5546 </parameter_description>
5547 </parameter>
5548 </parameters>
5549 <return> %NULL if the Pango library is compatible with the
5550 given version, or a string describing the version mismatch.
5551 The returned string is owned by Pango and should not be modified
5552 or freed.
5553
5554 Since: 1.16
5555 </return>
5556 </function>
5557
5558 <function name="pango_font_metrics_get_ascent">
5559 <description>
5560 Gets the ascent from a font metrics structure. The ascent is
5561 the distance from the baseline to the logical top of a line
5562 of text. (The logical top may be above or below the top of the
5563 actual drawn ink. It is necessary to lay out the text to figure
5564 where the ink will be.)
5565
5566
5567 </description>
5568 <parameters>
5569 <parameter name="metrics">
5570 <parameter_description> a #PangoFontMetrics structure
5571 </parameter_description>
5572 </parameter>
5573 </parameters>
5574 <return> the ascent, in Pango units. (1 point == %PANGO_SCALE Pango units.)
5575 </return>
5576 </function>
5577
5578 <function name="pango_coverage_to_bytes">
5579 <description>
5580 Convert a #PangoCoverage structure into a flat binary format
5581
5582 </description>
5583 <parameters>
5584 <parameter name="coverage">
5585 <parameter_description> a #PangoCoverage
5586 </parameter_description>
5587 </parameter>
5588 <parameter name="bytes">
5589 <parameter_description> location to store result (must be freed with g_free())
5590 </parameter_description>
5591 </parameter>
5592 <parameter name="n_bytes">
5593 <parameter_description> location to store size of result
5594 </parameter_description>
5595 </parameter>
5596 </parameters>
5597 <return></return>
5598 </function>
5599
5600 <function name="pango_gravity_to_rotation">
5601 <description>
5602 Converts a #PangoGravity value to its natural rotation in radians.
5603 @gravity should not be %PANGO_GRAVITY_AUTO.
5604
5605 Note that pango_matrix_rotate() takes angle in degrees, not radians.
5606 So, to call pango_matrix_rotate() with the output of this function
5607 you should multiply it by (180. / G_PI).
5608
5609
5610 </description>
5611 <parameters>
5612 <parameter name="gravity">
5613 <parameter_description> gravity to query
5614 </parameter_description>
5615 </parameter>
5616 </parameters>
5617 <return> the rotation value corresponding to @gravity.
5618
5619 Since: 1.16
5620 </return>
5621 </function>
5622
5623 <function name="pango_extents_to_pixels">
5624 <description>
5625 Converts extents from Pango units to device units, dividing by the
5626 %PANGO_SCALE factor and performing rounding.
5627
5628 The ink rectangle is converted by flooring the x/y coordinates and extending
5629 width/height, such that the final rectangle completely includes the original
5630 rectangle.
5631
5632 The logical rectangle is converted by rounding the coordinates
5633 of the rectangle to the nearest device unit.
5634
5635 Note that in certain situations you may want pass a logical extents
5636 rectangle to this function as @ink_rect.  The rule is: if you want the
5637 resulting device-space rectangle to completely contain the original
5638 rectangle, pass it in as @ink_rect.
5639
5640 Since: 1.16
5641
5642 </description>
5643 <parameters>
5644 <parameter name="ink_rect">
5645 <parameter_description> ink rectangle to convert, or %NULL.
5646 </parameter_description>
5647 </parameter>
5648 <parameter name="logical_rect">
5649 <parameter_description> logical rectangle to convert, or %NULL.
5650 </parameter_description>
5651 </parameter>
5652 </parameters>
5653 <return></return>
5654 </function>
5655
5656 <function name="pango_ot_tag_to_language">
5657 <description>
5658 Finds a #PangoLanguage corresponding to @language_tag.
5659
5660
5661 </description>
5662 <parameters>
5663 <parameter name="language_tag">
5664 <parameter_description> A #PangoOTTag OpenType language-system tag
5665 </parameter_description>
5666 </parameter>
5667 </parameters>
5668 <return> #PangoLanguage best matching @language_tag or
5669 #PangoLanguage corresponding to the string &quot;xx&quot; if none found.
5670
5671 Since: 1.18
5672 </return>
5673 </function>
5674
5675 <function name="pango_x_get_context">
5676 <description>
5677 Retrieves a #PangoContext appropriate for rendering with X fonts on the
5678 given display.
5679
5680
5681 </description>
5682 <parameters>
5683 <parameter name="display">
5684 <parameter_description> an X display (As returned by XOpenDisplay().)
5685 </parameter_description>
5686 </parameter>
5687 </parameters>
5688 <return> the new #PangoContext.
5689 </return>
5690 </function>
5691
5692 <function name="pango_item_split">
5693 <description>
5694 Modifies @orig to cover only the text after @split_index, and
5695 Return value: new item representing text before @split_index, which
5696
5697 </description>
5698 <parameters>
5699 <parameter name="orig">
5700 <parameter_description> a #PangoItem
5701 </parameter_description>
5702 </parameter>
5703 <parameter name="split_index">
5704 <parameter_description> byte index of position to split item, relative to the start of the item
5705 </parameter_description>
5706 </parameter>
5707 <parameter name="split_offset">
5708 <parameter_description> number of chars between start of @orig and @split_index
5709 </parameter_description>
5710 </parameter>
5711 </parameters>
5712 <return> new item representing text before @split_index, which
5713 should be freed with pango_item_free().
5714 </return>
5715 </function>
5716
5717 <function name="pango_font_description_get_size_is_absolute">
5718 <description>
5719 Determines whether the size of the font is in points (not absolute) or device units (absolute).
5720 See pango_font_description_set_size() and pango_font_description_set_absolute_size().
5721
5722
5723 </description>
5724 <parameters>
5725 <parameter name="desc">
5726 <parameter_description> a #PangoFontDescription
5727 </parameter_description>
5728 </parameter>
5729 </parameters>
5730 <return> whether the size for the font description is in
5731 points or device units.  Use pango_font_description_get_set_fields() to
5732 find out if the size field of the font description was explicitly set or not.
5733
5734 Since: 1.8
5735 </return>
5736 </function>
5737
5738 <function name="pango_break">
5739 <description>
5740 Determines possible line, word, and character breaks
5741 for a string of Unicode text with a single analysis.  For most
5742 purposes you may want to use pango_get_log_attrs().
5743
5744 </description>
5745 <parameters>
5746 <parameter name="text">
5747 <parameter_description>      the text to process
5748 </parameter_description>
5749 </parameter>
5750 <parameter name="length">
5751 <parameter_description>    length of @text in bytes (may be -1 if @text is nul-terminated)
5752 </parameter_description>
5753 </parameter>
5754 <parameter name="analysis">
5755 <parameter_description>  #PangoAnalysis structure from pango_itemize()
5756 </parameter_description>
5757 </parameter>
5758 <parameter name="attrs">
5759 <parameter_description>     an array to store character information in
5760 </parameter_description>
5761 </parameter>
5762 <parameter name="attrs_len">
5763 <parameter_description> size of the array passed as @attrs
5764 </parameter_description>
5765 </parameter>
5766 </parameters>
5767 <return></return>
5768 </function>
5769
5770 <function name="pango_win32_render_transformed">
5771 <description>
5772 Renders a #PangoGlyphString onto a windows DC, possibly
5773 transforming the layed-out coordinates through a transformation
5774 matrix. Note that the transformation matrix for @font is not
5775 changed, so to produce correct rendering results, the @font
5776 must have been loaded using a #PangoContext with an identical
5777 transformation matrix to that passed in to this function.
5778
5779 </description>
5780 <parameters>
5781 <parameter name="hdc">
5782 <parameter_description>     a windows device context
5783 </parameter_description>
5784 </parameter>
5785 <parameter name="matrix">
5786 <parameter_description>  a #PangoMatrix, or %NULL to use an identity transformation
5787 </parameter_description>
5788 </parameter>
5789 <parameter name="font">
5790 <parameter_description>    the font in which to draw the string
5791 </parameter_description>
5792 </parameter>
5793 <parameter name="glyphs">
5794 <parameter_description>  the glyph string to draw
5795 </parameter_description>
5796 </parameter>
5797 <parameter name="x">
5798 <parameter_description>       the x position of the start of the string (in Pango
5799 units in user space coordinates)
5800 </parameter_description>
5801 </parameter>
5802 <parameter name="y">
5803 <parameter_description>       the y position of the baseline (in Pango units
5804 in user space coordinates)
5805 </parameter_description>
5806 </parameter>
5807 </parameters>
5808 <return></return>
5809 </function>
5810
5811 <function name="pango_ft2_shutdown_display">
5812 <description>
5813 Free the global fontmap. (See pango_ft2_font_map_for_display())
5814 Use of the global PangoFT2 fontmap is deprecated.
5815
5816 </description>
5817 <parameters>
5818 </parameters>
5819 <return></return>
5820 </function>
5821
5822 <function name="pango_x_render_layout_line">
5823 <description>
5824 Renders a #PangoLayoutLine onto an X drawable.
5825
5826 </description>
5827 <parameters>
5828 <parameter name="display">
5829 <parameter_description>   the X display.
5830 </parameter_description>
5831 </parameter>
5832 <parameter name="drawable">
5833 <parameter_description>  the drawable on which to draw.
5834 </parameter_description>
5835 </parameter>
5836 <parameter name="gc">
5837 <parameter_description>        GC to use for uncolored drawing.
5838 </parameter_description>
5839 </parameter>
5840 <parameter name="line">
5841 <parameter_description>      a #PangoLayoutLine.
5842 </parameter_description>
5843 </parameter>
5844 <parameter name="x">
5845 <parameter_description>         the x position of start of string (in pixels).
5846 </parameter_description>
5847 </parameter>
5848 <parameter name="y">
5849 <parameter_description>         the y position of baseline (in pixels).
5850 </parameter_description>
5851 </parameter>
5852 </parameters>
5853 <return></return>
5854 </function>
5855
5856 <function name="pango_coverage_set">
5857 <description>
5858 Modify a particular index within @coverage
5859
5860 </description>
5861 <parameters>
5862 <parameter name="coverage">
5863 <parameter_description> a #PangoCoverage
5864 </parameter_description>
5865 </parameter>
5866 <parameter name="index_">
5867 <parameter_description> the index to modify
5868 </parameter_description>
5869 </parameter>
5870 <parameter name="level">
5871 <parameter_description> the new level for @index_
5872 </parameter_description>
5873 </parameter>
5874 </parameters>
5875 <return></return>
5876 </function>
5877
5878 <function name="pango_fc_font_lock_face">
5879 <description>
5880 Gets the FreeType &amp;lt;type&amp;gt;FT_Face&amp;lt;/type&amp;gt; associated with a font,
5881 This face will be kept around until you call
5882 pango_fc_font_unlock_face().
5883
5884
5885 </description>
5886 <parameters>
5887 <parameter name="font">
5888 <parameter_description> a #PangoFcFont.
5889 </parameter_description>
5890 </parameter>
5891 </parameters>
5892 <return> the FreeType &amp;lt;type&amp;gt;FT_Face&amp;lt;/type&amp;gt; associated with @font.
5893
5894 Since: 1.4
5895 </return>
5896 </function>
5897
5898 <function name="pango_attr_iterator_range">
5899 <description>
5900 Get the range of the current segment. Note that the
5901 stored return values are signed, not unsigned like
5902 the values in #PangoAttribute. To deal with this API
5903 oversight, stored return values that wouldn&apos;t fit into
5904 a signed integer are clamped to %G_MAXINT.
5905
5906 </description>
5907 <parameters>
5908 <parameter name="iterator">
5909 <parameter_description> a #PangoAttrIterator
5910 </parameter_description>
5911 </parameter>
5912 <parameter name="start">
5913 <parameter_description> location to store the start of the range
5914 </parameter_description>
5915 </parameter>
5916 <parameter name="end">
5917 <parameter_description> location to store the end of the range
5918 </parameter_description>
5919 </parameter>
5920 </parameters>
5921 <return></return>
5922 </function>
5923
5924 <function name="pango_layout_set_attributes">
5925 <description>
5926 Sets the text attributes for a layout object.
5927 References @attrs, so the caller can unref its reference.
5928
5929 </description>
5930 <parameters>
5931 <parameter name="layout">
5932 <parameter_description> a #PangoLayout
5933 </parameter_description>
5934 </parameter>
5935 <parameter name="attrs">
5936 <parameter_description> a #PangoAttrList
5937 </parameter_description>
5938 </parameter>
5939 </parameters>
5940 <return></return>
5941 </function>
5942
5943 <function name="pango_ft2_render_layout_subpixel">
5944 <description>
5945 Render a #PangoLayout onto a FreeType2 bitmap, with he
5946 location specified in fixed-point Pango units rather than
5947 pixels. (Using this will avoid extra inaccuracies from
5948 rounding to integer pixels multiple times, even if the
5949 final glyph positions are integers.)
5950
5951 Since: 1.6
5952
5953 </description>
5954 <parameters>
5955 <parameter name="bitmap">
5956 <parameter_description>    a &amp;lt;type&amp;gt;FT_Bitmap&amp;lt;/type&amp;gt; to render the layout onto
5957 </parameter_description>
5958 </parameter>
5959 <parameter name="layout">
5960 <parameter_description>    a #PangoLayout
5961 </parameter_description>
5962 </parameter>
5963 <parameter name="x">
5964 <parameter_description>         the X position of the left of the layout (in Pango units)
5965 </parameter_description>
5966 </parameter>
5967 <parameter name="y">
5968 <parameter_description>         the Y position of the top of the layout (in Pango units)
5969 </parameter_description>
5970 </parameter>
5971 </parameters>
5972 <return></return>
5973 </function>
5974
5975 <function name="pango_xft_get_context">
5976 <description>
5977 Retrieves a #PangoContext appropriate for rendering with
5978 Xft fonts on the given screen of the given display.
5979
5980
5981 </description>
5982 <parameters>
5983 <parameter name="display">
5984 <parameter_description> an X display.
5985 </parameter_description>
5986 </parameter>
5987 <parameter name="screen">
5988 <parameter_description> an X screen.
5989 </parameter_description>
5990 </parameter>
5991 </parameters>
5992 <return> the new #PangoContext.
5993 </return>
5994 </function>
5995
5996 <function name="pango_script_iter_next">
5997 <description>
5998 Advances a #PangoScriptIter to the next range. If @iter
5999 is already at the end, it is left unchanged and %FALSE
6000 is returned.
6001
6002
6003 </description>
6004 <parameters>
6005 <parameter name="iter">
6006 <parameter_description> a #PangoScriptIter
6007 </parameter_description>
6008 </parameter>
6009 </parameters>
6010 <return> %TRUE if @iter was successfully advanced.
6011
6012 Since: 1.4
6013 </return>
6014 </function>
6015
6016 <function name="pango_glyph_item_letter_space">
6017 <description>
6018 Adds spacing between the graphemes of @glyph_item to
6019 give the effect of typographic letter spacing.
6020
6021 Since: 1.6
6022
6023 </description>
6024 <parameters>
6025 <parameter name="glyph_item">
6026 <parameter_description> a #PangoGlyphItem
6027 </parameter_description>
6028 </parameter>
6029 <parameter name="text">
6030 <parameter_description> text that @glyph_item corresponds to
6031 (glyph_item-&amp;gt;item-&amp;gt;offset is an offset from the
6032 start of @text)
6033 </parameter_description>
6034 </parameter>
6035 <parameter name="log_attrs">
6036 <parameter_description> logical attributes for the item (the
6037 first logical attribute refers to the position
6038 before the first character in the item)
6039 </parameter_description>
6040 </parameter>
6041 <parameter name="letter_spacing">
6042 <parameter_description> amount of letter spacing to add
6043 in Pango units. May be negative, though too large
6044 negative values will give ugly results.
6045 </parameter_description>
6046 </parameter>
6047 </parameters>
6048 <return></return>
6049 </function>
6050
6051 <function name="pango_glyph_string_set_size">
6052 <description>
6053 Resize a glyph string to the given length.
6054
6055 </description>
6056 <parameters>
6057 <parameter name="string">
6058 <parameter_description>    a #PangoGlyphString.
6059 </parameter_description>
6060 </parameter>
6061 <parameter name="new_len">
6062 <parameter_description>   the new length of the string.
6063 </parameter_description>
6064 </parameter>
6065 </parameters>
6066 <return></return>
6067 </function>
6068
6069 <function name="pango_ot_ruleset_get_feature_count">
6070 <description>
6071 Gets the number of GSUB and GPOS features in the ruleset.
6072
6073
6074 </description>
6075 <parameters>
6076 <parameter name="ruleset">
6077 <parameter_description> a #PangoOTRuleset.
6078 </parameter_description>
6079 </parameter>
6080 <parameter name="n_gsub_features">
6081 <parameter_description> location to store number of GSUB features, or %NULL.
6082 </parameter_description>
6083 </parameter>
6084 <parameter name="n_gpos_features">
6085 <parameter_description> location to store number of GPOS features, or %NULL.
6086 </parameter_description>
6087 </parameter>
6088 </parameters>
6089 <return> Total number of features in the @ruleset.
6090
6091 Since: 1.18
6092 </return>
6093 </function>
6094
6095 <function name="pango_win32_shutdown_display">
6096 <description>
6097 Free cached resources.
6098
6099 </description>
6100 <parameters>
6101 </parameters>
6102 <return></return>
6103 </function>
6104
6105 <function name="pango_parse_markup">
6106 <description>
6107 Parses marked-up text (see
6108 &amp;lt;link linkend=&quot;PangoMarkupFormat&quot;&amp;gt;markup format&amp;lt;/link&amp;gt;) to create
6109 a plain-text string and an attribute list.
6110
6111 If @accel_marker is nonzero, the given character will mark the
6112 character following it as an accelerator. For example, @accel_marker
6113 might be an ampersand or underscore. All characters marked
6114 as an accelerator will receive a %PANGO_UNDERLINE_LOW attribute,
6115 and the first character so marked will be returned in @accel_char.
6116 Two @accel_marker characters following each other produce a single
6117 literal @accel_marker character.
6118
6119 If any error happens, none of the output arguments are touched except
6120 for @error.
6121
6122
6123 </description>
6124 <parameters>
6125 <parameter name="markup_text">
6126 <parameter_description> markup to parse (see &amp;lt;link linkend=&quot;PangoMarkupFormat&quot;&amp;gt;markup format&amp;lt;/link&amp;gt;)
6127 </parameter_description>
6128 </parameter>
6129 <parameter name="length">
6130 <parameter_description> length of @markup_text, or -1 if nul-terminated
6131 </parameter_description>
6132 </parameter>
6133 <parameter name="accel_marker">
6134 <parameter_description> character that precedes an accelerator, or 0 for none
6135 </parameter_description>
6136 </parameter>
6137 <parameter name="attr_list">
6138 <parameter_description> address of return location for a #PangoAttrList, or %NULL
6139 </parameter_description>
6140 </parameter>
6141 <parameter name="text">
6142 <parameter_description> address of return location for text with tags stripped, or %NULL
6143 </parameter_description>
6144 </parameter>
6145 <parameter name="accel_char">
6146 <parameter_description> address of return location for accelerator char, or %NULL
6147 </parameter_description>
6148 </parameter>
6149 <parameter name="error">
6150 <parameter_description> address of return location for errors, or %NULL
6151 </parameter_description>
6152 </parameter>
6153 </parameters>
6154 <return> %FALSE if @error is set, otherwise %TRUE
6155 </return>
6156 </function>
6157
6158 <function name="pango_renderer_part_changed">
6159 <description>
6160 Informs Pango that the way that the rendering is done
6161 for @part has changed in a way that would prevent multiple
6162 pieces being joined together into one drawing call. For
6163 instance, if a subclass of #PangoRenderer was to add a stipple
6164 option for drawing underlines, it needs to call
6165
6166 &amp;lt;informalexample&amp;gt;&amp;lt;programlisting&amp;gt;
6167 pango_renderer_part_changed (render, PANGO_RENDER_PART_UNDERLINE);
6168 &amp;lt;/programlisting&amp;gt;&amp;lt;/informalexample&amp;gt;
6169
6170 When the stipple changes or underlines with different stipples
6171 might be joined together. Pango automatically calls this for
6172 changes to colors. (See pango_renderer_set_color())
6173
6174 Since: 1.8
6175
6176 </description>
6177 <parameters>
6178 <parameter name="renderer">
6179 <parameter_description> a #PangoRenderer
6180 </parameter_description>
6181 </parameter>
6182 <parameter name="part">
6183 <parameter_description> the part for which rendering has changed.
6184 </parameter_description>
6185 </parameter>
6186 </parameters>
6187 <return></return>
6188 </function>
6189
6190 <function name="pango_context_set_font_description">
6191 <description>
6192 Set the default font description for the context
6193
6194 </description>
6195 <parameters>
6196 <parameter name="context">
6197 <parameter_description> a #PangoContext
6198 </parameter_description>
6199 </parameter>
6200 <parameter name="desc">
6201 <parameter_description> the new pango font description
6202 </parameter_description>
6203 </parameter>
6204 </parameters>
6205 <return></return>
6206 </function>
6207
6208 <function name="pango_attr_stretch_new">
6209 <description>
6210 Create a new font stretch attribute
6211
6212
6213 </description>
6214 <parameters>
6215 <parameter name="stretch">
6216 <parameter_description> the stretch
6217 </parameter_description>
6218 </parameter>
6219 </parameters>
6220 <return> the newly allocated #PangoAttribute, which should be
6221 freed with pango_attribute_destroy().
6222 </return>
6223 </function>
6224
6225 <function name="pango_layout_iter_next_cluster">
6226 <description>
6227 Moves @iter forward to the next cluster in visual order. If @iter
6228 was already at the end of the layout, returns %FALSE.
6229
6230
6231 </description>
6232 <parameters>
6233 <parameter name="iter">
6234 <parameter_description> a #PangoLayoutIter
6235 </parameter_description>
6236 </parameter>
6237 </parameters>
6238 <return> whether motion was possible.
6239 </return>
6240 </function>
6241
6242 <function name="pango_get_sysconf_subdirectory">
6243 <description>
6244 On Unix, returns the name of the &quot;pango&quot; subdirectory of SYSCONFDIR
6245 (which is set at compile time). On Win32, returns a subdirectory of
6246 the Pango installation directory (which is deduced at run time from
6247 the DLL&apos;s location, or stored in the Registry).
6248
6249
6250 </description>
6251 <parameters>
6252 </parameters>
6253 <return> the Pango sysconf directory. The returned string should
6254 not be freed.
6255 </return>
6256 </function>
6257
6258 <function name="pango_quantize_line_geometry">
6259 <description>
6260 Quantizes the thickness and position of a line, typically an
6261 underline or strikethrough, to whole device pixels, that is integer
6262 multiples of %PANGO_SCALE. The purpose of this function is to avoid
6263 such lines looking blurry.
6264
6265 Since: 1.12
6266
6267 </description>
6268 <parameters>
6269 <parameter name="thickness">
6270 <parameter_description> pointer to the thickness of a line, in Pango scaled units
6271 </parameter_description>
6272 </parameter>
6273 <parameter name="position">
6274 <parameter_description> corresponding position
6275 </parameter_description>
6276 </parameter>
6277 </parameters>
6278 <return></return>
6279 </function>
6280
6281 <function name="pango_font_face_get_face_name">
6282 <description>
6283 Gets a name representing the style of this face among the
6284 different faces in the #PangoFontFamily for the face. This
6285 name is unique among all faces in the family and is suitable
6286 for displaying to users.
6287
6288
6289 </description>
6290 <parameters>
6291 <parameter name="face">
6292 <parameter_description> a #PangoFontFace.
6293 </parameter_description>
6294 </parameter>
6295 </parameters>
6296 <return> the face name for the face. This string is
6297 owned by the face object and must not be modified or freed.
6298 </return>
6299 </function>
6300
6301 <function name="pango_x_font_cache_new">
6302 <description>
6303 Creates a font cache for the specified display.
6304
6305
6306 </description>
6307 <parameters>
6308 <parameter name="display">
6309 <parameter_description> an X display.
6310 </parameter_description>
6311 </parameter>
6312 </parameters>
6313 <return> The newly allocated #PangoXFontCache, which should be
6314 freed with pango_x_font_cache_free().
6315 </return>
6316 </function>
6317
6318 <function name="pango_script_for_unichar">
6319 <description>
6320 Looks up the #PangoScript for a particular character (as defined by
6321 Unicode Standard Annex #24). No check is made for @ch being a
6322 valid Unicode character; if you pass in invalid character, the
6323 result is undefined.
6324
6325
6326 </description>
6327 <parameters>
6328 <parameter name="ch">
6329 <parameter_description> a Unicode character
6330 </parameter_description>
6331 </parameter>
6332 </parameters>
6333 <return> the #PangoScript for the character.
6334
6335 Since: 1.4
6336 </return>
6337 </function>
6338
6339 <function name="pango_glyph_string_x_to_index">
6340 <description>
6341 Convert from x offset to character position. Character positions
6342 are computed by dividing up each cluster into equal portions.
6343 In scripts where positioning within a cluster is not allowed
6344 (such as Thai), the returned value may not be a valid cursor
6345 position; the caller must combine the result with the logical
6346 attributes for the text to compute the valid cursor position.
6347
6348 </description>
6349 <parameters>
6350 <parameter name="glyphs">
6351 <parameter_description>    the glyphs return from pango_shape()
6352 </parameter_description>
6353 </parameter>
6354 <parameter name="text">
6355 <parameter_description>      the text for the run
6356 </parameter_description>
6357 </parameter>
6358 <parameter name="length">
6359 <parameter_description>    the number of bytes (not characters) in text.
6360 </parameter_description>
6361 </parameter>
6362 <parameter name="analysis">
6363 <parameter_description>  the analysis information return from pango_itemize()
6364 </parameter_description>
6365 </parameter>
6366 <parameter name="x_pos">
6367 <parameter_description>     the x offset (in #PangoGlyphUnit)
6368 </parameter_description>
6369 </parameter>
6370 <parameter name="index_">
6371 <parameter_description>    location to store calculated byte index within @text
6372 </parameter_description>
6373 </parameter>
6374 <parameter name="trailing">
6375 <parameter_description>  location to store a integer indicating where
6376 whether the user clicked on the leading or trailing
6377 edge of the character.
6378 </parameter_description>
6379 </parameter>
6380 </parameters>
6381 <return></return>
6382 </function>
6383
6384 <function name="pango_win32_render_layout">
6385 <description>
6386 Render a #PangoLayoutLine onto an X drawable
6387
6388 </description>
6389 <parameters>
6390 <parameter name="hdc">
6391 <parameter_description>       HDC to use for uncolored drawing
6392 </parameter_description>
6393 </parameter>
6394 <parameter name="layout">
6395 <parameter_description>    a #PangoLayout
6396 </parameter_description>
6397 </parameter>
6398 <parameter name="x">
6399 <parameter_description>         the X position of the left of the layout (in pixels)
6400 </parameter_description>
6401 </parameter>
6402 <parameter name="y">
6403 <parameter_description>         the Y position of the top of the layout (in pixels)
6404 </parameter_description>
6405 </parameter>
6406 </parameters>
6407 <return></return>
6408 </function>
6409
6410 <function name="pango_font_description_unset_fields">
6411 <description>
6412 Unsets some of the fields in a #PangoFontDescription.  The unset
6413 fields will get back to their default values.
6414
6415 </description>
6416 <parameters>
6417 <parameter name="desc">
6418 <parameter_description> a #PangoFontDescription
6419 </parameter_description>
6420 </parameter>
6421 <parameter name="to_unset">
6422 <parameter_description> bitmask of fields in the @desc to unset.
6423 </parameter_description>
6424 </parameter>
6425 </parameters>
6426 <return></return>
6427 </function>
6428
6429 <function name="pango_layout_set_wrap">
6430 <description>
6431 Sets the wrap mode; the wrap mode only has effect if a width
6432 is set on the layout with pango_layout_set_width(). To turn off wrapping,
6433 set the width to -1.
6434
6435 </description>
6436 <parameters>
6437 <parameter name="layout">
6438 <parameter_description> a #PangoLayout
6439 </parameter_description>
6440 </parameter>
6441 <parameter name="wrap">
6442 <parameter_description> the wrap mode
6443 </parameter_description>
6444 </parameter>
6445 </parameters>
6446 <return></return>
6447 </function>
6448
6449 <function name="pango_ft2_font_map_set_resolution">
6450 <description>
6451 Sets the horizontal and vertical resolutions for the fontmap.
6452
6453 Since: 1.2
6454
6455 </description>
6456 <parameters>
6457 <parameter name="fontmap">
6458 <parameter_description> a #PangoFT2Fontmap
6459 </parameter_description>
6460 </parameter>
6461 <parameter name="dpi_x">
6462 <parameter_description> dots per inch in the X direction
6463 </parameter_description>
6464 </parameter>
6465 <parameter name="dpi_y">
6466 <parameter_description> dots per inch in the Y direction
6467 </parameter_description>
6468 </parameter>
6469 </parameters>
6470 <return></return>
6471 </function>
6472
6473 <function name="_pango_fc_font_map_fc_to_coverage">
6474 <description>
6475 Convert the given #FcCharSet into a new #PangoCoverage object.  The
6476 caller is responsible for freeing the newly created object.
6477
6478 Since: 1.6
6479
6480 </description>
6481 <parameters>
6482 <parameter name="charset">
6483 <parameter_description> #FcCharSet to convert to a #PangoCoverage object.
6484 </parameter_description>
6485 </parameter>
6486 </parameters>
6487 <return></return>
6488 </function>
6489
6490 <function name="pango_context_get_font_map">
6491 <description>
6492 Gets the #PangoFontmap used to look up fonts for this context.
6493
6494
6495 </description>
6496 <parameters>
6497 <parameter name="context">
6498 <parameter_description> a #PangoContext
6499 </parameter_description>
6500 </parameter>
6501 </parameters>
6502 <return> the font map for the #PangoContext. This value
6503 is owned by Pango and should not be unreferenced.
6504
6505 Since: 1.6
6506 </return>
6507 </function>
6508
6509 <function name="pango_fc_font_get_glyph">
6510 <description>
6511 Gets the glyph index for a given Unicode character
6512 for @font. If you only want to determine
6513 whether the font has the glyph, use pango_fc_font_has_char().
6514
6515
6516 </description>
6517 <parameters>
6518 <parameter name="font">
6519 <parameter_description> a #PangoFcFont
6520 </parameter_description>
6521 </parameter>
6522 <parameter name="wc">
6523 <parameter_description> Unicode character to look up
6524 </parameter_description>
6525 </parameter>
6526 </parameters>
6527 <return> the glyph index, or 0, if the Unicode
6528 character doesn&apos;t exist in the font.
6529
6530 Since: 1.4
6531 </return>
6532 </function>
6533
6534 <function name="pango_ft2_font_map_set_default_substitute">
6535 <description>
6536 Sets a function that will be called to do final configuration
6537 substitution on a #FcPattern before it is used to load
6538 the font. This function can be used to do things like set
6539 hinting and antialiasing options.
6540
6541 Since: 1.2
6542
6543 </description>
6544 <parameters>
6545 <parameter name="fontmap">
6546 <parameter_description> a #PangoFT2FontMap
6547 </parameter_description>
6548 </parameter>
6549 <parameter name="func">
6550 <parameter_description> function to call to to do final config tweaking
6551 on #FcPattern objects.
6552 </parameter_description>
6553 </parameter>
6554 <parameter name="data">
6555 <parameter_description> data to pass to @func
6556 </parameter_description>
6557 </parameter>
6558 <parameter name="notify">
6559 <parameter_description> function to call when @data is no longer used.
6560 </parameter_description>
6561 </parameter>
6562 </parameters>
6563 <return></return>
6564 </function>
6565
6566 <function name="pango_cairo_context_get_font_options">
6567 <description>
6568 Retrieves any font rendering options previously set with
6569 pango_cairo_font_map_set_font_options(). This functions not report options
6570 that are derived from the target surface by pango_cairo_update_context()
6571
6572
6573 </description>
6574 <parameters>
6575 <parameter name="context">
6576 <parameter_description> a #PangoContext, from pango_cairo_font_map_create_context()
6577 </parameter_description>
6578 </parameter>
6579 </parameters>
6580 <return> the font options previously set on the context, or %NULL
6581 if no options have been set. This value is owned by the context
6582 and must not be modified or freed.
6583 </return>
6584 </function>
6585
6586 <function name="pango_fontset_simple_size">
6587 <description>
6588 Return value: the size of @fontset.
6589
6590 </description>
6591 <parameters>
6592 <parameter name="fontset">
6593 <parameter_description> a #PangoFontsetSimple.
6594 </parameter_description>
6595 </parameter>
6596 </parameters>
6597 <return> the size of @fontset.
6598 </return>
6599 </function>
6600
6601 <function name="pango_split_file_list">
6602 <description>
6603 Splits a %G_SEARCHPATH_SEPARATOR-separated list of files, stripping
6604 white space and substituting ~/ with $HOME/.
6605
6606
6607 </description>
6608 <parameters>
6609 <parameter name="str">
6610 <parameter_description> a %G_SEARCHPATH_SEPARATOR separated list of filenames
6611 </parameter_description>
6612 </parameter>
6613 </parameters>
6614 <return> a list of strings to be freed with g_strfreev()
6615 </return>
6616 </function>
6617
6618 <function name="pango_context_get_base_dir">
6619 <description>
6620 Retrieves the base direction for the context. See
6621 pango_context_set_base_dir().
6622
6623
6624 </description>
6625 <parameters>
6626 <parameter name="context">
6627 <parameter_description> a #PangoContext
6628 </parameter_description>
6629 </parameter>
6630 </parameters>
6631 <return> the base direction for the context.
6632 </return>
6633 </function>
6634
6635 <function name="pango_xft_font_has_char">
6636 <description>
6637 Determines whether @font has a glyph for the codepoint @wc.
6638
6639 Use pango_fc_font_has_char() instead.
6640
6641
6642 </description>
6643 <parameters>
6644 <parameter name="font">
6645 <parameter_description> a #PangoFont for the Xft backend
6646 </parameter_description>
6647 </parameter>
6648 <parameter name="wc">
6649 <parameter_description> Unicode codepoint to look up
6650 </parameter_description>
6651 </parameter>
6652 </parameters>
6653 <return> %TRUE if @font has the requested codepoint.
6654
6655 Since: 1.2
6656 </return>
6657 </function>
6658
6659 <function name="pango_coverage_get">
6660 <description>
6661 Determine whether a particular index is covered by @coverage
6662
6663
6664 </description>
6665 <parameters>
6666 <parameter name="coverage">
6667 <parameter_description> a #PangoCoverage
6668 </parameter_description>
6669 </parameter>
6670 <parameter name="index_">
6671 <parameter_description> the index to check
6672 </parameter_description>
6673 </parameter>
6674 </parameters>
6675 <return> the coverage level of @coverage for character @index_.
6676 </return>
6677 </function>
6678
6679 <function name="pango_script_iter_get_range">
6680 <description>
6681 Gets information about the range to which @iter currently points.
6682 The range is the set of locations p where *start &amp;lt;= p &amp;lt; *end.
6683 (That is, it doesn&apos;t include the character stored at *end)
6684
6685 Since: 1.4
6686
6687 </description>
6688 <parameters>
6689 <parameter name="iter">
6690 <parameter_description> a #PangoScriptIter
6691 </parameter_description>
6692 </parameter>
6693 <parameter name="start">
6694 <parameter_description> location to store start position of the range, or %NULL
6695 </parameter_description>
6696 </parameter>
6697 <parameter name="end">
6698 <parameter_description> location to store end position of the range, or %NULL
6699 </parameter_description>
6700 </parameter>
6701 <parameter name="script">
6702 <parameter_description> location to store script for range, or %NULL
6703 </parameter_description>
6704 </parameter>
6705 </parameters>
6706 <return></return>
6707 </function>
6708
6709 <function name="pango_ot_info_find_language">
6710 <description>
6711 Finds the index of a language and its required feature index.
6712 If the language is not found, sets @language_index to
6713 PANGO_OT_DEFAULT_LANGUAGE and the required feature of the default language
6714 system is returned in required_feature_index.  For best compatibility with
6715 some fonts, also searches the language system tag &apos;dflt&apos; before falling
6716 back to the default language system, but that is transparent to the user.
6717 The user can simply ignore the return value of this function to
6718 automatically fall back to the default language system.
6719
6720
6721 </description>
6722 <parameters>
6723 <parameter name="info">
6724 <parameter_description> a #PangoOTInfo.
6725 </parameter_description>
6726 </parameter>
6727 <parameter name="table_type">
6728 <parameter_description> the table type to obtain information about.
6729 </parameter_description>
6730 </parameter>
6731 <parameter name="script_index">
6732 <parameter_description> the index of the script whose languages are searched.
6733 </parameter_description>
6734 </parameter>
6735 <parameter name="language_tag">
6736 <parameter_description> the tag of the language to find.
6737 </parameter_description>
6738 </parameter>
6739 <parameter name="language_index">
6740 <parameter_description> location to store the index of the language, or %NULL.
6741 </parameter_description>
6742 </parameter>
6743 <parameter name="required_feature_index">
6744 <parameter_description> location to store the required feature index of
6745 the language, or %NULL.
6746 </parameter_description>
6747 </parameter>
6748 </parameters>
6749 <return> %TRUE if the language was found.
6750 </return>
6751 </function>
6752
6753 <function name="pango_cairo_show_glyph_string">
6754 <description>
6755 Draws the glyphs in @glyphs in the specified cairo context.
6756 The origin of the glyphs (the left edge of the baseline) will
6757 be drawn at the current point of the cairo context.
6758
6759 Since: 1.10
6760
6761 </description>
6762 <parameters>
6763 <parameter name="cr">
6764 <parameter_description> a Cairo context
6765 </parameter_description>
6766 </parameter>
6767 <parameter name="font">
6768 <parameter_description> a #PangoFont from a #PangoCairoFontMap
6769 </parameter_description>
6770 </parameter>
6771 <parameter name="glyphs">
6772 <parameter_description> a #PangoGlyphString
6773 </parameter_description>
6774 </parameter>
6775 </parameters>
6776 <return></return>
6777 </function>
6778
6779 <function name="pango_ft2_font_get_coverage">
6780 <description>
6781 Gets the #PangoCoverage for a #PangoFT2Font. Use pango_font_get_coverage() instead.
6782
6783 </description>
6784 <parameters>
6785 <parameter name="font">
6786 <parameter_description> a #PangoFT2Font.
6787 </parameter_description>
6788 </parameter>
6789 <parameter name="language">
6790 <parameter_description> a language tag.
6791 </parameter_description>
6792 </parameter>
6793 </parameters>
6794 <return> a #PangoCoverage.
6795 </return>
6796 </function>
6797
6798 <function name="pango_win32_font_cache_unload">
6799 <description>
6800 Frees a font structure previously loaded with pango_win32_font_cache_load().
6801
6802 </description>
6803 <parameters>
6804 <parameter name="cache">
6805 <parameter_description> a #PangoWin32FontCache
6806 </parameter_description>
6807 </parameter>
6808 <parameter name="hfont">
6809 <parameter_description> the HFONT to unload
6810 </parameter_description>
6811 </parameter>
6812 </parameters>
6813 <return></return>
6814 </function>
6815
6816 <function name="pango_ot_buffer_new">
6817 <description>
6818 Creates a new #PangoOTBuffer for the given OpenType font.
6819
6820
6821 </description>
6822 <parameters>
6823 <parameter name="font">
6824 <parameter_description> a #PangoFcFont
6825 </parameter_description>
6826 </parameter>
6827 </parameters>
6828 <return> the newly allocated #PangoOTBuffer, which should
6829 be freed with pango_ot_buffer_destroy().
6830
6831 Since: 1.4
6832 </return>
6833 </function>
6834
6835 <function name="pango_layout_copy">
6836 <description>
6837 Does a deep copy-by-value of the @src layout. The attribute list,
6838 tab array, and text from the original layout are all copied by
6839 value.
6840
6841
6842 </description>
6843 <parameters>
6844 <parameter name="src">
6845 <parameter_description> a #PangoLayout
6846 </parameter_description>
6847 </parameter>
6848 </parameters>
6849 <return> the newly allocated #PangoLayout, with a reference
6850 count of one, which should be freed with
6851 g_object_unref().
6852 </return>
6853 </function>
6854
6855 <function name="_pango_ft2_font_map_get_renderer">
6856 <description>
6857 Gets the singleton PangoFT2Renderer for this fontmap.
6858
6859
6860 </description>
6861 <parameters>
6862 <parameter name="fontmap">
6863 <parameter_description> a #PangoFT2Fontmap
6864 </parameter_description>
6865 </parameter>
6866 </parameters>
6867 <return>
6868 </return>
6869 </function>
6870
6871 <function name="pango_context_set_base_dir">
6872 <description>
6873 Sets the base direction for the context.
6874
6875 The base direction is used in applying the Unicode bidirectional
6876 algorithm; if the @direction is %PANGO_DIRECTION_LTR or
6877 %PANGO_DIRECTION_RTL, then the value will be used as the paragraph
6878 direction in the Unicode bidirectional algorithm.  A value of
6879 %PANGO_DIRECTION_WEAK_LTR or %PANGO_DIRECTION_WEAK_RTL is used only
6880 for paragraphs that do not contain any strong characters themselves.
6881
6882 </description>
6883 <parameters>
6884 <parameter name="context">
6885 <parameter_description> a #PangoContext
6886 </parameter_description>
6887 </parameter>
6888 <parameter name="direction">
6889 <parameter_description> the new base direction
6890 </parameter_description>
6891 </parameter>
6892 </parameters>
6893 <return></return>
6894 </function>
6895
6896 <function name="pango_tab_array_new_with_positions">
6897 <description>
6898 This is a convenience function that creates a #PangoTabArray
6899 and allows you to specify the alignment and position of each
6900 tab stop. You &amp;lt;emphasis&amp;gt;must&amp;lt;/emphasis&amp;gt; provide an alignment
6901 and position for @size tab stops.
6902
6903
6904 </description>
6905 <parameters>
6906 <parameter name="size">
6907 <parameter_description> number of tab stops in the array
6908 </parameter_description>
6909 </parameter>
6910 <parameter name="positions_in_pixels">
6911 <parameter_description> whether positions are in pixel units
6912 </parameter_description>
6913 </parameter>
6914 <parameter name="first_alignment">
6915 <parameter_description> alignment of first tab stop
6916 </parameter_description>
6917 </parameter>
6918 <parameter name="first_position">
6919 <parameter_description> position of first tab stop
6920 </parameter_description>
6921 </parameter>
6922 <parameter name="varargs">
6923 <parameter_description> additional alignment/position pairs
6924 </parameter_description>
6925 </parameter>
6926 </parameters>
6927 <return> the newly allocated #PangoTabArray, which should
6928 be freed with pango_tab_array_free().
6929 </return>
6930 </function>
6931
6932 <function name="pango_ft2_render_transformed">
6933 <description>
6934 Renders a #PangoGlyphString onto a FreeType2 bitmap, possibly
6935 transforming the layed-out coordinates through a transformation
6936 matrix. Note that the transformation matrix for @font is not
6937 changed, so to produce correct rendering results, the @font
6938 must have been loaded using a #PangoContext with an identical
6939 transformation matrix to that passed in to this function.
6940
6941 Since: 1.6
6942
6943 </description>
6944 <parameters>
6945 <parameter name="bitmap">
6946 <parameter_description>  the FreeType2 bitmap onto which to draw the string
6947 </parameter_description>
6948 </parameter>
6949 <parameter name="font">
6950 <parameter_description>    the font in which to draw the string
6951 </parameter_description>
6952 </parameter>
6953 <parameter name="matrix">
6954 <parameter_description>  a #PangoMatrix, or %NULL to use an identity transformation
6955 </parameter_description>
6956 </parameter>
6957 <parameter name="glyphs">
6958 <parameter_description>  the glyph string to draw
6959 </parameter_description>
6960 </parameter>
6961 <parameter name="x">
6962 <parameter_description>       the x position of the start of the string (in Pango
6963 units in user space coordinates)
6964 </parameter_description>
6965 </parameter>
6966 <parameter name="y">
6967 <parameter_description>       the y position of the baseline (in Pango units
6968 in user space coordinates)
6969 </parameter_description>
6970 </parameter>
6971 </parameters>
6972 <return></return>
6973 </function>
6974
6975 <function name="pango_script_get_sample_language">
6976 <description>
6977 Given a script, finds a language tag that is reasonably
6978 representative of that script. This will usually be the
6979 most widely spoken or used language written in that script:
6980 for instance, the sample language for %PANGO_SCRIPT_CYRILLIC
6981 is &amp;lt;literal&amp;gt;ru&amp;lt;/literal&amp;gt; (Russian), the sample language
6982 for %PANGO_SCRIPT_ARABIC is &amp;lt;literal&amp;gt;ar&amp;lt;/literal&amp;gt;.
6983
6984 For some
6985 scripts, no sample language will be returned because there
6986 is no language that is sufficiently representative. The best
6987 example of this is %PANGO_SCRIPT_HAN, where various different
6988 variants of written Chinese, Japanese, and Korean all use
6989 significantly different sets of Han characters and forms
6990 of shared characters. No sample language can be provided
6991 for many historical scripts as well.
6992
6993 As of 1.18, this function checks the environment variables
6994 PANGO_LANGUAGE and LANGUAGE (checked in that order) first.
6995 If one of them is set, it is parsed as a list of language tags
6996 separated by colons or other separators.  This function
6997 will return the first language in the parsed list that Pango
6998 believes may use @script for writing.  This last predicate
6999 is tested using pango_language_includes_script().  This can
7000 be used to control Pango&apos;s font selection for non-primary
7001 languages.  For example, a PANGO_LANGUAGE enviroment variable
7002 set to &quot;en:fa&quot; makes Pango choose fonts suitable for Persian (fa) 
7003 instead of Arabic (ar) when a segment of Arabic text is found
7004 in an otherwise non-Arabic text.  The same trick can be used to
7005 choose a default language for %PANGO_SCRIPT_HAN when setting
7006 context language is not feasible.
7007
7008
7009 </description>
7010 <parameters>
7011 <parameter name="script">
7012 <parameter_description> a #PangoScript
7013 </parameter_description>
7014 </parameter>
7015 </parameters>
7016 <return> a #PangoLanguage that is representative
7017 of the script, or %NULL if no such language exists.
7018
7019 Since: 1.4
7020 </return>
7021 </function>
7022
7023 <function name="pango_win32_font_cache_loadw">
7024 <description>
7025 Creates a HFONT from a LOGFONTW. The
7026 result may be newly loaded, or it may have been previously
7027 stored
7028
7029
7030 </description>
7031 <parameters>
7032 <parameter name="cache">
7033 <parameter_description> a #PangoWin32FontCache
7034 </parameter_description>
7035 </parameter>
7036 <parameter name="logfont">
7037 <parameter_description> a pointer to a LOGFONTW structure describing the font to load.
7038 </parameter_description>
7039 </parameter>
7040 </parameters>
7041 <return> The font structure, or %NULL if the font could
7042 not be loaded. In order to free this structure, you must call
7043 pango_win32_font_cache_unload().
7044
7045 Since: 1.16
7046 </return>
7047 </function>
7048
7049 <function name="pango_cairo_font_map_get_font_type">
7050 <description>
7051 Gets the type of Cairo font backend that @fontmap uses.  
7052
7053
7054 </description>
7055 <parameters>
7056 <parameter name="fontmap">
7057 <parameter_description> a #PangoCairoFontMap
7058 </parameter_description>
7059 </parameter>
7060 </parameters>
7061 <return> the #cairo_font_type_t cairo font backend type
7062
7063 Since: 1.18
7064 </return>
7065 </function>
7066
7067 <function name="pango_fc_font_map_create_context">
7068 <description>
7069 Creates a new context for this fontmap. This function is intended
7070 only for backend implementations deriving from #PangoFcFontmap;
7071 it is possible that a backend will store additional information
7072 needed for correct operation on the #PangoContext after calling
7073 this function.
7074
7075
7076 </description>
7077 <parameters>
7078 <parameter name="fcfontmap">
7079 <parameter_description> a #PangoFcFontMap
7080 </parameter_description>
7081 </parameter>
7082 </parameters>
7083 <return> a new #PangoContext
7084
7085 Since: 1.4
7086 </return>
7087 </function>
7088
7089 <function name="pango_xft_renderer_new">
7090 <description>
7091 Create a new #PangoXftRenderer to allow rendering Pango objects
7092 with the Xft library. You must call pango_xft_renderer_set_draw() before
7093 using the renderer.
7094
7095
7096 </description>
7097 <parameters>
7098 <parameter name="display">
7099 <parameter_description> an X display
7100 </parameter_description>
7101 </parameter>
7102 <parameter name="screen">
7103 <parameter_description>   the index of the screen for @display to which rendering will be done
7104 </parameter_description>
7105 </parameter>
7106 </parameters>
7107 <return> the newly created #PangoXftRenderer, which should
7108 be freed with g_object_unref().
7109
7110 Since: 1.8
7111 </return>
7112 </function>
7113
7114 <function name="pango_tab_array_get_tabs">
7115 <description>
7116 If non-%NULL, @alignments and @locations are filled with allocated
7117 arrays of length pango_tab_array_get_size(). You must free the
7118 returned array.
7119
7120
7121 </description>
7122 <parameters>
7123 <parameter name="tab_array">
7124 <parameter_description> a #PangoTabArray
7125 </parameter_description>
7126 </parameter>
7127 <parameter name="alignments">
7128 <parameter_description> location to store an array of tab stop alignments, or %NULL
7129 </parameter_description>
7130 </parameter>
7131 <parameter name="locations">
7132 <parameter_description> location to store an array of tab positions, or %NULL
7133 </parameter_description>
7134 </parameter>
7135 </parameters>
7136 <return></return>
7137 </function>
7138
7139 <function name="pango_glyph_string_extents_range">
7140 <description>
7141 Computes the extents of a sub-portion of a glyph string. The extents are
7142 relative to the start of the glyph string range (the origin of their
7143 coordinate system is at the start of the range, not at the start of the entire
7144 glyph string).
7145
7146 </description>
7147 <parameters>
7148 <parameter name="glyphs">
7149 <parameter_description>   a #PangoGlyphString
7150 </parameter_description>
7151 </parameter>
7152 <parameter name="start">
7153 <parameter_description>    start index
7154 </parameter_description>
7155 </parameter>
7156 <parameter name="end">
7157 <parameter_description>      end index (the range is the set of bytes with
7158               indices such that start &amp;lt;= index &amp;lt; end)
7159 </parameter_description>
7160 </parameter>
7161 <parameter name="font">
7162 <parameter_description>     a #PangoFont
7163 </parameter_description>
7164 </parameter>
7165 <parameter name="ink_rect">
7166 <parameter_description> rectangle used to store the extents of the glyph string range as drawn
7167 or %NULL to indicate that the result is not needed.
7168 </parameter_description>
7169 </parameter>
7170 <parameter name="logical_rect">
7171 <parameter_description> rectangle used to store the logical extents of the glyph string range
7172 or %NULL to indicate that the result is not needed.
7173 </parameter_description>
7174 </parameter>
7175 </parameters>
7176 <return></return>
7177 </function>
7178
7179 <function name="pango_layout_iter_free">
7180 <description>
7181 Frees an iterator that&apos;s no longer in use.
7182
7183 </description>
7184 <parameters>
7185 <parameter name="iter">
7186 <parameter_description> a #PangoLayoutIter
7187 </parameter_description>
7188 </parameter>
7189 </parameters>
7190 <return></return>
7191 </function>
7192
7193 <function name="pango_glyph_item_split">
7194 <description>
7195 Modifies @orig to cover only the text after @split_index, and
7196 Return value: the newly allocated item representing text before
7197
7198 </description>
7199 <parameters>
7200 <parameter name="orig">
7201 <parameter_description> a #PangoItem
7202 </parameter_description>
7203 </parameter>
7204 <parameter name="text">
7205 <parameter_description> text to which positions in @orig apply
7206 </parameter_description>
7207 </parameter>
7208 <parameter name="split_index">
7209 <parameter_description> byte index of position to split item, relative to the start of the item
7210 </parameter_description>
7211 </parameter>
7212 </parameters>
7213 <return> the newly allocated item representing text before
7214 @split_index, which should be freed
7215 with pango_glyph_item_free().
7216
7217 Since: 1.2
7218 </return>
7219 </function>
7220
7221 <function name="pango_ot_ruleset_position">
7222 <description>
7223 Performs the OpenType GPOS positioning on @buffer using the features
7224 in @ruleset
7225
7226 Since: 1.4
7227
7228 </description>
7229 <parameters>
7230 <parameter name="ruleset">
7231 <parameter_description> a #PangoOTRuleset.
7232 </parameter_description>
7233 </parameter>
7234 <parameter name="buffer">
7235 <parameter_description> a #PangoOTBuffer.
7236 </parameter_description>
7237 </parameter>
7238 </parameters>
7239 <return></return>
7240 </function>
7241
7242 <function name="pango_ot_tag_to_script">
7243 <description>
7244 Finds the #PangoScript corresponding to @script_tag.
7245
7246 The &apos;DFLT&apos; script tag is mapped to %PANGO_SCRIPT_COMMON.
7247
7248 Note that an OpenType script tag may correspond to multiple
7249 #PangoScript values.  In such cases, the #PangoScript value
7250 with the smallest value is returned.
7251 In particular, %PANGO_SCRIPT_HIRAGANA
7252 and %PANGO_SCRIPT_KATAKANA both map to the OT tag &apos;kana&apos;.
7253 This function will return %PANGO_SCRIPT_HIRAGANA for
7254 &apos;kana&apos;.
7255
7256
7257 </description>
7258 <parameters>
7259 <parameter name="script_tag">
7260 <parameter_description> A #PangoOTTag OpenType script tag
7261 </parameter_description>
7262 </parameter>
7263 </parameters>
7264 <return> #PangoScript corresponding to @script_tag or
7265 %PANGO_SCRIPT_UNKNOWN if none found.
7266
7267 Since: 1.18
7268 </return>
7269 </function>
7270
7271 <function name="pango_layout_iter_get_line_readonly">
7272 <description>
7273 Gets the current line for read-only access.
7274
7275 This is a faster alternative to pango_layout_iter_get_line(),
7276 but the user is not expected
7277 to modify the contents of the line (glyphs, glyph widths, etc.).
7278
7279
7280 </description>
7281 <parameters>
7282 <parameter name="iter">
7283 <parameter_description> a #PangoLayoutIter
7284 </parameter_description>
7285 </parameter>
7286 </parameters>
7287 <return> the current line, that should not be modified.
7288
7289 Since: 1.16
7290 </return>
7291 </function>
7292
7293 <function name="pango_font_get_metrics">
7294 <description>
7295 Gets overall metric information for a font. Since the metrics may be
7296 substantially different for different scripts, a language tag can
7297 be provided to indicate that the metrics should be retrieved that
7298 correspond to the script(s) used by that language.
7299
7300
7301 </description>
7302 <parameters>
7303 <parameter name="font">
7304 <parameter_description> a #PangoFont
7305 </parameter_description>
7306 </parameter>
7307 <parameter name="language">
7308 <parameter_description> language tag used to determine which script to get the metrics
7309 for, or %NULL to indicate to get the metrics for the entire
7310 font.
7311 </parameter_description>
7312 </parameter>
7313 </parameters>
7314 <return> a #PangoFontMetrics object. The caller must call pango_font_metrics_unref()
7315 when finished using the object.
7316 </return>
7317 </function>
7318
7319 <function name="pango_layout_get_line_readonly">
7320 <description>
7321 Retrieves a particular line from a #PangoLayout.
7322
7323 This is a faster alternative to pango_layout_get_line(),
7324 but the user is not expected
7325 to modify the contents of the line (glyphs, glyph widths, etc.).
7326
7327
7328 </description>
7329 <parameters>
7330 <parameter name="layout">
7331 <parameter_description> a #PangoLayout
7332 </parameter_description>
7333 </parameter>
7334 <parameter name="line">
7335 <parameter_description> the index of a line, which must be between 0 and
7336 &amp;lt;literal&amp;gt;pango_layout_get_line_count(layout) - 1&amp;lt;/literal&amp;gt;, inclusive.
7337 </parameter_description>
7338 </parameter>
7339 </parameters>
7340 <return> the requested #PangoLayoutLine, or %NULL if the
7341 index is out of range. This layout line can
7342 be ref&apos;ed and retained, but will become invalid
7343 if changes are made to the #PangoLayout.
7344 No changes should be made to the line.
7345
7346 Since: 1.16
7347 </return>
7348 </function>
7349
7350 <function name="pango_tab_array_set_tab">
7351 <description>
7352 Sets the alignment and location of a tab stop.
7353 @alignment must always be #PANGO_TAB_LEFT in the current
7354 implementation.
7355
7356
7357 </description>
7358 <parameters>
7359 <parameter name="tab_array">
7360 <parameter_description> a #PangoTabArray
7361 </parameter_description>
7362 </parameter>
7363 <parameter name="tab_index">
7364 <parameter_description> the index of a tab stop
7365 </parameter_description>
7366 </parameter>
7367 <parameter name="alignment">
7368 <parameter_description> tab alignment
7369 </parameter_description>
7370 </parameter>
7371 <parameter name="location">
7372 <parameter_description> tab location in Pango units
7373 </parameter_description>
7374 </parameter>
7375 </parameters>
7376 <return></return>
7377 </function>
7378
7379 <function name="pango_font_find_shaper">
7380 <description>
7381 Finds the best matching shaper for a font for a particular
7382 language tag and character point.
7383
7384
7385 </description>
7386 <parameters>
7387 <parameter name="font">
7388 <parameter_description> a #PangoFont
7389 </parameter_description>
7390 </parameter>
7391 <parameter name="language">
7392 <parameter_description> the language tag
7393 </parameter_description>
7394 </parameter>
7395 <parameter name="ch">
7396 <parameter_description> a Unicode character.
7397 </parameter_description>
7398 </parameter>
7399 </parameters>
7400 <return> the best matching shaper.
7401 </return>
7402 </function>
7403
7404 <function name="pango_fontset_foreach">
7405 <description>
7406 Iterates through all the fonts in a fontset, calling @func for
7407 each one. If @func returns %TRUE, that stops the iteration.
7408
7409 Since: 1.4
7410
7411 </description>
7412 <parameters>
7413 <parameter name="fontset">
7414 <parameter_description> a #PangoFontset
7415 </parameter_description>
7416 </parameter>
7417 <parameter name="func">
7418 <parameter_description> Callback function
7419 </parameter_description>
7420 </parameter>
7421 <parameter name="data">
7422 <parameter_description> data to pass to the callback function
7423 </parameter_description>
7424 </parameter>
7425 </parameters>
7426 <return></return>
7427 </function>
7428
7429 <function name="pango_matrix_transform_distance">
7430 <description>
7431 Transforms the distance vector (@dx,@dy) by @matrix. This is
7432 similar to pango_matrix_transform_point() except that the translation
7433 components of the transformation are ignored. The calculation of
7434 the returned vector is as follows:
7435
7436 &amp;lt;programlisting&amp;gt;
7437 dx2 = dx1 * xx + dy1 * xy;
7438 dy2 = dx1 * yx + dy1 * yy;
7439 &amp;lt;/programlisting&amp;gt;
7440
7441 Affine transformations are position invariant, so the same vector
7442 always transforms to the same vector. If (@x1,@y1) transforms
7443 to (@x2,@y2) then (@x1+@dx1,@y1+@dy1) will transform to
7444 (@x1+@dx2,@y1+@dy2) for all values of @x1 and @x2.
7445
7446 Since: 1.16
7447
7448 </description>
7449 <parameters>
7450 <parameter name="matrix">
7451 <parameter_description> a #PangoMatrix, or %NULL
7452 </parameter_description>
7453 </parameter>
7454 <parameter name="dx">
7455 <parameter_description> in/out X component of a distance vector
7456 </parameter_description>
7457 </parameter>
7458 <parameter name="dy">
7459 <parameter_description> yn/out Y component of a distance vector
7460 </parameter_description>
7461 </parameter>
7462 </parameters>
7463 <return></return>
7464 </function>
7465
7466 <function name="pango_layout_iter_get_char_extents">
7467 <description>
7468 Gets the extents of the current character, in layout coordinates
7469 (origin is the top left of the entire layout). Only logical extents
7470 can sensibly be obtained for characters; ink extents make sense only
7471 down to the level of clusters.
7472
7473
7474 </description>
7475 <parameters>
7476 <parameter name="iter">
7477 <parameter_description> a #PangoLayoutIter
7478 </parameter_description>
7479 </parameter>
7480 <parameter name="logical_rect">
7481 <parameter_description> rectangle to fill with logical extents
7482 </parameter_description>
7483 </parameter>
7484 </parameters>
7485 <return></return>
7486 </function>
7487
7488 <function name="pango_layout_index_to_line_x">
7489 <description>
7490 Converts from byte @index_ within the @layout to line and X position.
7491 (X position is measured from the left edge of the line)
7492
7493 </description>
7494 <parameters>
7495 <parameter name="layout">
7496 <parameter_description>    a #PangoLayout
7497 </parameter_description>
7498 </parameter>
7499 <parameter name="index_">
7500 <parameter_description>    the byte index of a grapheme within the layout.
7501 </parameter_description>
7502 </parameter>
7503 <parameter name="trailing">
7504 <parameter_description>  an integer indicating the edge of the grapheme to retrieve the
7505 position of. If 0, the trailing edge of the grapheme, if &amp;gt; 0,
7506 the leading of the grapheme.
7507 </parameter_description>
7508 </parameter>
7509 <parameter name="line">
7510 <parameter_description>      location to store resulting line index. (which will
7511 between 0 and pango_layout_get_line_count(layout) - 1)
7512 </parameter_description>
7513 </parameter>
7514 <parameter name="x_pos">
7515 <parameter_description>     location to store resulting position within line
7516 (%PANGO_SCALE units per device unit)
7517 </parameter_description>
7518 </parameter>
7519 </parameters>
7520 <return></return>
7521 </function>
7522
7523 <function name="pango_layout_iter_get_cluster_extents">
7524 <description>
7525 Gets the extents of the current cluster, in layout coordinates
7526 (origin is the top left of the entire layout).
7527
7528
7529 </description>
7530 <parameters>
7531 <parameter name="iter">
7532 <parameter_description> a #PangoLayoutIter
7533 </parameter_description>
7534 </parameter>
7535 <parameter name="ink_rect">
7536 <parameter_description> rectangle to fill with ink extents, or %NULL
7537 </parameter_description>
7538 </parameter>
7539 <parameter name="logical_rect">
7540 <parameter_description> rectangle to fill with logical extents, or %NULL
7541 </parameter_description>
7542 </parameter>
7543 </parameters>
7544 <return></return>
7545 </function>
7546
7547 <function name="pango_attr_size_new_absolute">
7548 <description>
7549 Create a new font-size attribute in device units.
7550
7551
7552 </description>
7553 <parameters>
7554 <parameter name="size">
7555 <parameter_description> the font size, in %PANGO_SCALE&amp;lt;!-- --&amp;gt;ths of a device unit.
7556 </parameter_description>
7557 </parameter>
7558 </parameters>
7559 <return> the newly allocated #PangoAttribute, which should be
7560 freed with pango_attribute_destroy().
7561
7562 Since: 1.8
7563 </return>
7564 </function>
7565
7566 <function name="pango_win32_font_cache_free">
7567 <description>
7568 Frees a #PangoWin32FontCache and all associated memory. All fonts loaded
7569 through this font cache will be freed along with the cache.
7570
7571 </description>
7572 <parameters>
7573 <parameter name="cache">
7574 <parameter_description> a #PangoWin32FontCache
7575 </parameter_description>
7576 </parameter>
7577 </parameters>
7578 <return></return>
7579 </function>
7580
7581 <function name="pango_font_description_copy">
7582 <description>
7583 Make a copy of a #PangoFontDescription.
7584
7585
7586 </description>
7587 <parameters>
7588 <parameter name="desc">
7589 <parameter_description> a #PangoFontDescription
7590 </parameter_description>
7591 </parameter>
7592 </parameters>
7593 <return> the newly allocated #PangoFontDescription, which should
7594 be freed with pango_font_description_free().
7595 </return>
7596 </function>
7597
7598 <function name="pango_ot_buffer_clear">
7599 <description>
7600 Empties a #PangoOTBuffer, make it ready to add glyphs to.
7601
7602 Since: 1.4
7603
7604 </description>
7605 <parameters>
7606 <parameter name="buffer">
7607 <parameter_description> a #PangoOTBuffer
7608 </parameter_description>
7609 </parameter>
7610 </parameters>
7611 <return></return>
7612 </function>
7613
7614 <function name="pango_cairo_show_error_underline">
7615 <description>
7616 Draw a squiggly line in the specified cairo context that approximately
7617 covers the given rectangle in the style of an underline used to indicate a
7618 spelling error.  (The width of the underline is rounded to an integer
7619 number of up/down segments and the resulting rectangle is centered in the
7620 original rectangle)
7621
7622 Since: 1.14
7623
7624 </description>
7625 <parameters>
7626 <parameter name="cr">
7627 <parameter_description> a Cairo context
7628 </parameter_description>
7629 </parameter>
7630 <parameter name="x">
7631 <parameter_description> The X coordinate of one corner of the rectangle
7632 </parameter_description>
7633 </parameter>
7634 <parameter name="y">
7635 <parameter_description> The Y coordinate of one corner of the rectangle
7636 </parameter_description>
7637 </parameter>
7638 <parameter name="width">
7639 <parameter_description> Non-negative width of the rectangle
7640 </parameter_description>
7641 </parameter>
7642 <parameter name="height">
7643 <parameter_description> Non-negative height of the rectangle
7644 </parameter_description>
7645 </parameter>
7646 </parameters>
7647 <return></return>
7648 </function>
7649
7650 <function name="pango_layout_get_indent">
7651 <description>
7652 Gets the paragraph indent width in Pango units. A negative value
7653 indicates a hanging indentation.
7654
7655
7656 </description>
7657 <parameters>
7658 <parameter name="layout">
7659 <parameter_description> a #PangoLayout
7660 </parameter_description>
7661 </parameter>
7662 </parameters>
7663 <return> the indent.
7664 </return>
7665 </function>
7666
7667 <function name="pango_fc_decoder_get_glyph">
7668 <description>
7669 Generates a #PangoGlyph for the given Unicode point using the
7670 custom decoder. For complex scripts where there can be multiple
7671 glyphs for a single character, the decoder will return whatever
7672 glyph is most convenient for it. (Usually whatever glyph is directly
7673 in the fonts character map table.)
7674
7675
7676 </description>
7677 <parameters>
7678 <parameter name="decoder">
7679 <parameter_description> a #PangoFcDecoder
7680 </parameter_description>
7681 </parameter>
7682 <parameter name="fcfont">
7683 <parameter_description> a #PangoFcFont to query.
7684 </parameter_description>
7685 </parameter>
7686 <parameter name="wc">
7687 <parameter_description> the Unicode code point to convert to a single #PangoGlyph.
7688 </parameter_description>
7689 </parameter>
7690 </parameters>
7691 <return> the glyph index, or 0 if the glyph isn&apos;t
7692 covered by the font.
7693
7694 Since: 1.6
7695 </return>
7696 </function>
7697
7698 <function name="pango_read_line">
7699 <description>
7700 Reads an entire line from a file into a buffer. Lines may
7701 be delimited with &apos;\n&apos;, &apos;\r&apos;, &apos;\n\r&apos;, or &apos;\r\n&apos;. The delimiter
7702 is not written into the buffer. Text after a &apos;#&apos; character is treated as
7703 a comment and skipped. &apos;\&apos; can be used to escape a # character.
7704 &apos;\&apos; proceeding a line delimiter combines adjacent lines. A &apos;\&apos; proceeding
7705 any other character is ignored and written into the output buffer
7706 unmodified.
7707
7708
7709 </description>
7710 <parameters>
7711 <parameter name="stream">
7712 <parameter_description> a stdio stream
7713 </parameter_description>
7714 </parameter>
7715 <parameter name="str">
7716 <parameter_description> #GString buffer into which to write the result
7717 </parameter_description>
7718 </parameter>
7719 </parameters>
7720 <return> 0 if the stream was already at an %EOF character, otherwise
7721 the number of lines read (this is useful for maintaining
7722 a line number counter which doesn&apos;t combine lines with &apos;\&apos;)
7723 </return>
7724 </function>
7725
7726 <function name="pango_font_description_from_string">
7727 <description>
7728 Creates a new font description from a string representation in the
7729 form &quot;[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]&quot;, where FAMILY-LIST is a
7730 comma separated list of families optionally terminated by a comma,
7731 STYLE_OPTIONS is a whitespace separated list of words where each WORD
7732 describes one of style, variant, weight, stretch, or gravity, and SIZE
7733 is a decimal number (size in points) or optionally followed by the
7734 unit modifier &quot;px&quot; for absolute size. Any one of the options may
7735 be absent.  If FAMILY-LIST is absent, then the family_name field of
7736 the resulting font description will be initialized to %NULL.  If
7737 STYLE-OPTIONS is missing, then all style options will be set to the
7738 default values. If SIZE is missing, the size in the resulting font
7739 description will be set to 0.
7740
7741
7742 </description>
7743 <parameters>
7744 <parameter name="str">
7745 <parameter_description> string representation of a font description.
7746 </parameter_description>
7747 </parameter>
7748 </parameters>
7749 <return> a new #PangoFontDescription.
7750 </return>
7751 </function>
7752
7753 <function name="pango_cairo_font_get_scaled_font">
7754 <description>
7755 Gets the #cairo_scaled_font_t used by @font.
7756 The scaled font can be referenced and kept using
7757 cairo_scaled_font_reference().
7758
7759
7760 </description>
7761 <parameters>
7762 <parameter name="font">
7763 <parameter_description> a #PangoFont from a #PangoCairoFontMap
7764 </parameter_description>
7765 </parameter>
7766 </parameters>
7767 <return> the #cairo_scaled_font_t used by @font
7768
7769 Since: 1.18
7770 </return>
7771 </function>
7772
7773 <function name="pango_renderer_draw_layout">
7774 <description>
7775 Draws @layout with the specified #PangoRenderer.
7776
7777 Since: 1.8
7778
7779 </description>
7780 <parameters>
7781 <parameter name="renderer">
7782 <parameter_description> a #PangoRenderer
7783 </parameter_description>
7784 </parameter>
7785 <parameter name="layout">
7786 <parameter_description> a #PangoLayout
7787 </parameter_description>
7788 </parameter>
7789 <parameter name="x">
7790 <parameter_description> X position of left edge of baseline, in user space coordinates
7791 in Pango units.
7792 </parameter_description>
7793 </parameter>
7794 <parameter name="y">
7795 <parameter_description> Y position of left edge of baseline, in user space coordinates
7796 in Pango units.
7797 </parameter_description>
7798 </parameter>
7799 </parameters>
7800 <return></return>
7801 </function>
7802
7803 <function name="pango_renderer_activate">
7804 <description>
7805 Does initial setup before rendering operations on @renderer.
7806 pango_renderer_deactivate() should be called when done drawing.
7807 Calls such as pango_renderer_draw_layout() automatically
7808 activate the layout before drawing on it. Calls to
7809 pango_renderer_activate() and pango_renderer_deactivate() can
7810 be nested and the renderer will only be initialized and
7811 deinitialized once.
7812
7813 Since: 1.8
7814
7815 </description>
7816 <parameters>
7817 <parameter name="renderer">
7818 <parameter_description> a #PangoRenderer
7819 </parameter_description>
7820 </parameter>
7821 </parameters>
7822 <return></return>
7823 </function>
7824
7825 <function name="pango_layout_index_to_pos">
7826 <description>
7827 Converts from an index within a #PangoLayout to the onscreen position
7828 corresponding to the grapheme at that index, which is represented
7829 as rectangle.  Note that &amp;lt;literal&amp;gt;pos-&amp;gt;x&amp;lt;/literal&amp;gt; is always the leading
7830 edge of the grapheme and &amp;lt;literal&amp;gt;pos-&amp;gt;x + pos-&amp;gt;width&amp;lt;/literal&amp;gt; the trailing
7831 edge of the grapheme. If the directionality of the grapheme is right-to-left,
7832 then &amp;lt;literal&amp;gt;pos-&amp;gt;width&amp;lt;/literal&amp;gt; will be negative.
7833
7834 </description>
7835 <parameters>
7836 <parameter name="layout">
7837 <parameter_description> a #PangoLayout
7838 </parameter_description>
7839 </parameter>
7840 <parameter name="index_">
7841 <parameter_description> byte index within @layout
7842 </parameter_description>
7843 </parameter>
7844 <parameter name="pos">
7845 <parameter_description> rectangle in which to store the position of the grapheme
7846 </parameter_description>
7847 </parameter>
7848 </parameters>
7849 <return></return>
7850 </function>
7851
7852 <function name="pango_win32_font_map_get_font_cache">
7853 <description>
7854 Obtains the font cache associated with the given font map.
7855
7856
7857 </description>
7858 <parameters>
7859 <parameter name="font_map">
7860 <parameter_description> a #PangoWin32FontMap.
7861 </parameter_description>
7862 </parameter>
7863 </parameters>
7864 <return> the #PangoWin32FontCache of @font_map.
7865 </return>
7866 </function>
7867
7868 <function name="pango_version">
7869 <description>
7870 This is similar to the macro %PANGO_VERSION except that
7871 it returns the encoded version of Pango available at run-time,
7872 as opposed to the version available at compile-time.
7873
7874 A version number can be encoded into an integer using
7875 PANGO_VERSION_ENCODE().
7876
7877
7878 </description>
7879 <parameters>
7880 </parameters>
7881 <return>value: The encoded version of Pango library
7882 available at run time.
7883
7884 Since: 1.16
7885 </return>
7886 </function>
7887
7888 <function name="pango_font_map_load_fontset">
7889 <description>
7890 Load a set of fonts in the fontmap that can be used to render
7891 a font matching @desc.
7892
7893
7894 </description>
7895 <parameters>
7896 <parameter name="fontmap">
7897 <parameter_description> a #PangoFontMap
7898 </parameter_description>
7899 </parameter>
7900 <parameter name="context">
7901 <parameter_description> the #PangoContext the font will be used with
7902 </parameter_description>
7903 </parameter>
7904 <parameter name="desc">
7905 <parameter_description> a #PangoFontDescription describing the font to load
7906 </parameter_description>
7907 </parameter>
7908 <parameter name="language">
7909 <parameter_description> a #PangoLanguage the fonts will be used for
7910 </parameter_description>
7911 </parameter>
7912 </parameters>
7913 <return>the fontset, or %NULL if no font matched.
7914 </return>
7915 </function>
7916
7917 <function name="pango_tab_array_get_size">
7918 <description>
7919 Gets the number of tab stops in @tab_array.
7920
7921
7922 </description>
7923 <parameters>
7924 <parameter name="tab_array">
7925 <parameter_description> a #PangoTabArray
7926 </parameter_description>
7927 </parameter>
7928 </parameters>
7929 <return> the number of tab stops in the array.
7930 </return>
7931 </function>
7932
7933 <function name="pango_tab_array_get_positions_in_pixels">
7934 <description>
7935 Return value: whether positions are in pixels.
7936
7937 </description>
7938 <parameters>
7939 <parameter name="tab_array">
7940 <parameter_description> a #PangoTabArray
7941 </parameter_description>
7942 </parameter>
7943 </parameters>
7944 <return> whether positions are in pixels.
7945 </return>
7946 </function>
7947
7948 <function name="pango_cairo_create_layout">
7949 <description>
7950 Creates a layout object set up to match the current transformation
7951 and target surface of the Cairo context.  This layout can then be
7952 used for text measurement with functions like
7953 pango_layout_get_size() or drawing with functions like
7954 pango_cairo_show_layout(). If you change the transformation
7955 or target surface for @cr, you need to call pango_cairo_update_layout()
7956
7957 This function is the most convenient way to use Cairo with Pango,
7958 however it is slightly inefficient since it creates a separate
7959 #PangoContext object for each layout. This might matter in an
7960 application that was laying out large amounts of text.
7961
7962
7963 </description>
7964 <parameters>
7965 <parameter name="cr">
7966 <parameter_description> a Cairo context
7967 </parameter_description>
7968 </parameter>
7969 </parameters>
7970 <return> the newly created #PangoLayout. Free with
7971 g_object_unref().
7972
7973 Since: 1.10
7974 </return>
7975 </function>
7976
7977 <function name="pango_cairo_font_map_get_resolution">
7978 <description>
7979 Gets the resolution for the fontmap. See pango_cairo_font_map_set_resolution()
7980
7981
7982 </description>
7983 <parameters>
7984 <parameter name="fontmap">
7985 <parameter_description> a #PangoCairoFontMap
7986 </parameter_description>
7987 </parameter>
7988 </parameters>
7989 <return> the resolution in &quot;dots per inch&quot;
7990
7991 Since: 1.10
7992 </return>
7993 </function>
7994
7995 <function name="pango_xft_render">
7996 <description>
7997 Renders a #PangoGlyphString onto an &amp;lt;type&amp;gt;XftDraw&amp;lt;/type&amp;gt; object wrapping an X drawable.
7998
7999 </description>
8000 <parameters>
8001 <parameter name="draw">
8002 <parameter_description>    the &amp;lt;type&amp;gt;XftDraw&amp;lt;/type&amp;gt; object.
8003 </parameter_description>
8004 </parameter>
8005 <parameter name="color">
8006 <parameter_description>   the color in which to draw the string
8007 </parameter_description>
8008 </parameter>
8009 <parameter name="font">
8010 <parameter_description>    the font in which to draw the string
8011 </parameter_description>
8012 </parameter>
8013 <parameter name="glyphs">
8014 <parameter_description>  the glyph string to draw
8015 </parameter_description>
8016 </parameter>
8017 <parameter name="x">
8018 <parameter_description>       the x position of start of string (in pixels)
8019 </parameter_description>
8020 </parameter>
8021 <parameter name="y">
8022 <parameter_description>       the y position of baseline (in pixels)
8023 </parameter_description>
8024 </parameter>
8025 </parameters>
8026 <return></return>
8027 </function>
8028
8029 <function name="pango_coverage_ref">
8030 <description>
8031 Increase the reference count on the #PangoCoverage by one
8032
8033
8034 </description>
8035 <parameters>
8036 <parameter name="coverage">
8037 <parameter_description> a #PangoCoverage
8038 </parameter_description>
8039 </parameter>
8040 </parameters>
8041 <return> @coverage
8042 </return>
8043 </function>
8044
8045 <function name="pango_xft_font_get_glyph">
8046 <description>
8047 Gets the glyph index for a given Unicode character
8048 for @font. If you only want to determine
8049 whether the font has the glyph, use pango_xft_font_has_char().
8050
8051 Use pango_fc_font_get_glyph() instead.
8052
8053
8054 </description>
8055 <parameters>
8056 <parameter name="font">
8057 <parameter_description> a #PangoFont for the Xft backend
8058 </parameter_description>
8059 </parameter>
8060 <parameter name="wc">
8061 <parameter_description> Unicode codepoint to look up
8062 </parameter_description>
8063 </parameter>
8064 </parameters>
8065 <return> the glyph index, or 0, if the Unicode
8066 character does not exist in the font.
8067
8068 Since: 1.2
8069 </return>
8070 </function>
8071
8072 <function name="pango_attr_gravity_hint_new">
8073 <description>
8074 Create a new gravity hint attribute.
8075
8076
8077 </description>
8078 <parameters>
8079 <parameter name="hint">
8080 <parameter_description> the gravity hint value.
8081 </parameter_description>
8082 </parameter>
8083 </parameters>
8084 <return> the newly allocated #PangoAttribute, which should be
8085 freed with pango_attribute_destroy().
8086
8087 Since: 1.16
8088 </return>
8089 </function>
8090
8091 <function name="pango_attr_iterator_next">
8092 <description>
8093 Advance the iterator until the next change of style.
8094
8095
8096 </description>
8097 <parameters>
8098 <parameter name="iterator">
8099 <parameter_description> a #PangoAttrIterator
8100 </parameter_description>
8101 </parameter>
8102 </parameters>
8103 <return> %FALSE if the iterator is at the end of the list, otherwise %TRUE
8104 </return>
8105 </function>
8106
8107 <function name="pango_color_copy">
8108 <description>
8109 Creates a copy of @src, which should be freed with
8110 pango_color_free(). Primarily used by language bindings,
8111 not that useful otherwise (since colors can just be copied
8112 by assignment in C).
8113
8114
8115 </description>
8116 <parameters>
8117 <parameter name="src">
8118 <parameter_description> color to copy
8119 </parameter_description>
8120 </parameter>
8121 </parameters>
8122 <return> the newly allocated #PangoColor, which should
8123 be freed with pango_color_free().
8124 </return>
8125 </function>
8126
8127 <function name="pango_attribute_copy">
8128 <description>
8129 Make a copy of an attribute.
8130
8131
8132 </description>
8133 <parameters>
8134 <parameter name="attr">
8135 <parameter_description> a #PangoAttribute
8136 </parameter_description>
8137 </parameter>
8138 </parameters>
8139 <return> the newly allocated #PangoAttribute, which should be
8140 freed with pango_attribute_destroy().
8141 </return>
8142 </function>
8143
8144 <function name="pango_win32_font_select_font">
8145 <description>
8146 Selects the font into the specified DC and changes the mapping mode
8147 and world transformation of the DC appropriately for the font.
8148 You may want to surround the use of this function with calls
8149 to SaveDC() and RestoreDC(). Call pango_win32_font_done_font() when
8150 you are done using the DC to release allocated resources.
8151
8152 See pango_win32_font_get_metrics_factor() for information about
8153 converting from the coordinate space used by this function
8154 into Pango units.
8155
8156
8157 </description>
8158 <parameters>
8159 <parameter name="font">
8160 <parameter_description> a #PangoFont from the Win32 backend
8161 </parameter_description>
8162 </parameter>
8163 <parameter name="hdc">
8164 <parameter_description> a windows device context
8165 </parameter_description>
8166 </parameter>
8167 </parameters>
8168 <return> %TRUE if the operation succeeded.
8169 </return>
8170 </function>
8171
8172 <function name="pango_fontset_get_font">
8173 <description>
8174 Return value: a #PangoFont. The caller must call g_object_unref when finished
8175
8176 </description>
8177 <parameters>
8178 <parameter name="fontset">
8179 <parameter_description> a #PangoFontset
8180 </parameter_description>
8181 </parameter>
8182 <parameter name="wc">
8183 <parameter_description> a Unicode character
8184 </parameter_description>
8185 </parameter>
8186 </parameters>
8187 <return> a #PangoFont. The caller must call g_object_unref when finished
8188 with the font.
8189 </return>
8190 </function>
8191
8192 <function name="pango_context_get_gravity_hint">
8193 <description>
8194 Retrieves the gravity hint for the context. See
8195 pango_context_set_gravity_hint() for details.
8196
8197
8198 </description>
8199 <parameters>
8200 <parameter name="context">
8201 <parameter_description> a #PangoContext
8202 </parameter_description>
8203 </parameter>
8204 </parameters>
8205 <return> the gravity hint for the context.
8206
8207 Since: 1.16
8208 </return>
8209 </function>
8210
8211 <function name="pango_ot_ruleset_new_for">
8212 <description>
8213 Creates a new #PangoOTRuleset for the given OpenType info, script, and
8214 language.
8215
8216 This function is part of a convenience scheme that highly simplifies
8217 using a #PangoOTRuleset to represent features for a specific pair of script
8218 and language.  So one can use this function passing in the script and
8219 language of interest, and later try to add features to the ruleset by just
8220 specifying the feature name or tag, without having to deal with finding
8221 script, language, or feature indices manually.
8222
8223 In excess to what pango_ot_ruleset_new() does, this function will:
8224 &amp;lt;itemizedlist&amp;gt;
8225 &amp;lt;listitem&amp;gt;
8226 Find the #PangoOTTag script and language tags associated with
8227 @script and @language using pango_ot_tag_from_script() and
8228 pango_ot_tag_from_language(),
8229 &amp;lt;/listitem&amp;gt;
8230 &amp;lt;listitem&amp;gt;
8231 For each of table types %PANGO_OT_TABLE_GSUB and %PANGO_OT_TABLE_GPOS,
8232 find the script index of the script tag found and the language
8233 system index of the language tag found in that script system, using
8234 pango_ot_info_find_script() and pango_ot_info_find_language(),
8235 &amp;lt;/listitem&amp;gt;
8236 &amp;lt;listitem&amp;gt;
8237 For found language-systems, if they have required feature
8238 index, add that feature to the ruleset using
8239 pango_ot_ruleset_add_feature(),
8240 &amp;lt;/listitem&amp;gt;
8241 &amp;lt;listitem&amp;gt;
8242 Remember found script and language indices for both table types,
8243 and use them in future pango_ot_ruleset_maybe_add_feature() and
8244 pango_ot_ruleset_maybe_add_features().
8245 &amp;lt;/listitem&amp;gt;
8246 &amp;lt;/itemizedlist&amp;gt;
8247
8248 Because of the way return values of pango_ot_info_find_script() and
8249 pango_ot_info_find_language() are ignored, this function automatically
8250 finds and uses the &apos;DFLT&apos; script and the default language-system.
8251
8252
8253 </description>
8254 <parameters>
8255 <parameter name="info">
8256 <parameter_description> a #PangoOTInfo.
8257 </parameter_description>
8258 </parameter>
8259 <parameter name="script">
8260 <parameter_description> a #PangoScript.
8261 </parameter_description>
8262 </parameter>
8263 <parameter name="language">
8264 <parameter_description> a #PangoLanguage.
8265 </parameter_description>
8266 </parameter>
8267 </parameters>
8268 <return> the newly allocated #PangoOTRuleset, which
8269 should be freed with g_object_unref().
8270
8271 Since: 1.18
8272 </return>
8273 </function>
8274
8275 <function name="pango_fc_font_map_add_decoder_find_func">
8276 <description>
8277 This function saves a callback method in the #PangoFcFontMap that
8278 will be called whenever new fonts are created.  If the
8279 function returns a #PangoFcDecoder, that decoder will be used to
8280 determine both coverage via a #FcCharSet and a one-to-one mapping of
8281 characters to glyphs.  This will allow applications to have
8282 application-specific encodings for various fonts.
8283
8284 Since: 1.6.
8285
8286 </description>
8287 <parameters>
8288 <parameter name="fcfontmap">
8289 <parameter_description> The #PangoFcFontMap to add this method to.
8290 </parameter_description>
8291 </parameter>
8292 <parameter name="findfunc">
8293 <parameter_description> The #PangoFcDecoderFindFunc callback function
8294 </parameter_description>
8295 </parameter>
8296 <parameter name="user_data">
8297 <parameter_description> User data.
8298 </parameter_description>
8299 </parameter>
8300 <parameter name="dnotify">
8301 <parameter_description> A #GDestroyNotify callback that will be called when the
8302 fontmap is finalized and the decoder is released.
8303 </parameter_description>
8304 </parameter>
8305 </parameters>
8306 <return></return>
8307 </function>
8308
8309 <function name="pango_font_description_equal">
8310 <description>
8311 Compares two font descriptions for equality. Two font descriptions
8312 are considered equal if the fonts they describe are provably identical.
8313 This means that their masks do not have to match, as long as other fields
8314 are all the same. (Two font descriptions may result in identical fonts
8315 being loaded, but still compare %FALSE.)
8316
8317
8318 </description>
8319 <parameters>
8320 <parameter name="desc1">
8321 <parameter_description> a #PangoFontDescription
8322 </parameter_description>
8323 </parameter>
8324 <parameter name="desc2">
8325 <parameter_description> another #PangoFontDescription
8326 </parameter_description>
8327 </parameter>
8328 </parameters>
8329 <return> %TRUE if the two font descriptions are identical,
8330 %FALSE otherwise.
8331 </return>
8332 </function>
8333
8334 <function name="pango_attr_family_new">
8335 <description>
8336 Create a new font family attribute.
8337
8338
8339 </description>
8340 <parameters>
8341 <parameter name="family">
8342 <parameter_description> the family or comma separated list of families
8343 </parameter_description>
8344 </parameter>
8345 </parameters>
8346 <return> the newly allocated #PangoAttribute, which should be
8347 freed with pango_attribute_destroy().
8348 </return>
8349 </function>
8350
8351 <function name="pango_cairo_font_map_new_for_font_type">
8352 <description>
8353 Creates a new #PangoCairoFontMap object of the type suitable
8354 to be used with cairo font backend of type @fonttype.
8355
8356 In most cases one should simply use @pango_cairo_font_map_new(),
8357 or in fact in most of those cases, just use
8358 @pango_cairo_font_map_get_default().
8359
8360
8361 </description>
8362 <parameters>
8363 <parameter name="fonttype">
8364 <parameter_description> desired #cairo_font_type_t
8365 </parameter_description>
8366 </parameter>
8367 </parameters>
8368 <return> the newly allocated #PangoFontMap of suitable type
8369 which should be freed with g_object_unref(),
8370 or %NULL if the requested cairo font backend is
8371 not supported.
8372
8373 Since: 1.18
8374 </return>
8375 </function>
8376
8377 <function name="pango_ot_ruleset_add_feature">
8378 <description>
8379 Adds a feature to the ruleset.
8380
8381 </description>
8382 <parameters>
8383 <parameter name="ruleset">
8384 <parameter_description> a #PangoOTRuleset.
8385 </parameter_description>
8386 </parameter>
8387 <parameter name="table_type">
8388 <parameter_description> the table type to add a feature to.
8389 </parameter_description>
8390 </parameter>
8391 <parameter name="feature_index">
8392 <parameter_description> the index of the feature to add.
8393 </parameter_description>
8394 </parameter>
8395 <parameter name="property_bit">
8396 <parameter_description> the property bit to use for this feature. Used to identify
8397 the glyphs that this feature should be applied to, or
8398 %PANGO_OT_ALL_GLYPHS if it should be applied to all glyphs.
8399 </parameter_description>
8400 </parameter>
8401 </parameters>
8402 <return></return>
8403 </function>
8404
8405 <function name="pango_context_set_matrix">
8406 <description>
8407 Sets the transformation matrix that will be applied when rendering
8408 with this context. Note that reported metrics are in the user space
8409 coordinates before the application of the matrix, not device-space
8410 coordinates after the application of the matrix. So, they don&apos;t scale
8411 with the matrix, though they may change slightly for different
8412 matrices, depending on how the text is fit to the pixel grid.
8413
8414 Since: 1.6
8415
8416 </description>
8417 <parameters>
8418 <parameter name="context">
8419 <parameter_description> a #PangoContext
8420 </parameter_description>
8421 </parameter>
8422 <parameter name="matrix">
8423 <parameter_description> a #PangoMatrix, or %NULL to unset any existing matrix.
8424 (No matrix set is the same as setting the identity matrix.)
8425 </parameter_description>
8426 </parameter>
8427 </parameters>
8428 <return></return>
8429 </function>
8430
8431 <function name="pango_x_apply_ligatures">
8432 <description>
8433 Previously did subfont-specific ligation. Now a no-op.
8434
8435
8436 </description>
8437 <parameters>
8438 <parameter name="font">
8439 <parameter_description> unused
8440 </parameter_description>
8441 </parameter>
8442 <parameter name="subfont">
8443 <parameter_description> unused
8444 </parameter_description>
8445 </parameter>
8446 <parameter name="glyphs">
8447 <parameter_description> unused
8448 </parameter_description>
8449 </parameter>
8450 <parameter name="n_glyphs">
8451 <parameter_description> unused
8452 </parameter_description>
8453 </parameter>
8454 <parameter name="clusters">
8455 <parameter_description> unused
8456 </parameter_description>
8457 </parameter>
8458 </parameters>
8459 <return> %FALSE, always.
8460 </return>
8461 </function>
8462
8463 <function name="pango_coverage_new">
8464 <description>
8465 Create a new #PangoCoverage
8466
8467
8468 </description>
8469 <parameters>
8470 </parameters>
8471 <return> the newly allocated #PangoCoverage,
8472 initialized to %PANGO_COVERAGE_NONE
8473 with a reference count of one, which
8474 should be freed with pango_coverage_unref().
8475 </return>
8476 </function>
8477
8478 <function name="pango_attr_iterator_get_font">
8479 <description>
8480 Get the font and other attributes at the current iterator position.
8481
8482 </description>
8483 <parameters>
8484 <parameter name="iterator">
8485 <parameter_description> a #PangoAttrIterator
8486 </parameter_description>
8487 </parameter>
8488 <parameter name="desc">
8489 <parameter_description> a #PangoFontDescription to fill in with the current values.
8490 The family name in this structure will be set using
8491 pango_font_description_set_family_static() using values from
8492 an attribute in the #PangoAttrList associated with the iterator,
8493 so if you plan to keep it around, you must call:
8494 &amp;lt;literal&amp;gt;pango_font_description_set_family (desc, pango_font_description_get_family (desc))&amp;lt;/literal&amp;gt;.
8495 </parameter_description>
8496 </parameter>
8497 <parameter name="language">
8498 <parameter_description> if non-%NULL, location to store language tag for item, or %NULL
8499 if none is found.
8500 </parameter_description>
8501 </parameter>
8502 <parameter name="extra_attrs">
8503 <parameter_description> if non-%NULL, location in which to store a list of non-font
8504 attributes at the the current position; only the highest priority
8505 value of each attribute will be added to this list. In order
8506 to free this value, you must call pango_attribute_destroy() on
8507 each member.
8508 </parameter_description>
8509 </parameter>
8510 </parameters>
8511 <return></return>
8512 </function>
8513
8514 <function name="pango_color_to_string">
8515 <description>
8516 Return value: a newly-allocated text string that must be freed with g_free().
8517
8518 </description>
8519 <parameters>
8520 <parameter name="color">
8521 <parameter_description> a #PangoColor
8522 </parameter_description>
8523 </parameter>
8524 </parameters>
8525 <return> a newly-allocated text string that must be freed with g_free().
8526
8527 Since: 1.16
8528 </return>
8529 </function>
8530
8531 <function name="pango_attr_list_new">
8532 <description>
8533 Create a new empty attribute list with a reference count of one.
8534
8535
8536 </description>
8537 <parameters>
8538 </parameters>
8539 <return> the newly allocated #PangoAttrList, which should
8540 be freed with pango_attr_list_unref().
8541 </return>
8542 </function>
8543
8544 <function name="pango_unichar_direction">
8545 <description>
8546 Determines the direction of a character; either
8547 %PANGO_DIRECTION_LTR, %PANGO_DIRECTION_RTL, or
8548 %PANGO_DIRECTION_NEUTRAL.
8549
8550
8551 </description>
8552 <parameters>
8553 <parameter name="ch">
8554 <parameter_description> a Unicode character
8555 </parameter_description>
8556 </parameter>
8557 </parameters>
8558 <return> the direction of the character, as used in the
8559 Unicode bidirectional algorithm.
8560 </return>
8561 </function>
8562
8563 <function name="pango_cairo_font_map_get_default">
8564 <description>
8565 Gets a default font map to use with Cairo.
8566
8567
8568 </description>
8569 <parameters>
8570 </parameters>
8571 <return> the default Cairo fontmap for #Pango. This
8572 object is owned by Pango and must not be freed.
8573
8574 Since: 1.10
8575 </return>
8576 </function>
8577
8578 <function name="pango_attr_list_insert_before">
8579 <description>
8580 Insert the given attribute into the #PangoAttrList. It will
8581 be inserted before all other attributes with a matching
8582 @start_index.
8583
8584 </description>
8585 <parameters>
8586 <parameter name="list">
8587 <parameter_description> a #PangoAttrList
8588 </parameter_description>
8589 </parameter>
8590 <parameter name="attr">
8591 <parameter_description> the attribute to insert. Ownership of this value is
8592 assumed by the list.
8593 </parameter_description>
8594 </parameter>
8595 </parameters>
8596 <return></return>
8597 </function>
8598
8599 <function name="pango_renderer_deactivate">
8600 <description>
8601 Cleans up after rendering operations on @renderer. See
8602 docs for pango_renderer_activate().
8603
8604 Since: 1.8
8605
8606 </description>
8607 <parameters>
8608 <parameter name="renderer">
8609 <parameter_description> a #PangoRenderer
8610 </parameter_description>
8611 </parameter>
8612 </parameters>
8613 <return></return>
8614 </function>
8615
8616 <function name="pango_parse_stretch">
8617 <description>
8618 Parses a font stretch. The allowed values are
8619 &quot;ultra_condensed&quot;, &quot;extra_condensed&quot;, &quot;condensed&quot;,
8620 &quot;semi_condensed&quot;, &quot;normal&quot;, &quot;semi_expanded&quot;, &quot;expanded&quot;,
8621 &quot;extra_expanded&quot; and &quot;ultra_expanded&quot;. Case variations are
8622 ignored and the &apos;_&apos; characters may be omitted.
8623
8624
8625 </description>
8626 <parameters>
8627 <parameter name="str">
8628 <parameter_description> a string to parse.
8629 </parameter_description>
8630 </parameter>
8631 <parameter name="stretch">
8632 <parameter_description> a #PangoStretch to store the result in.
8633 </parameter_description>
8634 </parameter>
8635 <parameter name="warn">
8636 <parameter_description> if %TRUE, issue a g_warning() on bad input.
8637 </parameter_description>
8638 </parameter>
8639 </parameters>
8640 <return> %TRUE if @str was successfully parsed.
8641 </return>
8642 </function>
8643
8644 <function name="pango_layout_get_width">
8645 <description>
8646 Gets the width to which the lines of the #PangoLayout should wrap.
8647
8648
8649 </description>
8650 <parameters>
8651 <parameter name="layout">
8652 <parameter_description> a #PangoLayout
8653 </parameter_description>
8654 </parameter>
8655 </parameters>
8656 <return> the width, or -1 if no width set.
8657 </return>
8658 </function>
8659
8660 <function name="pango_language_from_string">
8661 <description>
8662 Take a RFC-3066 format language tag as a string and convert it to a
8663 #PangoLanguage pointer that can be efficiently copied (copy the
8664 pointer) and compared with other language tags (compare the
8665 pointer.)
8666
8667 This function first canonicalizes the string by converting it to
8668 lowercase, mapping &apos;_&apos; to &apos;-&apos;, and stripping all characters other
8669 than letters and &apos;-&apos;.
8670
8671 Use pango_language_get_default() if you want to get the #PangoLanguage for
8672 the current locale of the process.
8673
8674
8675 </description>
8676 <parameters>
8677 <parameter name="language">
8678 <parameter_description> a string representing a language tag
8679 </parameter_description>
8680 </parameter>
8681 </parameters>
8682 <return> an opaque pointer to a #PangoLanguage structure.
8683 this will be valid forever after.
8684 </return>
8685 </function>
8686
8687 <function name="pango_map_get_engines">
8688 <description>
8689 Finds engines in the map that handle the given script. The returned
8690 lists should be freed with g_slist_free, but the engines in the
8691 lists are owned by GLib and will be kept around permanently, so
8692 they should not be unref&apos;ed.
8693
8694 Since: 1.4
8695
8696 </description>
8697 <parameters>
8698 <parameter name="map">
8699 <parameter_description> a #PangoMap
8700 </parameter_description>
8701 </parameter>
8702 <parameter name="script">
8703 <parameter_description> a #PangoScript
8704 </parameter_description>
8705 </parameter>
8706 <parameter name="exact_engines">
8707 <parameter_description> location to store list of engines that exactly
8708 handle this script.
8709 </parameter_description>
8710 </parameter>
8711 <parameter name="fallback_engines">
8712 <parameter_description> location to store list of engines that approximately
8713 handle this script.
8714 </parameter_description>
8715 </parameter>
8716 </parameters>
8717 <return></return>
8718 </function>
8719
8720 <function name="pango_font_metrics_get_approximate_char_width">
8721 <description>
8722 Gets the approximate character width for a font metrics structure.
8723 This is merely a representative value useful, for example, for
8724 determining the initial size for a window. Actual characters in
8725 text will be wider and narrower than this.
8726
8727
8728 </description>
8729 <parameters>
8730 <parameter name="metrics">
8731 <parameter_description> a #PangoFontMetrics structure
8732 </parameter_description>
8733 </parameter>
8734 </parameters>
8735 <return> the character width, in Pango units. (1 point == %PANGO_SCALE Pango units.)
8736 </return>
8737 </function>
8738
8739 <function name="pango_font_description_set_family">
8740 <description>
8741 Sets the family name field of a font description. The family
8742 name represents a family of related font styles, and will
8743 resolve to a particular #PangoFontFamily. In some uses of
8744 #PangoFontDescription, it is also possible to use a comma
8745 separated list of family names for this field.
8746
8747 </description>
8748 <parameters>
8749 <parameter name="desc">
8750 <parameter_description> a #PangoFontDescription.
8751 </parameter_description>
8752 </parameter>
8753 <parameter name="family">
8754 <parameter_description> a string representing the family name.
8755 </parameter_description>
8756 </parameter>
8757 </parameters>
8758 <return></return>
8759 </function>
8760
8761 <function name="pango_fc_font_description_from_pattern">
8762 <description>
8763 Creates a #PangoFontDescription that matches the specified
8764 Fontconfig pattern as closely as possible. Many possible Fontconfig
8765 pattern values, such as %FC_RASTERIZER or %FC_DPI, don&apos;t make sense in
8766 the context of #PangoFontDescription, so will be ignored.
8767
8768
8769 </description>
8770 <parameters>
8771 <parameter name="pattern">
8772 <parameter_description> a #FcPattern
8773 </parameter_description>
8774 </parameter>
8775 <parameter name="include_size">
8776 <parameter_description> if %TRUE, the pattern will include the size from
8777 the @pattern; otherwise the resulting pattern will be unsized.
8778 (only %FC_SIZE is examined, not %FC_PIXEL_SIZE)
8779 </parameter_description>
8780 </parameter>
8781 </parameters>
8782 <return> a new #PangoFontDescription. Free with
8783 pango_font_description_free().
8784
8785 Since: 1.4
8786 </return>
8787 </function>
8788
8789 <function name="_pango_get_lc_ctype">
8790 <description>
8791 Return the Unix-style locale string for the language currently in
8792 effect. On Unix systems, this is the return value from
8793 &amp;lt;literal&amp;gt;setlocale(LC_CTYPE, NULL)&amp;lt;/literal&amp;gt;, and the user can
8794 affect this through the environment variables LC_ALL, LC_CTYPE or
8795 LANG (checked in that order). The locale strings typically is in
8796 the form lang_COUNTRY, where lang is an ISO-639 language code, and
8797 COUNTRY is an ISO-3166 country code. For instance, sv_FI for
8798 Swedish as written in Finland or pt_BR for Portuguese as written in
8799 Brazil.
8800
8801 On Windows, the C library doesn&apos;t use any such environment
8802 variables, and setting them won&apos;t affect the behavior of functions
8803 like ctime(). The user sets the locale through the Regional Options
8804 in the Control Panel. The C library (in the setlocale() function)
8805 does not use country and language codes, but country and language
8806 names spelled out in English.
8807 However, this function does check the above environment
8808 variables, and does return a Unix-style locale string based on
8809 either said environment variables or the thread&apos;s current locale.
8810
8811
8812 </description>
8813 <parameters>
8814 </parameters>
8815 <return> a dynamically allocated string, free with g_free().
8816 </return>
8817 </function>
8818
8819 <function name="pango_xft_substitute_changed">
8820 <description>
8821 Call this function any time the results of the
8822 default substitution function set with
8823 pango_xft_set_default_substitute() change.
8824 That is, if your substitution function will return different
8825 results for the same input pattern, you must call this function.
8826
8827 Since: 1.2
8828
8829 </description>
8830 <parameters>
8831 <parameter name="display">
8832 <parameter_description> an X Display
8833 </parameter_description>
8834 </parameter>
8835 <parameter name="screen">
8836 <parameter_description> the screen number of a screen within @display
8837 </parameter_description>
8838 </parameter>
8839 </parameters>
8840 <return></return>
8841 </function>
8842
8843 <function name="pango_lookup_aliases">
8844 <description>
8845 Look up all user defined aliases for the alias @fontname.
8846 The resulting font family names will be stored in @families,
8847 and the number of families in @n_families.
8848
8849 </description>
8850 <parameters>
8851 <parameter name="fontname">
8852 <parameter_description> an ascii string
8853 </parameter_description>
8854 </parameter>
8855 <parameter name="families">
8856 <parameter_description> will be set to an array of font family names.
8857 this array is owned by pango and should not be freed.
8858 </parameter_description>
8859 </parameter>
8860 <parameter name="n_families">
8861 <parameter_description> will be set to the length of the @families array.
8862 </parameter_description>
8863 </parameter>
8864 </parameters>
8865 <return></return>
8866 </function>
8867
8868 <function name="pango_font_descriptions_free">
8869 <description>
8870 Frees a list of font descriptions from pango_font_map_list_fonts()
8871
8872 </description>
8873 <parameters>
8874 <parameter name="descs">
8875 <parameter_description> a pointer to an array of #PangoFontDescription, or %NULL
8876 </parameter_description>
8877 </parameter>
8878 <parameter name="n_descs">
8879 <parameter_description> number of font descriptions in @descs
8880 </parameter_description>
8881 </parameter>
8882 </parameters>
8883 <return></return>
8884 </function>
8885
8886 <function name="pango_reorder_items">
8887 <description>
8888 From a list of items in logical order and the associated
8889 directional levels, produce a list in visual order.
8890 The original list is unmodified.
8891
8892
8893 </description>
8894 <parameters>
8895 <parameter name="logical_items">
8896 <parameter_description>  a #GList of #PangoItem in logical order.
8897 </parameter_description>
8898 </parameter>
8899 </parameters>
8900 <return>a #GList of #PangoItem structures in visual order.
8901
8902 (Please open a bug if you use this function.
8903 It is not a particularly convenient interface, and the code
8904 is duplicated elsewhere in Pango for that reason.)
8905 </return>
8906 </function>
8907
8908 <function name="pango_win32_get_debug_flag">
8909 <description>
8910 Return value: %TRUE if debugging is turned on.
8911
8912 </description>
8913 <parameters>
8914 </parameters>
8915 <return> %TRUE if debugging is turned on.
8916
8917 Since: 1.2
8918 </return>
8919 </function>
8920
8921 <function name="pango_ot_ruleset_get_for_description">
8922 <description>
8923 Return value: the #PangoOTRuleset for @desc. This object will have
8924
8925 </description>
8926 <parameters>
8927 <parameter name="info">
8928 <parameter_description> a #PangoOTInfo.
8929 </parameter_description>
8930 </parameter>
8931 <parameter name="desc">
8932 <parameter_description> a #PangoOTRulesetDescription.
8933 </parameter_description>
8934 </parameter>
8935 </parameters>
8936 <return> the #PangoOTRuleset for @desc. This object will have
8937 the same lifetime as @info.
8938
8939 Since: 1.18
8940 </return>
8941 </function>
8942
8943 <function name="pango_glyph_string_index_to_x">
8944 <description>
8945 Converts from character position to x position. (X position
8946 is measured from the left edge of the run). Character positions
8947 are computed by dividing up each cluster into equal portions.
8948
8949 </description>
8950 <parameters>
8951 <parameter name="glyphs">
8952 <parameter_description>    the glyphs return from pango_shape()
8953 </parameter_description>
8954 </parameter>
8955 <parameter name="text">
8956 <parameter_description>      the text for the run
8957 </parameter_description>
8958 </parameter>
8959 <parameter name="length">
8960 <parameter_description>    the number of bytes (not characters) in @text.
8961 </parameter_description>
8962 </parameter>
8963 <parameter name="analysis">
8964 <parameter_description>  the analysis information return from pango_itemize()
8965 </parameter_description>
8966 </parameter>
8967 <parameter name="index_">
8968 <parameter_description>    the byte index within @text
8969 </parameter_description>
8970 </parameter>
8971 <parameter name="trailing">
8972 <parameter_description>  whether we should compute the result for the beginning
8973 or end of the character.
8974 </parameter_description>
8975 </parameter>
8976 <parameter name="x_pos">
8977 <parameter_description>     location to store result
8978 </parameter_description>
8979 </parameter>
8980 </parameters>
8981 <return></return>
8982 </function>
8983
8984 <function name="pango_matrix_transform_rectangle">
8985 <description>
8986 First transforms @rect using @matrix, then calculates the bounding box
8987 of the transformed rectangle.  The rectangle should be in Pango units.
8988
8989 This function is useful for example when you want to draw a rotated
8990 @PangoLayout to an image buffer, and want to know how large the image
8991 should be and how much you should shift the layout when rendering.
8992
8993 If you have a rectangle in device units (pixels), use
8994 pango_matrix_transform_pixel_rectangle().
8995
8996 If you have the rectangle in Pango units and want to convert to
8997 transformed pixel bounding box, it is more accurate to transform it first
8998 (using this function) and pass the result to pango_extents_to_pixels(),
8999 as @ink_rect.  However, there is a reason that you may want to convert
9000 to pixels first and then transform, and that is when the transformed
9001 coordinates may overflow in Pango units (large matrix translation for
9002 example).
9003
9004 Since: 1.16
9005
9006 </description>
9007 <parameters>
9008 <parameter name="matrix">
9009 <parameter_description> a #PangoMatrix, or %NULL
9010 </parameter_description>
9011 </parameter>
9012 <parameter name="rect">
9013 <parameter_description> in/out bounding box in Pango units, or %NULL
9014 </parameter_description>
9015 </parameter>
9016 </parameters>
9017 <return></return>
9018 </function>
9019
9020 <function name="pango_attr_list_ref">
9021 <description>
9022 Increase the reference count of the given attribute list by one.
9023
9024
9025 </description>
9026 <parameters>
9027 <parameter name="list">
9028 <parameter_description> a #PangoAttrList
9029 </parameter_description>
9030 </parameter>
9031 </parameters>
9032 <return> The attribute list passed in
9033
9034 Since: 1.10
9035 </return>
9036 </function>
9037
9038 <function name="pango_attr_list_insert">
9039 <description>
9040 Insert the given attribute into the #PangoAttrList. It will
9041 be inserted after all other attributes with a matching
9042 @start_index.
9043
9044 </description>
9045 <parameters>
9046 <parameter name="list">
9047 <parameter_description> a #PangoAttrList
9048 </parameter_description>
9049 </parameter>
9050 <parameter name="attr">
9051 <parameter_description> the attribute to insert. Ownership of this value is
9052 assumed by the list.
9053 </parameter_description>
9054 </parameter>
9055 </parameters>
9056 <return></return>
9057 </function>
9058
9059 <function name="pango_win32_font_description_from_logfont">
9060 <description>
9061 Creates a #PangoFontDescription that matches the specified LOGFONTA.
9062
9063 The face name, italicness and weight fields in the LOGFONTA are used
9064 to set up the resulting #PangoFontDescription. If the face name in
9065 the LOGFONTA contains non-ASCII characters the font is temporarily
9066 loaded (using CreateFontIndirect()) and an ASCII (usually English)
9067 name for it is looked up from the font name tables in the font
9068 data. If that doesn&apos;t work, the face name is converted from the
9069 system codepage to UTF-8 and that is used.
9070
9071
9072 </description>
9073 <parameters>
9074 <parameter name="lfp">
9075 <parameter_description> a LOGFONTA
9076 </parameter_description>
9077 </parameter>
9078 </parameters>
9079 <return> the newly allocated #PangoFontDescription, which
9080 should be freed using pango_font_description_free()
9081
9082 Since: 1.12
9083 </return>
9084 </function>
9085
9086 <function name="pango_ft2_get_context">
9087 <description>
9088 Retrieves a #PangoContext for the default PangoFT2 fontmap
9089 (see pango_ft2_fontmap_get_for_display()) and sets the resolution
9090 for the default fontmap to @dpi_x by @dpi_y.
9091
9092 Use of this function is deprecated; see pango_ft2_fontmap_create_context()
9093 instead.
9094
9095
9096 </description>
9097 <parameters>
9098 <parameter name="dpi_x">
9099 <parameter_description>  the horizontal DPI of the target device
9100 </parameter_description>
9101 </parameter>
9102 <parameter name="dpi_y">
9103 <parameter_description>  the vertical DPI of the target device
9104 </parameter_description>
9105 </parameter>
9106 </parameters>
9107 <return> the new #PangoContext
9108 </return>
9109 </function>
9110
9111 <function name="pango_win32_font_get_metrics_factor">
9112 <description>
9113 Return value: factor to multiply logical units by to get Pango
9114
9115 </description>
9116 <parameters>
9117 <parameter name="font">
9118 <parameter_description> a #PangoFont from the win32 backend
9119 </parameter_description>
9120 </parameter>
9121 </parameters>
9122 <return> factor to multiply logical units by to get Pango
9123 units.
9124 </return>
9125 </function>
9126
9127 <function name="pango_xft_font_lock_face">
9128 <description>
9129 Gets the FreeType &amp;lt;type&amp;gt;FT_Face&amp;lt;/type&amp;gt; associated with a font,
9130 This face will be kept around until you call
9131 pango_xft_font_unlock_face().
9132
9133 Use pango_fc_font_lock_face() instead.
9134
9135
9136 </description>
9137 <parameters>
9138 <parameter name="font">
9139 <parameter_description> a #PangoFont.
9140 </parameter_description>
9141 </parameter>
9142 </parameters>
9143 <return> the FreeType &amp;lt;type&amp;gt;FT_Face&amp;lt;/type&amp;gt; associated with @font.
9144
9145 Since: 1.2
9146 </return>
9147 </function>
9148
9149 <function name="pango_x_load_font">
9150 <description>
9151 Loads up a logical font based on a &quot;fontset&quot; style text
9152 specification. This is not remotely useful (Pango API&apos;s generally
9153 work in terms of #PangoFontDescription) and the result may not
9154 work correctly in all circumstances. Use of this function should
9155 be avoided.
9156
9157
9158 </description>
9159 <parameters>
9160 <parameter name="display">
9161 <parameter_description> the X display.
9162 </parameter_description>
9163 </parameter>
9164 <parameter name="spec">
9165 <parameter_description>    a comma-separated list of XLFD&apos;s.
9166 </parameter_description>
9167 </parameter>
9168 </parameters>
9169 <return>a new #PangoFont.
9170 </return>
9171 </function>
9172
9173 <function name="pango_coverage_copy">
9174 <description>
9175 Copy an existing #PangoCoverage. (This function may now be unnecessary
9176 since we refcount the structure. File a bug if you use it.)
9177
9178
9179 </description>
9180 <parameters>
9181 <parameter name="coverage">
9182 <parameter_description> a #PangoCoverage
9183 </parameter_description>
9184 </parameter>
9185 </parameters>
9186 <return> the newly allocated #PangoCoverage,
9187 with a reference count of one, which
9188 should be freed with pango_coverage_unref().
9189 </return>
9190 </function>
9191
9192 <function name="_pango_fc_font_set_decoder">
9193 <description>
9194 This sets a custom decoder for this font.  Any previous decoder
9195 will be released before this one is set.
9196
9197 Since: 1.6
9198
9199 </description>
9200 <parameters>
9201 <parameter name="font">
9202 <parameter_description> a #PangoFcFont
9203 </parameter_description>
9204 </parameter>
9205 <parameter name="decoder">
9206 <parameter_description> a #PangoFcDecoder to set for this font
9207 </parameter_description>
9208 </parameter>
9209 </parameters>
9210 <return></return>
9211 </function>
9212
9213 <function name="pango_ot_ruleset_substitute">
9214 <description>
9215 Performs the OpenType GSUB substitution on @buffer using the features
9216 in @ruleset
9217
9218 Since: 1.4
9219
9220 </description>
9221 <parameters>
9222 <parameter name="ruleset">
9223 <parameter_description> a #PangoOTRuleset.
9224 </parameter_description>
9225 </parameter>
9226 <parameter name="buffer">
9227 <parameter_description> a #PangoOTBuffer.
9228 </parameter_description>
9229 </parameter>
9230 </parameters>
9231 <return></return>
9232 </function>
9233
9234 <function name="pango_x_list_subfonts">
9235 <description>
9236 Lists the subfonts of a given font. The result is ordered first by charset,
9237 and then within each charset, by the order of fonts in the font specification.
9238
9239
9240 </description>
9241 <parameters>
9242 <parameter name="font">
9243 <parameter_description> a #PangoFont.
9244 </parameter_description>
9245 </parameter>
9246 <parameter name="charsets">
9247 <parameter_description> the charsets to list subfonts for.
9248 </parameter_description>
9249 </parameter>
9250 <parameter name="n_charsets">
9251 <parameter_description> the number of charsets in @charsets.
9252 </parameter_description>
9253 </parameter>
9254 <parameter name="subfont_ids">
9255 <parameter_description> location to store a pointer to an array of subfont IDs for each found subfont;
9256 the result must be freed using g_free().
9257 </parameter_description>
9258 </parameter>
9259 <parameter name="subfont_charsets">
9260 <parameter_description> location to store a pointer to an array of subfont IDs for each found subfont;
9261 the result must be freed using g_free().
9262 </parameter_description>
9263 </parameter>
9264 </parameters>
9265 <return> length of the arrays stored in @subfont_ids and
9266 @subfont_charsets.
9267 </return>
9268 </function>
9269
9270 <function name="pango_attr_list_copy">
9271 <description>
9272 Copy @list and return an identical new list.
9273
9274
9275 </description>
9276 <parameters>
9277 <parameter name="list">
9278 <parameter_description> a #PangoAttrList
9279 </parameter_description>
9280 </parameter>
9281 </parameters>
9282 <return> the newly allocated #PangoAttrList, with a
9283 reference count of one, which should
9284 be freed with pango_attr_list_unref().
9285 </return>
9286 </function>
9287
9288 <function name="pango_context_list_families">
9289 <description>
9290 List all families for a context.
9291
9292 </description>
9293 <parameters>
9294 <parameter name="context">
9295 <parameter_description> a #PangoContext
9296 </parameter_description>
9297 </parameter>
9298 <parameter name="families">
9299 <parameter_description> location to store a pointer to an array of #PangoFontFamily *.
9300 This array should be freed with g_free().
9301 </parameter_description>
9302 </parameter>
9303 <parameter name="n_families">
9304 <parameter_description> location to store the number of elements in @descs
9305 </parameter_description>
9306 </parameter>
9307 </parameters>
9308 <return></return>
9309 </function>
9310
9311 <function name="pango_ot_buffer_destroy">
9312 <description>
9313 Destroys a #PangoOTBuffer and free all associated memory.
9314
9315 Since: 1.4
9316
9317 </description>
9318 <parameters>
9319 <parameter name="buffer">
9320 <parameter_description> a #PangoOTBuffer
9321 </parameter_description>
9322 </parameter>
9323 </parameters>
9324 <return></return>
9325 </function>
9326
9327 <function name="pango_matrix_concat">
9328 <description>
9329 Changes the transformation represented by @matrix to be the
9330 transformation given by first applying transformation
9331 given by @new_matrix then applying the original transformation.
9332
9333 Since: 1.6
9334
9335 </description>
9336 <parameters>
9337 <parameter name="matrix">
9338 <parameter_description> a #PangoMatrix
9339 </parameter_description>
9340 </parameter>
9341 <parameter name="new_matrix">
9342 <parameter_description> a #PangoMatrix
9343 </parameter_description>
9344 </parameter>
9345 </parameters>
9346 <return></return>
9347 </function>
9348
9349 <function name="pango_fc_font_kern_glyphs">
9350 <description>
9351 Adjust each adjacent pair of glyphs in @glyphs according to
9352 kerning information in @font.
9353
9354 Since: 1.4
9355
9356 </description>
9357 <parameters>
9358 <parameter name="font">
9359 <parameter_description> a #PangoFcFont
9360 </parameter_description>
9361 </parameter>
9362 <parameter name="glyphs">
9363 <parameter_description> a #PangoGlyphString
9364 </parameter_description>
9365 </parameter>
9366 </parameters>
9367 <return></return>
9368 </function>
9369
9370 <function name="pango_layout_line_get_extents">
9371 <description>
9372 Computes the logical and ink extents of a layout line. See
9373 pango_font_get_glyph_extents() for details about the interpretation
9374 of the rectangles.
9375
9376 </description>
9377 <parameters>
9378 <parameter name="line">
9379 <parameter_description>     a #PangoLayoutLine
9380 </parameter_description>
9381 </parameter>
9382 <parameter name="ink_rect">
9383 <parameter_description> rectangle used to store the extents of the glyph string
9384 as drawn, or %NULL
9385 </parameter_description>
9386 </parameter>
9387 <parameter name="logical_rect">
9388 <parameter_description> rectangle used to store the logical extents of the glyph
9389 string, or %NULL
9390 </parameter_description>
9391 </parameter>
9392 </parameters>
9393 <return></return>
9394 </function>
9395
9396 <function name="pango_x_font_get_unknown_glyph">
9397 <description>
9398 Return value: a glyph index into @font.
9399
9400 </description>
9401 <parameters>
9402 <parameter name="font">
9403 <parameter_description> a #PangoFont.
9404 </parameter_description>
9405 </parameter>
9406 <parameter name="wc">
9407 <parameter_description> the Unicode character for which a glyph is needed.
9408 </parameter_description>
9409 </parameter>
9410 </parameters>
9411 <return> a glyph index into @font.
9412 </return>
9413 </function>
9414
9415 <function name="pango_ot_buffer_add_glyph">
9416 <description>
9417 Appends a glyph to a #PangoOTBuffer, with @properties identifying which
9418 features should be applied on this glyph.  See pango_ruleset_add_feature().
9419
9420 Since: 1.4
9421
9422 </description>
9423 <parameters>
9424 <parameter name="buffer">
9425 <parameter_description> a #PangoOTBuffer
9426 </parameter_description>
9427 </parameter>
9428 <parameter name="glyph">
9429 <parameter_description> the glyph index to add, like a #PangoGlyph
9430 </parameter_description>
9431 </parameter>
9432 <parameter name="properties">
9433 <parameter_description> the glyph properties
9434 </parameter_description>
9435 </parameter>
9436 <parameter name="cluster">
9437 <parameter_description> the cluster that this glyph belongs to
9438 </parameter_description>
9439 </parameter>
9440 </parameters>
9441 <return></return>
9442 </function>
9443
9444 <function name="pango_fc_font_unlock_face">
9445 <description>
9446 Releases a font previously obtained with
9447 pango_fc_font_lock_face().
9448
9449 Since: 1.4
9450
9451 </description>
9452 <parameters>
9453 <parameter name="font">
9454 <parameter_description> a #PangoFcFont.
9455 </parameter_description>
9456 </parameter>
9457 </parameters>
9458 <return></return>
9459 </function>
9460
9461 <function name="pango_tab_array_get_tab">
9462 <description>
9463 Gets the alignment and position of a tab stop.
9464
9465
9466 </description>
9467 <parameters>
9468 <parameter name="tab_array">
9469 <parameter_description> a #PangoTabArray
9470 </parameter_description>
9471 </parameter>
9472 <parameter name="tab_index">
9473 <parameter_description> tab stop index
9474 </parameter_description>
9475 </parameter>
9476 <parameter name="alignment">
9477 <parameter_description> location to store alignment, or %NULL
9478 </parameter_description>
9479 </parameter>
9480 <parameter name="location">
9481 <parameter_description> location to store tab position, or %NULL
9482 </parameter_description>
9483 </parameter>
9484 </parameters>
9485 <return></return>
9486 </function>
9487
9488 <function name="pango_matrix_rotate">
9489 <description>
9490 Changes the transformation represented by @matrix to be the
9491 transformation given by first rotating by @degrees degrees
9492 counter-clockwise then applying the original transformation.
9493
9494 Since: 1.6
9495
9496 </description>
9497 <parameters>
9498 <parameter name="matrix">
9499 <parameter_description> a #PangoMatrix
9500 </parameter_description>
9501 </parameter>
9502 <parameter name="degrees">
9503 <parameter_description> degrees to rotate counter-clockwise
9504 </parameter_description>
9505 </parameter>
9506 </parameters>
9507 <return></return>
9508 </function>
9509
9510 <function name="pango_trim_string">
9511 <description>
9512 Trims leading and trailing whitespace from a string.
9513
9514
9515 </description>
9516 <parameters>
9517 <parameter name="str">
9518 <parameter_description> a string
9519 </parameter_description>
9520 </parameter>
9521 </parameters>
9522 <return> A newly-allocated string that must be freed with g_free()
9523 </return>
9524 </function>
9525
9526 <function name="pango_layout_set_alignment">
9527 <description>
9528 Sets the alignment for the layout: how partial lines are
9529 positioned within the horizontal space available.
9530
9531 </description>
9532 <parameters>
9533 <parameter name="layout">
9534 <parameter_description> a #PangoLayout
9535 </parameter_description>
9536 </parameter>
9537 <parameter name="alignment">
9538 <parameter_description> the alignment
9539 </parameter_description>
9540 </parameter>
9541 </parameters>
9542 <return></return>
9543 </function>
9544
9545 <function name="pango_font_description_get_family">
9546 <description>
9547 Gets the family name field of a font description. See
9548 pango_font_description_set_family().
9549
9550
9551 </description>
9552 <parameters>
9553 <parameter name="desc">
9554 <parameter_description> a #PangoFontDescription.
9555 </parameter_description>
9556 </parameter>
9557 </parameters>
9558 <return> the family name field for the font description, or
9559 %NULL if not previously set.  This has the same life-time
9560 as the font description itself and should not be freed.
9561 </return>
9562 </function>
9563
9564 <function name="pango_font_description_free">
9565 <description>
9566 Frees a font description.
9567
9568 </description>
9569 <parameters>
9570 <parameter name="desc">
9571 <parameter_description> a #PangoFontDescription, or %NULL
9572 </parameter_description>
9573 </parameter>
9574 </parameters>
9575 <return></return>
9576 </function>
9577
9578 <function name="pango_fc_font_map_shutdown">
9579 <description>
9580 Clears all cached information for the fontmap and marks
9581 all fonts open for the fontmap as dead. (See the shutdown()
9582 virtual function of #PangoFcFont.) This function might be used
9583 by a backend when the underlying windowing system for the font
9584 map exits. This function is only intended to be called from
9585 only for backend implementations deriving from #PangoFcFontmap.
9586
9587 Since: 1.4
9588
9589 </description>
9590 <parameters>
9591 <parameter name="fcfontmap">
9592 <parameter_description> a #PangoFcFontmap
9593 </parameter_description>
9594 </parameter>
9595 </parameters>
9596 <return></return>
9597 </function>
9598
9599 <function name="pango_itemize">
9600 <description>
9601 Breaks a piece of text into segments with consistent
9602 directional level and shaping engine. Each byte of @text will
9603 be contained in exactly one of the items in the returned list;
9604 the generated list of items will be in logical order (the start
9605 offsets of the items are ascending).
9606
9607 @cached_iter should be an iterator over @attrs currently positioned at a
9608 range before or containing @start_index; @cached_iter will be advanced to
9609 the range covering the position just after @start_index + @length.
9610 (i.e. if itemizing in a loop, just keep passing in the same @cached_iter).
9611
9612
9613 </description>
9614 <parameters>
9615 <parameter name="context">
9616 <parameter_description>   a structure holding information that affects
9617                the itemization process.
9618 </parameter_description>
9619 </parameter>
9620 <parameter name="text">
9621 <parameter_description>      the text to itemize.
9622 </parameter_description>
9623 </parameter>
9624 <parameter name="start_index">
9625 <parameter_description> first byte in @text to process
9626 </parameter_description>
9627 </parameter>
9628 <parameter name="length">
9629 <parameter_description>    the number of bytes (not characters) to process
9630 after @start_index.
9631 This must be &amp;gt;= 0.
9632 </parameter_description>
9633 </parameter>
9634 <parameter name="attrs">
9635 <parameter_description>     the set of attributes that apply to @text.
9636 </parameter_description>
9637 </parameter>
9638 <parameter name="cached_iter">
9639 <parameter_description>      Cached attribute iterator, or %NULL
9640 </parameter_description>
9641 </parameter>
9642 </parameters>
9643 <return> a #GList of #PangoItem structures.
9644 </return>
9645 </function>
9646
9647 <function name="pango_x_font_subfont_xlfd">
9648 <description>
9649 Determines the X Logical Font Description for the specified
9650 subfont.
9651
9652
9653 </description>
9654 <parameters>
9655 <parameter name="font">
9656 <parameter_description> a #PangoFont which must be from the X backend.
9657 </parameter_description>
9658 </parameter>
9659 <parameter name="subfont_id">
9660 <parameter_description> the id of a subfont within the font.
9661 </parameter_description>
9662 </parameter>
9663 </parameters>
9664 <return> A newly-allocated string containing the XLFD for the
9665 subfont. This string must be freed with g_free().
9666 </return>
9667 </function>
9668
9669 <function name="pango_ot_ruleset_maybe_add_feature">
9670 <description>
9671 This is a convenience function that first tries to find the feature
9672 using pango_ot_info_find_feature() and the ruleset script and language
9673 passed to pango_ot_ruleset_new_for(),
9674 and if the feature is found, adds it to the ruleset.
9675
9676 If @ruleset was not created using pango_ot_ruleset_new_for(), this function
9677 does nothing.
9678
9679
9680 </description>
9681 <parameters>
9682 <parameter name="ruleset">
9683 <parameter_description> a #PangoOTRuleset.
9684 </parameter_description>
9685 </parameter>
9686 <parameter name="table_type">
9687 <parameter_description> the table type to add a feature to.
9688 </parameter_description>
9689 </parameter>
9690 <parameter name="feature_tag">
9691 <parameter_description> the tag of the feature to add.
9692 </parameter_description>
9693 </parameter>
9694 <parameter name="property_bit">
9695 <parameter_description> the property bit to use for this feature. Used to identify
9696 the glyphs that this feature should be applied to, or
9697 %PANGO_OT_ALL_GLYPHS if it should be applied to all glyphs.
9698 </parameter_description>
9699 </parameter>
9700 </parameters>
9701 <return> %TRUE if the feature was found and added to ruleset,
9702 %FALSE otherwise.
9703
9704 Since: 1.18
9705 </return>
9706 </function>
9707
9708 <function name="pango_attr_list_splice">
9709 <description>
9710 This function opens up a hole in @list, fills it in with attributes from
9711 the left, and then merges @other on top of the hole.
9712
9713 This operation is equivalent to stretching every attribute
9714 that applies at position @pos in @list by an amount @len,
9715 and then calling pango_attr_list_change() with a copy
9716 of each attribute in @other in sequence (offset in position by @pos).
9717
9718 This operation proves useful for, for instance, inserting
9719 a pre-edit string in the middle of an edit buffer.
9720
9721 </description>
9722 <parameters>
9723 <parameter name="list">
9724 <parameter_description> a #PangoAttrList
9725 </parameter_description>
9726 </parameter>
9727 <parameter name="other">
9728 <parameter_description> another #PangoAttrList
9729 </parameter_description>
9730 </parameter>
9731 <parameter name="pos">
9732 <parameter_description> the position in @list at which to insert @other
9733 </parameter_description>
9734 </parameter>
9735 <parameter name="len">
9736 <parameter_description> the length of the spliced segment. (Note that this
9737 must be specified since the attributes in @other
9738 may only be present at some subsection of this range)
9739 </parameter_description>
9740 </parameter>
9741 </parameters>
9742 <return></return>
9743 </function>
9744
9745 <function name="pango_fontset_simple_new">
9746 <description>
9747 Creates a new #PangoFontsetSimple for the given language.
9748
9749
9750 </description>
9751 <parameters>
9752 <parameter name="language">
9753 <parameter_description> a #PangoLanguage tag
9754 </parameter_description>
9755 </parameter>
9756 </parameters>
9757 <return> the newly allocated #PangoFontsetSimple, which should
9758 be freed with g_object_unref().
9759 </return>
9760 </function>
9761
9762 <function name="pango_layout_iter_next_line">
9763 <description>
9764 Moves @iter forward to the start of the next line. If @iter is
9765 already on the last line, returns %FALSE.
9766
9767
9768 </description>
9769 <parameters>
9770 <parameter name="iter">
9771 <parameter_description> a #PangoLayoutIter
9772 </parameter_description>
9773 </parameter>
9774 </parameters>
9775 <return> whether motion was possible.
9776 </return>
9777 </function>
9778
9779 <function name="pango_win32_font_logfont">
9780 <description>
9781 Determine the LOGFONTA struct for the specified font. Note that
9782 Pango internally uses LOGFONTW structs, so if converting the UTF-16
9783 face name in the LOGFONTW struct to system codepage fails, the
9784 returned LOGFONTA will have an emppty face name. To get the
9785 LOGFONTW of a PangoFont, use pango_win32_font_logfontw(). It
9786 is recommended to do that always even if you don&apos;t expect
9787 to come across fonts with odd names.
9788
9789
9790 </description>
9791 <parameters>
9792 <parameter name="font">
9793 <parameter_description> a #PangoFont which must be from the Win32 backend
9794 </parameter_description>
9795 </parameter>
9796 </parameters>
9797 <return> A newly allocated LOGFONTA struct. It must be
9798 freed with g_free().
9799 </return>
9800 </function>
9801
9802 <function name="pango_context_get_base_gravity">
9803 <description>
9804 Retrieves the base gravity for the context. See
9805 pango_context_set_base_gravity().
9806
9807
9808 </description>
9809 <parameters>
9810 <parameter name="context">
9811 <parameter_description> a #PangoContext
9812 </parameter_description>
9813 </parameter>
9814 </parameters>
9815 <return> the base gravity for the context.
9816
9817 Since: 1.16
9818 </return>
9819 </function>
9820
9821 <function name="pango_win32_font_logfontw">
9822 <description>
9823 Determine the LOGFONTW struct for the specified font.
9824
9825
9826 </description>
9827 <parameters>
9828 <parameter name="font">
9829 <parameter_description> a #PangoFont which must be from the Win32 backend
9830 </parameter_description>
9831 </parameter>
9832 </parameters>
9833 <return> A newly allocated LOGFONTW struct. It must be
9834 freed with g_free().
9835
9836 Since: 1.16
9837 </return>
9838 </function>
9839
9840 <function name="pango_map_get_engine">
9841 <description>
9842 Return value: the best engine, if one is listed for the script,
9843
9844 </description>
9845 <parameters>
9846 <parameter name="map">
9847 <parameter_description> a #PangoMap
9848 </parameter_description>
9849 </parameter>
9850 <parameter name="script">
9851 <parameter_description> a #PangoScript
9852 </parameter_description>
9853 </parameter>
9854 </parameters>
9855 <return> the best engine, if one is listed for the script,
9856 or %NULL. The lookup may cause the engine to be loaded;
9857 once an engine is loaded, it won&apos;t be unloaded. If multiple
9858 engines are exact for the script, the choice of which is
9859 returned is arbitrary.
9860 </return>
9861 </function>
9862
9863 <function name="pango_renderer_get_matrix">
9864 <description>
9865 Gets the transformation matrix that will be applied when
9866 rendering. See pango_renderer_set_matrix().
9867
9868
9869 </description>
9870 <parameters>
9871 <parameter name="renderer">
9872 <parameter_description> a #PangoRenderer
9873 </parameter_description>
9874 </parameter>
9875 </parameters>
9876 <return> the matrix, or %NULL if no matrix has been set
9877 (which is the same as the identity matrix). The returned
9878 matrix is owned by Pango and must not be modified or
9879 freed.
9880
9881 Since: 1.8
9882 </return>
9883 </function>
9884
9885 <function name="pango_xft_renderer_set_default_color">
9886 <description>
9887 Sets the default foreground color for a #XftRenderer.
9888
9889 Since: 1.8
9890
9891 </description>
9892 <parameters>
9893 <parameter name="xftrenderer">
9894 <parameter_description> a #XftRenderer
9895 </parameter_description>
9896 </parameter>
9897 <parameter name="default_color">
9898 <parameter_description> the default foreground color
9899 </parameter_description>
9900 </parameter>
9901 </parameters>
9902 <return></return>
9903 </function>
9904
9905 <function name="pango_font_face_list_sizes">
9906 <description>
9907 List the available sizes for a font. This is only applicable to bitmap
9908 fonts. For scalable fonts, stores %NULL at the location pointed to by
9909 @sizes and 0 at the location pointed to by @n_sizes. The sizes returned
9910 are in Pango units and are sorted in ascending order.
9911
9912 Since: 1.4
9913
9914 </description>
9915 <parameters>
9916 <parameter name="face">
9917 <parameter_description> a #PangoFontFace.
9918 </parameter_description>
9919 </parameter>
9920 <parameter name="sizes">
9921 <parameter_description> location to store a pointer to an array of int. This array
9922 should be freed with g_free().
9923 </parameter_description>
9924 </parameter>
9925 <parameter name="n_sizes">
9926 <parameter_description> location to store the number of elements in @sizes
9927 </parameter_description>
9928 </parameter>
9929 </parameters>
9930 <return></return>
9931 </function>
9932
9933 <function name="pango_x_has_glyph">
9934 <description>
9935 Checks if the given glyph is present in a X font.
9936
9937
9938 </description>
9939 <parameters>
9940 <parameter name="font">
9941 <parameter_description> a #PangoFont which must be from the X backend.
9942 </parameter_description>
9943 </parameter>
9944 <parameter name="glyph">
9945 <parameter_description> the index of a glyph in the font. (Formed
9946 using the #PANGO_X_MAKE_GLYPH macro)
9947 </parameter_description>
9948 </parameter>
9949 </parameters>
9950 <return> %TRUE if the glyph is present.
9951 </return>
9952 </function>
9953
9954 <function name="pango_font_description_set_variant">
9955 <description>
9956 Sets the variant field of a font description. The #PangoVariant
9957 can either be %PANGO_VARIANT_NORMAL or %PANGO_VARIANT_SMALL_CAPS.
9958
9959 </description>
9960 <parameters>
9961 <parameter name="desc">
9962 <parameter_description> a #PangoFontDescription
9963 </parameter_description>
9964 </parameter>
9965 <parameter name="variant">
9966 <parameter_description> the variant type for the font description.
9967 </parameter_description>
9968 </parameter>
9969 </parameters>
9970 <return></return>
9971 </function>
9972
9973 <function name="pango_context_set_font_map">
9974 <description>
9975 Sets the font map to be searched when fonts are looked-up in this context.
9976 This is only for internal use by Pango backends, a #PangoContext obtained
9977 via one of the recommended methods should already have a suitable font map.
9978
9979 </description>
9980 <parameters>
9981 <parameter name="context">
9982 <parameter_description> a #PangoContext
9983 </parameter_description>
9984 </parameter>
9985 <parameter name="font_map">
9986 <parameter_description> the #PangoFontMap to set.
9987 </parameter_description>
9988 </parameter>
9989 </parameters>
9990 <return></return>
9991 </function>
9992
9993 <function name="pango_win32_font_cache_load">
9994 <description>
9995 Creates a HFONT from a LOGFONTA. The
9996 result may be newly loaded, or it may have been previously
9997 stored
9998
9999
10000 </description>
10001 <parameters>
10002 <parameter name="cache">
10003 <parameter_description> a #PangoWin32FontCache
10004 </parameter_description>
10005 </parameter>
10006 <parameter name="logfont">
10007 <parameter_description> a pointer to a LOGFONTA structure describing the font to load.
10008 </parameter_description>
10009 </parameter>
10010 </parameters>
10011 <return> The font structure, or %NULL if the font could
10012 not be loaded. In order to free this structure, you must call
10013 pango_win32_font_cache_unload().
10014 </return>
10015 </function>
10016
10017 <function name="pango_ot_buffer_set_zero_width_marks">
10018 <description>
10019 Sets whether characters with a mark class should be forced to zero width.
10020 This setting is needed for proper positioning of Arabic accents,
10021 but will produce incorrect results with standard OpenType Indic
10022 fonts.
10023
10024 Since: 1.6
10025
10026 </description>
10027 <parameters>
10028 <parameter name="buffer">
10029 <parameter_description> a #PangoOTBuffer
10030 </parameter_description>
10031 </parameter>
10032 <parameter name="zero_width_marks">
10033 <parameter_description> %TRUE if characters with a mark class should
10034 be forced to zero width.
10035 </parameter_description>
10036 </parameter>
10037 </parameters>
10038 <return></return>
10039 </function>
10040
10041 <function name="pango_language_get_default">
10042 <description>
10043 Return value: the default language as a #PangoLanguage, must not be
10044
10045 </description>
10046 <parameters>
10047 </parameters>
10048 <return> the default language as a #PangoLanguage, must not be
10049 freed.
10050
10051 Since: 1.16
10052 </return>
10053 </function>
10054
10055 <function name="pango_layout_set_justify">
10056 <description>
10057 Sets whether each complete line should be stretched to
10058 fill the entire width of the layout. This stretching is typically
10059 done by adding whitespace, but for some scripts (such as Arabic),
10060 the justification may be done in more complex ways, like extending
10061 the characters.
10062
10063 Note that this setting is not implemented and so is ignored in Pango
10064 older than 1.18.
10065
10066 </description>
10067 <parameters>
10068 <parameter name="layout">
10069 <parameter_description> a #PangoLayout
10070 </parameter_description>
10071 </parameter>
10072 <parameter name="justify">
10073 <parameter_description> whether the lines in the layout should be justified.
10074 </parameter_description>
10075 </parameter>
10076 </parameters>
10077 <return></return>
10078 </function>
10079
10080 <function name="pango_attr_iterator_get">
10081 <description>
10082 Find the current attribute of a particular type at the iterator
10083 location. When multiple attributes of the same type overlap,
10084 the attribute whose range starts closest to the current location
10085 is used.
10086
10087
10088 </description>
10089 <parameters>
10090 <parameter name="iterator">
10091 <parameter_description> a #PangoAttrIterator
10092 </parameter_description>
10093 </parameter>
10094 <parameter name="type">
10095 <parameter_description> the type of attribute to find.
10096 </parameter_description>
10097 </parameter>
10098 </parameters>
10099 <return> the current attribute of the given type, or %NULL
10100 if no attribute of that type applies to the current
10101 location.
10102 </return>
10103 </function>
10104
10105 <function name="pango_font_map_list_families">
10106 <description>
10107 List all families for a fontmap.
10108
10109 </description>
10110 <parameters>
10111 <parameter name="fontmap">
10112 <parameter_description> a #PangoFontMap
10113 </parameter_description>
10114 </parameter>
10115 <parameter name="families">
10116 <parameter_description> location to store a pointer to an array of #PangoFontFamily *.
10117 This array should be freed with g_free().
10118 </parameter_description>
10119 </parameter>
10120 <parameter name="n_families">
10121 <parameter_description> location to store the number of elements in @families
10122 </parameter_description>
10123 </parameter>
10124 </parameters>
10125 <return></return>
10126 </function>
10127
10128 <function name="_pango_glyph_item_iter_next_cluster">
10129 <description>
10130 Advances the iterator to the next cluster in the glyph item.
10131
10132
10133 </description>
10134 <parameters>
10135 <parameter name="iter">
10136 <parameter_description> a #PangoGlyphItemIter
10137 </parameter_description>
10138 </parameter>
10139 </parameters>
10140 <return> %TRUE if the iterator was advanced, %FALSE if we were already on the
10141 last cluster.
10142 </return>
10143 </function>
10144
10145 <function name="pango_font_description_get_stretch">
10146 <description>
10147 Gets the stretch field of a font description.
10148 See pango_font_description_set_stretch().
10149
10150
10151 </description>
10152 <parameters>
10153 <parameter name="desc">
10154 <parameter_description> a #PangoFontDescription.
10155 </parameter_description>
10156 </parameter>
10157 </parameters>
10158 <return> the stretch field for the font description. Use
10159 pango_font_description_get_set_fields() to find out if
10160 the field was explicitly set or not.
10161 </return>
10162 </function>
10163
10164 <function name="pango_xft_font_get_font">
10165 <description>
10166 Return value: the XftFont associated to @font.
10167
10168 </description>
10169 <parameters>
10170 <parameter name="font">
10171 <parameter_description> a #PangoFont.
10172 </parameter_description>
10173 </parameter>
10174 </parameters>
10175 <return> the XftFont associated to @font.
10176 </return>
10177 </function>
10178
10179 <function name="pango_item_new">
10180 <description>
10181 Creates a new #PangoItem structure initialized to default values.
10182
10183
10184 </description>
10185 <parameters>
10186 </parameters>
10187 <return> the newly allocated #PangoItem, which should
10188 be freed with pango_item_free().
10189 </return>
10190 </function>
10191
10192 <function name="pango_ot_ruleset_new">
10193 <description>
10194 Creates a new #PangoOTRuleset for the given OpenType info.
10195
10196
10197 </description>
10198 <parameters>
10199 <parameter name="info">
10200 <parameter_description> a #PangoOTInfo.
10201 </parameter_description>
10202 </parameter>
10203 </parameters>
10204 <return> the newly allocated #PangoOTRuleset, which
10205 should be freed with g_object_unref().
10206 </return>
10207 </function>
10208
10209 <function name="pango_layout_get_font_description">
10210 <description>
10211 Gets the font description for the layout, if any.
10212
10213
10214 </description>
10215 <parameters>
10216 <parameter name="layout">
10217 <parameter_description> a #PangoLayout
10218 </parameter_description>
10219 </parameter>
10220 </parameters>
10221 <return> a pointer to the layout&apos;s font description,
10222 or %NULL if the font description from the layout&apos;s
10223 context is inherited. This value is owned by the layout
10224 and must not be modified or freed.
10225
10226 Since: 1.8
10227 </return>
10228 </function>
10229
10230 <function name="pango_attr_variant_new">
10231 <description>
10232 Create a new font variant attribute (normal or small caps)
10233
10234
10235 </description>
10236 <parameters>
10237 <parameter name="variant">
10238 <parameter_description> the variant
10239 </parameter_description>
10240 </parameter>
10241 </parameters>
10242 <return> the newly allocated #PangoAttribute, which should be
10243 freed with pango_attribute_destroy().
10244 </return>
10245 </function>
10246
10247 <function name="pango_layout_line_x_to_index">
10248 <description>
10249 Converts from x offset to the byte index of the corresponding
10250 character within the text of the layout. If @x_pos is outside the line,
10251 @index_ and @trailing will point to the very first or very last position
10252 in the line. This determination is based on the resolved direction
10253 of the paragraph; for example, if the resolved direction is
10254 right-to-left, then an X position to the right of the line (after it)
10255 results in 0 being stored in @index_ and @trailing. An X position to the
10256 left of the line results in @index_ pointing to the (logical) last
10257 grapheme in the line and @trailing being set to the number of characters
10258 in that grapheme. The reverse is true for a left-to-right line.
10259
10260
10261 </description>
10262 <parameters>
10263 <parameter name="line">
10264 <parameter_description>      a #PangoLayoutLine
10265 </parameter_description>
10266 </parameter>
10267 <parameter name="x_pos">
10268 <parameter_description>     the X offset (in #PangoGlyphUnit)
10269 from the left edge of the line.
10270 </parameter_description>
10271 </parameter>
10272 <parameter name="index_">
10273 <parameter_description>    location to store calculated byte index for
10274 the grapheme in which the user clicked.
10275 </parameter_description>
10276 </parameter>
10277 <parameter name="trailing">
10278 <parameter_description>  location to store a integer indicating where
10279 in the grapheme the user clicked. It will either
10280 be zero, or the number of characters in the
10281 grapheme. 0 represents the trailing edge of the grapheme.
10282 </parameter_description>
10283 </parameter>
10284 </parameters>
10285 <return> %FALSE if @x_pos was outside the line, %TRUE if inside
10286 </return>
10287 </function>
10288
10289 <function name="pango_matrix_copy">
10290 <description>
10291 Copies a #PangoMatrix.
10292
10293
10294 </description>
10295 <parameters>
10296 <parameter name="matrix">
10297 <parameter_description> a #PangoMatrix, can be %NULL
10298 </parameter_description>
10299 </parameter>
10300 </parameters>
10301 <return> the newly allocated #PangoMatrix, which should
10302 be freed with pango_matrix_free(), or %NULL if
10303 @matrix was %NULL.
10304
10305 Since: 1.6
10306 </return>
10307 </function>
10308
10309 <function name="pango_layout_line_unref">
10310 <description>
10311 Decrease the reference count of a #PangoLayoutLine by one.
10312 If the result is zero, the line and all associated memory
10313 will be freed.
10314
10315 </description>
10316 <parameters>
10317 <parameter name="line">
10318 <parameter_description> a #PangoLayoutLine
10319 </parameter_description>
10320 </parameter>
10321 </parameters>
10322 <return></return>
10323 </function>
10324
10325 <function name="_pango_glyph_item_iter_init_end">
10326 <description>
10327 Initializes a #PangoGlyphItemIter structure to point to the
10328 last cluster in a glyph item.
10329
10330
10331 </description>
10332 <parameters>
10333 <parameter name="iter">
10334 <parameter_description> pointer to a #PangoGlyphItemIter structure
10335 </parameter_description>
10336 </parameter>
10337 <parameter name="glyph_item">
10338 <parameter_description> the glyph item that @iter points into
10339 </parameter_description>
10340 </parameter>
10341 <parameter name="text">
10342 <parameter_description> text corresponding to the glyph item
10343 </parameter_description>
10344 </parameter>
10345 </parameters>
10346 <return> %FALSE if there are no clusters in the glyph item;
10347 in this case, the state of @iter is undefined.
10348 </return>
10349 </function>
10350
10351 <function name="pango_x_font_cache_unload">
10352 <description>
10353 Frees a font structure previously loaded with pango_x_font_cache_load().
10354
10355 </description>
10356 <parameters>
10357 <parameter name="cache">
10358 <parameter_description> a #PangoXFontCache
10359 </parameter_description>
10360 </parameter>
10361 <parameter name="fs">
10362 <parameter_description> the font structure to unload
10363 </parameter_description>
10364 </parameter>
10365 </parameters>
10366 <return></return>
10367 </function>
10368
10369 <function name="pango_renderer_draw_glyphs">
10370 <description>
10371 Draws the glyphs in @glyphs with the specified #PangoRenderer.
10372
10373 Since: 1.8
10374
10375 </description>
10376 <parameters>
10377 <parameter name="renderer">
10378 <parameter_description> a #PangoRenderer
10379 </parameter_description>
10380 </parameter>
10381 <parameter name="font">
10382 <parameter_description> a #PangoFont
10383 </parameter_description>
10384 </parameter>
10385 <parameter name="glyphs">
10386 <parameter_description> a #PangoGlyphString
10387 </parameter_description>
10388 </parameter>
10389 <parameter name="x">
10390 <parameter_description> X position of left edge of baseline, in user space coordinates
10391 in Pango units.
10392 </parameter_description>
10393 </parameter>
10394 <parameter name="y">
10395 <parameter_description> Y position of left edge of baseline, in user space coordinates
10396 in Pango units.
10397 </parameter_description>
10398 </parameter>
10399 </parameters>
10400 <return></return>
10401 </function>
10402
10403 <function name="pango_version_string">
10404 <description>
10405 This is similar to the macro %PANGO_VERSION_STRING except that
10406 it returns the version of Pango available at run-time, as opposed to
10407 the version available at compile-time.
10408
10409
10410 </description>
10411 <parameters>
10412 </parameters>
10413 <return>value: A string containing the version of Pango library
10414 available at run time.
10415 The returned string is owned by Pango and should not be modified
10416 or freed.
10417
10418 Since: 1.16
10419 </return>
10420 </function>
10421
10422 <function name="pango_glyph_string_new">
10423 <description>
10424 Create a new #PangoGlyphString.
10425
10426
10427 </description>
10428 <parameters>
10429 </parameters>
10430 <return> the newly allocated #PangoGlyphString, which
10431 should be freed with pango_glyph_string_free().
10432 </return>
10433 </function>
10434
10435 <function name="_pango_xft_font_get_mini_font">
10436 <description>
10437 Gets the font used for drawing the digits in the
10438 missing-character hex squares
10439
10440
10441 </description>
10442 <parameters>
10443 <parameter name="xfont">
10444 <parameter_description> a #PangoXftFont
10445 </parameter_description>
10446 </parameter>
10447 </parameters>
10448 <return> the #PangoFont used for the digits; this
10449 value is associated with the main font and will be freed
10450 along with the main font.
10451 </return>
10452 </function>
10453
10454 <function name="pango_layout_get_log_attrs">
10455 <description>
10456 Retrieves an array of logical attributes for each character in
10457 the @layout.
10458
10459 </description>
10460 <parameters>
10461 <parameter name="layout">
10462 <parameter_description> a #PangoLayout
10463 </parameter_description>
10464 </parameter>
10465 <parameter name="attrs">
10466 <parameter_description> location to store a pointer to an array of logical attributes
10467 This value must be freed with g_free().
10468 </parameter_description>
10469 </parameter>
10470 <parameter name="n_attrs">
10471 <parameter_description> location to store the number of the attributes in the
10472 array. (The stored value will be one more than the total number
10473 of characters in the layout, since there need to be attributes
10474 corresponding to both the position before the first character
10475 and the position after the last character.)
10476 </parameter_description>
10477 </parameter>
10478 </parameters>
10479 <return></return>
10480 </function>
10481
10482 <function name="pango_glyph_string_free">
10483 <description>
10484 Free a glyph string and associated storage.
10485
10486 </description>
10487 <parameters>
10488 <parameter name="string">
10489 <parameter_description>    a #PangoGlyphString.
10490 </parameter_description>
10491 </parameter>
10492 </parameters>
10493 <return></return>
10494 </function>
10495
10496 <function name="_pango_layout_line_ellipsize">
10497 <description>
10498 Given a #PangoLayoutLine with the runs still in logical order, ellipsize
10499 it according the layout&apos;s policy to fit within the set width of the layout.
10500
10501
10502 </description>
10503 <parameters>
10504 <parameter name="line">
10505 <parameter_description> a #PangoLayoutLine
10506 </parameter_description>
10507 </parameter>
10508 <parameter name="attrs">
10509 <parameter_description> Attributes being used for itemization/shaping
10510 </parameter_description>
10511 </parameter>
10512 </parameters>
10513 <return> whether the line had to be ellipsized
10514 </return>
10515 </function>
10516
10517 <function name="pango_gravity_get_for_matrix">
10518 <description>
10519 Finds the gravity that best matches the rotation component
10520 in a #PangoMatrix.
10521
10522
10523 </description>
10524 <parameters>
10525 <parameter name="matrix">
10526 <parameter_description> a #PangoMatrix
10527 </parameter_description>
10528 </parameter>
10529 </parameters>
10530 <return> the gravity of @matrix, which will never be
10531 %PANGO_GRAVITY_AUTO, or %PANGO_GRAVITY_SOUTH if @matrix is %NULL
10532
10533 Since: 1.16
10534 </return>
10535 </function>
10536
10537 <function name="pango_cairo_error_underline_path">
10538 <description>
10539 Add a squiggly line to the current path in the specified cairo context that
10540 approximately covers the given rectangle in the style of an underline used
10541 to indicate a spelling error.  (The width of the underline is rounded to an
10542 integer number of up/down segments and the resulting rectangle is centered
10543 in the original rectangle)
10544
10545 Since: 1.14
10546
10547 </description>
10548 <parameters>
10549 <parameter name="cr">
10550 <parameter_description> a Cairo context
10551 </parameter_description>
10552 </parameter>
10553 <parameter name="x">
10554 <parameter_description> The X coordinate of one corner of the rectangle
10555 </parameter_description>
10556 </parameter>
10557 <parameter name="y">
10558 <parameter_description> The Y coordinate of one corner of the rectangle
10559 </parameter_description>
10560 </parameter>
10561 <parameter name="width">
10562 <parameter_description> Non-negative width of the rectangle
10563 </parameter_description>
10564 </parameter>
10565 <parameter name="height">
10566 <parameter_description> Non-negative height of the rectangle
10567 </parameter_description>
10568 </parameter>
10569 </parameters>
10570 <return></return>
10571 </function>
10572
10573 <function name="pango_layout_get_single_paragraph_mode">
10574 <description>
10575 Obtains the value set by pango_layout_set_single_paragraph_mode().
10576
10577
10578 </description>
10579 <parameters>
10580 <parameter name="layout">
10581 <parameter_description> a #PangoLayout
10582 </parameter_description>
10583 </parameter>
10584 </parameters>
10585 <return> %TRUE if the layout does not break paragraphs at
10586 paragraph separator characters, %FALSE otherwise.
10587 </return>
10588 </function>
10589
10590 <function name="pango_cairo_context_get_resolution">
10591 <description>
10592 Gets the resolution for the context. See pango_cairo_context_set_resolution()
10593
10594
10595 </description>
10596 <parameters>
10597 <parameter name="context">
10598 <parameter_description> a #PangoContext, from pango_cairo_font_map_create_context()
10599 </parameter_description>
10600 </parameter>
10601 </parameters>
10602 <return> the resolution in &quot;dots per inch&quot;. A negative value will
10603 be returned if no resolution has previously been set.
10604
10605 Since: 1.10
10606 </return>
10607 </function>
10608
10609 <function name="pango_font_metrics_ref">
10610 <description>
10611 Increase the reference count of a font metrics structure by one.
10612
10613
10614 </description>
10615 <parameters>
10616 <parameter name="metrics">
10617 <parameter_description> a #PangoFontMetrics structure
10618 </parameter_description>
10619 </parameter>
10620 </parameters>
10621 <return> @metrics
10622 </return>
10623 </function>
10624
10625 <function name="pango_attr_rise_new">
10626 <description>
10627 Create a new baseline displacement attribute.
10628
10629
10630 </description>
10631 <parameters>
10632 <parameter name="rise">
10633 <parameter_description> the amount that the text should be displaced vertically,
10634 in Pango units. Positive values displace the text upwards.
10635 </parameter_description>
10636 </parameter>
10637 </parameters>
10638 <return> the newly allocated #PangoAttribute, which should be
10639 freed with pango_attribute_destroy().
10640 </return>
10641 </function>
10642
10643 <function name="pango_layout_get_size">
10644 <description>
10645 Determines the logical width and height of a #PangoLayout
10646 in Pango units (device units scaled by %PANGO_SCALE). This
10647 is simply a convenience function around pango_layout_get_extents().
10648
10649 </description>
10650 <parameters>
10651 <parameter name="layout">
10652 <parameter_description> a #PangoLayout
10653 </parameter_description>
10654 </parameter>
10655 <parameter name="width">
10656 <parameter_description> location to store the logical width, or %NULL
10657 </parameter_description>
10658 </parameter>
10659 <parameter name="height">
10660 <parameter_description> location to store the logical height, or %NULL
10661 </parameter_description>
10662 </parameter>
10663 </parameters>
10664 <return></return>
10665 </function>
10666
10667 <function name="pango_context_new">
10668 <description>
10669 Creates a new #PangoContext initialized to default value.
10670
10671 This function is only useful when implementing a new backend
10672 for Pango, something applications won&apos;t do. You should use
10673 the context creation function for the backend you are using,
10674 for example, pango_cairo_font_map_create_context(), pango_xft_get_context(),
10675 pango_win32_get_context() or, pango_ft2_font_map_create_context().
10676
10677 If you are using Pango as part of a higher-level system,
10678 that system may have it&apos;s own ways of create a #PangoContext.
10679 For instance, the GTK+ toolkit has, among others,
10680 gdk_pango_context_get_for_screen(), and
10681 gtk_widget_get_pango_context().
10682
10683
10684 </description>
10685 <parameters>
10686 </parameters>
10687 <return> the newly allocated #PangoContext, which should
10688 be freed with g_object_unref().
10689 </return>
10690 </function>
10691
10692 <function name="pango_itemize_with_base_dir">
10693 <description>
10694 Like pango_itemize(), but the base direction to use when
10695 computing bidirectional levels (see pango_context_set_base_dir ()),
10696 is specified explicitly rather than gotten from the #PangoContext.
10697
10698
10699 </description>
10700 <parameters>
10701 <parameter name="context">
10702 <parameter_description>   a structure holding information that affects
10703                the itemization process.
10704 </parameter_description>
10705 </parameter>
10706 <parameter name="text">
10707 <parameter_description>      the text to itemize.
10708 </parameter_description>
10709 </parameter>
10710 <parameter name="start_index">
10711 <parameter_description> first byte in @text to process
10712 </parameter_description>
10713 </parameter>
10714 <parameter name="length">
10715 <parameter_description>    the number of bytes (not characters) to process
10716 after @start_index.
10717 This must be &amp;gt;= 0.
10718 </parameter_description>
10719 </parameter>
10720 <parameter name="base_dir">
10721 <parameter_description>  base direction to use for bidirectional processing
10722 </parameter_description>
10723 </parameter>
10724 <parameter name="attrs">
10725 <parameter_description>     the set of attributes that apply to @text.
10726 </parameter_description>
10727 </parameter>
10728 <parameter name="cached_iter">
10729 <parameter_description>      Cached attribute iterator, or %NULL
10730 </parameter_description>
10731 </parameter>
10732 </parameters>
10733 <return> a #GList of #PangoItem structures.  The items should be
10734 freed using pango_item_free() probably in combination with g_list_foreach(),
10735 and the list itself using g_list_free().
10736
10737 Since: 1.4
10738 </return>
10739 </function>
10740
10741 <function name="pango_xft_picture_render">
10742 <description>
10743 Renders a #PangoGlyphString onto an Xrender &amp;lt;type&amp;gt;Picture&amp;lt;/type&amp;gt; object.
10744
10745 </description>
10746 <parameters>
10747 <parameter name="display">
10748 <parameter_description>      an X display
10749 </parameter_description>
10750 </parameter>
10751 <parameter name="src_picture">
10752 <parameter_description>  the source picture to draw the string with
10753 </parameter_description>
10754 </parameter>
10755 <parameter name="dest_picture">
10756 <parameter_description> the destination picture to draw the string onto
10757 </parameter_description>
10758 </parameter>
10759 <parameter name="font">
10760 <parameter_description>         the font in which to draw the string
10761 </parameter_description>
10762 </parameter>
10763 <parameter name="glyphs">
10764 <parameter_description>       the glyph string to draw
10765 </parameter_description>
10766 </parameter>
10767 <parameter name="x">
10768 <parameter_description>            the x position of start of string (in pixels)
10769 </parameter_description>
10770 </parameter>
10771 <parameter name="y">
10772 <parameter_description>            the y position of baseline (in pixels)
10773 </parameter_description>
10774 </parameter>
10775 </parameters>
10776 <return></return>
10777 </function>
10778
10779 <function name="pango_layout_line_get_x_ranges">
10780 <description>
10781 Gets a list of visual ranges corresponding to a given logical range.
10782 This list is not necessarily minimal - there may be consecutive
10783 ranges which are adjacent. The ranges will be sorted from left to
10784 right. The ranges are with respect to the left edge of the entire
10785 layout, not with respect to the line.
10786
10787 </description>
10788 <parameters>
10789 <parameter name="line">
10790 <parameter_description>        a #PangoLayoutLine
10791 </parameter_description>
10792 </parameter>
10793 <parameter name="start_index">
10794 <parameter_description> Start byte index of the logical range. If this value
10795 is less than the start index for the line, then
10796 the first range will extend all the way to the leading
10797 edge of the layout. Otherwise it will start at the
10798 leading edge of the first character.
10799 </parameter_description>
10800 </parameter>
10801 <parameter name="end_index">
10802 <parameter_description>   Ending byte index of the logical range. If this value
10803 is greater than the end index for the line, then
10804 the last range will extend all the way to the trailing
10805 edge of the layout. Otherwise, it will end at the
10806 trailing edge of the last character.
10807 </parameter_description>
10808 </parameter>
10809 <parameter name="ranges">
10810 <parameter_description>      location to store a pointer to an array of ranges.
10811 The array will be of length &amp;lt;literal&amp;gt;2*n_ranges&amp;lt;/literal&amp;gt;,
10812 with each range starting at &amp;lt;literal&amp;gt;(*ranges)[2*n]&amp;lt;/literal&amp;gt;
10813 and of width &amp;lt;literal&amp;gt;(*ranges)[2*n + 1] - (*ranges)[2*n]&amp;lt;/literal&amp;gt;.
10814 This array must be freed with g_free(). The coordinates are relative
10815 to the layout and are in #PangoGlyphUnit.
10816 </parameter_description>
10817 </parameter>
10818 <parameter name="n_ranges">
10819 <parameter_description> The number of ranges stored in @ranges.
10820 </parameter_description>
10821 </parameter>
10822 </parameters>
10823 <return></return>
10824 </function>
10825
10826 <function name="pango_attr_iterator_destroy">
10827 <description>
10828 Destroy a #PangoAttrIterator and free all associated memory.
10829
10830 </description>
10831 <parameters>
10832 <parameter name="iterator">
10833 <parameter_description> a #PangoAttrIterator.
10834 </parameter_description>
10835 </parameter>
10836 </parameters>
10837 <return></return>
10838 </function>
10839
10840 <function name="pango_ot_info_list_features">
10841 <description>
10842 Obtains the list of features for the given language of the given script.
10843
10844
10845 </description>
10846 <parameters>
10847 <parameter name="info">
10848 <parameter_description> a #PangoOTInfo.
10849 </parameter_description>
10850 </parameter>
10851 <parameter name="table_type">
10852 <parameter_description> the table type to obtain information about.
10853 </parameter_description>
10854 </parameter>
10855 <parameter name="tag">
10856 <parameter_description> unused parameter.
10857 </parameter_description>
10858 </parameter>
10859 <parameter name="script_index">
10860 <parameter_description> the index of the script to obtain information about.
10861 </parameter_description>
10862 </parameter>
10863 <parameter name="language_index">
10864 <parameter_description> the index of the language to list features for, or
10865 %PANGO_OT_DEFAULT_LANGUAGE, to list features for the default
10866 language of the script.
10867 </parameter_description>
10868 </parameter>
10869 </parameters>
10870 <return> a newly-allocated zero-terminated array containing the tags of the
10871 available features.  Should be freed using g_free().
10872 </return>
10873 </function>
10874
10875 <function name="pango_font_metrics_unref">
10876 <description>
10877 Decrease the reference count of a font metrics structure by one. If
10878 the result is zero, frees the structure and any associated
10879 memory.
10880
10881 </description>
10882 <parameters>
10883 <parameter name="metrics">
10884 <parameter_description> a #PangoFontMetrics structure
10885 </parameter_description>
10886 </parameter>
10887 </parameters>
10888 <return></return>
10889 </function>
10890
10891 <function name="pango_xft_render_layout_line">
10892 <description>
10893 Render a #PangoLayoutLine onto a #XftDraw
10894
10895 Since: 1.8
10896
10897 </description>
10898 <parameters>
10899 <parameter name="draw">
10900 <parameter_description>      an #XftDraw
10901 </parameter_description>
10902 </parameter>
10903 <parameter name="color">
10904 <parameter_description>     the foreground color in which to draw the layout line
10905 (may be overridden by color attributes)
10906 </parameter_description>
10907 </parameter>
10908 <parameter name="line">
10909 <parameter_description>      a #PangoLayoutLine
10910 </parameter_description>
10911 </parameter>
10912 <parameter name="x">
10913 <parameter_description>         the x position of start of string (in Pango units)
10914 </parameter_description>
10915 </parameter>
10916 <parameter name="y">
10917 <parameter_description>         the y position of baseline (in Pango units)
10918 </parameter_description>
10919 </parameter>
10920 </parameters>
10921 <return></return>
10922 </function>
10923
10924 <function name="pango_win32_font_description_from_logfontw">
10925 <description>
10926 Creates a #PangoFontDescription that matches the specified LOGFONTW.
10927
10928 The face name, italicness and weight fields in the LOGFONTW are used
10929 to set up the resulting #PangoFontDescription. If the face name in
10930 the LOGFONTW contains non-ASCII characters the font is temporarily
10931 loaded (using CreateFontIndirect()) and an ASCII (usually English)
10932 name for it is looked up from the font name tables in the font
10933 data. If that doesn&apos;t work, the face name is converted from UTF-16
10934 to UTF-8 and that is used.
10935
10936
10937 </description>
10938 <parameters>
10939 <parameter name="lfp">
10940 <parameter_description> a LOGFONTW
10941 </parameter_description>
10942 </parameter>
10943 </parameters>
10944 <return> the newly allocated #PangoFontDescription, which
10945 should be freed using pango_font_description_free()
10946
10947 Since: 1.16
10948 </return>
10949 </function>
10950
10951 <function name="pango_context_get_gravity">
10952 <description>
10953 Retrieves the gravity for the context. This is similar to
10954 pango_context_get_base_gravity(), except for when the base gravity
10955 is %PANGO_GRAVITY_AUTO for which pango_gravity_get_for_matrix() is used
10956 to return the gravity from the current context matrix.
10957
10958
10959 </description>
10960 <parameters>
10961 <parameter name="context">
10962 <parameter_description> a #PangoContext
10963 </parameter_description>
10964 </parameter>
10965 </parameters>
10966 <return> the resolved gravity for the context.
10967
10968 Since: 1.16
10969 </return>
10970 </function>
10971
10972 <function name="pango_font_description_copy_static">
10973 <description>
10974 Like pango_font_description_copy(), but only a shallow copy is made
10975 of the family name and other allocated fields. The result can only
10976 be used until @desc is modified or freed. This is meant to be used
10977 when the copy is only needed temporarily.
10978
10979
10980 </description>
10981 <parameters>
10982 <parameter name="desc">
10983 <parameter_description> a #PangoFontDescription
10984 </parameter_description>
10985 </parameter>
10986 </parameters>
10987 <return> the newly allocated #PangoFontDescription, which should
10988 be freed with pango_font_description_free().
10989 </return>
10990 </function>
10991
10992 <function name="pango_is_zero_width">
10993 <description>
10994 Checks @ch to see if it is a character that should not be
10995 normally rendered on the screen.  This includes all Unicode characters
10996 with &quot;ZERO WIDTH&quot; in their name, as well as &amp;lt;firstterm&amp;gt;bidi&amp;lt;/firstterm&amp;gt; formatting characters, and
10997 a few other ones.  This is totally different from g_unichar_iszerowidth()
10998 and is at best misnamed.
10999
11000
11001 </description>
11002 <parameters>
11003 <parameter name="ch">
11004 <parameter_description> a Unicode character
11005 </parameter_description>
11006 </parameter>
11007 </parameters>
11008 <return> %TRUE if @ch is a zero-width character, %FALSE otherwise
11009
11010 Since: 1.10
11011 </return>
11012 </function>
11013
11014 <function name="pango_attr_style_new">
11015 <description>
11016 Create a new font slant style attribute.
11017
11018
11019 </description>
11020 <parameters>
11021 <parameter name="style">
11022 <parameter_description> the slant style
11023 </parameter_description>
11024 </parameter>
11025 </parameters>
11026 <return> the newly allocated #PangoAttribute, which should be
11027 freed with pango_attribute_destroy().
11028 </return>
11029 </function>
11030
11031 <function name="pango_font_get_font_map">
11032 <description>
11033 Gets the font map for which the font was created.
11034
11035
11036 </description>
11037 <parameters>
11038 <parameter name="font">
11039 <parameter_description> a #PangoFont
11040 </parameter_description>
11041 </parameter>
11042 </parameters>
11043 <return> the #PangoFontMap for the font
11044
11045 Since: 1.10
11046 </return>
11047 </function>
11048
11049 <function name="pango_layout_iter_next_run">
11050 <description>
11051 Moves @iter forward to the next run in visual order. If @iter was
11052 already at the end of the layout, returns %FALSE.
11053
11054
11055 </description>
11056 <parameters>
11057 <parameter name="iter">
11058 <parameter_description> a #PangoLayoutIter
11059 </parameter_description>
11060 </parameter>
11061 </parameters>
11062 <return> whether motion was possible.
11063 </return>
11064 </function>
11065
11066 <function name="pango_cairo_update_context">
11067 <description>
11068 Updates a #PangoContext previously created for use with Cairo to
11069 match the current transformation and target surface of a Cairo
11070 context. If any layouts have been created for the context,
11071 it&apos;s necessary to call pango_layout_context_changed() on those
11072 layouts.
11073
11074 Since: 1.10
11075
11076 </description>
11077 <parameters>
11078 <parameter name="cr">
11079 <parameter_description> a Cairo context
11080 </parameter_description>
11081 </parameter>
11082 <parameter name="context">
11083 <parameter_description> a #PangoContext, from pango_cairo_font_map_create_context()
11084 </parameter_description>
11085 </parameter>
11086 </parameters>
11087 <return></return>
11088 </function>
11089
11090 <function name="pango_layout_get_context">
11091 <description>
11092 Retrieves the #PangoContext used for this layout.
11093
11094
11095 </description>
11096 <parameters>
11097 <parameter name="layout">
11098 <parameter_description> a #PangoLayout
11099 </parameter_description>
11100 </parameter>
11101 </parameters>
11102 <return> the #PangoContext for the layout. This does not
11103 have an additional refcount added, so if you want to keep
11104 a copy of this around, you must reference it yourself.
11105 </return>
11106 </function>
11107
11108 <function name="pango_parse_style">
11109 <description>
11110 Parses a font style. The allowed values are &quot;normal&quot;,
11111 &quot;italic&quot; and &quot;oblique&quot;, case variations being
11112 ignored.
11113
11114
11115 </description>
11116 <parameters>
11117 <parameter name="str">
11118 <parameter_description> a string to parse.
11119 </parameter_description>
11120 </parameter>
11121 <parameter name="style">
11122 <parameter_description> a #PangoStyle to store the result in.
11123 </parameter_description>
11124 </parameter>
11125 <parameter name="warn">
11126 <parameter_description> if %TRUE, issue a g_warning() on bad input.
11127 </parameter_description>
11128 </parameter>
11129 </parameters>
11130 <return> %TRUE if @str was successfully parsed.
11131 </return>
11132 </function>
11133
11134 <function name="pango_attr_strikethrough_new">
11135 <description>
11136 Create a new strike-through attribute.
11137
11138
11139 </description>
11140 <parameters>
11141 <parameter name="strikethrough">
11142 <parameter_description> %TRUE if the text should be struck-through.
11143 </parameter_description>
11144 </parameter>
11145 </parameters>
11146 <return> the newly allocated #PangoAttribute, which should be
11147 freed with pango_attribute_destroy().
11148 </return>
11149 </function>
11150
11151 <function name="pango_glyph_string_copy">
11152 <description>
11153 Copy a glyph string and associated storage.
11154
11155
11156 </description>
11157 <parameters>
11158 <parameter name="string">
11159 <parameter_description> a #PangoGlyphString.
11160 </parameter_description>
11161 </parameter>
11162 </parameters>
11163 <return> the newly allocated #PangoGlyphString, which
11164 should be freed with pango_glyph_string_free().
11165 </return>
11166 </function>
11167
11168 <function name="pango_layout_get_line_count">
11169 <description>
11170 Retrieves the count of lines for the @layout.
11171
11172
11173 </description>
11174 <parameters>
11175 <parameter name="layout">
11176 <parameter_description> #PangoLayout
11177 </parameter_description>
11178 </parameter>
11179 </parameters>
11180 <return> the line count.
11181 </return>
11182 </function>
11183
11184 <function name="pango_layout_iter_get_line_yrange">
11185 <description>
11186 Divides the vertical space in the #PangoLayout being iterated over
11187 between the lines in the layout, and returns the space belonging to
11188 the current line.  A line&apos;s range includes the line&apos;s logical
11189 extents, plus half of the spacing above and below the line, if
11190 pango_layout_set_spacing() has been called to set layout spacing.
11191 The Y positions are in layout coordinates (origin at top left of the
11192 entire layout).
11193
11194
11195 </description>
11196 <parameters>
11197 <parameter name="iter">
11198 <parameter_description> a #PangoLayoutIter
11199 </parameter_description>
11200 </parameter>
11201 <parameter name="y0_">
11202 <parameter_description> start of line
11203 </parameter_description>
11204 </parameter>
11205 <parameter name="y1_">
11206 <parameter_description> end of line
11207 </parameter_description>
11208 </parameter>
11209 </parameters>
11210 <return></return>
11211 </function>
11212
11213 <function name="pango_log2vis_get_embedding_levels">
11214 <description>
11215 This will return the bidirectional embedding levels of the input paragraph
11216 as defined by the Unicode Bidirectional Algorithm available at:
11217
11218 http://www.unicode.org/reports/tr9/
11219
11220 If the input base direction is a weak direction, the direction of the
11221 characters in the text will determine the final resolved direction.
11222
11223
11224 </description>
11225 <parameters>
11226 <parameter name="text">
11227 <parameter_description>      the text to itemize.
11228 </parameter_description>
11229 </parameter>
11230 <parameter name="length">
11231 <parameter_description>    the number of bytes (not characters) to process, or -1
11232 if @text is nul-terminated and the length should be calculated.
11233 </parameter_description>
11234 </parameter>
11235 <parameter name="pbase_dir">
11236 <parameter_description> input base direction, and output resolved direction.
11237 </parameter_description>
11238 </parameter>
11239 </parameters>
11240 <return> a newly allocated array of embedding levels, one item per
11241 character (not byte), that should be freed using g_free.
11242
11243 Since: 1.4
11244 </return>
11245 </function>
11246
11247 <function name="pango_glyph_string_extents">
11248 <description>
11249 Compute the logical and ink extents of a glyph string. See the documentation
11250 for pango_font_get_glyph_extents() for details about the interpretation
11251 of the rectangles.
11252
11253 </description>
11254 <parameters>
11255 <parameter name="glyphs">
11256 <parameter_description>   a #PangoGlyphString
11257 </parameter_description>
11258 </parameter>
11259 <parameter name="font">
11260 <parameter_description>     a #PangoFont
11261 </parameter_description>
11262 </parameter>
11263 <parameter name="ink_rect">
11264 <parameter_description> rectangle used to store the extents of the glyph string as drawn
11265 or %NULL to indicate that the result is not needed.
11266 </parameter_description>
11267 </parameter>
11268 <parameter name="logical_rect">
11269 <parameter_description> rectangle used to store the logical extents of the glyph string
11270 or %NULL to indicate that the result is not needed.
11271 </parameter_description>
11272 </parameter>
11273 </parameters>
11274 <return></return>
11275 </function>
11276
11277 <function name="pango_xft_render_transformed">
11278 <description>
11279 Renders a #PangoGlyphString onto a #XftDraw, possibly
11280 transforming the layed-out coordinates through a transformation
11281 matrix. Note that the transformation matrix for @font is not
11282 changed, so to produce correct rendering results, the @font
11283 must have been loaded using a #PangoContext with an identical
11284 transformation matrix to that passed in to this function.
11285
11286 Since: 1.8
11287
11288 </description>
11289 <parameters>
11290 <parameter name="draw">
11291 <parameter_description>    an #XftDraw
11292 </parameter_description>
11293 </parameter>
11294 <parameter name="color">
11295 <parameter_description>   the color in which to draw the glyphs
11296 </parameter_description>
11297 </parameter>
11298 <parameter name="font">
11299 <parameter_description>    the font in which to draw the string
11300 </parameter_description>
11301 </parameter>
11302 <parameter name="matrix">
11303 <parameter_description>  a #PangoMatrix, or %NULL to use an identity transformation
11304 </parameter_description>
11305 </parameter>
11306 <parameter name="glyphs">
11307 <parameter_description>  the glyph string to draw
11308 </parameter_description>
11309 </parameter>
11310 <parameter name="x">
11311 <parameter_description>       the x position of the start of the string (in Pango
11312 units in user space coordinates)
11313 </parameter_description>
11314 </parameter>
11315 <parameter name="y">
11316 <parameter_description>       the y position of the baseline (in Pango units
11317 in user space coordinates)
11318 </parameter_description>
11319 </parameter>
11320 </parameters>
11321 <return></return>
11322 </function>
11323
11324 <function name="pango_layout_set_single_paragraph_mode">
11325 <description>
11326 If @setting is %TRUE, do not treat newlines and similar characters
11327 as paragraph separators; instead, keep all text in a single paragraph,
11328 and display a glyph for paragraph separator characters. Used when
11329 you want to allow editing of newlines on a single text line.
11330
11331
11332 </description>
11333 <parameters>
11334 <parameter name="layout">
11335 <parameter_description> a #PangoLayout
11336 </parameter_description>
11337 </parameter>
11338 <parameter name="setting">
11339 <parameter_description> new setting
11340 </parameter_description>
11341 </parameter>
11342 </parameters>
11343 <return></return>
11344 </function>
11345
11346 <function name="pango_win32_get_dc">
11347 <description>
11348 Obtains a handle to the Windows device context that is used by Pango.
11349
11350
11351 </description>
11352 <parameters>
11353 </parameters>
11354 <return> A handle to the Windows device context that is used by Pango.
11355 </return>
11356 </function>
11357
11358 <function name="pango_layout_iter_get_line_extents">
11359 <description>
11360 Obtains the extents of the current line. @ink_rect or @logical_rect
11361 can be %NULL if you aren&apos;t interested in them. Extents are in layout
11362 coordinates (origin is the top-left corner of the entire
11363 #PangoLayout).  Thus the extents returned by this function will be
11364 the same width/height but not at the same x/y as the extents
11365 returned from pango_layout_line_get_extents().
11366
11367
11368 </description>
11369 <parameters>
11370 <parameter name="iter">
11371 <parameter_description> a #PangoLayoutIter
11372 </parameter_description>
11373 </parameter>
11374 <parameter name="ink_rect">
11375 <parameter_description> rectangle to fill with ink extents, or %NULL
11376 </parameter_description>
11377 </parameter>
11378 <parameter name="logical_rect">
11379 <parameter_description> rectangle to fill with logical extents, or %NULL
11380 </parameter_description>
11381 </parameter>
11382 </parameters>
11383 <return></return>
11384 </function>
11385
11386 <function name="pango_layout_iter_next_char">
11387 <description>
11388 Moves @iter forward to the next character in visual order. If @iter was already at
11389 the end of the layout, returns %FALSE.
11390
11391
11392 </description>
11393 <parameters>
11394 <parameter name="iter">
11395 <parameter_description> a #PangoLayoutIter
11396 </parameter_description>
11397 </parameter>
11398 </parameters>
11399 <return> whether motion was possible.
11400 </return>
11401 </function>
11402
11403 <function name="_pango_cairo_context_merge_font_options">
11404 <description>
11405 Merge together options from the target surface and explicitly set
11406 on the context.
11407
11408
11409 </description>
11410 <parameters>
11411 <parameter name="context">
11412 <parameter_description> a #PangoContext
11413 </parameter_description>
11414 </parameter>
11415 <parameter name="options">
11416 <parameter_description> a #cairo_font_options_t
11417 </parameter_description>
11418 </parameter>
11419 </parameters>
11420 <return> the combined set of font options. This value is owned
11421 by the context and must not be modified or freed.
11422 </return>
11423 </function>
11424
11425 <function name="pango_font_description_set_style">
11426 <description>
11427 Sets the style field of a #PangoFontDescription. The
11428 #PangoStyle enumeration describes whether the font is slanted and
11429 the manner in which it is slanted; it can be either
11430 #PANGO_STYLE_NORMAL, #PANGO_STYLE_ITALIC, or #PANGO_STYLE_OBLIQUE.
11431 Most fonts will either have a italic style or an oblique
11432 style, but not both, and font matching in Pango will
11433 match italic specifications with oblique fonts and vice-versa
11434 if an exact match is not found.
11435
11436 </description>
11437 <parameters>
11438 <parameter name="desc">
11439 <parameter_description> a #PangoFontDescription
11440 </parameter_description>
11441 </parameter>
11442 <parameter name="style">
11443 <parameter_description> the style for the font description
11444 </parameter_description>
11445 </parameter>
11446 </parameters>
11447 <return></return>
11448 </function>
11449
11450 <function name="pango_attr_shape_new">
11451 <description>
11452 Create a new shape attribute. A shape is used to impose a
11453 particular ink and logical rectangle on the result of shaping a
11454 particular glyph. This might be used, for instance, for
11455 embedding a picture or a widget inside a #PangoLayout.
11456
11457
11458 </description>
11459 <parameters>
11460 <parameter name="ink_rect">
11461 <parameter_description>     ink rectangle to assign to each character
11462 </parameter_description>
11463 </parameter>
11464 <parameter name="logical_rect">
11465 <parameter_description> logical rectangle to assign to each character
11466 </parameter_description>
11467 </parameter>
11468 </parameters>
11469 <return> the newly allocated #PangoAttribute, which should be
11470 freed with pango_attribute_destroy().
11471 </return>
11472 </function>
11473
11474 <function name="pango_ot_tag_from_script">
11475 <description>
11476 Finds the OpenType script tag corresponding to @script.
11477
11478 The %PANGO_SCRIPT_COMMON, %PANGO_SCRIPT_INHERITED, and
11479 %PANGO_SCRIPT_UNKNOWN scripts are mapped to the OpenType
11480 &apos;DFLT&apos; script tag that is also defined as
11481 %PANGO_OT_TAG_DEFAULT_SCRIPT.
11482
11483 Note that multiple #PangoScript values may map to the same
11484 OpenType script tag.  In particular, %PANGO_SCRIPT_HIRAGANA
11485 and %PANGO_SCRIPT_KATAKANA both map to the OT tag &apos;kana&apos;.
11486
11487
11488 </description>
11489 <parameters>
11490 <parameter name="script">
11491 <parameter_description> A #PangoScript
11492 </parameter_description>
11493 </parameter>
11494 </parameters>
11495 <return> #PangoOTTag corresponding to @script or
11496 %PANGO_OT_TAG_DEFAULT_SCRIPT if none found.
11497
11498 Since: 1.18
11499 </return>
11500 </function>
11501
11502 <function name="pango_ot_buffer_get_glyphs">
11503 <description>
11504 Gets the glyph array contained in a #PangoOTBuffer.  The glyphs are
11505 owned by the buffer and should not be freed, and are only valid as long
11506 as buffer is not modified.
11507
11508 Since: 1.4
11509
11510 </description>
11511 <parameters>
11512 <parameter name="buffer">
11513 <parameter_description> a #PangoOTBuffer
11514 </parameter_description>
11515 </parameter>
11516 <parameter name="glyphs">
11517 <parameter_description> location to store the array of glyphs, or %NULL
11518 </parameter_description>
11519 </parameter>
11520 <parameter name="n_glyphs">
11521 <parameter_description> location to store the number of glyphs, or %NULL
11522 </parameter_description>
11523 </parameter>
11524 </parameters>
11525 <return></return>
11526 </function>
11527
11528 <function name="pango_layout_context_changed">
11529 <description>
11530 Forces recomputation of any state in the #PangoLayout that
11531 might depend on the layout&apos;s context. This function should
11532 be called if you make changes to the context subsequent
11533 to creating the layout.
11534
11535 </description>
11536 <parameters>
11537 <parameter name="layout">
11538 <parameter_description> a #PangoLayout
11539 </parameter_description>
11540 </parameter>
11541 </parameters>
11542 <return></return>
11543 </function>
11544
11545 <function name="pango_layout_set_tabs">
11546 <description>
11547 Sets the tabs to use for @layout, overriding the default tabs
11548 (by default, tabs are every 8 spaces). If @tabs is %NULL, the default
11549 tabs are reinstated. @tabs is copied into the layout; you must
11550 free your copy of @tabs yourself.
11551
11552 </description>
11553 <parameters>
11554 <parameter name="layout">
11555 <parameter_description> a #PangoLayout
11556 </parameter_description>
11557 </parameter>
11558 <parameter name="tabs">
11559 <parameter_description> a #PangoTabArray
11560 </parameter_description>
11561 </parameter>
11562 </parameters>
11563 <return></return>
11564 </function>
11565
11566 <function name="pango_tab_array_copy">
11567 <description>
11568 Copies a #PangoTabArray
11569
11570
11571 </description>
11572 <parameters>
11573 <parameter name="src">
11574 <parameter_description> #PangoTabArray to copy
11575 </parameter_description>
11576 </parameter>
11577 </parameters>
11578 <return> the newly allocated #PangoTabArray, which should
11579 be freed with pango_tab_array_free().
11580 </return>
11581 </function>
11582
11583 <function name="pango_font_metrics_get_underline_position">
11584 <description>
11585 Gets the suggested position to draw the underline.
11586 The value returned is the distance &amp;lt;emphasis&amp;gt;above&amp;lt;/emphasis&amp;gt; the
11587 baseline of the top of the underline. Since most fonts have
11588 underline positions beneath the baseline, this value is typically
11589 negative.
11590
11591
11592 </description>
11593 <parameters>
11594 <parameter name="metrics">
11595 <parameter_description> a #PangoFontMetrics structure
11596 </parameter_description>
11597 </parameter>
11598 </parameters>
11599 <return> the suggested underline position, in Pango units.
11600
11601 Since: 1.6
11602 </return>
11603 </function>
11604
11605 <function name="pango_attr_fallback_new">
11606 <description>
11607 Create a new font fallback attribute.
11608
11609 If fallback is disabled, characters will only be used from the
11610 closest matching font on the system. No fallback will be done to
11611 other fonts on the system that might contain the characters in the
11612 text.
11613
11614
11615 </description>
11616 <parameters>
11617 <parameter name="enable_fallback">
11618 <parameter_description> %TRUE if we should fall back on other fonts
11619 for characters the active font is missing.
11620 </parameter_description>
11621 </parameter>
11622 </parameters>
11623 <return> the newly allocated #PangoAttribute, which should be
11624 freed with pango_attribute_destroy().
11625
11626 Since: 1.4
11627 </return>
11628 </function>
11629
11630 <function name="pango_layout_get_line">
11631 <description>
11632 Retrieves a particular line from a #PangoLayout.
11633
11634 Use the faster pango_layout_get_line_readonly() if you do not plan
11635 to modify the contents of the line (glyphs, glyph widths, etc.).
11636
11637
11638 </description>
11639 <parameters>
11640 <parameter name="layout">
11641 <parameter_description> a #PangoLayout
11642 </parameter_description>
11643 </parameter>
11644 <parameter name="line">
11645 <parameter_description> the index of a line, which must be between 0 and
11646 &amp;lt;literal&amp;gt;pango_layout_get_line_count(layout) - 1&amp;lt;/literal&amp;gt;, inclusive.
11647 </parameter_description>
11648 </parameter>
11649 </parameters>
11650 <return> the requested #PangoLayoutLine, or %NULL if the
11651 index is out of range. This layout line can
11652 be ref&apos;ed and retained, but will become invalid
11653 if changes are made to the #PangoLayout.
11654 </return>
11655 </function>
11656
11657 <function name="pango_context_load_fontset">
11658 <description>
11659 Load a set of fonts in the context that can be used to render
11660 a font matching @desc.
11661
11662
11663 </description>
11664 <parameters>
11665 <parameter name="context">
11666 <parameter_description> a #PangoContext
11667 </parameter_description>
11668 </parameter>
11669 <parameter name="desc">
11670 <parameter_description> a #PangoFontDescription describing the fonts to load
11671 </parameter_description>
11672 </parameter>
11673 <parameter name="language">
11674 <parameter_description> a #PangoLanguage the fonts will be used for
11675 </parameter_description>
11676 </parameter>
11677 </parameters>
11678 <return>the fontset, or %NULL if no font matched.
11679 </return>
11680 </function>
11681
11682 <function name="pango_units_from_double">
11683 <description>
11684 Converts a floating-point number to Pango units: multiplies
11685 it by %PANGO_SCALE and rounds to nearest integer.
11686
11687
11688 </description>
11689 <parameters>
11690 <parameter name="d">
11691 <parameter_description> double floating-point value
11692 </parameter_description>
11693 </parameter>
11694 </parameters>
11695 <return> the value in Pango units.
11696
11697 Since: 1.16
11698 </return>
11699 </function>
11700
11701 <function name="pango_xft_set_default_substitute">
11702 <description>
11703 Sets a function that will be called to do final configuration
11704 substitution on a #FcPattern before it is used to load
11705 the font. This function can be used to do things like set
11706 hinting and antialiasing options.
11707
11708 Since: 1.2
11709
11710 </description>
11711 <parameters>
11712 <parameter name="display">
11713 <parameter_description> an X Display
11714 </parameter_description>
11715 </parameter>
11716 <parameter name="screen">
11717 <parameter_description> the screen number of a screen within @display
11718 </parameter_description>
11719 </parameter>
11720 <parameter name="func">
11721 <parameter_description> function to call to to do final config tweaking
11722 on #FcPattern objects.
11723 </parameter_description>
11724 </parameter>
11725 <parameter name="data">
11726 <parameter_description> data to pass to @func
11727 </parameter_description>
11728 </parameter>
11729 <parameter name="notify">
11730 <parameter_description> function to call when @data is no longer used.
11731 </parameter_description>
11732 </parameter>
11733 </parameters>
11734 <return></return>
11735 </function>
11736
11737 </root>