summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-01-16 09:52:02 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-01-16 09:52:02 +0000
commit56e7902a63f2036ea46a386c9d80827d6420f143 (patch)
tree6363106a16cc800436c945d09d88bbad951b5997 /docs
parent7a102793913cb7a1a0eefbbfc9d5c0d04c9eb868 (diff)
downloadpango-56e7902a63f2036ea46a386c9d80827d6420f143.tar.gz
New attribute types PANGO_ATTR_GRAVITY and PANGO_ATTR_GRAVITY_HINT. New
2007-01-16 Behdad Esfahbod <behdad@gnome.org> * pango/pango-attributes.h: * pango/pango-attributes.c: New attribute types PANGO_ATTR_GRAVITY and PANGO_ATTR_GRAVITY_HINT. New public functions: pango_attr_gravity_new() pango_attr_gravity_hint_new() * pango/pango-context.c (update_attr_iterator), (itemize_state_init), (itemize_state_add_character), (get_shaper_and_font), (itemize_state_update_for_new_run): Handle gravity and gravity_hint attributes. * pango/pango-utils.h: * pango/pango-utils.c: New public function: pango_parse_enum() * pango/pango-markup.c (span_parse_func): Parse gravity and gravity_hint attributes for <span>. Optimize a bit. * pango/pango-markup.c (parse_absolute_size), (attr_strcmp), (span_parse_int), (span_parse_boolean), (span_parse_color), (span_parse_enum), (span_parse_func): Use pango_scan_int(), pango_color_parse(), and pango_parse_enum(). Also, ignore '-' and '_' differences when matching attribute names for <span>. * examples/renderdemo.c (parse_enum), (parse_ellipsis), (parse_gravity), (parse_gravity_hint), (parse_hinting), (parse_wrap): Use a generic parse_enum() that uses pango_parse_enum(). * modules/basic/basic-fc.c (basic_engine_shape): * pango/pangofc-fontmap.c (pango_fc_make_pattern): Use PANGO_GRAVITY_IS_VERTICAL(). * pango/pango.def: * docs/pango-sections.txt: * docs/tmpl/text-attributes.sgml: * docs/tmpl/utils.sgml: Update. svn path=/trunk/; revision=2145
Diffstat (limited to 'docs')
-rw-r--r--docs/pango-sections.txt5
-rw-r--r--docs/tmpl/text-attributes.sgml38
-rw-r--r--docs/tmpl/utils.sgml13
3 files changed, 46 insertions, 10 deletions
diff --git a/docs/pango-sections.txt b/docs/pango-sections.txt
index 64da609e..d9d68e9c 100644
--- a/docs/pango-sections.txt
+++ b/docs/pango-sections.txt
@@ -345,7 +345,6 @@ pango_attr_shape_new
pango_attr_shape_new_with_data
PangoAttrDataCopyFunc
pango_attr_scale_new
-pango_attr_fallback_new
PANGO_SCALE_XX_SMALL
PANGO_SCALE_X_SMALL
PANGO_SCALE_SMALL
@@ -355,6 +354,9 @@ PANGO_SCALE_X_LARGE
PANGO_SCALE_XX_LARGE
pango_attr_rise_new
pango_attr_letter_spacing_new
+pango_attr_fallback_new
+pango_attr_gravity_new
+pango_attr_gravity_hint_new
PangoColor
PANGO_TYPE_COLOR
pango_color_parse
@@ -964,6 +966,7 @@ pango_scan_string
pango_scan_int
pango_config_key_get
pango_lookup_aliases
+pango_parse_enum
pango_parse_style
pango_parse_variant
pango_parse_weight
diff --git a/docs/tmpl/text-attributes.sgml b/docs/tmpl/text-attributes.sgml
index bcb109c6..79f9ac94 100644
--- a/docs/tmpl/text-attributes.sgml
+++ b/docs/tmpl/text-attributes.sgml
@@ -52,6 +52,8 @@ attribute is listed in parentheses after the description.
@PANGO_ATTR_UNDERLINE_COLOR: underline color (#PangoAttrColor)
@PANGO_ATTR_STRIKETHROUGH_COLOR: strikethrough color (#PangoAttrColor)
@PANGO_ATTR_ABSOLUTE_SIZE: font size in pixels scaled by %PANGO_SCALE (#PangoAttrInt)
+@PANGO_ATTR_GRAVITY: base text gravity (#PangoAttrInt)
+@PANGO_ATTR_GRAVITY_HINT: gravity hint (#PangoAttrInt)
<!-- ##### MACRO PANGO_TYPE_ATTR_TYPE ##### -->
<para>
@@ -434,15 +436,6 @@ user data.
@Returns:
-<!-- ##### FUNCTION pango_attr_fallback_new ##### -->
-<para>
-
-</para>
-
-@enable_fallback:
-@Returns:
-
-
<!-- ##### MACRO PANGO_SCALE_XX_SMALL ##### -->
<para>
The scale factor for three shrinking steps (1 / (1.2 * 1.2 * 1.2)).
@@ -510,6 +503,33 @@ The scale factor for three magnification steps (1.2 * 1.2 * 1.2).
@Returns:
+<!-- ##### FUNCTION pango_attr_fallback_new ##### -->
+<para>
+
+</para>
+
+@enable_fallback:
+@Returns:
+
+
+<!-- ##### FUNCTION pango_attr_gravity_new ##### -->
+<para>
+
+</para>
+
+@gravity:
+@Returns:
+
+
+<!-- ##### FUNCTION pango_attr_gravity_hint_new ##### -->
+<para>
+
+</para>
+
+@hint:
+@Returns:
+
+
<!-- ##### STRUCT PangoColor ##### -->
<para>
The #PangoColor structure is used to
diff --git a/docs/tmpl/utils.sgml b/docs/tmpl/utils.sgml
index d836f661..f53c776f 100644
--- a/docs/tmpl/utils.sgml
+++ b/docs/tmpl/utils.sgml
@@ -104,6 +104,19 @@ backends and modules, but may be useful for other purposes too.
@n_families:
+<!-- ##### FUNCTION pango_parse_enum ##### -->
+<para>
+
+</para>
+
+@type:
+@str:
+@value:
+@warn:
+@possible_values:
+@Returns:
+
+
<!-- ##### FUNCTION pango_parse_style ##### -->
<para>