mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
config: Add support for font slant and weight
This commit is contained in:
parent
1fafb89cba
commit
07a83c19f0
12 changed files with 126 additions and 98 deletions
|
|
@ -4,11 +4,25 @@
|
|||
|
||||
struct lab_data_buffer;
|
||||
|
||||
enum font_slant {
|
||||
FONT_SLANT_NORMAL,
|
||||
FONT_SLANT_ITALIC
|
||||
};
|
||||
|
||||
enum font_weight {
|
||||
FONT_WEIGHT_NORMAL,
|
||||
FONT_WEIGHT_BOLD
|
||||
};
|
||||
|
||||
struct font {
|
||||
char *name;
|
||||
int size;
|
||||
enum font_slant slant;
|
||||
enum font_weight weight;
|
||||
};
|
||||
|
||||
struct _PangoFontDescription *font_to_pango_desc(struct font *font);
|
||||
|
||||
/**
|
||||
* font_height - get font vertical extents
|
||||
* @font: description of font including family name and size
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
#include <wayland-server-core.h>
|
||||
|
||||
#include "common/buf.h"
|
||||
#include "common/font.h"
|
||||
#include "config/libinput.h"
|
||||
#include "theme.h"
|
||||
|
||||
|
|
@ -25,12 +26,9 @@ struct rcxml {
|
|||
/* theme */
|
||||
char *theme_name;
|
||||
int corner_radius;
|
||||
char *font_name_activewindow;
|
||||
char *font_name_menuitem;
|
||||
char *font_name_osd;
|
||||
int font_size_activewindow;
|
||||
int font_size_menuitem;
|
||||
int font_size_osd;
|
||||
struct font font_activewindow;
|
||||
struct font font_menuitem;
|
||||
struct font font_osd;
|
||||
/* Pointer to current theme */
|
||||
struct theme *theme;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue