mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-17 19:20:20 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user