update contributors list
[claws.git] / src / plugins / litehtml_viewer / lh_widget_text.cpp
index ed290559fd0da06ca59c5530ca41757eea7fdaf1..a832700fca774f1a018efdad092a3a0d409e0982 100644 (file)
@@ -100,6 +100,10 @@ void lh_widget::draw_text( litehtml::uint_ptr hdc, const litehtml::tchar_t* text
        cairo_t *cr = (cairo_t *)hdc;
        PangoLayout *layout = pango_cairo_create_layout(cr);
        PangoContext *context = pango_layout_get_context(layout);
+       GdkScreen* screen = gdk_screen_get_default();
+       double dpi = gdk_screen_get_resolution(screen);
+
+       pango_cairo_context_set_resolution(context, dpi);
 
        if (fnt != NULL) {
                /* Set font */