[pangomm/pangomm-2-46] Regenerate docs.xml and .defs files
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pangomm/pangomm-2-46] Regenerate docs.xml and .defs files
- Date: Fri, 15 Jan 2021 14:37:21 +0000 (UTC)
commit 481b0bd0339c7a4a36943dd0b685e334b231d72e
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Fri Jan 15 15:31:43 2021 +0100
Regenerate docs.xml and .defs files
Regenerated while the pango-1-46 branch was checked out from pango.
pango/src/pango_docs.xml | 1122 ++++++++++++++++++++++++++++++++++++++----
pango/src/pango_enums.defs | 119 ++++-
pango/src/pango_methods.defs | 603 +++++++++++++++--------
3 files changed, 1523 insertions(+), 321 deletions(-)
---
diff --git a/pango/src/pango_docs.xml b/pango/src/pango_docs.xml
index 614d97e..f62d1b7 100644
--- a/pango/src/pango_docs.xml
+++ b/pango/src/pango_docs.xml
@@ -137,6 +137,26 @@ attribute is listed in parentheses after the description.
<parameter_description> background alpha (#PangoAttrInt). Since 1.38
</parameter_description>
</parameter>
+<parameter name="PANGO_ATTR_ALLOW_BREAKS">
+<parameter_description> whether breaks are allowed (#PangoAttrInt). Since 1.44
+</parameter_description>
+</parameter>
+<parameter name="PANGO_ATTR_SHOW">
+<parameter_description> how to render invisible characters (#PangoAttrInt). Since 1.44
+</parameter_description>
+</parameter>
+<parameter name="PANGO_ATTR_INSERT_HYPHENS">
+<parameter_description> whether to insert hyphens at intra-word line breaks (#PangoAttrInt). Since 1.44
+</parameter_description>
+</parameter>
+<parameter name="PANGO_ATTR_OVERLINE">
+<parameter_description> whether the text has an overline (#PangoAttrInt). Since 1.46
+</parameter_description>
+</parameter>
+<parameter name="PANGO_ATTR_OVERLINE_COLOR">
+<parameter_description> overline color (#PangoAttrColor). Since 1.46
+</parameter_description>
+</parameter>
</parameters>
</enum>
@@ -147,6 +167,7 @@ type of a Unicode character as specified by the
<ulink url="http://www.unicode.org/reports/tr9/">Unicode bidirectional
algorithm</ulink>.
Since: 1.22
+Deprecated: 1.44: Use fribidi for this information
</description>
<parameters>
@@ -234,6 +255,9 @@ Since: 1.22
Used to indicate how well a font can represent a particular Unicode
character point for a particular script.
+Since 1.44, only %PANGO_COVERAGE_NONE and %PANGO_COVERAGE_EXACT
+will be returned.
+
</description>
<parameters>
<parameter name="PANGO_COVERAGE_NONE">
@@ -278,6 +302,10 @@ enumeration as the writing direction of a block of
text and are no longer used; See #PangoGravity for how
vertical text is handled in Pango.
+If you are interested in text direction, you should
+really use fribidi directly. PangoDirection is only
+retained because it is used in some public apis.
+
</description>
<parameters>
<parameter name="PANGO_DIRECTION_LTR">
@@ -475,6 +503,28 @@ identify the various OpenType tables in the
</parameters>
</enum>
+<enum name="PangoOverline">
+<description>
+The #PangoOverline enumeration is used to specify
+whether text should be overlined, and if so, the type
+of line.
+
+Since: 1.46
+
+</description>
+<parameters>
+<parameter name="PANGO_OVERLINE_NONE">
+<parameter_description> no overline should be drawn
+</parameter_description>
+</parameter>
+<parameter name="PANGO_OVERLINE_SINGLE">
+<parameter_description> Draw a single line above the ink
+extents of the text being underlined.
+</parameter_description>
+</parameter>
+</parameters>
+</enum>
+
<enum name="PangoRenderPart">
<description>
#PangoRenderPart defines different items to render for such
@@ -500,6 +550,10 @@ Since: 1.8
<parameter_description> strikethrough lines
</parameter_description>
</parameter>
+<parameter name="PANGO_RENDER_PART_OVERLINE">
+<parameter_description> overlines
+</parameter_description>
+</parameter>
</parameters>
</enum>
@@ -507,13 +561,15 @@ Since: 1.8
<description>
The #PangoScript enumeration identifies different writing
systems. The values correspond to the names as defined in the
-Unicode standard.
-Note that new types may be added in the future. Applications should be ready
-to handle unknown values. This enumeration is interchangeable with
-#GUnicodeScript. See <ulink
+Unicode standard. See <ulink
url="http://www.unicode.org/reports/tr24/">Unicode Standard Annex
#24: Script names</ulink>.
+Note that this enumeration is deprecated and will not be updated
+to include values in newer versions of the Unicode standard.
+Applications should use the GUnicodeScript enumeration instead,
+whose values are interchangeable with PangoScript.
+
</description>
<parameters>
<parameter name="PANGO_SCRIPT_INVALID_CODE">
@@ -992,6 +1048,54 @@ base glyph to which it is attached
</parameters>
</enum>
+<enum name="PangoShapeFlags">
+<description>
+Flags influencing the shaping process.
+These can be passed to pango_shape_with_flags().
+
+</description>
+<parameters>
+<parameter name="PANGO_SHAPE_NONE">
+<parameter_description> Default value.
+</parameter_description>
+</parameter>
+<parameter name="PANGO_SHAPE_ROUND_POSITIONS">
+<parameter_description> Round glyph positions
+and widths to whole device units. This option should
+be set if the target renderer can't do subpixel
+positioning of glyphs.
+</parameter_description>
+</parameter>
+</parameters>
+</enum>
+
+<enum name="PangoShowFlags">
+<description>
+These flags affect how Pango treats characters that are normally
+not visible in the output.
+
+</description>
+<parameters>
+<parameter name="PANGO_SHOW_NONE">
+<parameter_description> No special treatment for invisible characters
+</parameter_description>
+</parameter>
+<parameter name="PANGO_SHOW_SPACES">
+<parameter_description> Render spaces, tabs and newlines visibly
+</parameter_description>
+</parameter>
+<parameter name="PANGO_SHOW_LINE_BREAKS">
+<parameter_description> Render line breaks visibly
+</parameter_description>
+</parameter>
+<parameter name="PANGO_SHOW_IGNORABLES">
+<parameter_description> Render default-ignorable Unicode
+characters visibly
+</parameter_description>
+</parameter>
+</parameters>
+</enum>
+
<enum name="PangoStretch">
<description>
An enumeration specifying the width of the font relative to other designs
@@ -1093,20 +1197,38 @@ of underlining.
</parameter_description>
</parameter>
<parameter name="PANGO_UNDERLINE_LOW">
-<parameter_description> a single underline should be drawn at a position
-beneath the ink extents of the text being
+<parameter_description> a single underline should be drawn at a
+position beneath the ink extents of the text being
underlined. This should be used only for underlining
-single characters, such as for keyboard
-accelerators. %PANGO_UNDERLINE_SINGLE should
-be used for extended portions of text.
+single characters, such as for keyboard accelerators.
+%PANGO_UNDERLINE_SINGLE should be used for extended
+portions of text.
</parameter_description>
</parameter>
<parameter name="PANGO_UNDERLINE_ERROR">
<parameter_description> a wavy underline should be drawn below.
-This underline is typically used to indicate
-an error such as a possilble mispelling; in some
-cases a contrasting color may automatically
-be used. This type of underlining is available since Pango 1.4.
+This underline is typically used to indicate an error such
+as a possible mispelling; in some cases a contrasting color
+may automatically be used. This type of underlining is
+available since Pango 1.4.
+</parameter_description>
+</parameter>
+<parameter name="PANGO_UNDERLINE_SINGLE_LINE">
+<parameter_description> Like @PANGO_UNDERLINE_SINGLE, but
+drawn continuously across multiple runs. This type
+of underlining is available since Pango 1.46.
+</parameter_description>
+</parameter>
+<parameter name="PANGO_UNDERLINE_DOUBLE_LINE">
+<parameter_description> Like @PANGO_UNDERLINE_DOUBLE, but
+drawn continuously across multiple runs. This type
+of underlining is available since Pango 1.46.
+</parameter_description>
+</parameter>
+<parameter name="PANGO_UNDERLINE_ERROR_LINE">
+<parameter_description> Like @PANGO_UNDERLINE_ERROR, but
+drawn continuously across multiple runs. This type
+of underlining is available since Pango 1.46.
</parameter_description>
</parameter>
</parameters>
@@ -1210,6 +1332,28 @@ enough space for a full word.
</parameters>
</enum>
+<function name="pango_attr_allow_breaks_new">
+<description>
+Create a new allow-breaks attribute.
+
+If breaks are disabled, the range will be kept in a
+single run, as far as possible.
+
+Since: 1.44
+
+</description>
+<parameters>
+<parameter name="allow_breaks">
+<parameter_description> %TRUE if we line breaks are allowed
+</parameter_description>
+</parameter>
+</parameters>
+<return> the newly allocated #PangoAttribute,
+which should be freed with pango_attribute_destroy()
+
+</return>
+</function>
+
<function name="pango_attr_background_alpha_new">
<description>
Create a new background alpha attribute.
@@ -1416,6 +1560,28 @@ which should be freed with pango_attribute_destroy().
</return>
</function>
+<function name="pango_attr_insert_hyphens_new">
+<description>
+Create a new insert-hyphens attribute.
+
+Pango will insert hyphens when breaking lines in the middle
+of a word. This attribute can be used to suppress the hyphen.
+
+Since: 1.44
+
+</description>
+<parameters>
+<parameter name="insert_hyphens">
+<parameter_description> %TRUE if hyphens should be inserted
+</parameter_description>
+</parameter>
+</parameters>
+<return> the newly allocated #PangoAttribute,
+which should be freed with pango_attribute_destroy()
+
+</return>
+</function>
+
<function name="pango_attr_iterator_copy">
<description>
Copy a #PangoAttrIterator
@@ -1618,7 +1784,7 @@ replace any attributes of the same type on that segment
and be merged with any adjoining attributes that are identical.
This function is slower than pango_attr_list_insert() for
-creating a attribute list in order (potentially much slower
+creating an attribute list in order (potentially much slower
for large lists). However, pango_attr_list_insert() is not
suitable for continually changing a set of attributes
since it never removes or combines existing attributes.
@@ -1657,6 +1823,30 @@ Returns %NULL if @list was %NULL.
</return>
</function>
+<function name="pango_attr_list_equal">
+<description>
+Checks whether @list and @other_list contain the same attributes and
+whether those attributes apply to the same ranges. Beware that this
+will return wrong values if any list contains duplicates.
+
+Since: 1.46
+
+</description>
+<parameters>
+<parameter name="list">
+<parameter_description> a #PangoAttrList
+</parameter_description>
+</parameter>
+<parameter name="other_list">
+<parameter_description> the other #PangoAttrList
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the lists are equal, %FALSE if they aren't.
+
+</return>
+</function>
+
<function name="pango_attr_list_filter">
<description>
Given a #PangoAttrList and callback function, removes any elements
@@ -1687,6 +1877,27 @@ if an attribute should be filtered out.
</return>
</function>
+<function name="pango_attr_list_get_attributes">
+<description>
+Gets a list of all attributes in @list.
+
+Since: 1.44
+
+</description>
+<parameters>
+<parameter name="list">
+<parameter_description> a #PangoAttrList
+</parameter_description>
+</parameter>
+</parameters>
+<return>
+a list of all attributes in @list. To free this value, call
+pango_attribute_destroy() on each value and g_slist_free()
+on the list.
+
+</return>
+</function>
+
<function name="pango_attr_list_get_iterator">
<description>
Create a iterator initialized to the beginning of the list.
@@ -1831,6 +2042,97 @@ it contains.
<return></return>
</function>
+<function name="pango_attr_list_update">
+<description>
+Update indices of attributes in @list for
+a change in the text they refer to.
+
+The change that this function applies is
+removing @remove bytes at position @pos
+and inserting @add bytes instead.
+
+Attributes that fall entirely in the
+(@pos, @pos + @remove) range are removed.
+
+Attributes that start or end inside the
+(@pos, @pos + @remove) range are shortened to
+reflect the removal.
+
+Attributes start and end positions are updated
+if they are behind @pos + @remove.
+
+Since: 1.44
+
+</description>
+<parameters>
+<parameter name="list">
+<parameter_description> a #PangoAttrList
+</parameter_description>
+</parameter>
+<parameter name="pos">
+<parameter_description> the position of the change
+</parameter_description>
+</parameter>
+<parameter name="remove">
+<parameter_description> the number of removed bytes
+</parameter_description>
+</parameter>
+<parameter name="add">
+<parameter_description> the number of added bytes
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="pango_attr_overline_color_new">
+<description>
+Create a new overline color attribute. This attribute
+modifies the color of overlines. If not set, overlines
+will use the foreground color.
+
+Since: 1.46
+
+</description>
+<parameters>
+<parameter name="red">
+<parameter_description> the red value (ranging from 0 to 65535)
+</parameter_description>
+</parameter>
+<parameter name="green">
+<parameter_description> the green value
+</parameter_description>
+</parameter>
+<parameter name="blue">
+<parameter_description> the blue value
+</parameter_description>
+</parameter>
+</parameters>
+<return> the newly allocated #PangoAttribute,
+which should be freed with pango_attribute_destroy().
+
+</return>
+</function>
+
+<function name="pango_attr_overline_new">
+<description>
+Create a new overline-style attribute.
+
+Since: 1.46
+
+</description>
+<parameters>
+<parameter name="overline">
+<parameter_description> the overline style
+</parameter_description>
+</parameter>
+</parameters>
+<return> the newly allocated #PangoAttribute,
+which should be freed with pango_attribute_destroy().
+
+</return>
+</function>
+
<function name="pango_attr_rise_new">
<description>
Create a new baseline displacement attribute.
@@ -1931,6 +2233,26 @@ freed with pango_attribute_destroy().
</return>
</function>
+<function name="pango_attr_show_new">
+<description>
+Create a new attribute that influences how invisible
+characters are rendered.
+
+Since: 1.44
+
+</description>
+<parameters>
+<parameter name="flags">
+<parameter_description> #PangoShowFlags to apply
+</parameter_description>
+</parameter>
+</parameters>
+<return> the newly allocated #PangoAttribute,
+which should be freed with pango_attribute_destroy().
+
+</return>
+</function>
+
<function name="pango_attr_size_new">
<description>
Create a new font-size attribute in fractional points.
@@ -1939,7 +2261,7 @@ Create a new font-size attribute in fractional points.
</description>
<parameters>
<parameter name="size">
-<parameter_description> the font size, in %PANGO_SCALE<!-- -->ths of a point.
+<parameter_description> the font size, in %PANGO_SCALEths of a point.
</parameter_description>
</parameter>
</parameters>
@@ -1957,7 +2279,7 @@ Since: 1.8
</description>
<parameters>
<parameter name="size">
-<parameter_description> the font size, in %PANGO_SCALE<!-- -->ths of a device unit.
+<parameter_description> the font size, in %PANGO_SCALEths of a device unit.
</parameter_description>
</parameter>
</parameters>
@@ -2270,13 +2592,15 @@ Unicode bidirectional algorithm.
<function name="pango_break">
<description>
Determines possible line, word, and character breaks
-for a string of Unicode text with a single analysis. For most
-purposes you may want to use pango_get_log_attrs().
+for a string of Unicode text with a single analysis.
+For most purposes you may want to use pango_get_log_attrs().
+
+Deprecated: 1.44: Use pango_default_break() and pango_tailor_break()
</description>
<parameters>
<parameter name="text">
-<parameter_description> the text to process
+<parameter_description> the text to process. Must be valid UTF-8
</parameter_description>
</parameter>
<parameter name="length">
@@ -2715,8 +3039,8 @@ is unreffed and the new font map referenced.
Note that since Pango 1.32.6, the default fontmap is per-thread.
This function only changes the default fontmap for
-the current thread. Default fontmaps of exisiting threads
-are not changed. Default fontmaps of any new threads will
+the current thread. Default fontmaps of existing threads
+are not changed. Default fontmaps of any new threads will
still be created using pango_cairo_font_map_new().
A value of %NULL for @fontmap will cause the current default
@@ -3078,6 +3402,47 @@ otherwise false.
</return>
</function>
+<function name="pango_color_parse_with_alpha">
+<description>
+Fill in the fields of a color from a string specification. The
+string can either one of a large set of standard names. (Taken
+from the CSS <ulink
url="http://dev.w3.org/csswg/css-color/#named-colors">specification</ulink>), or it can be
a hexadecimal
+value in the
+form '#rgb' '#rrggbb' '#rrrgggbbb' or '#rrrrggggbbbb' where
+'r', 'g' and 'b' are hex digits of the red, green, and blue
+components of the color, respectively. (White in the four
+forms is '#fff' '#ffffff' '#fffffffff' and '#ffffffffffff')
+
+Additionally, parse strings of the form
+'#rgba', '#rrggbbaa', '#rrrrggggbbbbaaaa',
+if @alpha is not %NULL, and set @alpha to the value specified
+by the hex digits for 'a'. If no alpha component is found
+in @spec, @alpha is set to 0xffff (for a solid color).
+
+Since: 1.46
+
+</description>
+<parameters>
+<parameter name="color">
+<parameter_description> a #PangoColor structure in which to store the
+result, or %NULL
+</parameter_description>
+</parameter>
+<parameter name="alpha">
+<parameter_description> return location for alpha, or %NULL
+</parameter_description>
+</parameter>
+<parameter name="spec">
+<parameter_description> a string specifying the new color
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if parsing of the specifier succeeded,
+otherwise false.
+
+</return>
+</function>
+
<function name="pango_color_to_string">
<description>
Returns a textual specification of @color in the hexadecimal form
@@ -3347,6 +3712,23 @@ when finished using the object.
</return>
</function>
+<function name="pango_context_get_round_glyph_positions">
+<description>
+Returns whether font rendering with this context should
+round glyph positions and widths.
+
+Since: 1.44
+
+</description>
+<parameters>
+<parameter name="context">
+<parameter_description> a #PangoContext
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="pango_context_get_serial">
<description>
Returns the current serial number of @context. The serial number is
@@ -3625,6 +4007,34 @@ matrix. (No matrix set is the same as setting the identity matrix.)
<return></return>
</function>
+<function name="pango_context_set_round_glyph_positions">
+<description>
+Sets whether font rendering with this context should
+round glyph positions and widths to integral positions,
+in device units.
+
+This is useful when the renderer can't handle subpixel
+positioning of glyphs.
+
+The default value is to round glyph positions, to remain
+compatible with previous Pango behavior.
+
+Since: 1.44
+
+</description>
+<parameters>
+<parameter name="context">
+<parameter_description> a #PangoContext
+</parameter_description>
+</parameter>
+<parameter name="round_positions">
+<parameter_description> whether to round glyph positions
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="pango_core_text_font_get_ctfont">
<description>
Returns the CTFontRef of a font.
@@ -3667,6 +4077,7 @@ with pango_coverage_unref().
Convert data generated from pango_coverage_to_bytes() back
to a #PangoCoverage
+Deprecated: 1.44: This returns %NULL
</description>
<parameters>
@@ -3682,6 +4093,7 @@ representing a #PangoCoverage
</parameters>
<return> a newly allocated
#PangoCoverage, or %NULL if the data was invalid.
+
</return>
</function>
@@ -3711,6 +4123,8 @@ Set the coverage for each index in @coverage to be the max (better)
value of the current coverage for the index and the coverage for
the corresponding index in @other.
+Deprecated: 1.44: This function does nothing
+
</description>
<parameters>
<parameter name="coverage">
@@ -3782,6 +4196,8 @@ Modify a particular index within @coverage
<description>
Convert a #PangoCoverage structure into a flat binary format
+Deprecated: 1.44: This returns %NULL
+
</description>
<parameters>
<parameter name="coverage">
@@ -3818,18 +4234,16 @@ If the result is zero, free the coverage and all associated memory.
<function name="pango_default_break">
<description>
-This is the default break algorithm, used if no language
-engine overrides it. Normally you should use pango_break()
-instead. Unlike pango_break(),
-@analysis can be %NULL, but only do that if you know what
-you're doing. If you need an analysis to pass to pango_break(),
-you need to pango_itemize(). In most cases however you should
-simply use pango_get_log_attrs().
+This is the default break algorithm. It applies Unicode
+rules without language-specific tailoring, therefore
+the @analyis argument is unused and can be %NULL.
+
+See pango_tailor_break() for language-specific breaks.
</description>
<parameters>
<parameter name="text">
-<parameter_description> text to break
+<parameter_description> text to break. Must be valid UTF-8
</parameter_description>
</parameter>
<parameter name="length">
@@ -3906,8 +4320,8 @@ Since: 1.6
</parameter_description>
</parameter>
</parameters>
-<return> the #FcCharset for @fcfont; must not be modified
-or freed.
+<return> the #FcCharset for @fcfont; must not
+be modified or freed.
</return>
</function>
@@ -4016,10 +4430,6 @@ Since: 1.6
<parameter_description> a #PangoFcFont
</parameter_description>
</parameter>
-<parameter name="load_flags">
-<parameter_description> flags to pass to FT_Load_Glyph()
-</parameter_description>
-</parameter>
<parameter name="glyph">
<parameter_description> the glyph index to load
</parameter_description>
@@ -4068,6 +4478,7 @@ Since: 1.4
Determines whether @font has a glyph for the codepoint @wc.
Since: 1.4
+Deprecated: 1.44: Use pango_font_has_char()
</description>
<parameters>
@@ -4087,8 +4498,11 @@ Since: 1.4
<function name="pango_fc_font_kern_glyphs">
<description>
-Adjust each adjacent pair of glyphs in @glyphs according to
-kerning information in @font.
+This function used to adjust each adjacent pair of glyphs
+in @glyphs according to kerning information in @font.
+
+Since 1.44, it does nothing.
+
Since: 1.4
Deprecated: 1.32
@@ -4163,11 +4577,12 @@ Since: 1.24
<function name="pango_fc_font_lock_face">
<description>
-Gets the FreeType <type>FT_Face</type> associated with a font,
+Gets the FreeType `FT_Face` associated with a font,
This face will be kept around until you call
pango_fc_font_unlock_face().
Since: 1.4
+Deprecated: 1.44: Use pango_font_get_hb_font() instead
</description>
<parameters>
@@ -4176,7 +4591,7 @@ Since: 1.4
</parameter_description>
</parameter>
</parameters>
-<return> the FreeType <type>FT_Face</type> associated with @font.
+<return> the FreeType `FT_Face` associated with @font.
</return>
</function>
@@ -4296,15 +4711,17 @@ Since: 1.26
</parameter_description>
</parameter>
</parameters>
-<return> a newly created #PangoFcDecoder object or
-%NULL if no decoder is set for @pattern.
+<return> a newly created #PangoFcDecoder
+object or %NULL if no decoder is set for @pattern.
</return>
</function>
<function name="pango_fc_font_map_get_config">
<description>
-Fetches FcConfig attached to a font map. See pango_fc_font_map_set_config().
+Fetches the `FcConfig` attached to a font map.
+
+See also: pango_fc_font_map_set_config()
Since: 1.38
@@ -4315,12 +4732,34 @@ Since: 1.38
</parameter_description>
</parameter>
</parameters>
-<return> the #FcConfig object attached to @fcfontmap, which
+<return> the `FcConfig` object attached to @fcfontmap, which
might be %NULL.
</return>
</function>
+<function name="pango_fc_font_map_get_hb_face">
+<description>
+Retrieves the `hb_face_t` for the given #PangoFcFont.
+
+Since: 1.44
+
+</description>
+<parameters>
+<parameter name="fcfontmap">
+<parameter_description> a #PangoFcFontMap
+</parameter_description>
+</parameter>
+<parameter name="fcfont">
+<parameter_description> a #PangoFcFont
+</parameter_description>
+</parameter>
+</parameters>
+<return> the `hb_face_t` for the given Pango font
+
+</return>
+</function>
+
<function name="pango_fc_font_map_set_config">
<description>
Set the FcConfig for this font map to use. The default value
@@ -4347,7 +4786,7 @@ Since: 1.38
</parameter_description>
</parameter>
<parameter name="fcconfig">
-<parameter_description> a #FcConfig, or %NULL
+<parameter_description> a `FcConfig`, or %NULL
</parameter_description>
</parameter>
</parameters>
@@ -4381,6 +4820,7 @@ Releases a font previously obtained with
pango_fc_font_lock_face().
Since: 1.4
+Deprecated: 1.44: Use pango_font_get_hb_font() instead
</description>
<parameters>
@@ -4511,7 +4951,7 @@ Since: 1.4
</description>
<parameters>
<parameter name="text">
-<parameter_description> the text to process
+<parameter_description> the text to process. Must be valid UTF-8
</parameter_description>
</parameter>
<parameter name="length">
@@ -4743,17 +5183,47 @@ Frees a font description.
<function name="pango_font_description_from_string">
<description>
Creates a new font description from a string representation in the
-form "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]", where FAMILY-LIST is a
-comma separated list of families optionally terminated by a comma,
-STYLE_OPTIONS is a whitespace separated list of words where each word
-describes one of style, variant, weight, stretch, or gravity, and SIZE
-is a decimal number (size in points) or optionally followed by the
-unit modifier "px" for absolute size. Any one of the options may
-be absent. If FAMILY-LIST is absent, then the family_name field of
-the resulting font description will be initialized to %NULL. If
-STYLE-OPTIONS is missing, then all style options will be set to the
-default values. If SIZE is missing, the size in the resulting font
-description will be set to 0.
+form
+
+"\[FAMILY-LIST] \[STYLE-OPTIONS] \[SIZE] \[VARIATIONS]",
+
+where FAMILY-LIST is a comma-separated list of families optionally
+terminated by a comma, STYLE_OPTIONS is a whitespace-separated list
+of words where each word describes one of style, variant, weight,
+stretch, or gravity, and SIZE is a decimal number (size in points)
+or optionally followed by the unit modifier "px" for absolute size.
+VARIATIONS is a comma-separated list of font variation
+specifications of the form "\@axis=value" (the = sign is optional).
+
+The following words are understood as styles:
+"Normal", "Roman", "Oblique", "Italic".
+
+The following words are understood as variants:
+"Small-Caps".
+
+The following words are understood as weights:
+"Thin", "Ultra-Light", "Extra-Light", "Light",
"Semi-Light",
+"Demi-Light", "Book", "Regular", "Medium", "Semi-Bold",
"Demi-Bold",
+"Bold", "Ultra-Bold", "Extra-Bold", "Heavy", "Black",
"Ultra-Black",
+"Extra-Black".
+
+The following words are understood as stretch values:
+"Ultra-Condensed", "Extra-Condensed", "Condensed", "Semi-Condensed",
+"Semi-Expanded", "Expanded", "Extra-Expanded", "Ultra-Expanded".
+
+The following words are understood as gravity values:
+"Not-Rotated", "South", "Upside-Down", "North",
"Rotated-Left",
+"East", "Rotated-Right", "West".
+
+Any one of the options may be absent. If FAMILY-LIST is absent, then
+the family_name field of the resulting font description will be
+initialized to %NULL. If STYLE-OPTIONS is missing, then all style
+options will be set to the default values. If SIZE is missing, the
+size in the resulting font description will be set to 0.
+
+A typical example:
+
+"Cantarell Italic Light 15 \@wght=200"
</description>
@@ -5429,6 +5899,25 @@ owned by the face object and must not be modified or freed.
</return>
</function>
+<function name="pango_font_face_get_family">
+<description>
+Gets the #PangoFontFamily that @face
+belongs to.
+
+Since: 1.46
+
+</description>
+<parameters>
+<parameter name="face">
+<parameter_description> a #PangoFontFace
+</parameter_description>
+</parameter>
+</parameters>
+<return> the #PangoFontFamily
+
+</return>
+</function>
+
<function name="pango_font_face_is_synthesized">
<description>
Returns whether a #PangoFontFace is synthesized by the underlying
@@ -5478,6 +5967,31 @@ should be freed with g_free().
<return></return>
</function>
+<function name="pango_font_family_get_face">
+<description>
+Gets the #PangoFontFace of @family with the given name.
+
+Since: 1.46
+
+</description>
+<parameters>
+<parameter name="family">
+<parameter_description> a #PangoFontFamily
+</parameter_description>
+</parameter>
+<parameter name="name">
+<parameter_description> the name of a face. If the name is %NULL,
+the family's default face (fontconfig calls it "Regular")
+will be returned.
+</parameter_description>
+</parameter>
+</parameters>
+<return> the #PangoFontFace,
+or %NULL if no face with the given name exists.
+
+</return>
+</function>
+
<function name="pango_font_family_get_name">
<description>
Gets the name of the family. The name is unique among all
@@ -5526,6 +6040,25 @@ Since: 1.4
</return>
</function>
+<function name="pango_font_family_is_variable">
+<description>
+A variable font is a font which has axes that can be modified to
+produce different faces.
+
+Since: 1.44
+
+</description>
+<parameters>
+<parameter name="family">
+<parameter_description> a #PangoFontFamily
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the family is variable
+
+</return>
+</function>
+
<function name="pango_font_family_list_faces">
<description>
Lists the different font faces that make up @family. The faces
@@ -5558,6 +6091,31 @@ longer needed.
Finds the best matching shaper for a font for a particular
language tag and character point.
+Deprecated: Shape engines are no longer used
+
+</description>
+<parameters>
+<parameter name="font">
+<parameter_description> a #PangoFont
+</parameter_description>
+</parameter>
+<parameter name="language">
+<parameter_description> the language tag
+</parameter_description>
+</parameter>
+<parameter name="ch">
+<parameter_description> a Unicode character.
+</parameter_description>
+</parameter>
+</parameters>
+<return> the best matching shaper.
+</return>
+</function>
+
+<function name="pango_font_get_coverage">
+<description>
+Computes the coverage map for a given font and language tag.
+
</description>
<parameters>
@@ -5569,19 +6127,40 @@ language tag and character point.
<parameter_description> the language tag
</parameter_description>
</parameter>
-<parameter name="ch">
-<parameter_description> a Unicode character.
+</parameters>
+<return> a newly-allocated #PangoCoverage
+object.
+</return>
+</function>
+
+<function name="pango_font_get_face">
+<description>
+Gets the #PangoFontFace to which @font belongs.
+
+Since: 1.46
+
+</description>
+<parameters>
+<parameter name="font">
+<parameter_description> a #PangoFont
</parameter_description>
</parameter>
</parameters>
-<return> the best matching shaper.
+<return> the #PangoFontFace
+
</return>
</function>
-<function name="pango_font_get_coverage">
+<function name="pango_font_get_features">
<description>
-Computes the coverage map for a given font and language tag.
+Obtain the OpenType features that are provided by the font.
+These are passed to the rendering system, together with features
+that have been explicitly set via attributes.
+
+Note that this does not include OpenType features which the
+rendering system enables by default.
+Since: 1.44
</description>
<parameters>
@@ -5589,14 +6168,20 @@ Computes the coverage map for a given font and language tag.
<parameter_description> a #PangoFont
</parameter_description>
</parameter>
-<parameter name="language">
-<parameter_description> the language tag
+<parameter name="features">
+<parameter_description> Array to features in
+</parameter_description>
+</parameter>
+<parameter name="len">
+<parameter_description> the length of @features
+</parameter_description>
+</parameter>
+<parameter name="num_features">
+<parameter_description> the number of used items in @features
</parameter_description>
</parameter>
</parameters>
-<return> a newly-allocated #PangoCoverage
-object.
-</return>
+<return></return>
</function>
<function name="pango_font_get_font_map">
@@ -5663,6 +6248,29 @@ the glyph or %NULL to indicate that the result is not needed.
<return></return>
</function>
+<function name="pango_font_get_hb_font">
+<description>
+Get a hb_font_t object backing this font.
+
+Note that the objects returned by this function
+are cached and immutable. If you need to make
+changes to the hb_font_t, use hb_font_create_sub_font().
+
+Since: 1.44
+
+</description>
+<parameters>
+<parameter name="font">
+<parameter_description> a #PangoFont
+</parameter_description>
+</parameter>
+</parameters>
+<return> the hb_font_t object backing the
+font, or %NULL if the font does not have one
+
+</return>
+</function>
+
<function name="pango_font_get_metrics">
<description>
Gets overall metric information for a font. Since the metrics may be
@@ -5691,6 +6299,28 @@ when finished using the object.
</return>
</function>
+<function name="pango_font_has_char">
+<description>
+Returns whether the font provides a glyph for this character.
+
+Since: 1.44
+
+</description>
+<parameters>
+<parameter name="font">
+<parameter_description> a #PangoFont
+</parameter_description>
+</parameter>
+<parameter name="wc">
+<parameter_description> a Unicode character
+</parameter_description>
+</parameter>
+</parameters>
+<return>%TRUE if @font can render @wc
+
+</return>
+</function>
+
<function name="pango_font_map_changed">
<description>
Forces a change in the context, which will cause any #PangoContext
@@ -5739,6 +6369,28 @@ which should be freed with g_object_unref().
</return>
</function>
+<function name="pango_font_map_get_family">
+<description>
+Gets a font family by name.
+
+Since: 1.46
+
+</description>
+<parameters>
+<parameter name="fontmap">
+<parameter_description> a #PangoFontMap
+</parameter_description>
+</parameter>
+<parameter name="name">
+<parameter_description> a family name
+</parameter_description>
+</parameter>
+</parameters>
+<return> the #PangoFontFamily
+
+</return>
+</function>
+
<function name="pango_font_map_get_serial">
<description>
Returns the current serial number of @fontmap. The serial number is
@@ -5948,6 +6600,28 @@ where the ink will be.)
</return>
</function>
+<function name="pango_font_metrics_get_height">
+<description>
+Gets the line height from a font metrics structure. The
+line height is the distance between successive baselines
+in wrapped text.
+
+If the line height is not available, 0 is returned.
+
+Since: 1.44
+
+</description>
+<parameters>
+<parameter name="metrics">
+<parameter_description> a #PangoFontMetrics structure
+</parameter_description>
+</parameter>
+</parameters>
+<return> the height, in Pango units
+
+</return>
+</function>
+
<function name="pango_font_metrics_get_strikethrough_position">
<description>
Gets the suggested position to draw the strikethrough.
@@ -6190,14 +6864,14 @@ Returns the number of fonts in the fontset.
<function name="pango_ft2_font_get_coverage">
<description>
-Gets the #PangoCoverage for a <type>PangoFT2Font</type>. Use
+Gets the #PangoCoverage for a `PangoFT2Font`. Use
pango_font_get_coverage() instead.
</description>
<parameters>
<parameter name="font">
-<parameter_description> a <type>PangoFT2Font</type>.
+<parameter_description> a Pango FT2 font
</parameter_description>
</parameter>
<parameter name="language">
@@ -6211,7 +6885,7 @@ pango_font_get_coverage() instead.
<function name="pango_ft2_font_get_face">
<description>
-Returns the native FreeType2 <type>FT_Face</type> structure used for this #PangoFont.
+Returns the native FreeType2 `FT_Face` structure used for this #PangoFont.
This may be useful if you want to use FreeType2 functions directly.
Use pango_fc_font_lock_face() instead; when you are done with a
@@ -6226,9 +6900,8 @@ pango_fc_font_unlock_face().
</parameter_description>
</parameter>
</parameters>
-<return> a pointer to a <type>FT_Face</type>
-structure, with the size set correctly, or %NULL if
-@font is %NULL.
+<return> a pointer to a `FT_Face` structure, with the
+size set correctly, or %NULL if @font is %NULL.
</return>
</function>
@@ -6666,7 +7339,7 @@ the word is a word).
</description>
<parameters>
<parameter name="text">
-<parameter_description> text to process
+<parameter_description> text to process. Must be valid UTF-8
</parameter_description>
</parameter>
<parameter name="length">
@@ -7078,6 +7751,10 @@ Compute the logical and ink extents of a glyph string. See the documentation
for pango_font_get_glyph_extents() for details about the interpretation
of the rectangles.
+Examples of logical (red) and ink (green) rects:
+
+![](rects1.png) ![](rects2.png)
+
</description>
<parameters>
<parameter name="glyphs">
@@ -7474,6 +8151,35 @@ Since: 1.10
</return>
</function>
+<function name="pango_item_apply_attrs">
+<description>
+Add attributes to a PangoItem. The idea is that you have
+attributes that don't affect itemization, such as font features,
+so you filter them out using pango_attr_list_filter(), itemize
+your text, then reapply the attributes to the resulting items
+using this function.
+
+The @iter should be positioned before the range of the item,
+and will be advanced past it. This function is meant to be called
+in a loop over the items resulting from itemization, while passing
+the iter to each call.
+
+Since: 1.44
+
+</description>
+<parameters>
+<parameter name="item">
+<parameter_description> a #PangoItem
+</parameter_description>
+</parameter>
+<parameter name="iter">
+<parameter_description> a #PangoAttrIterator
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="pango_item_copy">
<description>
Copy an existing #PangoItem structure.
@@ -7575,7 +8281,7 @@ the range covering the position just after @start_index + @length.
</parameter_description>
</parameter>
<parameter name="text">
-<parameter_description> the text to itemize.
+<parameter_description> the text to itemize. Must be valid UTF-8
</parameter_description>
</parameter>
<parameter name="start_index">
@@ -7777,6 +8483,10 @@ though, except that it is positive if the return value is not
The pango_language_includes_script() function uses this function
internally.
+Note: while the return value is declared as PangoScript, the
+returned values are from the GUnicodeScript enumeration, which
+may have more values. Callers need to handle unknown values.
+
Since: 1.22
</description>
@@ -7948,7 +8658,8 @@ Gets the attribute list for the layout, if any.
</parameter_description>
</parameter>
</parameters>
-<return> a #PangoAttrList.
+<return> a #PangoAttrList or %NULL
+if none was set.
</return>
</function>
@@ -8063,6 +8774,29 @@ direction of the layout are inserted.
<return></return>
</function>
+<function name="pango_layout_get_direction">
+<description>
+Gets the text direction at the given character
+position in @layout.
+
+Since: 1.46
+
+</description>
+<parameters>
+<parameter name="layout">
+<parameter_description> a #PangoLayout
+</parameter_description>
+</parameter>
+<parameter name="index">
+<parameter_description> the byte index of the char
+</parameter_description>
+</parameter>
+</parameters>
+<return> the text direction at @index
+
+</return>
+</function>
+
<function name="pango_layout_get_ellipsize">
<description>
Gets the type of ellipsization being performed for @layout.
@@ -8286,6 +9020,23 @@ but will become invalid if changes are made to the
</return>
</function>
+<function name="pango_layout_get_line_spacing">
+<description>
+Gets the value that has been
+set with pango_layout_set_line_spacing().
+
+Since: 1.44
+
+</description>
+<parameters>
+<parameter name="layout">
+<parameter_description> a #PangoLayout
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="pango_layout_get_lines">
<description>
Returns the lines of the @layout as a list.
@@ -9000,6 +9751,9 @@ pango_layout_set_spacing() has been called to set layout spacing.
The Y positions are in layout coordinates (origin at top left of the
entire layout).
+Note: Since 1.44, Pango uses line heights for placing lines,
+and there may be gaps between the ranges returned by this
+function.
</description>
<parameters>
@@ -9185,6 +9939,27 @@ extents of the glyph string, or %NULL
<return></return>
</function>
+<function name="pango_layout_line_get_height">
+<description>
+Computes the height of the line, ie the distance between
+this and the previous lines baseline.
+
+Since: 1.44
+
+</description>
+<parameters>
+<parameter name="line">
+<parameter_description> a #PangoLayoutLine
+</parameter_description>
+</parameter>
+<parameter name="height">
+<parameter_description> return location for the line height
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="pango_layout_line_get_pixel_extents">
<description>
Computes the logical and ink extents of @layout_line in device units.
@@ -9670,6 +10445,41 @@ older than 1.18.
<return></return>
</function>
+<function name="pango_layout_set_line_spacing">
+<description>
+Sets a factor for line spacing.
+Typical values are: 0, 1, 1.5, 2.
+The default values is 0.
+
+If @factor is non-zero, lines are placed
+so that
+
+baseline2 = baseline1 + factor * height2
+
+where height2 is the line height of the
+second line (as determined by the font(s)).
+In this case, the spacing set with
+pango_layout_set_spacing() is ignored.
+
+If @factor is zero, spacing is applied as
+before.
+
+Since: 1.44
+
+</description>
+<parameters>
+<parameter name="layout">
+<parameter_description> a #PangoLayout
+</parameter_description>
+</parameter>
+<parameter name="factor">
+<parameter_description> the new line spacing factor
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="pango_layout_set_markup">
<description>
Same as pango_layout_set_markup_with_accel(), but
@@ -9761,8 +10571,17 @@ you want to allow editing of newlines on a single text line.
<function name="pango_layout_set_spacing">
<description>
-Sets the amount of spacing in Pango unit between the lines of the
-layout.
+Sets the amount of spacing in Pango unit between
+the lines of the layout. When placing lines with
+spacing, Pango arranges things so that
+
+line2.top = line1.bottom + spacing
+
+Note: Since 1.44, Pango defaults to using the
+line height (as determined by the font) for placing
+lines. The @spacing set with this function is only
+taken into account when the line-height factor is
+set to zero with pango_layout_set_line_spacing().
</description>
<parameters>
@@ -9803,11 +10622,14 @@ free your copy of @tabs yourself.
<description>
Sets the text of the layout.
-Note that if you have used
-pango_layout_set_markup() or pango_layout_set_markup_with_accel() on
-@layout before, you may want to call pango_layout_set_attributes() to clear
-the attributes set on the layout from the markup as this function does not
-clear attributes.
+This function validates @text and renders invalid UTF-8
+with a placeholder glyph.
+
+Note that if you have used pango_layout_set_markup() or
+pango_layout_set_markup_with_accel() on @layout before, you may
+want to call pango_layout_set_attributes() to clear the attributes
+set on the layout from the markup as this function does not clear
+attributes.
</description>
<parameters>
@@ -9816,7 +10638,7 @@ clear attributes.
</parameter_description>
</parameter>
<parameter name="text">
-<parameter_description> a valid UTF-8 string
+<parameter_description> the text
</parameter_description>
</parameter>
<parameter name="length">
@@ -10021,8 +10843,8 @@ handle this script.
</parameter_description>
</parameter>
<parameter name="fallback_engines">
-<parameter_description> location to store list of engines that approximately
-handle this script.
+<parameter_description> location to store list of engines that
+approximately handle this script.
</parameter_description>
</parameter>
</parameters>
@@ -10748,8 +11570,8 @@ Since: 1.2
</parameter_description>
</parameter>
</parameters>
-<return> the #PangoOTInfo for @face. This object will have
-the same lifetime as @face.
+<return> the #PangoOTInfo for @face. This object
+will have the same lifetime as @face.
</return>
</function>
@@ -11986,7 +12808,7 @@ inherited from the environment.
<description>
Gets the layout currently being rendered using @renderer.
Calling this function only makes sense from inside a subclass's
-methods, like in its draw_shape<!---->() for example.
+methods, like in its draw_shape vfunc, for example.
The returned layout should not be modified while still being
rendered.
@@ -12010,7 +12832,7 @@ no layout is being rendered using @renderer at this time.
<description>
Gets the layout line currently being rendered using @renderer.
Calling this function only makes sense from inside a subclass's
-methods, like in its draw_shape<!---->() for example.
+methods, like in its draw_shape vfunc, for example.
The returned layout line should not be modified while still being
rendered.
@@ -12272,15 +13094,18 @@ Deprecated: 1.38
<function name="pango_script_for_unichar">
<description>
-Looks up the #PangoScript for a particular character (as defined by
+Looks up the script for a particular character (as defined by
Unicode Standard Annex \#24). No check is made for @ch being a
valid Unicode character; if you pass in invalid character, the
result is undefined.
-As of Pango 1.18, this function simply returns the return value of
-g_unichar_get_script().
+Note that while the return type of this function is declared
+as PangoScript, as of Pango 1.18, this function simply returns
+the return value of g_unichar_get_script(). Callers must be
+prepared to handle unknown values.
Since: 1.4
+Deprecated: 1.44. Use g_unichar_get_script()
</description>
<parameters>
@@ -12364,6 +13189,11 @@ Gets information about the range to which @iter currently points.
The range is the set of locations p where *start <= p < *end.
(That is, it doesn't include the character stored at *end)
+Note that while the type of the @script argument is declared
+as PangoScript, as of Pango 1.18, this function simply returns
+GUnicodeScript values. Callers must be prepared to handle unknown
+values.
+
Since: 1.4
</description>
@@ -12514,6 +13344,55 @@ Since: 1.32
<return></return>
</function>
+<function name="pango_shape_with_flags">
+<description>
+Given a segment of text and the corresponding
+#PangoAnalysis structure returned from pango_itemize(),
+convert the characters into glyphs. You may also pass
+in only a substring of the item from pango_itemize().
+
+This is similar to pango_shape_full(), except it also takes
+flags that can influence the shaping process.
+
+Since: 1.44
+
+</description>
+<parameters>
+<parameter name="item_text">
+<parameter_description> valid UTF-8 text to shape
+</parameter_description>
+</parameter>
+<parameter name="item_length">
+<parameter_description> the length (in bytes) of @item_text.
+-1 means nul-terminated text.
+</parameter_description>
+</parameter>
+<parameter name="paragraph_text">
+<parameter_description> text of the paragraph (see details).
+May be %NULL.
+</parameter_description>
+</parameter>
+<parameter name="paragraph_length">
+<parameter_description> the length (in bytes) of @paragraph_text.
+-1 means nul-terminated text.
+</parameter_description>
+</parameter>
+<parameter name="analysis">
+<parameter_description> #PangoAnalysis structure from pango_itemize()
+</parameter_description>
+</parameter>
+<parameter name="glyphs">
+<parameter_description> glyph string in which to store results
+</parameter_description>
+</parameter>
+<parameter name="flags">
+<parameter_description> flags influencing the shaping process
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="pango_skip_space">
<description>
Skips 0 or more characters of white space.
@@ -12780,6 +13659,49 @@ implementation.
<return></return>
</function>
+<function name="pango_tailor_break">
+<description>
+Apply language-specific tailoring to the breaks in
+@log_attrs, which are assumed to have been produced
+by pango_default_break().
+
+If @offset is not -1, it is used to apply attributes
+from @analysis that are relevant to line breaking.
+
+Since: 1.44
+
+</description>
+<parameters>
+<parameter name="text">
+<parameter_description> text to process. Must be valid UTF-8
+</parameter_description>
+</parameter>
+<parameter name="length">
+<parameter_description> length in bytes of @text
+</parameter_description>
+</parameter>
+<parameter name="analysis">
+<parameter_description> #PangoAnalysis structure from pango_itemize() for @text
+</parameter_description>
+</parameter>
+<parameter name="offset">
+<parameter_description> Byte offset of @text from the beginning of the
+paragraph, or -1 to ignore attributes from @analysis
+</parameter_description>
+</parameter>
+<parameter name="log_attrs">
+<parameter_description> array with one #PangoLogAttr
+per character in @text, plus one extra, to be filled in
+</parameter_description>
+</parameter>
+<parameter name="log_attrs_len">
+<parameter_description> length of @log_attrs array
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="pango_trim_string">
<description>
Trims leading and trailing whitespace from a string.
@@ -13447,7 +14369,7 @@ Free cached resources.
<function name="pango_xft_font_get_display">
<description>
-Returns the X display of the XftFont of a font.
+Returns the X display of the `XftFont` of a font.
</description>
@@ -13463,7 +14385,7 @@ Returns the X display of the XftFont of a font.
<function name="pango_xft_font_get_font">
<description>
-Returns the XftFont of a font.
+Returns the `XftFont` of a font.
</description>
@@ -13473,8 +14395,8 @@ Returns the XftFont of a font.
</parameter_description>
</parameter>
</parameters>
-<return> the XftFont associated to @font, or %NULL
-if @font is %NULL.
+<return> the `XftFont` associated to @font,
+or %NULL if @font is %NULL.
</return>
</function>
@@ -13554,9 +14476,9 @@ Since: 1.2
<function name="pango_xft_font_lock_face">
<description>
-Gets the FreeType <type>FT_Face</type> associated with a font,
-This face will be kept around until you call
-pango_xft_font_unlock_face().
+Gets the FreeType `FT_Face` associated with a font.
+
+This face will be kept around until you call pango_xft_font_unlock_face().
Use pango_fc_font_lock_face() instead.
@@ -13569,7 +14491,7 @@ Since: 1.2
</parameter_description>
</parameter>
</parameters>
-<return> the FreeType <type>FT_Face</type> associated with @font.
+<return> the FreeType `FT_Face` associated with @font.
</return>
</function>
diff --git a/pango/src/pango_enums.defs b/pango/src/pango_enums.defs
index 61b9654..d41c496 100644
--- a/pango/src/pango_enums.defs
+++ b/pango/src/pango_enums.defs
@@ -28,7 +28,12 @@
;; PANGO_ATTR_GRAVITY_HINT, /* PangoAttrInt */
;; PANGO_ATTR_FONT_FEATURES, /* PangoAttrString */
;; PANGO_ATTR_FOREGROUND_ALPHA, /* PangoAttrInt */
-;; PANGO_ATTR_BACKGROUND_ALPHA /* PangoAttrInt */
+;; PANGO_ATTR_BACKGROUND_ALPHA, /* PangoAttrInt */
+;; PANGO_ATTR_ALLOW_BREAKS, /* PangoAttrInt */
+;; PANGO_ATTR_SHOW, /* PangoAttrInt */
+;; PANGO_ATTR_INSERT_HYPHENS, /* PangoAttrInt */
+;; PANGO_ATTR_OVERLINE, /* PangoAttrInt */
+;; PANGO_ATTR_OVERLINE_COLOR, /* PangoAttrColor */
;; } PangoAttrType;
(define-enum-extended AttrType
@@ -61,6 +66,11 @@
'("font-features" "PANGO_ATTR_FONT_FEATURES" "23")
'("foreground-alpha" "PANGO_ATTR_FOREGROUND_ALPHA" "24")
'("background-alpha" "PANGO_ATTR_BACKGROUND_ALPHA" "25")
+ '("allow-breaks" "PANGO_ATTR_ALLOW_BREAKS" "26")
+ '("show" "PANGO_ATTR_SHOW" "27")
+ '("insert-hyphens" "PANGO_ATTR_INSERT_HYPHENS" "28")
+ '("overline" "PANGO_ATTR_OVERLINE" "29")
+ '("overline-color" "PANGO_ATTR_OVERLINE_COLOR" "30")
)
)
@@ -70,7 +80,10 @@
;; PANGO_UNDERLINE_SINGLE,
;; PANGO_UNDERLINE_DOUBLE,
;; PANGO_UNDERLINE_LOW,
-;; PANGO_UNDERLINE_ERROR
+;; PANGO_UNDERLINE_ERROR,
+;; PANGO_UNDERLINE_SINGLE_LINE,
+;; PANGO_UNDERLINE_DOUBLE_LINE,
+;; PANGO_UNDERLINE_ERROR_LINE
;; } PangoUnderline;
(define-enum-extended Underline
@@ -82,6 +95,43 @@
'("double" "PANGO_UNDERLINE_DOUBLE" "2")
'("low" "PANGO_UNDERLINE_LOW" "3")
'("error" "PANGO_UNDERLINE_ERROR" "4")
+ '("single-line" "PANGO_UNDERLINE_SINGLE_LINE" "5")
+ '("double-line" "PANGO_UNDERLINE_DOUBLE_LINE" "6")
+ '("error-line" "PANGO_UNDERLINE_ERROR_LINE" "7")
+ )
+)
+
+;; Original typedef:
+;; typedef enum {
+;; PANGO_OVERLINE_NONE,
+;; PANGO_OVERLINE_SINGLE
+;; } PangoOverline;
+
+(define-enum-extended Overline
+ (in-module "Pango")
+ (c-name "PangoOverline")
+ (values
+ '("none" "PANGO_OVERLINE_NONE" "0")
+ '("single" "PANGO_OVERLINE_SINGLE" "1")
+ )
+)
+
+;; Original typedef:
+;; typedef enum {
+;; PANGO_SHOW_NONE = 0,
+;; PANGO_SHOW_SPACES = 1 << 0,
+;; PANGO_SHOW_LINE_BREAKS = 1 << 1,
+;; PANGO_SHOW_IGNORABLES = 1 << 2
+;; } PangoShowFlags;
+
+(define-flags-extended ShowFlags
+ (in-module "Pango")
+ (c-name "PangoShowFlags")
+ (values
+ '("none" "PANGO_SHOW_NONE" "0x0")
+ '("spaces" "PANGO_SHOW_SPACES" "1 << 0")
+ '("line-breaks" "PANGO_SHOW_LINE_BREAKS" "1 << 1")
+ '("ignorables" "PANGO_SHOW_IGNORABLES" "1 << 2")
)
)
@@ -141,6 +191,29 @@
)
)
+;; From pango-coverage.h
+
+;; Original typedef:
+;; typedef enum {
+;; PANGO_COVERAGE_NONE,
+;; PANGO_COVERAGE_FALLBACK,
+;; PANGO_COVERAGE_APPROXIMATE,
+;; PANGO_COVERAGE_EXACT
+;; } PangoCoverageLevel;
+
+(define-enum-extended CoverageLevel
+ (in-module "Pango")
+ (c-name "PangoCoverageLevel")
+ (values
+ '("none" "PANGO_COVERAGE_NONE" "0")
+ '("fallback" "PANGO_COVERAGE_FALLBACK" "1")
+ '("approximate" "PANGO_COVERAGE_APPROXIMATE" "2")
+ '("exact" "PANGO_COVERAGE_EXACT" "3")
+ )
+)
+
+;; From pango-direction.h
+
;; Original typedef:
;; typedef enum {
;; PANGO_DIRECTION_LTR,
@@ -166,27 +239,6 @@
)
)
-;; From pango-coverage.h
-
-;; Original typedef:
-;; typedef enum {
-;; PANGO_COVERAGE_NONE,
-;; PANGO_COVERAGE_FALLBACK,
-;; PANGO_COVERAGE_APPROXIMATE,
-;; PANGO_COVERAGE_EXACT
-;; } PangoCoverageLevel;
-
-(define-enum-extended CoverageLevel
- (in-module "Pango")
- (c-name "PangoCoverageLevel")
- (values
- '("none" "PANGO_COVERAGE_NONE" "0")
- '("fallback" "PANGO_COVERAGE_FALLBACK" "1")
- '("approximate" "PANGO_COVERAGE_APPROXIMATE" "2")
- '("exact" "PANGO_COVERAGE_EXACT" "3")
- )
-)
-
;; From pango-font.h
;; Original typedef:
@@ -312,6 +364,23 @@
)
)
+;; From pango-glyph.h
+
+;; Original typedef:
+;; typedef enum {
+;; PANGO_SHAPE_NONE = 0,
+;; PANGO_SHAPE_ROUND_POSITIONS = 1 << 0,
+;; } PangoShapeFlags;
+
+(define-flags-extended ShapeFlags
+ (in-module "Pango")
+ (c-name "PangoShapeFlags")
+ (values
+ '("none" "PANGO_SHAPE_NONE" "0x0")
+ '("round-positions" "PANGO_SHAPE_ROUND_POSITIONS" "1 << 0")
+ )
+)
+
;; From pango-gravity.h
;; Original typedef:
@@ -433,7 +502,8 @@
;; PANGO_RENDER_PART_FOREGROUND,
;; PANGO_RENDER_PART_BACKGROUND,
;; PANGO_RENDER_PART_UNDERLINE,
-;; PANGO_RENDER_PART_STRIKETHROUGH
+;; PANGO_RENDER_PART_STRIKETHROUGH,
+;; PANGO_RENDER_PART_OVERLINE
;; } PangoRenderPart;
(define-enum-extended RenderPart
@@ -444,6 +514,7 @@
'("background" "PANGO_RENDER_PART_BACKGROUND" "1")
'("underline" "PANGO_RENDER_PART_UNDERLINE" "2")
'("strikethrough" "PANGO_RENDER_PART_STRIKETHROUGH" "3")
+ '("overline" "PANGO_RENDER_PART_OVERLINE" "4")
)
)
diff --git a/pango/src/pango_methods.defs b/pango/src/pango_methods.defs
index 61d3d27..8149237 100644
--- a/pango/src/pango_methods.defs
+++ b/pango/src/pango_methods.defs
@@ -35,20 +35,6 @@
(gtype-id "PANGO_TYPE_FONT")
)
-(define-object FcFont
- (in-module "Pango")
- (parent "PangoFont")
- (c-name "PangoFcFont")
- (gtype-id "PANGO_TYPE_FC_FONT")
-)
-
-(define-object CoreTextFont
- (in-module "Pango")
- (parent "PangoFont")
- (c-name "PangoCoreTextFont")
- (gtype-id "PANGO_TYPE_CORE_TEXT_FONT")
-)
-
(define-object FontFace
(in-module "Pango")
(parent "GObject")
@@ -70,13 +56,6 @@
(gtype-id "PANGO_TYPE_FONT_MAP")
)
-(define-object FcFontMap
- (in-module "Pango")
- (parent "PangoFontMap")
- (c-name "PangoFcFontMap")
- (gtype-id "PANGO_TYPE_FC_FONT_MAP")
-)
-
(define-object Fontset
(in-module "Pango")
(parent "GObject")
@@ -131,6 +110,11 @@
'("font-features" "PANGO_ATTR_FONT_FEATURES")
'("foreground-alpha" "PANGO_ATTR_FOREGROUND_ALPHA")
'("background-alpha" "PANGO_ATTR_BACKGROUND_ALPHA")
+ '("allow-breaks" "PANGO_ATTR_ALLOW_BREAKS")
+ '("show" "PANGO_ATTR_SHOW")
+ '("insert-hyphens" "PANGO_ATTR_INSERT_HYPHENS")
+ '("overline" "PANGO_ATTR_OVERLINE")
+ '("overline-color" "PANGO_ATTR_OVERLINE_COLOR")
)
)
@@ -144,6 +128,31 @@
'("double" "PANGO_UNDERLINE_DOUBLE")
'("low" "PANGO_UNDERLINE_LOW")
'("error" "PANGO_UNDERLINE_ERROR")
+ '("single-line" "PANGO_UNDERLINE_SINGLE_LINE")
+ '("double-line" "PANGO_UNDERLINE_DOUBLE_LINE")
+ '("error-line" "PANGO_UNDERLINE_ERROR_LINE")
+ )
+)
+
+(define-enum Overline
+ (in-module "Pango")
+ (c-name "PangoOverline")
+ (gtype-id "PANGO_TYPE_OVERLINE")
+ (values
+ '("none" "PANGO_OVERLINE_NONE")
+ '("single" "PANGO_OVERLINE_SINGLE")
+ )
+)
+
+(define-flags ShowFlags
+ (in-module "Pango")
+ (c-name "PangoShowFlags")
+ (gtype-id "PANGO_TYPE_SHOW_FLAGS")
+ (values
+ '("none" "PANGO_SHOW_NONE")
+ '("spaces" "PANGO_SHOW_SPACES")
+ '("line-breaks" "PANGO_SHOW_LINE_BREAKS")
+ '("ignorables" "PANGO_SHOW_IGNORABLES")
)
)
@@ -174,6 +183,18 @@
)
)
+(define-enum CoverageLevel
+ (in-module "Pango")
+ (c-name "PangoCoverageLevel")
+ (gtype-id "PANGO_TYPE_COVERAGE_LEVEL")
+ (values
+ '("none" "PANGO_COVERAGE_NONE")
+ '("fallback" "PANGO_COVERAGE_FALLBACK")
+ '("approximate" "PANGO_COVERAGE_APPROXIMATE")
+ '("exact" "PANGO_COVERAGE_EXACT")
+ )
+)
+
(define-enum Direction
(in-module "Pango")
(c-name "PangoDirection")
@@ -189,18 +210,6 @@
)
)
-(define-enum CoverageLevel
- (in-module "Pango")
- (c-name "PangoCoverageLevel")
- (gtype-id "PANGO_TYPE_COVERAGE_LEVEL")
- (values
- '("none" "PANGO_COVERAGE_NONE")
- '("fallback" "PANGO_COVERAGE_FALLBACK")
- '("approximate" "PANGO_COVERAGE_APPROXIMATE")
- '("exact" "PANGO_COVERAGE_EXACT")
- )
-)
-
(define-enum Style
(in-module "Pango")
(c-name "PangoStyle")
@@ -275,6 +284,16 @@
)
)
+(define-flags ShapeFlags
+ (in-module "Pango")
+ (c-name "PangoShapeFlags")
+ (gtype-id "PANGO_TYPE_SHAPE_FLAGS")
+ (values
+ '("none" "PANGO_SHAPE_NONE")
+ '("round-positions" "PANGO_SHAPE_ROUND_POSITIONS")
+ )
+)
+
(define-enum Gravity
(in-module "Pango")
(c-name "PangoGravity")
@@ -352,6 +371,7 @@
'("background" "PANGO_RENDER_PART_BACKGROUND")
'("underline" "PANGO_RENDER_PART_UNDERLINE")
'("strikethrough" "PANGO_RENDER_PART_STRIKETHROUGH")
+ '("overline" "PANGO_RENDER_PART_OVERLINE")
)
)
@@ -498,6 +518,11 @@
(return-type "GType")
)
+(define-function pango_attribute_get_type
+ (c-name "pango_attribute_get_type")
+ (return-type "GType")
+)
+
(define-method copy
(of-object "PangoColor")
(c-name "pango_color_copy")
@@ -519,6 +544,16 @@
)
)
+(define-method parse_with_alpha
+ (of-object "PangoColor")
+ (c-name "pango_color_parse_with_alpha")
+ (return-type "gboolean")
+ (parameters
+ '("guint16*" "alpha")
+ '("const-char*" "spec")
+ )
+)
+
(define-method to_string
(of-object "PangoColor")
(c-name "pango_color_to_string")
@@ -814,6 +849,53 @@
)
)
+(define-function pango_attr_allow_breaks_new
+ (c-name "pango_attr_allow_breaks_new")
+ (is-constructor-of "PangoAttrAllowBreaks")
+ (return-type "PangoAttribute*")
+ (parameters
+ '("gboolean" "allow_breaks")
+ )
+)
+
+(define-function pango_attr_insert_hyphens_new
+ (c-name "pango_attr_insert_hyphens_new")
+ (is-constructor-of "PangoAttrInsertHyphens")
+ (return-type "PangoAttribute*")
+ (parameters
+ '("gboolean" "insert_hyphens")
+ )
+)
+
+(define-function pango_attr_overline_new
+ (c-name "pango_attr_overline_new")
+ (is-constructor-of "PangoAttrOverline")
+ (return-type "PangoAttribute*")
+ (parameters
+ '("PangoOverline" "overline")
+ )
+)
+
+(define-function pango_attr_overline_color_new
+ (c-name "pango_attr_overline_color_new")
+ (is-constructor-of "PangoAttrOverlineColor")
+ (return-type "PangoAttribute*")
+ (parameters
+ '("guint16" "red")
+ '("guint16" "green")
+ '("guint16" "blue")
+ )
+)
+
+(define-function pango_attr_show_new
+ (c-name "pango_attr_show_new")
+ (is-constructor-of "PangoAttrShow")
+ (return-type "PangoAttribute*")
+ (parameters
+ '("PangoShowFlags" "flags")
+ )
+)
+
(define-function pango_attr_list_get_type
(c-name "pango_attr_list_get_type")
(return-type "GType")
@@ -881,6 +963,17 @@
)
)
+(define-method update
+ (of-object "PangoAttrList")
+ (c-name "pango_attr_list_update")
+ (return-type "none")
+ (parameters
+ '("int" "pos")
+ '("int" "remove")
+ '("int" "add")
+ )
+)
+
(define-method filter
(of-object "PangoAttrList")
(c-name "pango_attr_list_filter")
@@ -891,6 +984,26 @@
)
)
+(define-method get_attributes
+ (of-object "PangoAttrList")
+ (c-name "pango_attr_list_get_attributes")
+ (return-type "GSList*")
+)
+
+(define-method equal
+ (of-object "PangoAttrList")
+ (c-name "pango_attr_list_equal")
+ (return-type "gboolean")
+ (parameters
+ '("PangoAttrList*" "other_list")
+ )
+)
+
+(define-function pango_attr_iterator_get_type
+ (c-name "pango_attr_iterator_get_type")
+ (return-type "GType")
+)
+
(define-method get_iterator
(of-object "PangoAttrList")
(c-name "pango_attr_list_get_iterator")
@@ -1076,6 +1189,23 @@
)
)
+(define-function pango_tailor_break
+ (c-name "pango_tailor_break")
+ (return-type "none")
+ (parameters
+ '("const-char*" "text")
+ '("int" "length")
+ '("PangoAnalysis*" "analysis")
+ '("int" "offset")
+ '("PangoLogAttr*" "log_attrs")
+ '("int" "log_attrs_len")
+ )
+)
+
+
+
+;; From pango-break-table.h
+
;; From pangocairo-coretextfont.h
@@ -1533,6 +1663,21 @@
(return-type "const-PangoMatrix*")
)
+(define-method set_round_glyph_positions
+ (of-object "PangoContext")
+ (c-name "pango_context_set_round_glyph_positions")
+ (return-type "none")
+ (parameters
+ '("gboolean" "round_positions")
+ )
+)
+
+(define-method get_round_glyph_positions
+ (of-object "PangoContext")
+ (c-name "pango_context_get_round_glyph_positions")
+ (return-type "gboolean")
+)
+
(define-function pango_itemize
(c-name "pango_itemize")
(return-type "GList*")
@@ -1564,21 +1709,26 @@
;; From pangocoretext.h
+(define-function pango_core_text_font_get_type
+ (c-name "pango_core_text_font_get_type")
+ (return-type "GType")
+)
+
(define-method get_ctfont
(of-object "PangoCoreTextFont")
(c-name "pango_core_text_font_get_ctfont")
(return-type "CTFontRef")
)
-(define-function pango_core_text_font_get_type
- (c-name "pango_core_text_font_get_type")
- (return-type "GType")
-)
-
;; From pango-coverage.h
+(define-function pango_coverage_get_type
+ (c-name "pango_coverage_get_type")
+ (return-type "GType")
+)
+
(define-function pango_coverage_new
(c-name "pango_coverage_new")
(is-constructor-of "PangoCoverage")
@@ -1652,6 +1802,10 @@
+;; From pango-direction.h
+
+
+
;; From pango-emoji-table.h
@@ -1735,6 +1889,11 @@
;; From pangofc-font.h
+(define-function pango_fc_font_get_type
+ (c-name "pango_fc_font_get_type")
+ (return-type "GType")
+)
+
(define-method has_char
(of-object "PangoFcFont")
(c-name "pango_fc_font_has_char")
@@ -1771,11 +1930,6 @@
)
)
-(define-function pango_fc_font_get_type
- (c-name "pango_fc_font_get_type")
- (return-type "GType")
-)
-
(define-method lock_face
(of-object "PangoFcFont")
(c-name "pango_fc_font_lock_face")
@@ -1792,78 +1946,6 @@
;; From pangofc-fontmap.h
-(define-method get_language
- (of-object "PangoFcFontsetKey")
- (c-name "pango_fc_fontset_key_get_language")
- (return-type "PangoLanguage*")
-)
-
-(define-method get_description
- (of-object "PangoFcFontsetKey")
- (c-name "pango_fc_fontset_key_get_description")
- (return-type "const-PangoFontDescription*")
-)
-
-(define-method get_matrix
- (of-object "PangoFcFontsetKey")
- (c-name "pango_fc_fontset_key_get_matrix")
- (return-type "const-PangoMatrix*")
-)
-
-(define-method get_absolute_size
- (of-object "PangoFcFontsetKey")
- (c-name "pango_fc_fontset_key_get_absolute_size")
- (return-type "double")
-)
-
-(define-method get_resolution
- (of-object "PangoFcFontsetKey")
- (c-name "pango_fc_fontset_key_get_resolution")
- (return-type "double")
-)
-
-(define-method get_context_key
- (of-object "PangoFcFontsetKey")
- (c-name "pango_fc_fontset_key_get_context_key")
- (return-type "gpointer")
-)
-
-(define-method get_pattern
- (of-object "PangoFcFontKey")
- (c-name "pango_fc_font_key_get_pattern")
- (return-type "const-FcPattern*")
-)
-
-(define-method get_matrix
- (of-object "PangoFcFontKey")
- (c-name "pango_fc_font_key_get_matrix")
- (return-type "const-PangoMatrix*")
-)
-
-(define-method get_context_key
- (of-object "PangoFcFontKey")
- (c-name "pango_fc_font_key_get_context_key")
- (return-type "gpointer")
-)
-
-(define-method get_variations
- (of-object "PangoFcFontKey")
- (c-name "pango_fc_font_key_get_variations")
- (return-type "const-char*")
-)
-
-(define-method create_context
- (of-object "PangoFcFontMap")
- (c-name "pango_fc_font_map_create_context")
- (return-type "PangoContext*")
-)
-
-(define-method shutdown
- (of-object "PangoFcFontMap")
- (c-name "pango_fc_font_map_shutdown")
- (return-type "none")
-)
-
(define-function pango_fc_font_map_get_type
(c-name "pango_fc_font_map_get_type")
(return-type "GType")
@@ -1925,6 +2007,27 @@
)
)
+(define-method create_context
+ (of-object "PangoFcFontMap")
+ (c-name "pango_fc_font_map_create_context")
+ (return-type "PangoContext*")
+)
+
+(define-method shutdown
+ (of-object "PangoFcFontMap")
+ (c-name "pango_fc_font_map_shutdown")
+ (return-type "none")
+)
+
+(define-method get_hb_face
+ (of-object "PangoFcFontMap")
+ (c-name "pango_fc_font_map_get_hb_face")
+ (return-type "hb_face_t*")
+ (parameters
+ '("PangoFcFont*" "fcfont")
+ )
+)
+
;; From pango-font.h
@@ -2116,7 +2219,7 @@
(c-name "pango_font_description_set_variations_static")
(return-type "none")
(parameters
- '("const-char*" "settings")
+ '("const-char*" "variations")
)
)
@@ -2125,7 +2228,7 @@
(c-name "pango_font_description_set_variations")
(return-type "none")
(parameters
- '("const-char*" "settings")
+ '("const-char*" "variations")
)
)
@@ -2229,6 +2332,12 @@
(return-type "int")
)
+(define-method get_height
+ (of-object "PangoFontMetrics")
+ (c-name "pango_font_metrics_get_height")
+ (return-type "int")
+)
+
(define-method get_approximate_char_width
(of-object "PangoFontMetrics")
(c-name "pango_font_metrics_get_approximate_char_width")
@@ -2265,12 +2374,6 @@
(return-type "int")
)
-(define-function pango_font_metrics_new
- (c-name "pango_font_metrics_new")
- (is-constructor-of "PangoFontMetrics")
- (return-type "PangoFontMetrics*")
-)
-
(define-function pango_font_family_get_type
(c-name "pango_font_family_get_type")
(return-type "GType")
@@ -2298,6 +2401,21 @@
(return-type "gboolean")
)
+(define-method is_variable
+ (of-object "PangoFontFamily")
+ (c-name "pango_font_family_is_variable")
+ (return-type "gboolean")
+)
+
+(define-method get_face
+ (of-object "PangoFontFamily")
+ (c-name "pango_font_family_get_face")
+ (return-type "PangoFontFace*")
+ (parameters
+ '("const-char*" "name")
+ )
+)
+
(define-function pango_font_face_get_type
(c-name "pango_font_face_get_type")
(return-type "GType")
@@ -2331,6 +2449,12 @@
(return-type "gboolean")
)
+(define-method get_family
+ (of-object "PangoFontFace")
+ (c-name "pango_font_face_get_family")
+ (return-type "PangoFontFamily*")
+)
+
(define-function pango_font_get_type
(c-name "pango_font_get_type")
(return-type "GType")
@@ -2393,6 +2517,38 @@
(return-type "PangoFontMap*")
)
+(define-method get_face
+ (of-object "PangoFont")
+ (c-name "pango_font_get_face")
+ (return-type "PangoFontFace*")
+)
+
+(define-method has_char
+ (of-object "PangoFont")
+ (c-name "pango_font_has_char")
+ (return-type "gboolean")
+ (parameters
+ '("gunichar" "wc")
+ )
+)
+
+(define-method get_features
+ (of-object "PangoFont")
+ (c-name "pango_font_get_features")
+ (return-type "none")
+ (parameters
+ '("hb_feature_t*" "features")
+ '("guint" "len")
+ '("guint*" "num_features")
+ )
+)
+
+(define-method get_hb_font
+ (of-object "PangoFont")
+ (c-name "pango_font_get_hb_font")
+ (return-type "hb_font_t*")
+)
+
;; From pango-fontmap.h
@@ -2451,10 +2607,13 @@
(return-type "none")
)
-(define-method get_shape_engine_type
+(define-method get_family
(of-object "PangoFontMap")
- (c-name "pango_font_map_get_shape_engine_type")
- (return-type "const-char*")
+ (c-name "pango_font_map_get_family")
+ (return-type "PangoFontFamily*")
+ (parameters
+ '("const-char*" "name")
+ )
)
@@ -2466,31 +2625,6 @@
(return-type "GType")
)
-(define-method get_font
- (of-object "PangoFontset")
- (c-name "pango_fontset_get_font")
- (return-type "PangoFont*")
- (parameters
- '("guint" "wc")
- )
-)
-
-(define-method get_metrics
- (of-object "PangoFontset")
- (c-name "pango_fontset_get_metrics")
- (return-type "PangoFontMetrics*")
-)
-
-(define-method foreach
- (of-object "PangoFontset")
- (c-name "pango_fontset_foreach")
- (return-type "none")
- (parameters
- '("PangoFontsetForeachFunc" "func")
- '("gpointer" "data")
- )
-)
-
(define-function pango_fontset_simple_get_type
(c-name "pango_fontset_simple_get_type")
(return-type "GType")
@@ -2520,6 +2654,31 @@
(return-type "int")
)
+(define-method get_font
+ (of-object "PangoFontset")
+ (c-name "pango_fontset_get_font")
+ (return-type "PangoFont*")
+ (parameters
+ '("guint" "wc")
+ )
+)
+
+(define-method get_metrics
+ (of-object "PangoFontset")
+ (c-name "pango_fontset_get_metrics")
+ (return-type "PangoFontMetrics*")
+)
+
+(define-method foreach
+ (of-object "PangoFontset")
+ (c-name "pango_fontset_foreach")
+ (return-type "none")
+ (parameters
+ '("PangoFontsetForeachFunc" "func")
+ '("gpointer" "data")
+ )
+)
+
;; From pangoft2.h
@@ -2801,8 +2960,8 @@
(c-name "pango_shape")
(return-type "none")
(parameters
- '("const-gchar*" "text")
- '("gint" "length")
+ '("const-char*" "text")
+ '("int" "length")
'("const-PangoAnalysis*" "analysis")
'("PangoGlyphString*" "glyphs")
)
@@ -2812,12 +2971,26 @@
(c-name "pango_shape_full")
(return-type "none")
(parameters
- '("const-gchar*" "item_text")
- '("gint" "item_length")
- '("const-gchar*" "paragraph_text")
- '("gint" "paragraph_length")
+ '("const-char*" "item_text")
+ '("int" "item_length")
+ '("const-char*" "paragraph_text")
+ '("int" "paragraph_length")
+ '("const-PangoAnalysis*" "analysis")
+ '("PangoGlyphString*" "glyphs")
+ )
+)
+
+(define-function pango_shape_with_flags
+ (c-name "pango_shape_with_flags")
+ (return-type "none")
+ (parameters
+ '("const-char*" "item_text")
+ '("int" "item_length")
+ '("const-char*" "paragraph_text")
+ '("int" "paragraph_length")
'("const-PangoAnalysis*" "analysis")
'("PangoGlyphString*" "glyphs")
+ '("PangoShapeFlags" "flags")
)
)
@@ -3024,6 +3197,15 @@
)
)
+(define-method apply_attrs
+ (of-object "PangoItem")
+ (c-name "pango_item_apply_attrs")
+ (return-type "none")
+ (parameters
+ '("PangoAttrIterator*" "iter")
+ )
+)
+
;; From pango-language.h
@@ -3274,6 +3456,21 @@
(return-type "int")
)
+(define-method set_line_spacing
+ (of-object "PangoLayout")
+ (c-name "pango_layout_set_line_spacing")
+ (return-type "none")
+ (parameters
+ '("float" "factor")
+ )
+)
+
+(define-method get_line_spacing
+ (of-object "PangoLayout")
+ (c-name "pango_layout_get_line_spacing")
+ (return-type "float")
+)
+
(define-method set_justify
(of-object "PangoLayout")
(c-name "pango_layout_set_justify")
@@ -3376,6 +3573,15 @@
(return-type "int")
)
+(define-method get_direction
+ (of-object "PangoLayout")
+ (c-name "pango_layout_get_direction")
+ (return-type "PangoDirection")
+ (parameters
+ '("int" "index")
+ )
+)
+
(define-method context_changed
(of-object "PangoLayout")
(c-name "pango_layout_context_changed")
@@ -3609,6 +3815,15 @@
)
)
+(define-method get_height
+ (of-object "PangoLayoutLine")
+ (c-name "pango_layout_line_get_height")
+ (return-type "none")
+ (parameters
+ '("int*" "height")
+ )
+)
+
(define-method get_pixel_extents
(of-object "PangoLayoutLine")
(c-name "pango_layout_line_get_pixel_extents")
@@ -4019,6 +4234,11 @@
)
)
+(define-function pango_ot_buffer_get_type
+ (c-name "pango_ot_buffer_get_type")
+ (return-type "GType")
+)
+
(define-function pango_ot_buffer_new
(c-name "pango_ot_buffer_new")
(is-constructor-of "PangoOtBuffer")
@@ -4214,6 +4434,11 @@
)
)
+(define-function pango_ot_ruleset_description_get_type
+ (c-name "pango_ot_ruleset_description_get_type")
+ (return-type "GType")
+)
+
(define-method hash
(of-object "PangoOTRulesetDescription")
(c-name "pango_ot_ruleset_description_hash")
@@ -4446,6 +4671,11 @@
)
)
+(define-function pango_script_iter_get_type
+ (c-name "pango_script_iter_get_type")
+ (return-type "GType")
+)
+
(define-function pango_script_iter_new
(c-name "pango_script_iter_new")
(is-constructor-of "PangoScriptIter")
@@ -4678,32 +4908,6 @@
)
)
-(define-function pango_config_key_get_system
- (c-name "pango_config_key_get_system")
- (return-type "char*")
- (parameters
- '("const-char*" "key")
- )
-)
-
-(define-function pango_config_key_get
- (c-name "pango_config_key_get")
- (return-type "char*")
- (parameters
- '("const-char*" "key")
- )
-)
-
-(define-function pango_lookup_aliases
- (c-name "pango_lookup_aliases")
- (return-type "none")
- (parameters
- '("const-char*" "fontname")
- '("char***" "families")
- '("int*" "n_families")
- )
-)
-
(define-function pango_parse_enum
(c-name "pango_parse_enum")
(return-type "gboolean")
@@ -4756,16 +4960,6 @@
)
)
-(define-function pango_get_sysconf_subdirectory
- (c-name "pango_get_sysconf_subdirectory")
- (return-type "const-char*")
-)
-
-(define-function pango_get_lib_subdirectory
- (c-name "pango_get_lib_subdirectory")
- (return-type "const-char*")
-)
-
(define-function pango_quantize_line_geometry
(c-name "pango_quantize_line_geometry")
(return-type "none")
@@ -5252,13 +5446,18 @@
(return-type "GType")
)
-(define-function pango_bidi_type_get_type
- (c-name "pango_bidi_type_get_type")
+(define-function pango_overline_get_type
+ (c-name "pango_overline_get_type")
(return-type "GType")
)
-(define-function pango_direction_get_type
- (c-name "pango_direction_get_type")
+(define-function pango_show_flags_get_type
+ (c-name "pango_show_flags_get_type")
+ (return-type "GType")
+)
+
+(define-function pango_bidi_type_get_type
+ (c-name "pango_bidi_type_get_type")
(return-type "GType")
)
@@ -5267,6 +5466,11 @@
(return-type "GType")
)
+(define-function pango_direction_get_type
+ (c-name "pango_direction_get_type")
+ (return-type "GType")
+)
+
(define-function pango_style_get_type
(c-name "pango_style_get_type")
(return-type "GType")
@@ -5292,6 +5496,11 @@
(return-type "GType")
)
+(define-function pango_shape_flags_get_type
+ (c-name "pango_shape_flags_get_type")
+ (return-type "GType")
+)
+
(define-function pango_gravity_get_type
(c-name "pango_gravity_get_type")
(return-type "GType")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]