e_xsettings: Set appropriate font sizes.

This sets GTK+/Qt font sizes appropriately by converting
from pixels to point.
This commit is contained in:
Alastair Poole 2019-08-27 23:09:51 +01:00
parent 8a35d17f5e
commit 38ee777a1c
1 changed files with 3 additions and 1 deletions

View File

@ -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);