forked from enlightenment/enlightenment
clamp xsettings font size to 12 when size is 0
font class config does not require the user to select a size, so do extra clamping here when a size isn't set fix T3093
This commit is contained in:
parent
cfb40865bc
commit
ac91f3b2c5
|
@ -529,9 +529,10 @@ _e_xsettings_font_set(void)
|
|||
const char *p;
|
||||
|
||||
/* TODO better way to convert evas font sizes? */
|
||||
if (size < 0) size /= -10;
|
||||
if (size < 5) size = 5;
|
||||
if (size > 25) size = 25;
|
||||
if (!size) size = 12;
|
||||
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);
|
||||
|
||||
buf = eina_strbuf_new();
|
||||
|
|
Loading…
Reference in New Issue