12#ifndef TEXT_GP_FONTS_H
13#define TEXT_GP_FONTS_H
107#define GP_FONT_FAMILY_FOREACH(iter, family) \
108 for (family = gp_fonts_iter_family(iter, 0, GP_FONTS_ITER_FIRST); \
110 family = gp_fonts_iter_family(iter, 0, GP_FONTS_ITER_NEXT))
An in-memory font description.
const gp_font_face * gp_font_face_lookup(const char *family_name, uint8_t style)
Looks up a font face in a family given a family name and style flags.
const gp_font_face * gp_fonts_iter_font(gp_fonts_iter *iter, int wrap, enum gp_fonts_iter_dir dir)
Iterates over all compiled in fonts.
const gp_font_family * gp_fonts_iter_family(gp_fonts_iter *iter, int wrap, enum gp_fonts_iter_dir dir)
Iterates over all compiled in families.
const gp_font_family * gp_font_family_lookup(const char *family_name)
Font family lookup.
const gp_font_face * gp_font_family_face_lookup(const gp_font_family *family, uint8_t style)
Looks up a font face in a family given a style flags.
gp_fonts_iter_dir
An iterator direction.
@ GP_FONTS_ITER_NEXT
Move to next.
@ GP_FONTS_ITER_NOP
No action.
@ GP_FONTS_ITER_FIRST
Move to first.
@ GP_FONTS_ITER_PREV
Move to previous.
@ GP_FONTS_ITER_LAST
Move to last.