2018-02-03 09:27:11 -05:00
|
|
|
#ifndef FONTS_H
|
|
|
|
#define FONTS_H
|
|
|
|
|
2018-01-19 23:47:25 -05:00
|
|
|
#include <cairo.h>
|
|
|
|
#include <cairo-ft.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2020-03-08 16:17:05 -04:00
|
|
|
#include <rgba.h>
|
2018-02-03 09:27:11 -05:00
|
|
|
|
2018-01-19 14:54:56 -05:00
|
|
|
#define VERIF_FONT 0
|
|
|
|
#define WRONG_FONT 1
|
|
|
|
#define LAYOUT_FONT 2
|
|
|
|
#define TIME_FONT 3
|
|
|
|
#define DATE_FONT 4
|
2018-10-05 10:40:50 -04:00
|
|
|
#define GREETER_FONT 5
|
2018-01-19 14:54:56 -05:00
|
|
|
|
2018-01-19 23:47:25 -05:00
|
|
|
typedef struct text {
|
|
|
|
bool show;
|
|
|
|
|
2018-10-05 10:40:50 -04:00
|
|
|
char str[512];
|
2018-01-19 23:47:25 -05:00
|
|
|
double size;
|
2021-01-25 22:49:05 -05:00
|
|
|
double outline_width;
|
2018-01-19 23:47:25 -05:00
|
|
|
|
|
|
|
cairo_font_face_t *font;
|
|
|
|
|
|
|
|
rgba_t color;
|
2021-01-25 22:49:05 -05:00
|
|
|
rgba_t outline_color;
|
2018-01-19 23:47:25 -05:00
|
|
|
double x, y;
|
|
|
|
|
|
|
|
int align;
|
|
|
|
} text_t;
|
2018-02-03 09:27:11 -05:00
|
|
|
|
|
|
|
#endif
|