When no dpi set (-1) set the default one for fonts handling.

This commit is contained in:
Dave Davenport 2020-06-09 22:51:44 +02:00
parent fb2ba8ada3
commit bf17e1c65e

View file

@ -785,6 +785,10 @@ void __create_window ( MenuFlags menu_flags )
PangoFontMap *font_map = pango_cairo_font_map_get_default ();
pango_cairo_font_map_set_resolution ( (PangoCairoFontMap *) font_map, dpi );
config.dpi = dpi;
} else {
// default pango is 96.
PangoFontMap *font_map = pango_cairo_font_map_get_default ();
config.dpi = pango_cairo_font_map_get_resolution ( (PangoCairoFontMap *) font_map );
}
// Setup font.
// Dummy widget.