summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/viewer-render.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/viewer-render.c b/utils/viewer-render.c
index 87b27829..8816f06f 100644
--- a/utils/viewer-render.c
+++ b/utils/viewer-render.c
@@ -373,6 +373,11 @@ do_output (PangoContext *context,
pango_context_set_gravity_hint (context, opt_gravity_hint);
layout = make_layout (context, text, -1);
+ if (opt_serialized && supports_matrix)
+ {
+ const PangoMatrix *context_matrix = pango_context_get_matrix (pango_layout_get_context (layout));
+ matrix = context_matrix ? *context_matrix : (PangoMatrix) PANGO_MATRIX_INIT;
+ }
set_transform (context, transform_cb, cb_context, cb_data, &matrix);