From cb32b41a4e24df612dc0cabbe1e22098584759e9 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 15 May 2006 09:39:16 -0700 Subject: [PATCH] PS: Fix arguments to setcachedevice Since we are only ever displaying a single glyph at a time we don't care about the width values passed to setcachedevice at all---we only care about the bounding box. That's what the code was trying to do before, but the arguments were misaligned and we were instead passing bounding-box values for the widths and hard-coding half of the bounding-box values as 0. --- src/cairo-ps-surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c index a91a10706..3ba42b416 100644 --- a/src/cairo-ps-surface.c +++ b/src/cairo-ps-surface.c @@ -246,7 +246,7 @@ _cairo_ps_surface_emit_glyph (cairo_ps_surface_t *surface, "\t\t{ %% %d\n", subset_glyph_index); _cairo_output_stream_printf (surface->final_stream, - "%f %f %f %f 0 0 setcachedevice\n", + "0 0 %f %f %f %f setcachedevice\n", _cairo_fixed_to_double (scaled_glyph->bbox.p1.x), -_cairo_fixed_to_double (scaled_glyph->bbox.p2.y), _cairo_fixed_to_double (scaled_glyph->bbox.p2.x),