jaehyun pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=9a4c1c667cfc3ecd39b1aa81956a9bbf7f149b43

commit 9a4c1c667cfc3ecd39b1aa81956a9bbf7f149b43
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Mon Feb 22 22:52:02 2016 +0900

    config: Set default monospaced font on Windows and OSX.
---
 src/bin/config_data.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/bin/config_data.c b/src/bin/config_data.c
index 0a457d8..6c7e0f5 100644
--- a/src/bin/config_data.c
+++ b/src/bin/config_data.c
@@ -225,8 +225,15 @@ config_load(void)
           cd->syntax_color_list = eina_list_append(cd->syntax_color_list, 
NULL);
      }
 
+#ifdef _WIN32
+   const char monospace_font[] = "Courier New";
+#elif __APPLE__
+   const char monospace_font[] = "Menlo";
+#else
+   const char monospace_font[] = "Monospace";
+#endif
    if (!cd->font_name)
-     eina_stringshare_replace(&cd->font_name, "Monospace");
+     eina_stringshare_replace(&cd->font_name, monospace_font);
    if (!cd->font_style)
      eina_stringshare_replace(&cd->font_style, "Regular");
 

-- 


Reply via email to