summaryrefslogtreecommitdiff
path: root/pango-view
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-04-30 23:09:47 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-04-30 23:09:47 +0000
commitbd7f0529df20a3268815da365944979af441cd3a (patch)
treefb8ed8d2a77ed919f180f7197f89695b6fd8af84 /pango-view
parent69bcc7f2e5ca2c7135e7ba558c85fffbce2426cb (diff)
downloadpango-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-view')
-rw-r--r--pango-view/viewer-pangocairo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango-view/viewer-pangocairo.c b/pango-view/viewer-pangocairo.c
index 10aaccc4..09f205c0 100644
--- a/pango-view/viewer-pangocairo.c
+++ b/pango-view/viewer-pangocairo.c
@@ -319,6 +319,8 @@ pangocairo_view_render (gpointer instance,
/* This is annoying ... we have to create a temporary surface just to
* get the extents of the text.
*/
+ /* image surface here is not good as it may have font options different
+ * from the target surface */
cs = cairo_image_surface_create (CAIRO_FORMAT_RGB24, 1, 1);
cr = cairo_create (cs);
cairo_surface_destroy (cs);