diff --git a/gtk/gtkcssshorthandpropertyimpl.c b/gtk/gtkcssshorthandpropertyimpl.c index 3931363f07..dc67a64537 100644 --- a/gtk/gtkcssshorthandpropertyimpl.c +++ b/gtk/gtkcssshorthandpropertyimpl.c @@ -1118,7 +1118,7 @@ unpack_font_description (GtkCssShorthandProperty *shorthand, g_value_init (&v, G_TYPE_DOUBLE); size = pango_font_description_get_size (description) / PANGO_SCALE; if (!pango_font_description_get_size_is_absolute (description)) - size = size * 96.0 / 72.0; + size = size * gdk_screen_get_resolution (gdk_screen_get_default ()) / 72.0; g_value_set_double (&v, size); prop = _gtk_style_property_lookup ("font-size"); _gtk_style_property_assign (prop, props, state, &v);