diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2007-04-30 23:09:47 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-04-30 23:09:47 +0000 |
commit | bd7f0529df20a3268815da365944979af441cd3a (patch) | |
tree | fb8ed8d2a77ed919f180f7197f89695b6fd8af84 /pango/pango-gravity.c | |
parent | 69bcc7f2e5ca2c7135e7ba558c85fffbce2426cb (diff) | |
download | pango-bd7f0529df20a3268815da365944979af441cd3a.tar.gz |
Move PANGO_UNITS_ROUND here... ...from here.
2007-04-30 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-types.h: Move PANGO_UNITS_ROUND here...
* pango/pangofc-private.h: ...from here.
* pango/pango-gravity.c: Document that pango_gravity_to_rotation()
returns angle in radians but pango_matrix_rotate() takes degrees.
* pango/pango-layout.c (pango_layout_run_get_extents):
* pango/pango-renderer.c (pango_renderer_draw_layout_line):
Retain metrics hinting when centering baseline (used for Latin, etc
in vertical mode).
* pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_metrics),
(pango_cairo_fc_font_glyph_extents_cache_init): Respect metrics
hinting setting when moving glyphs around for vertical writing.
* pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new): Apply
the gravity rotation before the pattern's matrix, such that
vertical text gets correct italic direction.
* pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info):
Make hexbox font inherit most properties from the current font.
That is, bold hexbox digits for a bold font, etc.
svn path=/trunk/; revision=2238
Diffstat (limited to 'pango/pango-gravity.c')
-rw-r--r-- | pango/pango-gravity.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pango/pango-gravity.c b/pango/pango-gravity.c index 1b59a500..1c2d8b0d 100644 --- a/pango/pango-gravity.c +++ b/pango/pango-gravity.c @@ -29,9 +29,13 @@ * pango_gravity_to_rotation: * @gravity: gravity to query * - * Converts a #PangoGravity value to its rotation value. + * Converts a #PangoGravity value to its natural rotation in radians. * @gravity should not be %PANGO_GRAVITY_AUTO. * + * Note that pango_matrix_rotate() takes angle in degrees, not radians. + * So, to call pango_matrix_rotate() with the output of this function + * you should multiply it by (180. / G_PI). + * * Return value: the rotation value corresponding to @gravity. * * Since: 1.16 |