Base rc.title_height on font vertical extents

This commit is contained in:
Johan Malm 2020-08-05 20:14:17 +01:00
parent 4d1363dcae
commit 2297e43cc0
11 changed files with 123 additions and 26 deletions

10
include/common/font.h Normal file
View file

@ -0,0 +1,10 @@
#ifndef __LABWC_FONT_H
#define __LABWC_FONT_H
/*
* font_height - get font vertical extents
* @font_description: string describing font, for example 'sans 10'
*/
int font_height(const char *font_description);
#endif /* __LABWC_FONT_H */

View file

@ -13,6 +13,7 @@ struct rcxml {
char *font_name_activewindow;
int font_size_activewindow;
struct wl_list keybinds;
int title_height; /* not set in rc.xml, but derived from font, etc */
};
extern struct rcxml rc;