Add libi3/load_font, use it everywhere

…except for i3bar, which needs slightly more information about the font
This commit is contained in:
Michael Stapelberg
2011-10-23 22:37:11 +01:00
parent 6d01d37b03
commit a58018cf66
16 changed files with 137 additions and 203 deletions

View File

@ -52,14 +52,6 @@
extern unsigned int xcb_numlock_mask;
/**
* Loads a font for usage, also getting its height. If fallback is true,
* i3 loads 'fixed' or '-misc-*' if the font cannot be found instead of
* exiting.
*
*/
i3Font load_font(const char *pattern, bool fallback);
/**
* Convenience wrapper around xcb_create_window which takes care of depth,
* generating an ID and checking for errors.