summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-08-15 13:03:04 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-08-15 13:03:04 +0000
commit7101c5c12a1c0d1b3e28a5cdf0849a6d16d1f9c6 (patch)
tree5d867f7ca5e6612fe90ad6725972e256be01479d /examples
parent8de44f9dc7712a7ce258b70a7b8283b3ebca094e (diff)
downloadpango-7101c5c12a1c0d1b3e28a5cdf0849a6d16d1f9c6.tar.gz
Oops. Exchange west<->east and north<->south gravities. The gravity is the
2006-08-15 Behdad Esfahbod <behdad@gnome.org> * docs/pango-sections.txt: * docs/tmpl/main.sgml: * examples/renderdemo.c (parse_gravity), (parse_options): * pango/pango-context.c (pango_context_init), (pango_context_get_base_gravity), (itemize_state_add_character): * pango/pango-types.h: * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_scaled_font): * pango/pangofc-fontmap.c (pango_fc_make_pattern): Oops. Exchange west<->east and north<->south gravities. The gravity is the side that the glyph sits on. So, for normal Latin text for example, gravity is south, not north.
Diffstat (limited to 'examples')
-rw-r--r--examples/renderdemo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/renderdemo.c b/examples/renderdemo.c
index 13781614..e77ddcec 100644
--- a/examples/renderdemo.c
+++ b/examples/renderdemo.c
@@ -56,7 +56,7 @@ int opt_width = -1;
int opt_indent = 0;
int opt_runs = 1;
PangoEllipsizeMode opt_ellipsize = PANGO_ELLIPSIZE_NONE;
-PangoGravity opt_gravity = PANGO_GRAVITY_NORTH;
+PangoGravity opt_gravity = PANGO_GRAVITY_SOUTH;
HintMode opt_hinting = HINT_DEFAULT;
PangoWrapMode opt_wrap = PANGO_WRAP_WORD_CHAR;
gboolean opt_wrap_set = FALSE;
@@ -401,7 +401,7 @@ parse_gravity (const char *name,
g_set_error(error,
G_OPTION_ERROR,
G_OPTION_ERROR_BAD_VALUE,
- "Argument for --gravity must be one of north/west/south/east");
+ "Argument for --gravity must be one of south/east/north/west");
ret = FALSE;
}
@@ -582,7 +582,7 @@ parse_options (int argc, char *argv[])
{"font", 0, 0, G_OPTION_ARG_STRING, &opt_font,
"Set the font description", "description"},
{"gravity", 0, 0, G_OPTION_ARG_CALLBACK, &parse_gravity,
- "Gravity", "north/west/south/east"},
+ "Gravity", "south/east/north/west"},
{"header", 0, 0, G_OPTION_ARG_NONE, &opt_header,
"Display the options in the output", NULL},
{"hinting", 0, 0, G_OPTION_ARG_CALLBACK, &parse_hinting,