forked from enlightenment/enlightenment
e_xsettings: Set appropriate font sizes.
This sets GTK+/Qt font sizes appropriately by converting from pixels to point.
This commit is contained in:
parent
8a35d17f5e
commit
38ee777a1c
|
@ -533,7 +533,9 @@ _e_xsettings_font_set(void)
|
|||
else if (size < 0) size /= -10;
|
||||
else if (size < 5) size = 5;
|
||||
else if (size > 25) size = 25;
|
||||
snprintf(size_buf, sizeof(size_buf), "%d", size);
|
||||
|
||||
/* Convert from pixels to point. */
|
||||
snprintf(size_buf, sizeof(size_buf), "%1.1f", (float) size * 0.75);
|
||||
|
||||
buf = eina_strbuf_new();
|
||||
eina_strbuf_append(buf, efp->name);
|
||||
|
|
Loading…
Reference in New Issue