diff options
Diffstat (limited to 'pango-view/viewer-pangocairo.c')
-rw-r--r-- | pango-view/viewer-pangocairo.c | 2 |
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); |