mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-03 04:23:42 -05:00
When no dpi set (-1) set the default one for fonts handling.
This commit is contained in:
parent
fb2ba8ada3
commit
bf17e1c65e
1 changed files with 4 additions and 0 deletions
|
@ -785,6 +785,10 @@ void __create_window ( MenuFlags menu_flags )
|
||||||
PangoFontMap *font_map = pango_cairo_font_map_get_default ();
|
PangoFontMap *font_map = pango_cairo_font_map_get_default ();
|
||||||
pango_cairo_font_map_set_resolution ( (PangoCairoFontMap *) font_map, dpi );
|
pango_cairo_font_map_set_resolution ( (PangoCairoFontMap *) font_map, dpi );
|
||||||
config.dpi = 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.
|
// Setup font.
|
||||||
// Dummy widget.
|
// Dummy widget.
|
||||||
|
|
Loading…
Reference in a new issue