discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=ac91f3b2c516b6bb1612d6439c2425bd776c5efd

commit ac91f3b2c516b6bb1612d6439c2425bd776c5efd
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Aug 18 15:52:52 2017 -0400

    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
---
 src/bin/e_xsettings.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/bin/e_xsettings.c b/src/bin/e_xsettings.c
index 30a027cc2..e24abaa02 100644
--- a/src/bin/e_xsettings.c
+++ b/src/bin/e_xsettings.c
@@ -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();

-- 


Reply via email to