[pangomm] Regenerate .defs and docs.xml files



commit 2cb88b933766e44c6a1f3ab36671fb6b0e06f7a9
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Mon Nov 5 14:37:32 2018 +0100

    Regenerate .defs and docs.xml files

 pango/src/pango_docs.xml     | 81 ++++++++++++++++++++++++++++++++++++++++++++
 pango/src/pango_enums.defs   |  4 ++-
 pango/src/pango_methods.defs | 31 +++++++++++++++++
 3 files changed, 115 insertions(+), 1 deletion(-)
---
diff --git a/pango/src/pango_docs.xml b/pango/src/pango_docs.xml
index 0124fa2..614d97e 100644
--- a/pango/src/pango_docs.xml
+++ b/pango/src/pango_docs.xml
@@ -377,6 +377,10 @@ The bits in a #PangoFontMask correspond to fields in a
 <parameter_description> the font gravity is specified (Since: 1.16.)
 </parameter_description>
 </parameter>
+<parameter name="PANGO_FONT_MASK_VARIATIONS">
+<parameter_description> OpenType font variations are specified (Since: 1.42)
+</parameter_description>
+</parameter>
 </parameters>
 </enum>
 
@@ -4921,6 +4925,28 @@ the field was explicitly set or not.
 </return>
 </function>
 
+<function name="pango_font_description_get_variations">
+<description>
+Gets the variations field of a font description. See
+pango_font_description_set_variations().
+
+Since: 1.42
+
+</description>
+<parameters>
+<parameter name="desc">
+<parameter_description> a #PangoFontDescription
+</parameter_description>
+</parameter>
+</parameters>
+<return> the varitions field for the font
+description, or %NULL if not previously set.  This
+has the same life-time as the font description itself
+and should not be freed.
+
+</return>
+</function>
+
 <function name="pango_font_description_get_weight">
 <description>
 Gets the weight field of a font description. See
@@ -5210,6 +5236,61 @@ can either be %PANGO_VARIANT_NORMAL or %PANGO_VARIANT_SMALL_CAPS.
 <return></return>
 </function>
 
+<function name="pango_font_description_set_variations">
+<description>
+Sets the variations field of a font description. OpenType
+font variations allow to select a font instance by specifying
+values for a number of axes, such as width or weight.
+
+The format of the variations string is AXIS1=VALUE,AXIS2=VALUE...,
+with each AXIS a 4 character tag that identifies a font axis,
+and each VALUE a floating point number. Unknown axes are ignored,
+and values are clamped to their allowed range.
+
+Pango does not currently have a way to find supported axes of
+a font. Both harfbuzz or freetype have API for this.
+
+Since: 1.42
+
+</description>
+<parameters>
+<parameter name="desc">
+<parameter_description> a #PangoFontDescription.
+</parameter_description>
+</parameter>
+<parameter name="variations">
+<parameter_description> a string representing the variations
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="pango_font_description_set_variations_static">
+<description>
+Like pango_font_description_set_variations(), except that no
+copy of @variations is made. The caller must make sure that the
+string passed in stays around until @desc has been freed
+or the name is set again. This function can be used if
+@variations is a static string such as a C string literal, or
+if @desc is only needed temporarily.
+
+Since: 1.42
+
+</description>
+<parameters>
+<parameter name="desc">
+<parameter_description> a #PangoFontDescription
+</parameter_description>
+</parameter>
+<parameter name="variations">
+<parameter_description> a string representing the variations
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="pango_font_description_set_weight">
 <description>
 Sets the weight field of a font description. The weight field
diff --git a/pango/src/pango_enums.defs b/pango/src/pango_enums.defs
index d8a352f..61b9654 100644
--- a/pango/src/pango_enums.defs
+++ b/pango/src/pango_enums.defs
@@ -293,7 +293,8 @@
 ;;   PANGO_FONT_MASK_WEIGHT  = 1 << 3,
 ;;   PANGO_FONT_MASK_STRETCH = 1 << 4,
 ;;   PANGO_FONT_MASK_SIZE    = 1 << 5,
-;;   PANGO_FONT_MASK_GRAVITY = 1 << 6
+;;   PANGO_FONT_MASK_GRAVITY = 1 << 6,
+;;   PANGO_FONT_MASK_VARIATIONS = 1 << 7,
 ;; } PangoFontMask;
 
 (define-flags-extended FontMask
@@ -307,6 +308,7 @@
     '("stretch" "PANGO_FONT_MASK_STRETCH" "1 << 4")
     '("size" "PANGO_FONT_MASK_SIZE" "1 << 5")
     '("gravity" "PANGO_FONT_MASK_GRAVITY" "1 << 6")
+    '("variations" "PANGO_FONT_MASK_VARIATIONS" "1 << 7")
   )
 )
 
diff --git a/pango/src/pango_methods.defs b/pango/src/pango_methods.defs
index 39a293e..61d3d27 100644
--- a/pango/src/pango_methods.defs
+++ b/pango/src/pango_methods.defs
@@ -271,6 +271,7 @@
     '("stretch" "PANGO_FONT_MASK_STRETCH")
     '("size" "PANGO_FONT_MASK_SIZE")
     '("gravity" "PANGO_FONT_MASK_GRAVITY")
+    '("variations" "PANGO_FONT_MASK_VARIATIONS")
   )
 )
 
@@ -1845,6 +1846,12 @@
   (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")
@@ -2104,6 +2111,30 @@
   (return-type "PangoGravity")
 )
 
+(define-method set_variations_static
+  (of-object "PangoFontDescription")
+  (c-name "pango_font_description_set_variations_static")
+  (return-type "none")
+  (parameters
+    '("const-char*" "settings")
+  )
+)
+
+(define-method set_variations
+  (of-object "PangoFontDescription")
+  (c-name "pango_font_description_set_variations")
+  (return-type "none")
+  (parameters
+    '("const-char*" "settings")
+  )
+)
+
+(define-method get_variations
+  (of-object "PangoFontDescription")
+  (c-name "pango_font_description_get_variations")
+  (return-type "const-char*")
+)
+
 (define-method get_set_fields
   (of-object "PangoFontDescription")
   (c-name "pango_font_description_get_set_fields")


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]