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;
|
|
|
|
|
|
|
|
cairo_font_face_t *font;
|
|
|
|
|
|
|
|
rgba_t color;
|
|
|
|
double x, y;
|
|
|
|
|
|
|
|
int align;
|
|
|
|
} text_t;
|
2018-02-03 09:27:11 -05:00
|
|
|
|
|
|
|
#endif
|