summaryrefslogtreecommitdiff
path: root/pango/pangocairo-fcfont.c
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 /pango/pangocairo-fcfont.c
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 'pango/pangocairo-fcfont.c')
-rw-r--r--pango/pangocairo-fcfont.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pango/pangocairo-fcfont.c b/pango/pangocairo-fcfont.c
index 41699306..488dca0d 100644
--- a/pango/pangocairo-fcfont.c
+++ b/pango/pangocairo-fcfont.c
@@ -134,7 +134,7 @@ pango_cairo_fc_font_get_scaled_font (PangoCairoFont *font)
if (!cffont->scaled_font)
return NULL;
- if (cffont->gravity != PANGO_GRAVITY_NORTH)
+ if (cffont->gravity != PANGO_GRAVITY_SOUTH)
{
cairo_font_extents_t metrics;
cairo_matrix_t matrix;
@@ -147,16 +147,16 @@ pango_cairo_fc_font_get_scaled_font (PangoCairoFont *font)
switch (cffont->gravity)
{
- case PANGO_GRAVITY_NORTH:
+ case PANGO_GRAVITY_SOUTH:
default:
break;
- case PANGO_GRAVITY_SOUTH:
+ case PANGO_GRAVITY_NORTH:
cairo_matrix_rotate(&matrix, M_PI);
break;
- case PANGO_GRAVITY_WEST:
+ case PANGO_GRAVITY_EAST:
cairo_matrix_rotate(&matrix, -M_PI_2);
break;
- case PANGO_GRAVITY_EAST:
+ case PANGO_GRAVITY_WEST:
cairo_matrix_rotate(&matrix, +M_PI_2);
break;
}