9#include <text/gp_font.h>
11extern const gp_font_family *gp_font_family_default;
20const gp_font_family *gp_font_family_lookup(
const char *family_name);
33const gp_font_face *gp_font_family_face_lookup(
const gp_font_family *family, uint8_t style);
44const gp_font_face *gp_font_face_lookup(
const char *family_name, uint8_t style);
46typedef struct gp_fonts_iter {
51enum gp_fonts_iter_dir {
52 GP_FONTS_ITER_NOP = 0,
53 GP_FONTS_ITER_PREV = -1,
54 GP_FONTS_ITER_NEXT = 1,
55 GP_FONTS_ITER_FIRST = -2,
56 GP_FONTS_ITER_LAST = 2,
69const gp_font_face *gp_fonts_iter_font(gp_fonts_iter *iter,
int wrap,
70 enum gp_fonts_iter_dir dir);
82const gp_font_family *gp_fonts_iter_family(gp_fonts_iter *iter,
int wrap,
83 enum gp_fonts_iter_dir dir);
85#define GP_FONT_FAMILY_FOREACH(iter, family) \
86 for (family = gp_fonts_iter_family(iter, 0, GP_FONTS_ITER_FIRST); \
88 family = gp_fonts_iter_family(iter, 0, GP_FONTS_ITER_NEXT))