mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-20 06:40:31 +01:00
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.
This commit is contained in:
parent
e2c03d51da
commit
cb32b41a4e
1 changed files with 1 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue