diff options
author | TingPing <tingping@tingping.se> | 2014-01-31 17:20:17 -0500 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2014-02-04 20:45:29 -0500 |
commit | 3a7fb4d8e1896eced87e3ccbf9369d76fa10d7e0 (patch) | |
tree | 444fe3085277bcc8a65f187991a874d0e794c0f6 /src/fe-gtk/fe-gtk.c | |
parent | 8e55157e6abc105ee17d80d91a291ca8e1215733 (diff) |
osx: Set Menlo as default font
This moves the find_font function to the front ends since it depends on pango and cairo
Diffstat (limited to 'src/fe-gtk/fe-gtk.c')
-rw-r--r-- | src/fe-gtk/fe-gtk.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c index ae68bb79..c0e7f53f 100644 --- a/src/fe-gtk/fe-gtk.c +++ b/src/fe-gtk/fe-gtk.c @@ -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; +} |