osx: Set Menlo as default font

This moves the find_font function to the front ends since it depends on
pango and cairo
This commit is contained in:
TingPing
2014-01-31 17:20:17 -05:00
parent 8e55157e6a
commit 3a7fb4d8e1
8 changed files with 67 additions and 42 deletions

View File

@@ -1113,3 +1113,20 @@ fe_open_chan_list (server *serv, char *filter, int do_refresh)
{
chanlist_opengui (serv, do_refresh);
}
const char *
fe_get_default_font (void)
{
#ifdef WIN32
if (gtkutil_find_font ("Consolas"))
return "Consolas 10";
else
#else
#ifdef __APPLE__
if (gtkutil_find_font ("Menlo"))
return "Menlo 13";
else
#endif
#endif
return NULL;
}