9#ifndef TEXT_GP_TEXTSTYLE_H
10#define TEXT_GP_TEXTSTYLE_H
12#include <text/gp_font.h>
14extern const gp_font_face gp_default_font;
20typedef struct gp_text_style {
21 const gp_font_face *font;
24 int pixel_xspace, pixel_yspace;
27 int pixel_xmul, pixel_ymul;
33#define GP_DEFAULT_TEXT_STYLE { \
34 .font = &gp_default_font, \
42static inline void gp_text_style_normal(gp_text_style *style,
const gp_font_face *font,
int mul)
44 style->pixel_xspace = 0;
45 style->pixel_yspace = 0;
46 style->pixel_xmul = mul;
47 style->pixel_ymul = mul;
54static inline void gp_text_style_embold(gp_text_style *style,
const gp_font_face *font,
int mul)
56 style->pixel_xspace = -1;
57 style->pixel_yspace = -1;
58 style->pixel_xmul = mul + 1;
59 style->pixel_ymul = mul + 1;