summaryrefslogtreecommitdiff
path: root/gdk/gdkpango.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdk/gdkpango.c')
-rw-r--r--gdk/gdkpango.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdk/gdkpango.c b/gdk/gdkpango.c
index 984881aeea..9375a80545 100644
--- a/gdk/gdkpango.c
+++ b/gdk/gdkpango.c
@@ -1416,16 +1416,20 @@ gdk_pango_context_get_for_screen (GdkScreen *screen)
PangoFontMap *fontmap;
PangoContext *context;
const cairo_font_options_t *options;
+ double dpi;
g_return_val_if_fail (GDK_IS_SCREEN (screen), NULL);
- fontmap = _gdk_screen_get_font_map (screen);
+ fontmap = pango_cairo_font_map_get_default ();
context = pango_cairo_font_map_create_context (PANGO_CAIRO_FONT_MAP (fontmap));
options = gdk_screen_get_font_options (screen);
pango_cairo_context_set_font_options (context, options);
+ dpi = gdk_screen_get_resolution (screen);
+ pango_cairo_context_set_resolution (context, dpi);
+
return context;
}