Commit c7000011 authored by Massimo Valentini's avatar Massimo Valentini Committed by Federico Mena Quintero

bgo#587721: Update the PangoLayout for the new matrix before rendering

If the cairo_t's transformation changes between the time the
PangoLayout is created and the time it is shown, one needs to
pango_cairo_update_layout() first.
parent 6c3bccd5
......@@ -277,6 +277,8 @@ rsvg_cairo_render_pango_layout (RsvgDrawingCtx * ctx, PangoLayout * layout, doub
bbox, rsvg_current_state (ctx)->current_color)) {
if (rotation != 0.)
cairo_rotate (render->cr, -rotation);
pango_cairo_update_layout (render->cr, layout);
pango_cairo_show_layout (render->cr, layout);
}
......@@ -295,6 +297,8 @@ rsvg_cairo_render_pango_layout (RsvgDrawingCtx * ctx, PangoLayout * layout, doub
bbox, rsvg_current_state (ctx)->current_color)) {
if (rotation != 0.)
cairo_rotate (render->cr, -rotation);
pango_cairo_update_layout (render->cr, layout);
pango_cairo_layout_path (render->cr, layout);
setup_cr_for_stroke (render->cr, ctx, state);
......
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="1179.75118pt" height="687.74173pt"
viewBox="0 0 1179.75118 687.74173"
enable-background="new 0 0 1179.75118 687.74173"
version="1.1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" >
<g font-family="'DejaVu Sans'" font-size="1" kerning="0" font-weight="400" fill="#000000">
<text transform="matrix(12 0 0 12 929.88438 660.96434)">Frenchtown</text>
</g>
</svg>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment