mirror of
https://github.com/labwc/labwc.git
synced 2026-02-07 04:07:42 -05:00
Base rc.title_height on font vertical extents
This commit is contained in:
parent
4d1363dcae
commit
2297e43cc0
11 changed files with 123 additions and 26 deletions
10
include/common/font.h
Normal file
10
include/common/font.h
Normal 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 */
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue